Questions tagged [beam]

This tag should be used for questions about the BEAM, the Erlang virtual machine.

The BEAM (Bogdan/Björn's Erlang Abstract Machine) is the Erlang virtual machine. Besides , there are also other languages that can target the BEAM virtual machine, such as Joxa, , , and others.

Disambiguation

  • Use for questions related to Apache Beam, an SDK for batch and stream processing.
  • Use for questions related to Android Beam, the NFC peer-to-peer mode NDEF message exchange mechanism in Android.
  • Use for questions related to the heuristic search algorithm beam search.
106 questions
130
votes
3 answers

What kind of virtual machine is BEAM (the Erlang VM)?

From what I understand a virtual machine falls into two categories either "system virtual machine" or a "process virtual machine". It's kind of fuzzy to me where BEAM lies. Is there another kind of virtual machine I am not aware of?
Eric des Courtis
  • 5,135
  • 6
  • 24
  • 37
21
votes
2 answers

What are some fundamental Feature/Architectural differences between the BEAM and JVM?

What are some fundamental Feature/Architectural difference between the BEAM and JVM? Yes I know: one was originally built around java and the other built around erlang I understand the JVM (somewhat) and want to compare their structures For…
jtzero
  • 2,204
  • 2
  • 25
  • 44
19
votes
2 answers

How does the Erlang compiler handle pattern matching? What does it output?

I just asked a question about how the Erlang compiler implements pattern matching, and I got some great responses, one of which is the compiled bytecode (obtained with a parameter passed to the c() directive): {function, match, 1, 2}. {label,1}. …
deepblue
  • 8,426
  • 13
  • 48
  • 60
19
votes
2 answers

What OS threads get used in Erlang’s abstract machine, BEAM?

I’ve begun studying Erlang and find the BEAM runtime environment fascinating. It’s commonly stated that in Erlang, processes belong to the language rather than the OS (meaning the runtime, meaning BEAM in this case). These are the lightweight,…
Alan
  • 3,815
  • 1
  • 26
  • 35
15
votes
2 answers

How portable are Erlang beam files?

I have a temporary situation where beam files compiled on one node are executed on another node. Are the beam files portable? How close do the versions of the Erlang distributions need to be?
DanM
  • 2,331
  • 2
  • 18
  • 14
14
votes
1 answer

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

What do the letters B. E. A. and M. stand for? I recall seeing an explanation of the acronym "BEAM", but I have not managed to find it again. It comes up in error codes: ➜ gentoo iex Erlang/OTP 17 [erts-6.4.1] [source] [64-bit] [smp:8:8]…
Nathan Basanese
  • 8,475
  • 10
  • 37
  • 66
11
votes
2 answers

Is there a size limit for Erlang integers?

I know that Erlang has arbitrary size integers, but is there a max limit on one of the standard implementations? If so, what?
Filip Haglund
  • 13,919
  • 13
  • 64
  • 113
9
votes
1 answer

Running C code in Elixir/Erlang: Ports or NIFs?

I've found that Elixir programs can run C code either via NIFs (native implemented functions) or via OS-level ports. Having read those and similar links, I'm not a hundred percent clear on when to use one or the other method (or something else…
Vivian
  • 1,539
  • 14
  • 38
8
votes
1 answer

Rabbitmq listens on all interfaces

It appears that my rabbitmq listens on all interfaces despite: In /etc/rabbitmq/rabbitmq.config: [{rabbit, [{tcp_listeners, [{"10.0.0.1", 5672}]}]}, {rabbitmq_mochiweb, [{listeners, [{mgmt, [{ip, "10.0.0.1"}, …
pablox
  • 643
  • 2
  • 8
  • 17
7
votes
2 answers

What is the best way to package Elixir CLI application?

Suppose I have a CLI application with subcommands and arguments (like application foo --bar baz). How can I package it for distribution without requiring user to install Erlang? I know there's mix escript Mix task, but it builds a binary that…
k.meinkopf
  • 158
  • 6
6
votes
0 answers

The future of Erlang and BEAM

Some time ago I got seriously interested in Erlang (coming from C++/PHP/Java world) - and I've seen it has been successfuly used in the industry, by Ericsson, Facebook, Goldman Sachs, etc. So, I thought it would be a great platform to build high…
Radek
  • 135
  • 1
  • 7
6
votes
2 answers

Compile Erlang in Intellij

I try compile erl files in Intellij with Erlang plugin. Everything is good with compilation but in out/production the folder does not create any files .beam and when I run console I get message: exception error: undefined function. When I use…
sebax
  • 59
  • 5
6
votes
2 answers

Convert an Elixir AST to an Erlang AST? Is it possible?

Is it possible to take a quoted Elixir expression (AST tree) like this: quote do: 1 + 1 => {:+, [context: Elixir, import: Kernel], [1, 1]} And convert it to an Erlang AST? I looked through the Code module as well as some of the Kernel modules…
Stratus3D
  • 4,648
  • 4
  • 35
  • 67
5
votes
1 answer

Erlang Binary Leak?

We have an erlang/elixir application (on 18/erts 7.3.1) that processes large json payloads.   Here's a typical workflow: A listener gets a token from rabbitmq and sends to a gen_server. The gen_server puts the token into a ETS table with a future…
adean
  • 61
  • 4
4
votes
0 answers

Stacktrace in erlang tracer

Is it possible to return a stacktrace in a trace? I'm using :dbg.tp/3 and :dbg.tracer/2 to get a trace along with the calling module. I tried caller function (see in docs: https://erlang.org/doc/apps/erts/match_spec.html) but it gives me the very…
Kanes115
  • 119
  • 6
1
2 3 4 5 6 7 8