Most active commenters
  • peutetre(6)

←back to thread

272 points abdisalan | 33 comments | | HN request time: 0.943s | source | bottom
1. uludag ◴[] No.42175643[source]
The worst part isn't just that it's nearly impossible to run/update an outdated JS project, but that this process will repeat itself ad infinitum.

On the flip side, anything that uses vanilla JS without a build will most likely run just fine, probably till the end of human civilization.

replies(6): >>42175899 #>>42176382 #>>42177202 #>>42182217 #>>42182764 #>>42189088 #
2. graypegg ◴[] No.42175899[source]
I truly believe some flavour of "Javascript Classic" (some future state of JS before some big shift in syntax/mass migration to something else), C and x86 instructions will follow humanity for the rest of time. There will be javascript somewhere aboard the interstellar spaceships of the future, and we will still complain about it.
replies(6): >>42176310 #>>42176625 #>>42177413 #>>42178137 #>>42179671 #>>42181425 #
3. xg15 ◴[] No.42176310[source]
Yeah, starting to believe the hacking scene in the Matrix where the machine city was still running on IPv4 wasn't a blunder but foresight.

There will also be someone playing Tetris, Doom and Final Fantasy VI on their neural interface, long after all modern games have been lost to time (and DRM).

4. jazzyjackson ◴[] No.42176382[source]
YMMV but I had a 4 year old project whose only dependencies were socketio and express and it booted right up. So stick to stable, mature projects and you're likely to be fine.
replies(1): >>42183191 #
5. elzbardico ◴[] No.42176625[source]
Well, even Fortran is still around us in some lapack code in numpy and in a lot of the stuff behing scipy, so, a lot closer than a lot of people can imagine.

Basically a lot of AI depends on a bunch of absurdly optimized numeric libraries writen in Fortran.

Fortran is well into the way at becoming a centenarian programing language at 74 years of age.

6. cxr ◴[] No.42177202[source]
> it's nearly impossible to run/update an outdated JS project

You corrected yourself, but it's worth emphasizing here: a _NodeJS_ project, you mean.

Unless you're using non-standard APIs, stuff written to run in the browser generally keeps working just as well as it did before, no matter whether it was written 2 years ago or 10.

7. pavel_lishin ◴[] No.42177413[source]
My grandchildren will live to see Vernor Vinge's programmer-archeologists troubleshooting PHP issues on the Wordpress install responsible for life-support around Alpha Centauri.
replies(1): >>42185005 #
8. peutetre ◴[] No.42178137[source]
JavaScript will be killed off by WebAssembly.

Zombie JavaScript will be reduced to being glue code and then not even that.

replies(4): >>42181884 #>>42185231 #>>42188808 #>>42188993 #
9. yen223 ◴[] No.42179671[source]
I sometimes think about one of the Star Trek episodes where the ship was getting attacked by a "SQL injection", and I think that's pretty realistic
10. mst ◴[] No.42181425[source]
I think it was 'A Deepness In The Sky' that posited so many layers of legacy underlying the starship control systems of the era that one of the most crucial positions on a ship was that of 'Programmer-Archeologist.'
replies(2): >>42186821 #>>42194165 #
11. yen223 ◴[] No.42181884{3}[source]
JavaScript will be killed off by webassembly for about 5 years now
replies(1): >>42181901 #
12. peutetre ◴[] No.42181901{4}[source]
The difference lately is the number of tools that are now in place for WebAssembly development and the new extensions to WebAssembly (WasmGC, Memory64, etc.).

Despite 28 years of effort at optimization, JavaScript is outperformed by WebAssembly. There's not much coming back from that:

https://jordaneldredge.com/blog/speeding-up-winamps-music-vi...

https://www.amazon.science/blog/how-prime-video-updates-its-...

https://web.dev/case-studies/google-sheets-wasmgc

replies(2): >>42184200 #>>42187303 #
13. wink ◴[] No.42182217[source]
What if your project is old enough to predate the modern "just use vanilla js, it's fine"? :tableflip:

j/k - I'm slowly removing all the Zepto code I have and it's usually a relatively quick search&replace.

14. nikanj ◴[] No.42182764[source]
Or until Google decides to change things to be more standards compliant, regardless of the collateral damage
15. authorfly ◴[] No.42183191[source]
Just watch out because socketio must be version matched for client-server or you will get the most annoying errors and state inconsistencies in the world. That's a scary production update let me tell you. Version 2.3.0 still scares me to this day after trying to upgrade that without production downtime.
16. liontwist ◴[] No.42184200{5}[source]
?? JavaScript was outperformed by every language since it was introduced.

It doesn’t matter. What matters is what people put in their web pages.

replies(1): >>42187768 #
17. kwertyoowiyop ◴[] No.42185005{3}[source]
Just bobble some programmers now.
18. spacebanana7 ◴[] No.42185231{3}[source]
Network effects are very strong for languages.

Better query languages than SQL could exist, but there's so much existing code and expertise out there that it's not worth the effort. Better backend languages than Java can & do exist but don't have the same enterprise popularity.

Developers, projects and companies have an immense incentives to target the most popular programming language.

replies(1): >>42187848 #
19. wpm ◴[] No.42186821{3}[source]
That sounds great. Added to my list.

I adore the idea of somewhere on the Star Trek Enterprise, underneath the isolinear chips, the EPS conduits, the warp containment field control mechanisms, somewhere, if you dig far enough, override enough, you can get an LCARS screen that is all black, with a small `$` in the upper left and a blinking text cursor, waiting for a command.

20. yoelhacks ◴[] No.42187303{5}[source]
Javascript is outperformed by WebAssembly in the sense that it runs faster.

A lot of things that bring a lot of value to a lot of people are still much, much faster to build via the JS / TS ecosystem.

It absolutely makes sense that calculation-heavy workloads will be ported to WASM, but there's a lot more to building an app.

replies(1): >>42187869 #
21. peutetre ◴[] No.42187768{6}[source]
But now JavaScript is no longer the privileged language in the browser.

With WebAssembly every language runs in the browser and runs better.

replies(1): >>42187950 #
22. peutetre ◴[] No.42187848{4}[source]
JavaScript's one advantage was that it was the privileged language in the browser. It has lost that now.

JavaScript has entered its Walking Dead phase. It will gradually be displaced by all languages compiling to WebAssembly.

replies(2): >>42188771 #>>42191854 #
23. peutetre ◴[] No.42187869{6}[source]
> but there's a lot more to building an app.

Like what? Visual UI designers? WebAssembly's got you covered: https://platform.uno/blog/uno-platform-studio-featuring-hot-...

Running Visual Basic in a C# application compiled to WebAssembly? Sure, why not: https://bandysc.github.io/AvaloniaVisualBasic6/

24. liontwist ◴[] No.42187950{7}[source]
And what will prove that is adoption. As others have said, that has been “just around the corner” for years.
25. spacebanana7 ◴[] No.42188771{5}[source]
JavaScript’s main advantage is being commonly familiar to most software engineers.

The English language similarly lost its position as the preeminent imperial language a long time ago, so too with Latin & Rome. It takes a long time for a popular language to die because everyone wants to speak what everybody else speaks.

26. NohatCoder ◴[] No.42188808{3}[source]
The Webassembly dev experience is awful, and it needs to be glued together with JavaScript anyway. 99% of web code doesn't care about the performance difference, and anything GUI is wasting more time jumping back and forth to JavaScript to save any time at all.
replies(1): >>42189203 #
27. em-bee ◴[] No.42188993{3}[source]
only after they make DOM access easier. see previous discussion here:

https://news.ycombinator.com/item?id=41955585

https://news.ycombinator.com/item?id=41955488

28. shepherdjerred ◴[] No.42189088[source]
This nearly impossible task took the author two hours
replies(1): >>42192196 #
29. peutetre ◴[] No.42189203{4}[source]
> The Webassembly dev experience is awful

It really isn't. Wasm is just a compilation target now.

30. saulpw ◴[] No.42191854{5}[source]
WASM has a lot of shortcomings. You can't even update the DOM without doing a worker dance.
31. abenga ◴[] No.42192196[source]
He gave up and went back to an old version. So we don't know if it was possible or not.
32. jeffrallen ◴[] No.42194165{3}[source]
I am already a programmer archeologist, and it's one of the most rewarding parts of my job. Though my most recent project is regrettably well written and maintained. :)
replies(1): >>42224013 #
33. banku_brougham ◴[] No.42224013{4}[source]
im going to try and have this attitude