Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Wozza638687yThe devs of WebAssembly literally state that it is NOT a replacement for JavaScript. For example WebAssembly has no access to the DOM nor is it a planned feature.
WebAssembly will only be used for more demanding functionality, particularly for maths.
I'm a great fan of WebAssembly but JavaScript will be here for a long time yet! -
@Wozza365 they don't specify that it's meant to replace JavaScript, but I'm thinking more of developing web apps without using the DOM at all bypassing the whole DOM architecture. I'm thinking more of a complete change of how web development is done using the traditional methods of html/css/js.
-
Wozza638687y@theredcameron see here: http://webassembly.org/docs/faq/
How does one expect to create an app without an interface, even drawing to a canvas requires a number of JavaScript "glue" functions -
@Wozza365 that's just it, we don't use html or css or JavaScript to create the user interface except for when we load the webassembly module. All buttons, text fields, and other UI elements are created using a framework for the C or C++ language. This way we can bypass JS entirely and go to compiled languages.
This use case won't be very common for a while, but my hope is that webassembly will be improved to the point where we can have user interface and do computations on the web at native speeds.
Many people may not like this idea, but it's one I'm willing to explore. -
Wozza638687y@theredcameron but why do this when markup languages much better represent UI than is possible in most languages? WebAssembly opens potential to games and bigger applications but will never be a replacement for anything already perfectly possible on the web. I see bigger potential in non web for WebAssembly. Think node js but faster. Can run a server on any architecture or a game that can run on your phone and PC with one file.
JavaScript is ok. But I'm really hoping it will be fully replaced by webassembly within the next ten years.
rant
webassembly
javascript