• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

WebAssembly in Action: why WebAssembly when we have JavaScript?

Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Author,

Javascript is 25 years old. Why is the need for web assembly when we have JavaScript + related frameworks which has worked so well fo many years. What is impact of web assembly on Javascript developers, how do they reskill themselves ? Thanks a lot !
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for your questions!

JavaScript is a good language. It’s difficult to tell what technology is going to be like in 5 years so I can’t say that JavaScript will never be replaced by something eventually but WebAssembly is not aiming to replace it.

The aim of WebAssembly was to take what worked with asm.js (a compiler target for other languages, fast code execution for heavy computations, and sandboxed for example) and try to fix what didn’t. An example of an issue with asm.js is that they didn’t want to modify the JavaScript language itself to add more features.

For JavaScript developers, I see WebAssembly as a potential way to help with the parts of their code that may have high computations or processing where they may want to try and improve performance. I could see JavaScript libraries doing the same thing where they could use WebAssembly modules in the background to improve performance but the library itself continues to work the same as it always has.

For JavaScript developers, AssemblyScript compiles TypeScript to WebAssembly so that would probably be a good starting point rather than having to learn another language. https://github.com/AssemblyScript/assemblyscript
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic