The BEAM at Work
Most language comparisons are about syntax: Python or Ruby, braces or end. Elixir's best ideas aren't in its syntax at all. They're in the BEAM, the virtual machine it shares with Erlang, and they're hard to show in a code sample because they're about what happens while the code runs.
So each page here puts the machinery on screen, in a simulation you can poke at in your browser. No Elixir to install. You'll watch schedulers hand out slices of work, start a few thousand processes, crash one on purpose, and see what Node.js does in the same spot.
If you'd rather start with the language itself, the Strange Leaflet about Elixir covers processes, immutable data, and pattern matching.
Contents
- page 1Taking turns
- page 2Processes
- page 3Garbage Collection
- page 4Messages
- page 5When a process dies
- page 6Other machines
- page 7Changing code while it runs
- page 8The BEAM's tradeoffs
- page 9What Node needs to match the BEAM