提问 HN:为什么浏览器不直接用 WASM 加载网站?
1 分•作者: FerkiHN•7 个月前
我一直在思考一个问题——现代浏览器都经过优化,可以解析和运行 HTML、CSS 和 JavaScript。但如果浏览器被设计成直接加载和运行用 WebAssembly 编写的网站呢?
这难道不会提高性能、启动速度,并减少解析多种格式的开销吗?为什么没有人创建一种浏览器,让网站的默认语言是 WASM 呢?
是技术限制、安全问题,还是仅仅是生态系统缺乏兴趣?
我很想听听 Hacker News 社区的看法。
查看原文
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.