Well.. the prediction was about JavaScript. This is WebAssembly. A big part of the reason the timeline accelerated is that the goal post was moved. A lot.
Same OS thread, same event loop and it shares its memory, but a completely different runtime. I really love JS but OP has a point.
So philosophically yes, its the same thing, but that talk has so much emphasis on something so quirky being the universal runtime. WASM isn't JS-level quirky.
I mean, WASM-in-JS kind of still is that quirky. Since we constantly have failed to expose a native WASM browser API, all of our WASM is glued together with weird generated javascript hacks...
If they don't, they should. asm.js was a subset of JS that other languages could be compiled to and was optimized so it would run faster. Ok, it was minified and unreadable, but still JS. WASM is real bytecode, no JS involved anymore.
huge difference - you can port existing executable programs to it. and they will work. WASM is Java Applets 2.0 but with near native performance and better security design
We ported plenty of existing executable programs to asm.js before WASM was even conceived of - the whole emscripten project was built around this. WASM was designed from the start to be a drop-in replacement for asm.js
While it's neat that we have tools to port stuff from one Turing complete runtime to another, the whole "JavaScript" element of the linked page is tenuous. WASM is a virtual machine made to run in web browsers. We had an asm.js that was the precursor to more easily transpile other languages -- transpiling between Turing complete languages has been a thing forever -- but extrapolating that to mean anything running in WASM is "written in JavaScript" is silliness.
It's a legitimately funny basis for a piece, but it's intellectually misleading. And of course none of this is remotely new. We've had emscripten to compile LLVM intermediate code to WASM, or JavaScript for that matter, for about a decade and half.
> extrapolating that to mean anything running in WASM is "written in JavaScript" is silliness
Nobody ever claimed that? The whole Birth & Death of JavaScript talk is explicitly about transpiling code from other languages. At the time the transpilation target was (the limited asm.js subset of) Javascript, since WASM didn't exist yet, but the overall "transpile everything to run in the browser" still holds.
Written in meaning shipped in. JavaScript is irrelevant to WASM. They are not interchangeable. It has literally zero relevance to the projects it uses to demonstrate its point. Like, just a few quotes from the article (some of which are quotes to support the argument)- "JavaScript will come to dominate all software." "inevitability of JavaScript’s dominance" "how JavaScript came to be the defacto language for all software" With an old video about someone saying that eventually we'll compile everything to JavaScript by 2035, ergo 2035 came early. Then trying to twist that such that...well...a browser hosts something, and it also hosts JavaScript, therefore prediction came early! I, uh...guess.
Comments (374) 58 threads
Earlier commentsWASM is an optimisation of something that, while technically javascript, was already unreadable compressed bytecode...
So philosophically yes, its the same thing, but that talk has so much emphasis on something so quirky being the universal runtime. WASM isn't JS-level quirky.
I mean, WASM-in-JS kind of still is that quirky. Since we constantly have failed to expose a native WASM browser API, all of our WASM is glued together with weird generated javascript hacks...
It's a legitimately funny basis for a piece, but it's intellectually misleading.
And of course none of this is remotely new. We've had emscripten to compile LLVM intermediate code to WASM, or JavaScript for that matter, for about a decade and half.
Nobody ever claimed that? The whole Birth & Death of JavaScript talk is explicitly about transpiling code from other languages.
At the time the transpilation target was (the limited asm.js subset of) Javascript, since WASM didn't exist yet, but the overall "transpile everything to run in the browser" still holds.
Written in meaning shipped in. JavaScript is irrelevant to WASM. They are not interchangeable. It has literally zero relevance to the projects it uses to demonstrate its point.
Like, just a few quotes from the article (some of which are quotes to support the argument)-
"JavaScript will come to dominate all software."
"inevitability of JavaScript’s dominance"
"how JavaScript came to be the defacto language for all software"
With an old video about someone saying that eventually we'll compile everything to JavaScript by 2035, ergo 2035 came early. Then trying to twist that such that...well...a browser hosts something, and it also hosts JavaScript, therefore prediction came early!
I, uh...guess.
Continue this thread — 1 reply
[1]: https://www.pouet.net/prod.php?which=6176
The proof is in the eating of the pudding. These days, nobody makes pudding with a proof embedded inside it.
https://news.ycombinator.com/item?id=50533945
Doom working in it (my comment):
https://news.ycombinator.com/item?id=50602937
includes link to a youtube clip of it if you're impatient.
All comments shown.
Couldn't load more comments. Check your connection and try again.