2035 Came Early fzakaria.com · 263 points · 70 comments · HN thread TL;DR The au...

@best30

2035 Came Early fzakaria.com · 263 points · 70 comments · HN thread

TL;DR The author describes trynix.dev, a browser-based Nix environment that now boots a full Linux VM using the new unkernel engine (Linux compiled to WebAssembly, with user programs emulated). The post lists working features (Wayland windows, WebGL2 via a virgl Mesa build, ALSA audio, networking via Wisp) and shows Firefox running nested inside itself, framing it as a real-life version of Gary Bernhardt's 'everything gets written in JavaScript' talk.

  • trynix.dev switched from qemu-wasm to unkernel, which the author says is 2x to 32x faster depending on workload, especially first boots.
  • Wayland program surfaces are composited in the page by wland and float over the terminal; GL goes through a minimal virgl-only Mesa build on WebGL2.
  • An ALSA sound card plays audio through the browser, and networking works: curl, git clone and pip install all function via a Wisp relay.
  • The author ran Firefox inside trynix, which loaded trynix.dev and then Firefox again, taking over an hour to render.
  • The post frames the result as Bernhardt's 'Birth & Death of JavaScript' joke arriving early, since the stack is WebAssembly rather than JavaScript itself.

Discussion The thread splits between admiration for the technical demo and a long side debate about JavaScript. Many commenters praise the nested-browser stunt and the speed, and a few note it as a teaching or convenience tool. A large sub-thread, started by a former tech lead who says JavaScript drove him out of hands-on coding and AI brought the fun back, turns into a broader argument over JS quality, TypeScript, and whether AI's effect on programming is good. Several commenters push back on the article's claim: the 'JavaScript' in the prediction is really WebAssembly, and skeptics question security and practical use. The mood is mostly playful and impressed, with frequent sharp exchanges about JavaScript.

  • Impressive demo, a fun proof of what is possible (many): Many commenters praise the speed and the nested Firefox stunt as a remarkable demonstration, even if they see no immediate practical use. Some call it a tokens-well-spent project.
  • JavaScript is bad and AI lets people avoid it (some): Several commenters say JavaScript made them dislike coding and that AI-generated JS lets them keep enjoying their work. They are met with pushback from people who say JS is fine or that TypeScript solved its problems.
  • Defending JavaScript and criticizing the hate (some): Experienced developers argue JS is adequate, that many complaints come from people who never learned it well, and that TypeScript makes it scale. Others note the language has improved after years of work.
  • The prediction is really about WebAssembly, not JavaScript (some): Commenters argue the goalposts moved: the demo runs Linux as WebAssembly, and WASM is a separate bytecode, though some note WASM is still glued together with generated JS.
  • No real use case; WebAssembly sandboxing is weak (a few): One commenter argues there is no use case and that browser engines written in C and C++ carry memory-safety risks into the sandbox. Another replies that convenience matters even without security benefits.
  • Useful for education and quick Linux access (a few): Commenters say it helps when using locked-down or Windows machines, and that university courses needing Linux with root access could use it instead of setting up VMs for each student.

Links from the comments

#WebAssembly #Linux #Nix #JavaScript #browsers