{"by":"coolelectronics","descendants":125,"id":48926939,"kids":[48928161,48929723,48927491,48929218,48927556,48927625,48928195,48927590,48934205,48929262,48927638,48927983,48933317,48939774,48940577,48928248,48928798,48929112,48927370,48927326,48929719,48928683,48928684,48930698,48932571,48928756,48931240,48929166,48932120,48927704,48948127,48930739,48929618,48927853,48927474,48927334,48929526,48928594,48932290,48927606,48928923],"score":273,"text":"This is the entire Firefox browser rendering to a &lt;canvas&gt; element. Gecko, all UI components, and the Spidermonkey JS engine are all compiled and running in WebAssembly.<p>Here are a few things you might find interesting:<p>- This is fully end to end encrypted! We use the WISP protocol for TCP-over-websockets.<p>- There is a novel WASM-&gt;JS JIT for experimental site speedup<p>- This port cost over 25k in opus&#x2F;fable tokens for debugging and JIT research<p>This was just a fun experiment to push the boundaries of WebAssembly. For a more usable &quot;browser in browser&quot; experience, we also built <a href=\"https:&#x2F;&#x2F;github.com&#x2F;HeyPuter&#x2F;browser.js\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;HeyPuter&#x2F;browser.js</a> that eats a bit less RAM.","time":1784149217,"title":"Show HN: Firefox in WebAssembly","type":"story","url":"https://developer.puter.com/labs/firefox-wasm/"}