WebAssembly vs JavaScript

The cluster centers on debates about whether WebAssembly (WASM) will replace JavaScript as the primary web language, its current limitations like lack of DOM access, and its role as a high-performance complement.

📉 Falling 0.4x Web Development
4,446
Comments
19
Years Active
5
Top Authors
#5898
Topic ID

Activity Over Time

2008
1
2009
1
2010
3
2011
3
2012
2
2013
60
2014
22
2015
220
2016
330
2017
666
2018
599
2019
414
2020
363
2021
331
2022
404
2023
407
2024
275
2025
291
2026
54

Keywords

WebCodecs e.g CPU JS CLI VLC WebAssembly UI FAQ WASM webassembly wasm js javascript dom assembly web language browser browsers

Sample Comments

spinlock Nov 17, 2016 View on HN

Can we admit that we hope wasm kills JavaScript yet?

omarforgotpwd Mar 15, 2016 View on HN

Once webassembly is widely supported, why would we ever write JavaScript again?

mykull Apr 12, 2018 View on HN

Webassembly is the better thing we will replace JS with as a target language for browsers.

JohnDeHope Dec 10, 2024 View on HN

I hope wasm becomes the assembly language of the web, before JavaScript does.

raxxorrax Feb 18, 2022 View on HN

Just like Javascript being dead because of WebAssembly.

roryokane Mar 1, 2017 View on HN

No, WebAssembly is not currently a general-purpose replacement for JavaScript. Maybe in the future it will be, but right now WebAssembly doesn’t have any APIs to access the DOM. This makes it only good for quickly doing calculations with numbers or data that can be easily represented as numbers, such as implementing a physics engine for a browser game.

alangpierce Jun 19, 2017 View on HN

WebAssembly will be supported by all browsers and JS engines, but it's not something you would use as your source code. I think at the moment it's more focused on high-performance use cases, e.g. rewriting a CPU-intensive function in C++, compiling it to WebAssembly, and calling it from your JS code. Or taking an existing C++ codebase and running it on the web without really using the DOM. But in the long run, I think WebAssembly will make it possible to do things like DOM interactions

wwwkeykey Sep 9, 2017 View on HN

Forget JS! WebAssembly is coming and you can use nice languages with it, for example C#. and if you need compatibility with older browsers you can still compile WebAssembly to JS and send it to old browsers.

irrational May 15, 2021 View on HN

No? WASM doesn't replace JavaScript. Think of it as a high-performance library that JavaScript can make use of.

thefounder Feb 26, 2019 View on HN

Javascript exists because you can't run anything else in the browser. wasm allows you tonuse your fav language so I can't see why anyone would use JS once wasm gets DOM access