DEV Community

Discussion on: Is it just me or are we in a low-hype phase?

 
puritanic profile image
Darkø Tasevski

That's right, once again 😄Web is evolving rapidly, and while my comment might seem grim and in disfavor of WASM, I really hope that it can evolve into something like Js today but without its bad parts. Sharing, collaboration, and open source are the keys for the better future, and I wouldn't want to see web locked down and obfuscated.

Also, that's really cool app :D Tnx for share!

Thread Thread
 
rhymes profile image
rhymes

@puritanic

This is right, WASM is far, far from being production ready, as it's a really unsafe option that will be a step back from the current web

I agree is far from being ready. I don't think it's inherently unsafe, it's boxed in the same box JS is. Regarding the step back or forward it really, really depends on what developers do and what becomes popular in the next few years. If all devs do with WebAssembly is "I can't wait to recompile my desktop app, ship it in the browser, call it quits and who cares about the web" yeah, we'll have a problem. But if it's used as a performance enhancer and used in conjunction with JS, why not?

Good luck debugging this, and more importantly, good luck trying to figure what is this code meant to do on the client side. This code is much much harder to analyze than JavaScript because Wasm is a binary format whereas JavaScript is clear text.

WebAssembly has a text format though, not as readable as a normal programming language but I'm quite sure "view source" tools that make our lives easier will appear. I think it's too early to decide if WebAssembly will doom us all or not.

I guess that whole situation will improve with time, but, sadly, we're not there yet.

That's why we're saying it will take some time to become mainstream :)

@kenbellows

I don't necessarily trust that it will remain true, especially given how loud the cry was from the "JS sucks" community that WASM will finally let us write for the web in "real languages" etc etc.

This is a real thing, but I also don't think that developers will start throwing all the web principles out of the windows just because they can finally code a textarea using Go. That's bonkers in my opinion. Also: WebAssembly still needs to talk to JS and has only a few types, I reckon that writing an entire app might even be counter productive :D

Not ready to disable WASM just yet, though; squoosh.app is just too good 😁

Squoosh is a perfect example of why one would use WebAssembly for the transformation functions to alter images and JS for the rest of the app

We'll see! :)

Thread Thread
 
kenbellows profile image
Ken Bellows

For more background on squoosh and the tech that went into it, in case you're interested: youtu.be/ipNW6lJHVEs

It was built by a Google team including some of the more public faces, like Mariko Kosaka and Jake Archibald, who present the talk at that link. It's a pretty neat discussion of PWAs, WASM, and applying them practically on the web now

Thread Thread
 
rhymes profile image
rhymes

thanks!

 
kenbellows profile image
Ken Bellows

WebAssembly has a text format though...

I was going to comment this myself, though I wasn't sure how usable the WASM text version is; I haven't read much about it. x86 has a text version as well, but it's horrible, haha. From the samples I have read it does seem like WASM's text version is much, much more readable and usable than traditional textified ASM.

I don't think developers will start throwing all the web principles out of the windows just because they can finally code a textarea using Go.

I doubt that too, I think what I'm more nervous about is an influx of Go (or other language) developers who start saying, as you said, "I can't wait to recompile my desktop app, ship it in the browser, call it quits and who cares about the web".

Just to say it again, I'm not super pessimistic about any of this, I think our community is far more resistant to negative change than that. We're a very self-critical community that is willing to reconsider best practices over time, despite what some may say. And because of that, I think it's worth talking about the things that we need to avoid, so as to "immunize" ourselves against possible future bad practices.

I really appreciate the input from everyone in this thread; I've learned a lot, and I have a lot to think about 🙂