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 Central上很难很快找到有关词源的大量知识。据说BEAM是Erlang和Elixir的秘密调味料。
它代表“ Bogdan /Björn的Erlang抽象机”-只是VM的名称,就像JVM(Java虚拟机)一样。
几乎每个人都使用“新的BEAM”,BEAM代表Bogdan /Björn的Erlang抽象机。这是商业版本中支持的虚拟机。
http://www.erlang.org/faq/implementations.html
该名称可能是从Warren抽象机找到的,Warren抽象机是Prolog的抽象指令集,您可以在以下网址中找到它:http : //en.wikipedia.org/wiki/Warren_Abstract_Machine
WAM影响了BEAM的前身JAM(Joe Abstract Machine,以Joe Armstrong命名)。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句