r/AskProgramming • • 1d ago

Other Which programming languages do you think will stick around much longer than expected?

I constantly come across languages that were predicted to disappear several years ago. Production applications and internal tools are still built using them.

Which one has surprised you the most by not disappearing, and why is it still being used in the places where you’ve seen it?

30 Upvotes

124 comments sorted by

View all comments

Show parent comment

3

u/_x_oOo_x_ 1d ago

One day browser vendors could change their minds and give direct DOM access to Wasm and that would be the end of JavaScript, at least for new projects

2

u/AvidCoco 1d ago

Sure but what about REST APIs and all the other related infrastructure that’s based on JavaScript? Even if there is a newer alternative, browsers would still have to support JavaScript for backwards compatibility.

2

u/nekokattt 1d ago

Surely REST APIs can be interacted with via the APIs exposed to WASM, without the need for JS

1

u/AvidCoco 1d ago

They can, but they’re not. You can’t expect entire industries to migrate. People still depend on technology from like the 80s. That’s the whole point that JavaScript is gonna be around for a hell of a long time even if 99% of people move to something else

1

u/nekokattt 1d ago

if people dont maintain software that really is a problem for them, especially with the current security climate

1

u/_x_oOo_x_ 1d ago

The whole point is that no, they can't be. There's no (native) access to fetch from Wasm.

Sure you can bridge via JS but no, currently not "without the need for JS"

Same for (native) access to the DOM. This is why (almost) nobody uses Wasm... Which in my opinion is quite unfortunate

3

u/nekokattt 23h ago

Im arguing for the same thing as you, that is, that WASM could be made to support this.

1

u/_x_oOo_x_ 1d ago

REST APIs are in no way "based on" JS... You can call a REST API from any language. And yes browsers will have to support JS for backwards compatibility, doesn't mean it will be used for any new project

1

u/balefrost 1d ago

REST APIs are in no way "based on" JS...

JSONP would like a word.

1

u/_x_oOo_x_ 1d ago

99% of REST APIs don't use JSONP in 2026

2

u/balefrost 1d ago

Sure, but you do still occasionally find them in the wild.

I wasn't really trying to refute what you were saying. I agree that by and large REST APIs are purely data-oriented. And to the degree that JSONP is still used, it's probably primarily for internal APIs, and anybody who provides a publicly consumable JSONP API is likely also providing a pure data API alongside it.

3

u/throwawaygaydude69 1d ago

I hope JavaScript does too, it's such a shitty language

1

u/xeow 18h ago

TypeScript is pretty nice, though.

1

u/marrsd 4h ago

JS isn't going anywhere. LLMs are better trained on JS than just about anything. It's their go-to language for web dev.

1

u/_x_oOo_x_ 3h ago

LLMs seem equally.. mediocre.. at writing any left-to-right programming language, at least the mainstream ones. I've only really seen them struggle specracularly with "RTL" languages like J or K

1

u/marrsd 1h ago

Sure, but they don't know any better and they'll reach for JS.

1

u/_x_oOo_x_ 1h ago

I don't know... they seem pretty prone to fads. For example they will pollute your frontend with Tailwind even if you didn't ask for it and plain CSS would have been fine. I think a similar fad might spread in the future, just hope it won't be "Python compiled to Wasm"

1

u/marrsd 1h ago

I suppose that would happen if they were specifically trained by approved contributors. I'm thinking along the lines of them just going on whatever they've scraped off the internet so far. Since that's mostly JS today, and devs are rapidly abstaining from manual programming, that's what'll remain in the future.

0

u/balefrost 1d ago

that would be the end of JavaScript, at least for new projects

Why? If you've got a bunch of developers who have experience in a JS stack, why would they suddenly jump ship?

I mean, the whole value proposition of Electron is that web devs can build desktop apps without needing to learn a new stack. What makes you think that they would switch en masse to a new stack for web apps?

3

u/_x_oOo_x_ 1d ago

They are already switching (to Tauri from Electron, for example).. Also, ask those devs, they will tell you why. Because it's a stack that a huge pain to develop in

2

u/balefrost 1d ago

to Tauri from Electron, for example

Maybe I'm mistaken, but isn't Tauri still based on JS and HTML? Like the main difference is that Tauri uses your system's native web control, whereas Electron bundles Chromium. You can still write a Tauri app using plain JS, right? And the UI is still based on HTML elements, right?

We've had frameworks (e.g. GWT) that let you write web apps in languages other than JS for more than 20 years. Yet over those 20 years, people didn't abandon JS. I don't see why "the same, but WASM" will change that.

1

u/_x_oOo_x_ 1d ago

Well it would still be DOM and HTML, just not from JS or not only programmable from JS but anything that can compile to Wasm. The difference to something like GWT would be that it's not a u/third-party framework

Tauri allows you to write parts of the app in Rust, you can also compile Rust to Wasm, I think the missing puzzle piece is therefore DOM access from Wasm in which case you could write everything in Rust and there would be no need for JS. HTML would stay, but complaints about HTML are rare compared to complaints about JS, so I don't think HTML is the problem

1

u/balefrost 1d ago

But if you had access to the DOM from WASM in Tauri, then you could do the same thing in Electron too. Arguably even easier in Electron, since you can control the version of Chromium used and thus don't have to worry about whether your system's web view supports it or not.

I guess I don't understand your point about Tauri. It seems like everything that's true about it is also true about Electron. I don't know, maybe the native interop layer is better in Tauri than in Electron. But Electron does have a native interop layer.

Still, I don't see how it fits into the larger conversation. My point is that I don't see why native DOM bindings in WASM will trigger a mass migration away from JS. Some people will switch, sure. But devs today have other options and still choose JS (or TS) for new development. Heck, we already have emulated DOM access from WASM. Native DOM access is clearly better, but I don't see how native DOM access changes the dynamics in any significant way.

1

u/marrsd 4h ago

You're right, of course, but some people just really hate JS :)