Firefox Running Inside Firefox, All in a Browser Tab
2035 Came Early

trynix.dev now boots full GUI programs in the browser: Nix packages, Wayland windows, WebGL2 graphics, audio, and real networking via curl and git. Swapping QEMU for unkernel, which compiles Linux itself to WebAssembly, made it 2x to 32x faster. The author even nested Firefox inside Firefox, a nod to Gary Bernhardt's 2035 talk arriving years ahead of schedule.
Sit and bask in that insanity. That is Firefox, on Linux compiled to WebAssembly, in a Firefox tab, loading the site and then loading Firefox again inside itself.
- gbl08ma
I had been working (read: prompting Claude) on https://waarm64.com for two months and it was slightly heartbreaking to see unkernel get all the attention when I was like two weeks away from a public announcement. It would obviously have been worse if I had actually built more of mine "by hand," but still, even if just doing by orchestration/"asking good questions to the LLM" kind of work, I spent probably over a hundred hours on it. I rushed its release, but now I don't even really feel like working much more on mine anymore, even though it achieves (or achieved) better performance than unkernel and (for now) still has a more complete feature set. Oh well, it is in line with the motivation I had for mine, which was to see if LLMs could help one person build that sort of thing. Turns out that not only can LLMs do the bulk of this kind of work, they can do it so well that numerous projects of the same kind are popping up pretty much simultaneously. They still can't make WebAssembly beat hardware virtualization, though :D
- glimshe
Around 5 years into my career, I became a tech lead. Over the following years, I slowly drifted towards roles that had less hands-on technical work and more managerial responsibilities.
I've always struggled with leaving hands-on work behind but what made it at first tolerable, and then a blessing, was the rise of Javascript. I think Javascript is so awful, and until recently so prevalent in the roles available to me, that it made me want to not be a Software Engineer anymore. I felt that Javascript was some sort of joke that stayed around long enough until it became a cancer to Software Engineering.
I only stayed in the profession, eventually as a manager, because I like dealing with people and still found "human problems" intellectually challenging and rewarding.
Every day you read many comments here from people who believe that AI took the fun away from their work and lives. It destroyed the reason that made them want to be Software Engineers. That's exactly how I felt about Javascript.
But I feel the complete opposite about AI. In fact, AI brought back the fun that was stolen from my life by Javascript. I'm now retired and spend a good amount of my day working my own programming projects. And I'm absolutely happy to vibecode all the Javascript parts (which isn't a lot in my projects) so I don't ever have to see this damn thing in front of me again.
- semiquaver
Gary Bernhardt has to be one of the least-well-known “software heros”. I would honestly rank him among Fabrice Bellard and John Carmack in terms of foresight and brilliance. Every thing he has ever produced is solid gold and I believe I owe much of my success to learning and emulating his excellent taste when I was earlier in my career. It’s a shame that he doesn’t really do destroy all software anymore, I would love to see how he works with agents.
- __MatrixMan__
If these builds are running in a WASM environment, it means we can enforce stricter control over them than was available when they were originally authored. Rather than having it be a convention that using a source of randomness in your builds is a bad idea, we can just take the random number generator away from the build. Rather than suggesting that network connections in builds are likely problematic, we can deny the build access to the network and ensure it still runs. The nix sandbox can only go so far to encourage determinism, but I think wasm can take it even further.
- Primer81
The article is jarring for me - in my 10 years of experience in the software industry, I haven't ever come close to needing javascript for anything. Javascript has certainly not taken over the world - just web dev AFAIK.
- hollowonepl
Yeah, that's fine, everything can be written in everything.
I remember these pitches as early as 2008-10 from various Mozilla evangelists who were pitching that browser will be the OS and javascript will be the platform for all apps.
I kind of doubted it and I still do. Of course a lot of stuff is written in Js.. because web is based on Js. a lot of desktop apps are written in Js (+Electron) because people who are not good at native development (and also platform vendors are not helpful to provide consistent approach to GUI and desktop apps) decided that Js+Electron runtime is best way to write portable apps.
It works.. but I personally hate each and every desktop app written in Javascript due to the bloat factor measured by its size overhead and performance impact.
People write backend/server side applications in Javascript because of NodeJs.. and that's more legit to me, although just one of many fashionable ways to create a web server these days. nothing truly unique outside personal choice and recommendation on per project basis.
So web in the browser wins (although if somebody invented better way to create client side application without Javascript I'd bless him.. it's such a horrible language). Server side is ok-ish to consider if one likes it... and for true client side apps which belonged to desktop in the past... well actually rust, crystal, nim and all the renaissance of native development + gui libs and LLM that accelerates the development significantly... I'd assu […]
- Kuyawa
There will come a language for all platforms better than rust, designed by AI. And it will come with a browser, and it will take the world by storm. One language to rule them all, one browser to bind them...
If it can be optimized, AI will do it, and when there is no more optimization to do, then it will settle as de facto, for everything, and forever. And that time is not too far in the horizon, a couple of years at most
* Prediction before 2030
- Cu3PO42
Farid has been on an absolute roll recently. If you enjoyed this, I highly recommend his other blog posts.
While I'm not sure about the practical utility of this, I love it as a demonstration of what is possible.
- ManuelKiessling
Does anyone know over which… channel(?) some of the traffic goes? On the Firefox Web Developer „Networking“ tab, I can see apt/deb packages being pulled in, but when e.g. I curl in a large file, the Network tab remains completely silent. Why is that?
Also, how can the tab running unkernel pull in any external content at all if it’s not coming from the unkernel domain itself?
So yes, in other words, this is at least one “matrioschka puppet” level too many for me, together with my not-perfect understanding of how browser origin/sandboxing works…
- momojo
I asked on the original unkernel thread[0] but I'll ask again:
What do people foresee this being used for? `trynix` is only 1 fork downstream. What's 2 forks away? 3?
This interests me the way V8 isolates or pyodide originally but I've since learned to curb my enthusiasm bc it always turns out "oh its not actually realistic to use this in production because..."