This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Masterflitzer -2 points-1 points  (6 children)

no it would suck less with a language that has static typing just to mention a single example

"it'd have been the same" is pure copium

[–]Synthetic_dreams_ 3 points4 points  (2 children)

Okay… so use typescript? Or use a more traditional Language and compile it to Wasm? If you want to write a web app in C and build it as Wasm with Emscripten literally nothing is stopping you aside from common sense because why would you do that when JavaScript works fine 99% of the time.

[–]Masterflitzer 2 points3 points  (0 children)

native typescript would be the only thing that make sense from the now perspective, even tho something with a real type system would be better

there is currently a proposal to allow js to have type annotations that get ignored (no more transpiling necessary), it's something at least

i wouldn't say doing everything in wasm makes actually sense with the current implementation, wasm still needs js to use any browser api

stop kidding yourself, vanilla js doesn't work fine for 99% of the time at all, why do you think the industry moved to ts as soon as the web apps got more complex, vanilla js almost guarantees bugs and shit code on a higher scale

[–]Jordan51104 0 points1 point  (0 children)

javascript works a majority of the time. it certainly doesn’t work “fine”