3 ms·
Eventually there will be direct binding between WebAssembly and web APIs like that the DOM that will allow you to write performant web apps that circumvent JS e
by stupidcar 8y ago
Eventually there will be direct binding between WebAssembly and web APIs like that the DOM that will allow you to write performant web apps that circumvent JS entirely. There are already tools that https://webassembly.studio/ https://webassembly.studio/ that making writing wasm-based apps a reality, albeit still with a binding layer that goes through JS.
However, such applications will still have the same constraints that drive the current JS ecosystem. As such, there's little reason to believe that frameworks like React, Angular, Vue.js, etc. won't have their wasm-based equivalents. And, if anything, I except more churn for quite a few years, as people use the freedom provided by wasm to build a new generation of frameworks in completely different languages. We may look back on the current era of web development as a relatively stable one compared to what's to come.
So if the current churn is what turns you off web development, I wouldn't bet on wasm being a salve.
- giancarlostoro 8y agoAnother (non-Rust) but still interesting attempt towards this is being done by Microsoft: https://blogs.msdn.microsoft.com/webdev/2018/03/22/get-started-building-net-web-apps-in-the-browser-with-blazor/ https://blogs.msdn.microsoft.com/webdev/2018/03/22/get-start... In their case they compile a small enough subset of the .NET runtime to WebAssembly, and they got some JS to do the interop (I imagine till that glorious day of freedom comes). It's amazing what they've got working so far honestly.
- tenaciousDaniel 8y agoOh wow, I didn't realize that wasm did not currently have any direct bindings to the DOM. How does it interact with the page then? I saw a demo where they ported UE4 - how does something like that work without DOM access?
- steveklabnik 8y agoIt calls to JavaScript which manipulates the DOM for it.