19

JavaScript is ok. But I'm really hoping it will be fully replaced by webassembly within the next ten years.

Comments
  • 2
    Assembly for the web? Sounds hellish.
  • 3
    @iSwimInTheC sarcasm I'm assuming?
  • 1
  • 7
    The 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!
  • 1
    They better do that, before I assemble a bomb.
  • 1
    @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.
  • 0
    @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
  • 1
    @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.
  • 0
    @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.
Add Comment