Show HN: Compile Erlang to WASM and run as HTTP/incoming-handler

github.com

32 points by Muromec 3 months ago

Hello!

This is the most useless thing I did in quite some time, but it was fun.

Compile erlang (actually BEAM) to wasm, statically link with a small http wrapper and run as a request handler under wasmtime. This is not very practical as of now and you better just compile atomvm and statically link it with erlang payload if you really need to run erlang on the edge node (you don't).

When (if) typed continuations become a thing, this should also allow for erlang actor model.

hsag 3 months ago

[dead]