Remember when you could hit "View Source" to see how the web was built? I don't like where this is going. Minification was bad enough, now we're going to be getting more non-free blobs shoved into our browsers and this is being touted as a great new feature for us. It will end up being a tool of control and surveillance like always. This guy says it a bit more eloquently than I can: https://lobste.rs/s/wjtu7c/webasse…
https://github.com/WebAssembly/design/blob/master/FAQ.md#wil... The text form of Wasm looks like it's going to be far easier to read than minified JS.
WebAssembly 101: A developer’s first steps
51–60 of 153 posts
Re: WebAssembly 101: A developer’s first steps
#52It looks like the spec is here: https://webassembly.github.io/spec/introduction/index.html I feel like writing a mini-compiler after glancing through it. It looks closer to a binary AST than an instruction set, though.
I'm already looking forward the day that 32-bit pointers won't be enough for web applications.
Re: WebAssembly 101: A developer’s first steps
#53Remember when you could hit "View Source" to see how the web was built? I don't like where this is going. Minification was bad enough, now we're going to be getting more non-free blobs shoved into our browsers and this is being touted as a great new feature for us. It will end up being a tool of control and surveillance like always. This guy says it a bit more eloquently than I can: https://lobste.rs/s/wjtu7c/webasse…
What I don't understand about this viewpoint is, don't all of these caveats also apply to native apps?
By contrast, if in common usage people are only running software compiled to Web Assembly, then:
1. You probably have some work to do to figure out the licensing of the code running in your browser.
2. The ability to look at the program logic for study or reuse is diminished in practice as compared to the early web when you could view source.
Re: WebAssembly 101: A developer’s first steps
#54Remember when you could hit "View Source" to see how the web was built? I don't like where this is going. Minification was bad enough, now we're going to be getting more non-free blobs shoved into our browsers and this is being touted as a great new feature for us. It will end up being a tool of control and surveillance like always. This guy says it a bit more eloquently than I can: https://lobste.rs/s/wjtu7c/webasse…
This was discussed literally the day wasm was announced, and Brendan Eich weighed in too: https://news.ycombinator.com/item?id=9734947
However I find unsetting how Eich ends up defending WASM by hoping it's not too successful (used only in some hot pathes, not full blob apps.) That's frankly quite ridiculous: I predict a full apps adoption pretty soon. Just wait for more mainstream languages to support it.
The open web in the sense the OP meant has been dead for a while, WASM is just another tombstone.
Re: WebAssembly 101: A developer’s first steps
#55I was disappointed that this doesn't really explain what webassembly is, and the link that says 'if you don't know what webassembly is, click here' just redirects to a tank game with no explanation. I thought maybe it was some way to write x86 assembly in the browser, but apparently it's a tank game.
For me, the most helpful comment in that discussion was a link to this paper, written by the WebAssembly designers.
https://github.com/WebAssembly/spec/blob/master/papers/pldi2...
Re: WebAssembly 101: A developer’s first steps
#56Earlier quoted context omitted.
This was discussed literally the day wasm was announced, and Brendan Eich weighed in too: https://news.ycombinator.com/item?id=9734947
Thank you for the link, you too had a very nice discussion. However I find unsetting how Eich ends up defending WASM by hoping it's not too successful (used only in some hot pathes, not full blob apps.) That's frankly quite ridiculous: I predict a full apps adoption pretty soon. Just wait for more mainstream languages to support it. The open web in the sense the OP meant has been dead for a while, WASM is just anothe…
WASM is not a replacement for javascript, and it's not trying to be. You won't be writing entire applications in whatever you compile to WASM, it's not how it's designed, it's not how it's meant to run, and it's worse in most ways than just compiling your favorite language to javascript (which has been possible for a long time now, but nobody uses it because it's such a leaky abstraction).
The open web is flourishing more than ever, and WASM is keeping that alive with it's "text" mode.
Re: WebAssembly 101: A developer’s first steps
#57Earlier quoted context omitted.
> Emscripten is quite mature and compiles even very complex C/C++ code without complaining. Because it's just Clang with WASM target.
I think it's a bit more than that given that the project has amassed more than 16.000 commits so far. You must not forget that JS does not provide support for many of the things that are required to run a C program (e.g. printing), so emscripten needs to take care of providing alternative implementations for all these things.
Re: WebAssembly 101: A developer’s first steps
#58Earlier quoted context omitted.
What I don't understand about this viewpoint is, don't all of these caveats also apply to native apps?
Political views aside, I think I understand a key difference in that, presuming one wants to run Free (Libre) software, it's relatively easy to do if you are running one of the FSF recommended Linux distributions. By contrast, if in common usage people are only running software compiled to Web Assembly, then: 1. You probably have some work to do to figure out the licensing of the code running in your browser. 2. The…
2. might be more possible with WASM than it is with minified JS since WASM has a text mode which is very readable.
Re: WebAssembly 101: A developer’s first steps
#59Webassembly/Webgl standardization enables the creation high performance replacements for HTML/CSS/dom.
We might end up with applications that are still mostly written in javascript but that call into new webassembly/webgl ui frameworks for rendering instead of into the html/css/dom layer.
Re: WebAssembly 101: A developer’s first steps
#60I hope they add support for garbage collected languages soon. I don't feel like going back to work with malloc and free after 20 years.
This brings up a question I've been meaning to ask when the topic came up, because I know almost nothing about GC. How does nim (a GC'd language) compile to a non-GC'd language? And since this is a thing that's possible (unless I'm misunderstanding, which is likely), why does WASM need to add support for GC (http://webassembly.org/docs/gc/#native-gc)?