top | item 37950995

(no title)

voicedYoda | 2 years ago

I think it's that AtomVM is erlang specific, while nerves is elixir and erlang. I could be very wrong, but that's my initial read from the docs

discuss

order

bhaney|2 years ago

> I think it's that AtomVM is erlang specific

I see plenty of references to Elixir in the docs, and this official AtomVM project to provide some tooling to target AtomVM from Elixir

https://github.com/atomvm/ExAtomVM

magicalhippo|2 years ago

As someone who's yet to play with Erlang and Elixir, is the bytecode lean or fluffy? Microcontrollers often have somewhat limited Flash storage, and I see they have 512kB as bare minimum with 1MB recommended for the VM itself.

Will that extra 512kB be enough for fun stuff?

benpacker|2 years ago

It implements the BEAM, so any language that shares the runtime can be made to work (Elixir, Gleam, etc)

jocaal|2 years ago

If I understand correctly, Elixir builds an Erlang syntax tree and then the erlang toolchain takes over. If it runs Erlang, it should be able to run elixir

joggodoggo|2 years ago

I think you have it the other way around. Elixir is built on top of Erlang, no? So if it runs Elixir it can run Erlang in the same way React can run JavaScript, but not necessarily the other way around.