Which side are you? Javascript or Typescript

mastermind@lemm.ee to Programmer Humor@programming.dev – 535 points –
218

You are viewing a single comment

Me: 2024 is finally going to be the year of WASM, boys!

And then there's me, missing flash :(

Flash and AS3 was so much fun to work in. I completely understand why the industry moved away from it but even today we have yet to fully catch up to all the media animation and programmatic features it provided all in one. RIP.

I still have a hobby website with an AS flash animation on it that I don’t have the heart to get rid of. It was so cool.

That's awesome.

But I'm picturing you keeping a retro computer to load it on and enjoy it.

Starfield has a bunch of AS3 and Flash files. I've been hacking it all week.

And, uh, I use vanilla JavaScript with Typescript checking via JSDocs.

I just wish WASM could replace JS rather than merely augment it for non-DOM work.

You can have frameworks which fully generate the JS DOM code for you, allowing you to write complete single-page applications without writing a single line of JS.

I'm using the leptos framework (Rust) and really like it so far. Not a single line of JS, not even npm as a dependency in that project.

Yep, that's the framework, I'm using, too. But most frameworks in the Rust ecosystem can do DOM interop, as the heavy lifting for that is provided by the wasm-bindgen library.

Unpopular opinion: I hope it's going to be a flop (apart from the few use cases where it does make sense). The limitation of having just JavaScript ensures level of interoperability which is IMHO one of the big advantages of web as an application platform. If WASM becomes successful, it will fragment the web.

I definitely feel you. Not sure WASM is the answer, but it’s still neat.