2035 came early
A demonstration running Linux and a nested Firefox browser inside a browser tab shows how WebAssembly can bring existing software to the web. Commenters debate whether this fulfills an old prediction of JavaScript’s dominance, since WebAssembly is a separate format, and weigh potential uses against performance and security limitations. The example also prompts broader arguments over JavaScript’s ecosystem and whether AI makes software development more enjoyable or threatens programming as a craft.
JavaScript or WebAssembly?
- The central disagreement was whether the demonstration fulfills a prediction about JavaScript. Critics said WebAssembly is a separate binary format, so calling it JavaScript moves the goalposts.
- Others argued that the prediction was fundamentally about compiling other languages for the browser. WebAssembly succeeded asm.js, an optimized JavaScript subset used for similar purposes.
Impressive demo, uneven practicality
- Many enjoyed the nested-browser demonstration as an imaginative technical achievement, even if its practical value remains uncertain.
- Performance varied. One commenter reported a Firefox launch taking about five minutes on a phone; another found it usable but slow on desktop. The reported 2–32× speedup was over the earlier QEMU-based version, not native execution.
- Proposed uses included trying Linux without installation, teaching courses requiring Linux environments, and launching development environments in a browser. Others preferred native applications for their performance and interfaces.
- File export was a recurring question; commenters suggested a relay and the
crocfile-transfer tool.
Technical trade-offs
- Participants compared emulating a full machine with compiling applications for WebAssembly or emulating system calls. Emulation offers compatibility with existing binaries, while direct compilation may perform better.
- Browser API access and data transfer were contested. Some developers described significant interoperability overhead; another noted that shared WebAssembly memory can avoid copying for APIs accepting array buffers.
- Security claims also split: one commenter cautioned that existing memory vulnerabilities can carry into WebAssembly, while another distinguished vulnerabilities inside a guest program from escaping its sandbox.
- Some proposed deterministic builds as another use: withholding access to clocks, randomness and networks could make build outputs easier to verify and reuse.
JavaScript and the browser
- Critics described JavaScript’s quirks, tooling churn and dependency ecosystem as frustrating. Defenders pointed to language improvements, TypeScript and easy deployment, and argued that complaints often conflate the language with its ecosystem.
- Browser-first advocates valued portability and instant access. Others preferred local desktop software and questioned whether the browser would become a universal platform.
AI and the experience of programming
- Some said coding agents let them avoid disliked languages or build projects beyond their existing expertise. Others worried about code quality, diminished craft and lost professional opportunities.
- A developer described mixed feelings after a similar browser-virtualization project appeared: AI made rapid progress possible, but also made independent work feel less distinctive. Replies encouraged collaboration and competition while acknowledging those concerns.