erlang值得学吗?

发布于 2024-11-30 03:07:55 字数 231 浏览 0 评论 0原文

我想知道像 Erlang 这样的语言值得学习吗?我正在考虑学习一门新语言,我脑子里浮现以下问题:

  • 学习函数式编程会帮助我/提高程序员的水平吗?
  • Erlang 的行业使用/使用 erlang 的项目?
  • 从职业角度来看,学习 erlang 有真正的未来吗?
  • erlang 相对于 python/PHP/ 等可能的优点/缺点

谢谢, 维姬

I was wondering is it worthwhile learning a language like Erlang. I am looking at learning a new language and the following questions are on my mind :

  • Will learning functional programming help me/improve as a programmer?
  • Industry Usage of Erlang/ projects using erlang ?
  • Any real future in learning erlang from a career point of view?
  • Possible advantages/disadvantages of erlang over python/PHP/ etc

Thanks,
Vicky

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱人如己 2024-12-07 03:07:55

来自这里的Scheme,所以我不能为Erlang 说太多。但由于Scheme也很实用,让我试着说服你。

学习函数式编程对你作为程序员有帮助吗?

绝对地。我听说过很多这方面的原因,有些我可以证实,有些还不能证实。实际上,在我看来,试图让人们相信函数式编程值得学习是没有意义的,特别是当有很多关于 Python/PHP/Java(Script)/等的新闻时。当他们学到这一点时,他们必须自己相信。

对我来说,Scheme让我更加体会到了递归。当然,由于堆栈空间有限,您很少在其他语言中使用递归,但由于许多算法都是递归描述的(尽管是迭代实现的,即使用循环结构),递归实现它们应该会让您更好地欣赏它们。

Erlang 的工业用途?

经过。不过我建议您查看函数式编程的商业用途

学习 Erlang 是为了职业?

我不是问这个问题的人,所以我无法详细说明,但我听说 FP 被证明在并行计算中非常有用。谈论未来!

相对于 Python/PHP/等有什么优势?

它是函数式的,所以它是对算法进行数学思考的一个很好的实践,当你用过程语言编码时,这不是很明显(至少对我来说)。另外,请查看编程语言基准的结果。函数式语言似乎比你提到的语言(LISP、Haskell、Erlang)更快。 Python 追赶 Erlang,但 Erlang 的速度肯定比 Python 快一半左右!看看 Erlang HiPE:10.22 秒! (我正在研究 x64 Ubuntu Intel Q6600 四核——并行处理给了他们一个优势?)

TL;DR 继续学习吧。我告诉你,你会感谢我的;D

Coming from Scheme here so I can't speak much for Erlang. But as Scheme is functional as well, let me try to convince you.

Will learning functional programming help you as a programmer?

Absolutely. I've heard a lot of reasons for this, some I can attest to, others not (yet). Actually, in my opinion, it's moot trying to convince people that functional programming is worth learning at all, especially when there's a lot of press about Python/PHP/Java(Script)/etc. They have to be convinced for themselves, when they learn it.

As for me, Scheme allowed me to appreciate recursion more. Sure you rarely use recursion in other languages due to limited stack space but as a lot of algorithms are described recursively (albeit implemented iteratively, that is, using loop constructs), implementing them recursively should give you a better appreciation for them.

Industry use of Erlang?

Pass. Though I recommend looking around at Commercial Uses of Functional Programming.

Learning Erlang for a career?

I'm not the person to ask so I can't elaborate but I've heard that FP proved to be very useful in parallel computing. Talk about the future!

Advantages over Python/PHP/etc?

It's functional so it is a good practice for mathematical thinking about algorithms, which is not very apparent (at least for me) when you code in a procedural language. Also, look at the results of Programming Language Benchmarks. It seems that functional languages are faster than those you mentioned (LISP, Haskell, Erlang). Python goes after Erlang but Erlang sure is faster by around half of Python's time! And look at Erlang HiPE: 10.22 seconds! (I'm looking at x64 Ubuntu Intel Q6600 quad-core---parallel processing gave them a leg-up?)

TL;DR Go ahead and learn it. You'll thank me, I'm telling you ;D

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文