zlacker

[parent] [thread] 8 comments
1. exabri+(OP)[view] [source] 2025-12-04 12:48:39
Why in 2025 can we not ship a statically typed high performance language for browsers?
replies(7): >>paulry+g >>pveier+F >>afavou+22 >>throw_+72 >>wouldb+63 >>z3t4+A3 >>muvlon+aa
2. paulry+g[view] [source] 2025-12-04 12:50:32
>>exabri+(OP)
Because there is no consensus on what that should be, and vendors have so little motivation they just outsource most browser development to Google.
3. pveier+F[view] [source] 2025-12-04 12:53:26
>>exabri+(OP)
Rust runs quite well today via WebAssembly. Continuing to improve interop between Web API / WASM / language runtimes seems like a good route that allows people to use the language they prefer against shared Web APIs.
4. afavou+22[view] [source] 2025-12-04 13:03:07
>>exabri+(OP)
Because every time someone proposes it the immediate follow up is “which language?”, which everyone argues about until they’re exhausted and give up.

Which is why WebAssembly is the right answer.

5. throw_+72[view] [source] 2025-12-04 13:03:29
>>exabri+(OP)
> Why in 2025 can we not ship a statically typed high performance language for browsers?

Which one?

6. wouldb+63[view] [source] 2025-12-04 13:09:16
>>exabri+(OP)
Developers always on their high horse, if after years of trying different options it didnt happen, maybe that means it's not what the world wants or need?
replies(1): >>morshu+rA1
7. z3t4+A3[view] [source] 2025-12-04 13:11:49
>>exabri+(OP)
Dart is a statically typed high performance language intended for the browser. For a short time you could run Dart in the Chrome browser - as a JavaScript alternative. They then decided it was better to transpile to JS... JavaScript is already strictly typed and safe, but the dynamic nature makes it difficult to optimize. So I think it's a weird decision to transpile to JS.
8. muvlon+aa[view] [source] 2025-12-04 13:58:24
>>exabri+(OP)
I'm a huge fan of statically typed languages, but shipping statically typed code as an artifact seems like it loses all of the advantages.

What does it matter to the user whether they get a runtime or a "compile time" error in their invisible devtools console? To them, the page simply doesn't work.

Static languages make sense when compilation happens at dev-time, where the actual devs can respond to the diagnostics. So it's far better to develop in a statically typed language, compile it ahead of time and ship that to the user. Which is exactly what people do now with wasm.

◧◩
9. morshu+rA1[view] [source] [discussion] 2025-12-04 21:13:52
>>wouldb+63
I don't want static typing in a web language. This is something people getting dragged from Java and C++ want. JS and Py got popular without it.

Also there's TS if you really want it

[go to top]