Hacker News new | ask | show | jobs
by ghayes 655 days ago
I guess I’ve been a bit disappointed Nerves doesn’t run on microcontrollers, though, such as an Arduino or Raspberry Pi Pico. Basically, once you have Linux, you can run nearly anything already.
3 comments

It was never intended to. The BEAM is not a good fit for that environment. I find it a bit bewildering that people are disappointed about that but I think it comes from having had the difference between microcontroller and embedded linux device clear to me from the early Pi and Arduino days.

You can look at AtomVM for a way to run Erlang and Elixir on an MCU. It just isn't Nerves. Nerves is a Linux :)

There is the AtomVM, a (mini)BEAM for microcontrollers https://www.atomvm.net/ There is also integration for Elixir and AtomVM.
I'm curious if AtomVM is compatible with Erlang nodes.

Could you have a Pi on Nerves talking to microcontrollers?

I've never really worked with hardware but this all looks fascinating.

Atom even compiles into wasm or at least should.