3 ms·
> "Hey Rust and WASM is a thing! You can make webpages with it". Ok, fine. It is very early days. More to come... > However, I don't see a lot of the things t
by steveklabnik 9y ago
> "Hey Rust and WASM is a thing! You can make webpages with it". Ok, fine.
It is very early days. More to come...
> However, I don't see a lot of the things that are in libraries like Vue and React
Yes. There's not too many of these yet; there are some though. For example, https://github.com/DenisKolodin/yew https://github.com/DenisKolodin/yew
There's also the inverse: can we re-write parts of libraries like Vue or React in something that compiles to wasm, so that you get better performance as the user? I know of at least one major SPA framework that's doing this. Don't want to spill the beans too much, even though it is technically public knowledge.
That said, that's how I think wasm will impact the lives of most JS programmers: as technology that underpins the libraries they use to make them better. Unless you want to, or unless you want to write a high-performance library, I wouldn't expect wasm to really change the way most JS programmers operate. It's abut augmenting JS, not replacing it.
> if I want to animate a div to fly across the page, am I going to have to write lots of low level code to do that?
That depends entirely on the library!
> I'd love it if somebody would point me at some resources that I could burn a weekend on
They're sorta scattered all over the place right now. Such is life for early adopters. More will come as stuff matures. Don't under-estimate how much this will change as the tooling gets built out, for example.
- spicyj 9y ago> Can we re-write parts of libraries like Vue or React in something that compiles to wasm, so that you get better performance as the user? For React, we would love to do this although it's not clear what parts of React would benefit from being moved to wasm right now.
- steveklabnik 9y agoYeah, that's what I've been hearing through the grapevine. We'll see! I'd love to see it.
- spicyj 9y agoCall us up if you have any advice!