by tancop · 6d ago · 0 comments
Direct DOM access would make it possible to build full sites in Rust or C. There is no real security tradeoff and very little complexity (expose an existing API to an existing runtime). In return you get a web that's faster and completely open in terms of languages.
Right now the only options are use canvas and draw everything from scratch, or have a JS layer that transfers messages between the code and browser. You have to choose bloated size and zero accessibility, or pure overhead from copying data back and forth.