| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
原始链接: https://news.ycombinator.com/item?id=43655221
这篇Hacker News的讨论串围绕一篇文章展开,该文章认为Erlang的价值超越了轻量级进程和消息传递,强调了其深层特性,特别是其Behaviour/Interface概念以及在构建复杂系统方面的成本效益。评论者分享了他们的经验,将Elixir/Erlang与Node.js和其他平台进行了对比,赞扬了BEAM虚拟机和OTP平台在分布式系统中的可靠性。一个反复出现的主题是Erlang/Elixir尽管有其优势,但采用率相对较低。原因包括招聘困难,Erlang被认为是一种“另类”语言,以及更多“平庸但集成良好”工具的可用性。一些人认为其生态系统更关注进程生命周期和RPC,而另一些人则认为抢占式调度器提供了更高的稳定性。该讨论串涵盖了历史背景以及BEAM调度和内部机制的复杂性。最后,文章提到Erlang在1998年被“解雇”,但在2004年重新聘用了Armstrong。
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
OTP itself has so much in it. We've been working on compiling Elixir to run on iOS devices. Not only can we do that through the release process but through using the ei library provided in Erlang we can compile a Node in C that will interface with any other Erlang node over a typical distributed network as you would for Erlang, Elixir, Gleam, etc... furthermore there is a rpc library in Erlang where from C we can make function calls and interface with our Elixir application. Yes, the encoding/decoding has an overhead and FFI would be faster but we're still way within our latency budget and we got this stood up in a few days without even have heard of it before.
The larger point here is that Erlang has been solving many of the problems that modern tech stacks are struggling with and it has solved for scale and implementation cost and it solved these problems decades ago. I know HN has a bit of a click-bait love relationship with Erlang/Elixir but it hasn't translated over to adoption and there are companies that are just burning money trying to do what you get out of the box for free with the Erlang stack.
reply