[英]What does BEAM stand for in iex for the Elixir programming language?
BEA和M.的字母代表什么? 我记得看到对首字母缩略词“BEAM”的解释,但我还没有找到它。
它出现在错误代码中:
➜ gentoo iex
Erlang/OTP 17 [erts-6.4.1] [source] [64-bit] [smp:8:8] [async-threads:10] [kernel-poll:false]
Interactive Elixir (1.0.4) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> import Math
08:05:02.839 [error] Loading of /var/opt/proj/elx/ubuntu/Elixir.Math.beam failed: :badfile
** (CompileError) iex:1: module Math is not loaded and could not be found
08:05:02.846 [error] beam/beam_load.c(1104): Error loading module 'Elixir.Math':
non-ascii garbage '78705400' instead of chunk type id
(elixir) src/elixir_exp.erl:123: :elixir_exp.expand/2
iex(1)>
因此,看起来.beam文件存在某种问题,可能是由于我使用了vi。 (注意Elixir程序员:不要编辑.beam文件,这很痛苦。)
这个问题解释了BEAM虚拟机是什么,而不是字母代表什么。 似乎很难在Erlang中心快速找到关于词源的更多信息。 据说 BEAM是Erlang和Elixir的秘诀。
它代表“Bogdan /Björn的Erlang Abstract Machine” - 它只是VM的名称,很像JVM(Java虚拟机)。
几乎每个人都使用“新BEAM”,其中BEAM代表Bogdan /Björn的Erlang Abstract Machine。 这是商业版本中支持的虚拟机。
http://www.erlang.org/faq/implementations.html
这个名字可能是从Warren抽象机器中找到它的路线 - 一个Prolog的抽象指令集,你可以在http://en.wikipedia.org/wiki/Warren_Abstract_Machine上阅读
WAM影响了JAM(Joe Abstract Machine - 以Joe Armstrong命名),这是BEAM的前身。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.