3 ms·
> Instead, why not have the browser run a very simple instruction set (even without garbage collector) to which many scripting languages could compile. Because
by pcwalton 11y ago
> Instead, why not have the browser run a very simple instruction set (even without garbage collector) to which many scripting languages could compile. Because of its simplicity, security would be very simple to enforce. Imagine the proliferation of programming tools that would naturally occur.
This exists, and you can contribute toward making it happen: https://github.com/WebAssembly/design https://github.com/WebAssembly/design
You can even encourage sites to use Web Assembly and assorted Web APIs in lieu of HTML and CSS if you want.
Now if you want to go further and deprecate and remove HTML and CSS, that won't happen. Even if we were to see a market shift toward "canvas + WebAssembly", leaving HTML and CSS unused (which I think is very unlikely), there's too much content out there that uses HTML and CSS that you will still want to browse.