Erlang 是用什么写的?
爱立信的 Erlang 和 Erlang/OTP 实现是用什么编写和编译的? 是汇编、C 还是 Erlang 本身?
更新 1:感谢 DrJokepu。 如果我理解正确的话,Erlang 源到虚拟机的编译器是用 Erlang 本身编写的。 但VM是用C编写的。
更新2:Hynek-Pichi-Vychodil指出了很多细节。
- VM 和硬件交互驱动程序:在 C 中。
- 编译器(到 VM)和库:在 Erlang 中。
- 扩展:通过用该语言编写端口或 Erlang 节点,可以在任何语言中实现。
What is Ericsson's implementation of Erlang and Erlang/OTP written and compiled in? Is is assembly, C or Erlang itself?
Update 1: Thanks to DrJokepu. If I understand correctly, Erlang source-to-VM compiler is written in Erlang itself. But the VM is written in C.
Update 2: Hynek-Pichi-Vychodil pointed out a lot of details.
- VM and HW interacting drivers: in C.
- Compiler (to VM) and libraries: in Erlang.
- Extensions: Possible in any language by writing a port or an Erlang node in that language.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Erlang 本身是用 Erlang 编写的。 听起来很奇怪? 是的,因为这只是部分正确。 好吧,更详细地看一下:
Erlang itself is written in Erlang. Sounds strange? Yes, because it is only partially true. OK look at it in more detail:
来自 Erlang 常见问题解答:
From the Erlang FAQ:
您可以在 ohloh 站点,此报告从主 erlang git 存储库生成。
You can see a live and update statistics in ohloh site, this report generate from main erlang git repository.
我可以说 Erlang 最初是用 C/C++ 编写的
我不能说 Java 是用 java 编写的......但它是框架和
一些图书馆。
关于 Erlang,因为它是首选编程语言并且适合
对于电信系统......为了保持速度(例如:在聊天机器人中)
我知道它的编译器或预处理器是用Erlang编写的。
但语言的其他功能是用低级语言编写的。
I can say that Erlang was initially written in C/C++ as
I can't say that Java is written in java.... but It's framework and
Some libraries.
About Erlang, As Its is preferred programming language and suitable
for Telecom system... in order to maintain swiftness (e.g: in chat-bots)
I know that its compiler or PreProcessor is written in Erlang.
But Other features of language are written in Low Level languages.