3 ms·
Since JS contributes the most to browsers’ memory usage, and a lot of people are compiling to JS from a typed language these days, it would be great to have a b
by ralmidani 6y ago
Since JS contributes the most to browsers’ memory usage, and a lot of people are compiling to JS from a typed language these days, it would be great to have a browser that makes a clean break and implements, say, a sandboxed version of Swift.
You could even have Swift DSLs for type-safe markup and styles (I’ve actually been experimenting with building a Swift -> CSS DSL using simple protocols, enums, and structs) and, while we’re at it, introduce more sane defaults and cut some of the cruft that has accumulated over the years (do we really need HTML colspan attributes and CSS float when we can use a flexbox model?)