News: 0001588447

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Linux Kernel Ported To WebAssembly - Demo Lets You Run It In Your Web Browser

([Linux Kernel] 2 Hours Ago Linux + WebAssembly)


Open-source developer Joel Severin today announced his work on porting the Linux kernel to WebAssembly and has successffully gotten the kernel up and running within WASM-capable web browsers.

This WebAssembly port of the Linux kernel is up and running basic programs from a shell within a web browser. But there are stability issues and it didn't take me long either to trigger crashes for this Linux kernel WASM port when running within Google Chrome.

Joel Severin described of this WASM kernel effort:

"Now, this is a technology demo, it's to show what's possible. There are some things where what we have today makes this more painful than it has to be. The good news is that if there is a will to go forward with Linux and Wasm, at least I don't see why the current restrictions cannot be lifted. But, there would need to be a commitment from Linux and Wasm people, not to mention the whole ecosystem around it, to actually implement those changes. Some fundamentals of each platform would need to change for a smooth experience, especially so on the Wasm side."

Those curious can learn more about this hobbyist WebAssembly port of the Linux kernel via the [1]LKML posting .

The example demo of the WebAssembly Linux kernel port can be tried out via [2]the GitHub Pages . The code including patched versions of the Linux kernel, LLVM, Musl libc, initramfs, and BusyBox can be found via [3]this GitHub repository .



[1] https://lore.kernel.org/lkml/618f3602-03aa-46a8-b2d4-3c9798c4cd2b@icemanor.se/

[2] https://joelseverin.github.io/linux-wasm/

[3] https://github.com/joelseverin/linux-wasm/tree/master/patches



I have a little shadow that goes in and out with me,
And what can be the use of him is more than I can see.
He is very, very like me from the heels up to the head;
And I see him jump before me, when I jump into my bed.

The funniest thing about him is the way he likes to grow--
Not at all like proper children, which is always very slow;
For he sometimes shoots up taller, like an india-rubber ball,
And he sometimes gets so little that there's none of him at all.
-- R. L. Stevenson