Hacker News new | ask | show | jobs
by actionfromafar 5 days ago
What I want to see is Linux + userland ported to WASM.
2 comments

That's more or less what WALI is. We wrote a research paper about it (https://dl.acm.org/doi/10.1145/3689031.3717470) and there is a toolchain and runtime implementation here: https://github.com/Wasm-Thin-Kernel-Interfaces/WALI
Elsewhere in these comments someone shared another initiative that seems very close to this: https://news.ycombinator.com/item?id=50626676

I think that software compatibility with these kinds of solutions will always be worse than emulating an entire machine, even if performance has some opportunities to be better (and for some software, it'll be _much_ better to compile directly to wasm). For one, wasm is still a bit of a niche target for many compilers; working on waarm64 alone, Claude found a wasm miscompile in Rust that turned out to be a LLVM problem (which I already reported and has already been fixed upstream). Then there's all the closed source software: it's probably a far fetched example in terms of use cases, but good luck getting e.g. Valve/Steam to care about wasm when they've only started caring about aarch64 recently - meanwhile, Steam already works, with some patience, in my emulator.