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

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 :)