The Future of JavaScript Will Be Less JavaScript(medium.com) |
The Future of JavaScript Will Be Less JavaScript(medium.com) |
Javascript was used beyond it's own merits as a language. It was the only feasible door to pluguinless development in the web. WebAssembly will allow people to choose. And even that a lot of developer will still have Javascript as a first option, others will not, and the web development environment is going to deeply change.
In real applications we need to use social login, share, google maps, shopify buy SDK, S3, Azure speech API and so on. The javascript tools to access all of that are plain old ES5 at best. How will we use them from another language?
Libraries, too. Are we going to find ourselves writing our own custom dropdowns and datepickers in C++? Not to mention our own view update and state management libraries.
This is the reason there are next to none real world examples of web apps made in Elm. No communication with planet Earth.
You are talking about C++. If a library exists, already exists an implementation for it in C++. Comparing Elm with C++ doesn't makes so much sense.
https://en.wikipedia.org/wiki/List_of_platform-independent_G...
ES6 is JavaScript in its actualized form, and once fully adopted it should suffice for most developers unless you really want to implement bleeding edge ES7 tech. WASM is pretty cool, though I personally believe you have to be some kind of masochist to put yourself through the torture of building your web app in C++, unless said application would really benefit from the optimization factor.