Remix.run Logo
peutetre 2 days ago

You might as well solve the whole problem and just compile to WebAssembly. Cut out JavaScript now as much as possible now and eventually altogether.

ksec 2 days ago | parent [-]

Does WebAssembly even have DOM access yet? Or in the next 2 - 3 years? There was a discussion about 1-2 years ago suggesting WebAssembly isn't here to replace JS hence access to DOM isn't even a priority.

peutetre a day ago | parent | next [-]

Here's a web framework in Rust: https://www.leptos.dev/

Here's Scheme in wasm calling JavaScript functions and DOM methods: https://spritely.institute/news/building-interactive-web-pag...

As time goes on WebAssembly will keep displacing JavaScript. We've entered the era of Zombie JavaScript.

DarkNova6 a day ago | parent | prev [-]

Is calling a WA Wrapper around aJS function accessing the DOM this inefficient?