请问HN:为什么浏览器不直接以WASM格式加载网站?
我一直在思考——现代浏览器被优化用于解析和运行 HTML、CSS 和 JavaScript。但是,如果有一个浏览器是专门用来加载和运行直接用 WebAssembly 编写的网站呢?<p>这是否会提高性能、启动速度,并减少解析多种格式带来的开销?为什么没有人创建一个默认语言为 WASM 的浏览器呢?<p>这是技术限制、安全问题,还是生态系统缺乏兴趣?<p>我很想听听 HN 社区的看法。
查看原文
I've been wondering — modern browsers are optimized to parse and run HTML, CSS, and JavaScript. But what if a browser was built to load and run websites written directly in WebAssembly?<p>Wouldn’t this improve performance, startup speed, and reduce overhead from parsing multiple formats? Why hasn't anyone created a browser where the default language for sites is WASM?<p>Is it a technical limitation, security concern, or just lack of interest from the ecosystem?<p>I’d love to hear what the HN community thinks.