Compile Erlang to WASM and run as HTTP/incoming-handler
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.
Compile Erlang to WASM and run as HTTP/incoming-handler launched on July 25, 2024 with 32 votes, #960 of 5,184 launches that month and more than 75% of that year's launches. The site was still online in September 2026, 2 years on.
In plain words
This project compiles Erlang code to WebAssembly and runs it as an HTTP request handler within Wasmtime. It works by converting BEAM bytecode to WASM and statically linking it with a small HTTP wrapper. The creator acknowledges this is primarily an experimental exercise rather than a practical solution, noting that existing alternatives like AtomVM would be more suitable for production edge computing. The project may eventually support Erlang's actor model if typed continuations are implemented in WebAssembly.
written from the facts on this page · September 2026
From the sources
Run erlang as a WASI http server (vapourware). Contribute to erwasm/erwasm-http development by creating an account on GitHub.
Does a similar job
all alternatives →
Codec-beam – Generate Erlang VM byte code from Haskell2018 · github.com · ▲53Generate Erlang VM byte code from Haskell. Contribute to kofigumbs/codec-beam development by creating an account on GitHub.
QuickBEAM – run JavaScript as supervised Erlang/OTP processesMar 2026 · github.com · ▲113QuickBEAM is a JavaScript runtime embedded inside the Erlang/OTP VM. If you’re building a full-stack app, JavaScript tends to leak in anyway — frontend, SSR, or third-party code. QuickBEAM runs that JavaScript inside OTP supervision trees. Each runtime is a process with a `Beam` global that can: - call Elixir code - send/receive messages - spawn and monitor processes - inspect runtime/system state It also provides browser-style APIs backed by OTP/native primitives (fetch, WebSocket, Worker, BroadcastChannel, localStorage, native DOM, etc.). This makes it usable for: - SSR…
Jaws – a JavaScript to WASM ahead-of-time compiler2024 · github.com · ▲290I've open sourced a JavaScript to WASM compiler. It's an experimental tool, but given the semantics I already implemented, I'm fairly certain I am able to eventually cover 100% of JavaScript spec. Any ideas, questions or critique welcomed! If you are interested in WASM, especially with new proposals like WASM GC or exception handling, it might be a good source of seeing these features in action - the project has a few thousand lines of hand written WAT so far.
Visual flow-based programming for Erlang, inspired by Node-RED2025 · github.com · ▲243Hi There, Erlang-RED has been my project for the last couple of months and I would love to get some feedback from the HN community. The idea is to take advantage of Erlangs message passing and low overhead processes to have true concurrency in Node-RED flows. Plus also to bring low-code visual flow-based programming to Erlang.
Erlang code generator for Idris 22020 · github.com · ▲98Erlang code generator for Idris 2. Contribute to christian-public/Idris2-Erlang development by creating an account on GitHub.
How to compile C/C++ for WASM, pure Clang, no libs, no framework2022 · github.com · ▲217A little help for programmers, who wants to run C/C++ code in the browser. (This is my second attempt to show it, first time I got banned bcoz of my personal page domain, I don't really understand it why is is suspicious.)
More life & fun this month
the category →
A free city-building game in your browser. You are the mayor. You know what the city needs. Now get it past the zoning board, the neighbors, the appeals court and the next election.
Life & fun · 2d ago · permit.petercai.com
- IV
Life & fun · 14d ago · tanzaniaeducationproject.org

Turn a phone, tablet or TV into a sign. Type a message and it fills the screen: welcome signs, timers, Wi-Fi passwords and more. No app, no account, free.
Life & fun · 15d ago · bigwords.page

Play a free virtual guitar online with your keyboard or by touch. Slow songs down and see every chord, string and strum. Acoustic, classic, electric and bass.
Life & fun · 9d ago · guitoro.com

Carrier settings from iPhone, Pixel and Galaxy firmware, decoded and compared: APNs, VoLTE, 5G and Wi-Fi Calling per carrier, and what each build changed.
Life & fun · 13d ago · carrierexplode.com

Life & fun · 23d ago · space.bl2.net
Source: Show HN post ↗
Launched alongside, July 2024
the whole month →




Many years ago, I made VJ softwares (to mix live visuals in clubs) for unexpected platforms like the Game Boy Advance, the Playstation 2 and the Raspberry Pi. This year, I’m back with a new web-app: Pikimov. Inspired by Photopea (a free Photoshop clone), I created this web-based motion design & video editor as an alternative to After Effects, to fill empty void. It's free, without signup, without cloud uploads (your files stay on your machine), and your projects are not used for AI models training.
AI · 2024 · pikimov.com
