News for hackers. Stuff that matters.
Re:The Birth and Death of JavaScript (2014) by mikece on Thursday May 11, 2023 @09:47AM (#35902008)
Almost ten years on from this conference talk and it's mind-blowing how close to the mark Gary Bernhardt was!
Re:The Birth and Death of JavaScript (2014) by zaguios on Thursday May 11, 2023 @07:06PM (#35909532)
Uh, are we living in the same world? Javascript completely and fully dominates the web, he couldn't have been more wrong about how the future would turn out.
Re:The Birth and Death of JavaScript (2014) by kaelinl on Thursday May 11, 2023 @08:09PM (#35910143)
Have you watched the talk or only read the title? The "death" in the title does not mean what you suggest it does.
Re:The Birth and Death of JavaScript (2014) by NortySpock on Thursday May 11, 2023 @10:09PM (#35911046)
To summarize the talk for those in a hurry: the presenter, pretending to be from the future, describes YavaScript as an archaic computer language that served as a bootstrap to WASM, which is now the default compilation target for nearly all languages.
Re:The Birth and Death of JavaScript (2014) by saghm on Thursday May 11, 2023 @11:13PM (#35911440)
A slight nit: he doesn't actually refer to WASM, but a precursor called asm.js (https://en.wikipedia.org/wiki/Asm.js). WebAssembly wasn't actually announced until 2015 (https://en.wikipedia.org/wiki/WebAssembly)
Re:The Birth and Death of JavaScript (2014) by jfmc on Friday May 12, 2023 @12:30AM (#35911926)
WASM is an extremely useful compilation target because of its portability (specially for running on browsers), but it is far from being the "default compilation target" for almost any language. The promised near-native speed is not here (in general you get x2 or x3 slower code but it can be even worse), it is limited to 32-bits (MEMORY64 is on the way but there is not a clear roadmap of when this will be generally available in browsers), blocking IO is a pain, and its design seems to be constrained by the underlying JS JIT (it still looks like ASM.JS with a different syntax).

I still believe that it is a miracle that we have WASM as a standard, and that it runs smoothly across different browser vendors, but why nobody seems to be worried about lack of progress in performance?

LLVM IR would be a much better binary target. It was used in the abandoned PNaCL project. AFAIK Apple uses it (bitcode) to store apps that are later compiled for specific platforms. WASM looks like a toy compared with this technology.

Re:The Birth and Death of JavaScript (2014) by remexre on Friday May 12, 2023 @01:56AM (#35912454)
The problem is that LLVM IR makes breaking changes fairly frequently -- for instance, LLVM 15 made all pointers untyped; where before you'd have a type like *i32, now you just have ptr.

If you're trying to run the same IR on 32-bit and 64-bit devices, I'd expect you'd need to freeze the word size anyway -- if a C or C++ program uses sizeof(), what value gets returned?

Blocking IO doesn't get solved by switching to LLVM either; you can't block in browser WASM because it'd block the JS thread; a WASM engine not attached to a browser has no such issues. (I wish at least one-shot continuations would get added so that this could become a bit easier in the browser, but I understand the hesitancy to do so...)

Re:The Birth and Death of JavaScript (2014) by bonzini on Friday May 12, 2023 @02:56AM (#35912877)
> it is far from being the "default compilation target" for almost any language

That referred to the content of Gary Bernhardt's talk, not to (current) reality.

Re:The Birth and Death of JavaScript (2014) by krasin on Friday May 12, 2023 @04:45AM (#35913585)
> It was used in the abandoned PNaCL project.

I worked on PNaCl back in 2011. There was a growing understanding that choosing LLVM IR as the representation was a mistake. I even tried to come up with something better, but failed to do so. I was glad to see asm.js and then WebAssembly coming to the scene. In my opinion, WebAssembly is better than what PNaCl could have ever become.

update: and then there was a famous post, "LLVM IR is a compiler IR": https://groups.google.com/g/llvm-dev/c/N3r_a1Vbrog/m/8lukw1x...

Re:The Birth and Death of JavaScript (2014) by madeofpalk on Friday May 12, 2023 @06:22AM (#35914258)
The talk is a work of fiction, set in 2035, which describes the Bay Area as a nuclear exclusion zone.
Re:The Birth and Death of JavaScript (2014) by zaguios on Thursday May 11, 2023 @11:41PM (#35911610)
First, it’s against the rules to imply someone didn’t read the article / watch the video.

Second, it should have been clear by how I referred to him predicting the future I did indeed watch the talk.

Finally, the talk centers around the downfall of a language and the comment I responded to applauds the accuracy of the talk. Meanwhile javascript has only risen in prominence to be one of the most used languages. There’s nothing wrong with the talk, it was funny and interesting, but reality moved in the exact opposite direction of what the speaker wished would have happened.

Re:The Birth and Death of JavaScript (2014) by recursive on Thursday May 11, 2023 @10:10PM (#35911064)
> Javascript completely and fully dominates the web, he couldn't have been more wrong about how the future would turn out.

So what was he wrong about?

Re:The Birth and Death of JavaScript (2014) by ehnto on Friday May 12, 2023 @01:37AM (#35912312)
I guess just that asm.js nor WASM are the reason why Javascript still dominates. Most of the dominating technologies transpile to plain ol' javascript.
Re:The Birth and Death of JavaScript (2014) by slowmovintarget on Thursday May 11, 2023 @10:17PM (#35911125)
To refer merely to the title of another of his talks: "Wat?"
Re:The Birth and Death of JavaScript (2014) by throwawaymaths on Friday May 12, 2023 @01:25AM (#35912243)
It's not nearly 100% certain wasm will win out in the way he describes. And there isn't an exclusion zone.
Re:The Birth and Death of JavaScript (2014) by sfink on Friday May 12, 2023 @08:25AM (#35915180)
> And there isn't an exclusion zone.

Yet.

Re:The Birth and Death of JavaScript (2014) by flohofwoe on Friday May 12, 2023 @03:10AM (#35912973)
The software world hasn't changed much in the last decade though. I think you have to go back all the way before V8 to make the predictions impressive ;)
Re:The Birth and Death of JavaScript (2014) by mellosouls on Thursday May 11, 2023 @06:30PM (#35909210)
(video)
Re:The Birth and Death of JavaScript (2014) by dang on Thursday May 11, 2023 @07:25PM (#35909726)
Added. Thanks!
Re:The Birth and Death of JavaScript (2014) by dang on Thursday May 11, 2023 @07:24PM (#35909717)
Related:

The Birth and Death of JavaScript (2014) [video] - https://news.ycombinator.com/item?id=27538040 - June 2021 (43 comments)

The Birth and Death of JavaScript - https://news.ycombinator.com/item?id=26696857 - April 2021 (1 comment)

The Birth and Death of JavaScript (2014) - https://news.ycombinator.com/item?id=26622984 - March 2021 (2 comments)

The Birth and Death of JavaScript - https://news.ycombinator.com/item?id=19147184 - Feb 2019 (1 comment)

The Birth and Death of JavaScript - https://news.ycombinator.com/item?id=11898573 - June 2016 (1 comment)

The Birth and Death of JavaScript [video] - https://news.ycombinator.com/item?id=7605687 - April 2014 (227 comments)

Re:The Birth and Death of JavaScript (2014) by DonHopkins on Friday May 12, 2023 @05:27AM (#35913867)
MY GOD WHY WON'T IT JUST STAY DEAD???
Re:The Birth and Death of JavaScript (2014) by ssss11 on Friday May 12, 2023 @05:56AM (#35914070)
At this point it should perhaps be renamed ZombieScript
Re:The Birth and Death of JavaScript (2014) by mikece on Friday May 12, 2023 @09:12AM (#35915741)
When announcements are made at Google I/O about UI and app code being compiled down to WASM, without a line of Javascript in sight, and delivered on all manner of web browser -- desktop and mobile -- that triggers a reminder that this was all predicted by the clairvoyant Gary Berhardt back in 2014.

He also predicted a huge war after the adoption of (W)ASM and we have the possible ignition point for that in eastern Ukraine at the moment...

Re:The Birth and Death of JavaScript (2014) by evbogue on Thursday May 11, 2023 @09:36PM (#35910821)
First time viewer here.

How did the presenter know there was going to be a war going on between 2020 and 2025 all of the way back in 2014?

Re:The Birth and Death of JavaScript (2014) by nilsbunger on Thursday May 11, 2023 @11:57PM (#35911725)
The talk is in 2035, not 2014
Re:The Birth and Death of JavaScript (2014) by chii on Thursday May 11, 2023 @11:58PM (#35911730)
he obviously was really a time traveller, and was just using the talk as a thinly disguised prophesy for the rest of us!
Re:The Birth and Death of JavaScript (2014) by glandium on Friday May 12, 2023 @03:48AM (#35913225)
Has there been a time between 2014 and now where there wasn't an active war somewhere?
Re:The Birth and Death of JavaScript (2014) by madeofpalk on Friday May 12, 2023 @06:23AM (#35914263)
> This science fiction / comedy / completely serious talk traces the history of JavaScript, and programming in general, from 1995 until 2035.
Re:The Birth and Death of JavaScript (2014) by mikece on Friday May 12, 2023 @07:52AM (#35914849)
Like everything else he's correct, just off by a couple years: The War wasn't until 2027.
Re:The Birth and Death of JavaScript (2014) by woodruffw on Friday May 12, 2023 @12:10AM (#35911800)
Gary Bernhardt is a fantastic speaker and presenter. I also highly recommend his Destroy All Software screencasts[1], for those who enjoyed this talk.

[1]: https://www.destroyallsoftware.com/screencasts

Re:The Birth and Death of JavaScript (2014) by gregsadetsky on Friday May 12, 2023 @07:58AM (#35914912)
And he also runs his own learning site/platform where you can interactively learn / get better at TypeScript.

I went through a few of the classes and loved them!

https://www.executeprogram.com/

Re:The Birth and Death of JavaScript (2014) by agentultra on Friday May 12, 2023 @12:10AM (#35911802)
Gosh I remember being at this talk. And I remember being in the green room at a subsequent Pycon as a speaker and seeing Gary preparing for another talk. He is legendary. I wish I had the fortitude to interrupt him and introduce myself. Or not. I kinda just left him to his own because interrupting people is rude.

If you’re reading this, hi Gary! You’re cool. This talk was awesome. You did a great job.

Re:The Birth and Death of JavaScript (2014) by chrisco255 on Friday May 12, 2023 @01:28AM (#35912258)
I think it's pretty hilarious that after this talk, WebAssembly became a thing, supplanting asm.js, and the text based version of wasm files are called wat files. Wat?
Re:The Birth and Death of JavaScript (2014) by paulgb on Friday May 12, 2023 @06:11AM (#35914176)
In case anyone misses the reference, “Wat” is another entertaining talk by Gary Bernhardt

https://www.destroyallsoftware.com/talks/wat

Re:The Birth and Death of JavaScript (2014) by baudaux on Friday May 12, 2023 @02:09AM (#35912564)
This excellent talk was a fiction in 2014… that is becoming true. Of course JavaScript is not dead (far from that) but WebAssembly is now there and a shell running in the browser becomes a reality
Re:The Birth and Death of JavaScript (2014) by FpUser on Friday May 12, 2023 @04:18AM (#35913431)
This is insanely brilliant presentation. Too bad I did not hear about the guy before.
Re:The Birth and Death of JavaScript (2014) by roberja90 on Friday May 12, 2023 @05:25AM (#35913852)
Fun talk but kind of weird he totally ignores the fact that LLMs have written all code since around 2029.