logoalt Hacker News

Unkernel: Real Linux kernel, compiled to WebAssembly

307 points • by nreece • today at 3:19 AM • 74 comments • view on HN

Comments

Haunt1000 • today at 10:00 AM

This is pretty amazing. I really like the AI integrations with fx and smaller models -- not necessarily useful but fun.

Note that the Qwen-3.5-0.8b model has issues with fx sending multiple messages a round to llama.cpp (which is behind Ollama), but you can substitute Pi agent quite easily and it works well.

reneberlin • today at 4:02 AM

This exciting one was new to me, too until yesterday: https://github.com/fzakaria/tabc

and

https://michidk.github.io/sidebyside/

And today: https://github.com/fzakaria/tabernetes

➕ show 2 replies
red_hare • today at 6:47 AM

Huh. This was, more or less, wholly predicted by Gary Bernhardt's 2014 Pycon talk: "The Birth and Death of JavaScript" (which is, if you haven't seen it, hilarious)

https://www.destroyallsoftware.com/talks/the-birth-and-death...

gregbell • today at 7:36 AM

Super fun and impressive project. I really love how fast it all starts up and the wayland compositor performance is crazy.

It got me excited enough to do this too https://news.ycombinator.com/item?id=50675517 (the hard part is all done by unkernel). Code at https://github.com/gregbell/unlab, running at https://unlab.run

anilgulecha • today at 5:19 AM

if @fzakaria // pooya are taking requests - a good usecase would be to enable windows programs in the browser (connect webUSB are we're golden for a long tail of various devices software).

So essentially open browser - drop installer exe, and it saved on the local disk. and next time you open the tab, you continue the program with it's data.

(Last time I made a request, it was vibed in a day!)

➕ show 1 reply
leonidasrup • today at 9:05 AM

JSLinux, starting in 2011

"Run Linux or other Operating Systems in your browser"

https://bellard.org/jslinux/

➕ show 1 reply
mareimorsy • today at 7:21 AM

Education platforms are going to have a field day with this. Every student gets their own Linux environment right in the browser, with virtually zero server infrastructure costs. That's a game changer.

➕ show 1 reply
dqh • today at 3:52 AM

Had some fun testing the concurrency. Was able to execute 4 concurrent md5sums with the same wall clock duration as a single process. Then tested installing Chromium and trying to run a nested Unkernel within that, which didn't work.

Amazing. What a strange era we are entering.

➕ show 1 reply
a012 • today at 6:21 AM

This requires iOS 27

> On iPhone and iPad every browser (Safari, Chrome, Firefox, …) uses the system WebKit, so JSPI depends on the iOS version: update to iOS/iPadOS 27 or later. This is Safari 18.

kkm • today at 7:07 AM

Really cool. I haven’t quite grasped what’s running in the browser vs on the server?

When doing curl ip-api.com it seems show Zurich / Switzerland as the exit, should it not be showing the ip of the user if it’s running in the browser?

➕ show 1 reply
daugasauron • today at 7:57 AM

This is super cool.

From the "Compared to other approaches" table in the docs, I have been slopping away on the "POSIX runtimes for wasm" version. The three big red Xs seems really bad for me!!

I do think the "POSIX runtime for WASM" does have some advantages still, especially for building small specialized agent sandboxes (there's a demo video on the page). It's more of a "docker in the browser" idea. Most stuff doesn't need 90% of the linux kernel.

https://github.com/daugasauron/dolly

https://slopshare.dev

lucamark • today at 7:21 AM

Half of me thinks this is amazing, the other half is wondering what we'll end up running in browser tabs in five years

➕ show 1 reply
israrkhan • today at 7:23 AM

Browser in the new OS. Everything that can be written on top of JS/WASM will be written in browser, that includes OS, and the browsers themselves.

Now run unkernel within a browser within unkernel .... and so on

➕ show 3 replies
teawhoyou • today at 7:50 AM

What is the purpose of this? Does it solve an existing problem or open up new possibilities? I’m genuinely asking, with zero negativity intended.

Thanks!

➕ show 3 replies
jonenst • today at 9:11 AM

From first contact in the README, the LLM-speak is strong with this one. 25 uses of the cool kid "X, so Y" assertive idiom.

Obviously lots of other great things to say about this project, but I feel this kind of introduction is seriously off putting. It's a general problem but I hope that it can change in the future (or more realistically that I manage to get used to it...)

I was going to cite only the worst offenders but almost all of them are terrible so here's the almost full list (slightly edited to make the idiom stand out):

"The kernel is compiled code, so programs get Linux's behavior"

"unmodified aarch64 Linux binaries, so packages run as they are."

"ARMv8.0-A with FP, so distribution binaries run unchanged"

"aarch64 is a first-class port, so their package archives are available."

"The SDK is MIT-licensed, so you can ship it."

"The wallpaper is a random photo, so the page fetches one on every load" (in my mind this one is the worst)

"Browsers can't open raw TCP sockets, so the page reaches the internet through a Wisp proxy."

"kwemu walks the kernel's own page tables, so memory management is done by the real Linux code."

"Task switches use JSPI, so the kernel gets real stacks."

"Any object can carry the guest's TCP and DNS, so you can write your own backend."

"vm.connect(port) reaches a TCP server, so it needs no network"

"the host name only goes into the Host header, so vm.fetch("http://localhost/") reaches a dev server."

"/dev/shm exists once the guest's init has mounted it, so wait for the guest before create()"

"Node has no WebGL, so gl is ignored with a log line."

"Node has no WebGPU, so vk is ignored with a log line"

"There is no guest agent, so you drive the guest"

"stop() doesn't shut the guest down cleanly, so prefer poweroff"

"Types ship as .d.mts, so a Node-only TypeScript project needs skipLibCheck"

"The JavaScript SDK and page are MIT, so you can embed them anywhere."

"The npm package ships a Linux kernel (GPL-2.0) with a small base system, so it is MIT AND GPL-2.0-only"

➕ show 2 replies
keyle • today at 7:57 AM

That is so cool. I have nothing more to add. But I have questions... what can I do with this?

➕ show 2 replies
AbuAssar • today at 7:46 AM

I first thought this is just the kernel and a shell to it, then I was surprised to see there are whole GUI apps as well!

MisterMunchkin • today at 9:59 AM

I tried turning this into a practical tool but it just doesn’t work, the emulation is so slow that it struggles to do anything meaningful.

The desktop isn’t a real desktop, it’s a JavaScript webapp. The “smooth desktop” is just a website pretending to be an operating system. That’s why it “loads” so quickly on mobile. Behind it is the web assembly kernel that’s capped at 4GB and runs at least 20x slower than the hardware in my benchmarks.

kristopolous • today at 7:43 AM

this was posted a few days ago right?

➕ show 1 reply
tomcam • today at 7:04 AM

Runs briskly on my A16 iPad with 128G RAM. wtf!

➕ show 2 replies
dreambigwrkhard • today at 6:39 AM

amazing work. i had an exact use case for this. (quickly running some very small backend scripts i made without having to spin up a vm) thank you!

➕ show 1 reply
rvz • today at 3:48 AM

This is a [dupe]. See previous larger technical discussion here (5 days ago): https://news.ycombinator.com/item?id=50533945

simlevesque • today at 8:13 AM

It looks awesome ! And now my phone is hot .

moneybunny • today at 9:04 AM

how good is this to rawdog coding agents?

shevy-java • today at 8:47 AM

Boots much faster than systemd-linux!

The UI is a bit clunky though. It seems as if these ideas, as great as they are, often begin to fall down quickly after the demo-init stage.

Would be cool if someone could extend this and put down all interactive shells in it. Many years ago, _why (in ruby) put down the first irb on the web. I think we need this for all programming languages. Kind of make a universal terminal via the browser.

DonHopkins • today at 4:32 AM

https://news.ycombinator.com/item?id=50673082

Happy 60th Birthday to PDP-10, running ITS and Zork

https://hyperties.org/machine/games/zork/

Machine Room is a browser based emulator with a Korz based JIT. To celebrate the PDP-10's 60th birthday here's a PDP-10 running ITS with ZORK, MACSYMA, MACLISP, and lots of other software. Here's a demo of the PDP-10 emulator running ZORK on ITS, Apple ][ emulator running Little Computer People, and PDP-7 emulator running Unix.

Video demo of Zork on PDP-10 and Apple ][, including free Korz 6502 and PDP-7 JIT demos:

https://www.youtube.com/watch?v=dYYwzfPWJWE

behnamoh • today at 5:40 AM

CRAZY! What is this sorcery? I'm just baffled at how buttery smooth this is. You know what it tells me? macOS is so fucking bloated that a Linux on WebAssembly in a fucking browser with 2GB RAM runs better than the host macOS where the browser is running.

➕ show 1 reply
SubiculumCode • today at 7:18 AM

As opposed to a fake Linux Kernel? What does real even mean here?

➕ show 3 replies
sdewald48 • today at 9:51 AM

[dead]

abhinav_mishra5 • today at 6:33 AM

[dead]

donovancoledev • today at 6:26 AM

[dead]

bytepatterns • today at 5:48 AM

[dead]

ReDress • today at 4:40 AM

[dead]

pmkary • today at 9:37 AM

I really want to see the day where you can run WASM on the web and have complete access to the viewpoint and gpu, so no JS and dom and layout engine and html and css in front of you. Then the world could be amazing. I really really want to code in a sane environment that works everywhere. I hate the broken buggy web with all of its CSS nightmare, page not getting loaded completely, things breaking, everything being a hack... I want a clean boring language with little to no contradiction like Dart and Go where things almost always have around one way to be done. A simple system like Flutter, and the solidity of the normal UI kit where things don't fly, 1px means 1px, components are isolated by default... man I hate web...

➕ show 3 replies
yieldcrv • today at 6:17 AM

woah, taxiing on the tarmac and this just loaded in my phone browser in a couple hundred milliseconds

➕ show 1 reply