i wonder how Erlang on a microcontroller would feel like
Timeline
Post
Remote status
Replies
2I imagine: great, right up until it suddenly isn't. Erlang has asynchronous message passing, which means that it must have message buffering. And that means that memory can easily accidentally balloon at unexpected times.
@david_chisnall
> Erlang on a microcontroller would feel like
that's what AtomVM is for https://atomvm.org/
but yeah fair, the inbox of a genserver can get clogged and then you have a problem. You can rate limit the producers and do cute things like this
https://github.com/ferd/pobox
but you can do backpressure
https://ferd.ca/handling-overload.html
and that's what Broadway is for as well
https://elixir-broadway.org/
I don't know if it would ever be feasible to do Broadway on a microcontroller though
> Erlang on a microcontroller would feel like
that's what AtomVM is for https://atomvm.org/
but yeah fair, the inbox of a genserver can get clogged and then you have a problem. You can rate limit the producers and do cute things like this
https://github.com/ferd/pobox
but you can do backpressure
https://ferd.ca/handling-overload.html
and that's what Broadway is for as well
https://elixir-broadway.org/
I don't know if it would ever be feasible to do Broadway on a microcontroller though