Hacker News new | ask | show | jobs
by paulrouget 472 days ago
That's something I was thinking a lot about back when I was working on Servo. Wasm + a protocol to talk to WebRender (expose display lists [0] to the wasm runtime). Some sort of "mini web", a minimal runtime that would do just enough that most web APIs could be re-implemented and shipped from the webpage directly. The DOM, the CSS parser, the layout engine, … could just be shipped as wasm modules.

Kind of defeat the purpose of view-source, but nowadays, it's a lost battle already.

And I didn't think too much about sandboxing, accessibility, network or whatnot. Just a fun idea…

[0]: https://github.com/servo/webrender/blob/c4bd5b47d8f5cd684334...