This is very similar to how Third Room’s user generated content engine is being implemented (supporting C, Rust and Zig alongside QuickJS though): <a href="https://thenewstack.io/third-room-teases-user-generated-content-for-the-metaverse/" rel="nofollow">https://thenewstack.io/third-room-teases-user-generated-cont...</a>
Another library I found recently, which has a different take (simpler API) for using QuickJS compiled to WASM:<p><a href="https://github.com/taowen/define-function" rel="nofollow">https://github.com/taowen/define-function</a>
Imagine something like "base system" with WebAssembly, bare bones HTML engine with canvas support and no CSS. So now you can just download your favourite JS engine, your favourite HTML, CSS engines. But browser does not necessarily need to sheep those. It would allow to lower the bar for entry into browser market. I think that even a single person could implement that kind of base browser.<p>Of course there're many hard questions. For example downloading an entire JS+HTML+CSS engine with every website is not a good approach, some caching must be done. There should not be version hell with every website asking for a different version of engine. But those questions could be approached as a more general web library issues.
Because it wouldn't be HN if someone didn't: <a href="https://www.destroyallsoftware.com/talks/the-birth-and-death-of-javascript" rel="nofollow">https://www.destroyallsoftware.com/talks/the-birth-and-death...</a>