2 ms·
Remove the JS runtime, replace it with a WASM runtime (assuming a future version of WASM with native, non JS DOM support) and relegate Javascript to a language
by krapp 6y ago
Remove the JS runtime, replace it with a WASM runtime (assuming a future version of WASM with native, non JS DOM support) and relegate Javascript to a language module that just happens to ship with the browser for legacy reasons, along with other popular languages like Rust and Lua.
I would also re-introduce the type attribute to the HTML script tag and extend the tag to allow downloading WASM language runtimes as necessary. If the browser already has it cached, it would use the cached version like any other asset.
The end goal is for all software to be universally accessible and executable from a URL or some similar identifier. It's possible there may need to be another protocol for streaming applications rather than HTTP, I don't know.
This is a vaguely sketched out pie in the sky idea i've had for a while. I have no idea if it's even feasible, but I'd like to see it happen.