简体   繁体   English

BEAM代表Elx编程语言的iex是什么?

[英]What does BEAM stand for in iex for the Elixir programming language?

What do the letters BEA and M. stand for? BEA和M.的字母代表什么? I recall seeing an explanation of the acronym "BEAM", but I have not managed to find it again. 我记得看到对首字母缩略词“BEAM”的解释,但我还没有找到它。

It comes up in error codes: 它出现在错误代码中:

➜  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)> 

So, it looks like there's some sort of problem with a .beam file, probably due to my use of vi. 因此,看起来.beam文件存在某种问题,可能是由于我使用了vi。 (Note to notive Elixir programmers: Do not edit .beam files, it is painful.) (注意Elixir程序员:不要编辑.beam文件,这很痛苦。)

This question explains what the BEAM virtual machine is , but not what the letters stand for. 这个问题解释了BEAM虚拟机什么,而不是字母代表什么。 And it seems difficult to find out much about the etymology quick or to the point on Erlang central . 似乎很难在Erlang中心快速找到关于词源的更多信息。 Supposedly BEAM is the secret sauce of Erlang and Elixir both. 据说 BEAM是Erlang和Elixir的秘诀。

It stands for "Bogdan/Björn's Erlang Abstract Machine" - it is just the name of the VM, much like JVM (Java Virtual Machine). 它代表“Bogdan /Björn的Erlang Abstract Machine” - 它只是VM的名称,很像JVM(Java虚拟机)。

Almost everyone uses "the new BEAM", where BEAM stands for Bogdan/Björn's Erlang Abstract Machine. 几乎每个人都使用“新BEAM”,其中BEAM代表Bogdan /Björn的Erlang Abstract Machine。 This is the virtual machine supported in the commercial release. 这是商业版本中支持的虚拟机。

http://www.erlang.org/faq/implementations.html http://www.erlang.org/faq/implementations.html

The name probably finds its routes from the Warren Abstract Machine - an abstract instruction set for Prolog which you can read about at: http://en.wikipedia.org/wiki/Warren_Abstract_Machine 这个名字可能是从Warren抽象机器中找到它的路线 - 一个Prolog的抽象指令集,你可以在http://en.wikipedia.org/wiki/Warren_Abstract_Machine上阅读

The WAM influenced JAM (Joe Abstract Machine - named after Joe Armstrong) which was the precursor to BEAM. WAM影响了JAM(Joe Abstract Machine - 以Joe Armstrong命名),这是BEAM的前身。

You can read more in the "the development of Erlang" article on the Erlang website . 您可以在Erlang网站上的“ Erlang开发”文章中阅读更多内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM