News for hackers. Stuff that matters.
Re:Why is the JavaScript ecosystem like this by xg15 on Thursday January 05, 2023 @10:24AM (#34260914)
How about Java, C/C++, the .NET languages or Rust?
Re:Why is the JavaScript ecosystem like this by jakelazaroff on Thursday January 05, 2023 @11:55AM (#34262727)
I mentioned Rust, and I left Java and C/C++ out for a reason. Also, none of them have the properties in question (forbids runtime errors and doesn't bitrot).
Re:Why is the JavaScript ecosystem like this by javajosh on Thursday January 05, 2023 @12:46PM (#34263557)
It's not even clear that a language exists, as we know it, that doesn't bitrot.
Re:Why is the JavaScript ecosystem like this by xg15 on Thursday January 05, 2023 @01:05PM (#34263879)
> I mentioned Rust

Ah sorry, overlooked that.

Re:Why is the JavaScript ecosystem like this by javcasas on Thursday January 05, 2023 @08:59PM (#34269979)
I just spent most of the afternoon trying to make a government java program work. It won't apply electronic signatures. I know because it throws 47-line exception tracebacks and does nothing on the UI. Its documentation is for windows xp and windows 7. Yes it is the last version, from mid last year. That's real bitrot.

Related to C pray they didn't hardcode implicitly something of the architecture. Or be surprised when a bad pointer fails in one OS but works in another.

The .net languages are wonderful. The best time I remember in my life was trying to debug what version of the .net runtime was required for a program. So much better than getting laid or going on holiday /s

Re:Why is the JavaScript ecosystem like this by spion on Friday January 06, 2023 @03:36PM (#34280667)
Compiling to JS doesn't solve the problem because the language (JS) isn't the problem. The problem is the browser and its inadequacy for building applications in many areas - lots of APIs that are not fit for writing applications as well as simiarly inadequate protocols.

This environment is additionally hostile to compilation - TypeScript had to bring some really amazing type system features to the table to get most engineers to reluctantly accept the headaches of compilation for the browser.

ES6 Modules, HTTP/2 and sourcemaps were supposed to fix these issues to some extent and all of them created major new headaches instead. Its like there is something fundamentally broken about the browser that we're not getting which sabotages all solutions we've come up with so far.

The JS ecosystem is the furthest ahead in making this broken environment barely usable with a bunch of hacks to compensate for its shortcomings - a new language will need to fight hard to get close.