4 ms·
We're quotidian schmucks as well. We've thought about you :) I mostly write C and C++ code, and if someone tries to give me hand-written assembly they better h
by jfbastien 10y ago
We're quotidian schmucks as well. We've thought about you :)
I mostly write C and C++ code, and if someone tries to give me hand-written assembly they better have a good reason (and sometimes they do!). Same goes for wasm: it's meant as a compiler target, not something humans write by hand. That's no different from all the compile-to-JS languages, asm.js, or any assembly.
Sure Joe Schmuck can still get stuck with angry assembly, but we haven't made the world a worst place in that respect.
And I'd argue wasm is making the world better in many other ways. :-)
- fizzbatter 10y agoYea i'm quite lost. It sounds like the complaint is that this person only has a binary.. but that is exactly the same as every other language. If some company works with C# making GUI apps and then leaves on a deal, and the only thing left is a binary of the app.. no source code.. no sane person is going to touch that. Same thing for WASM. Though, there is a text spec, but ignoring that of course. Even for an "open web", if the OP's argument is that many individuals are leaving without source code, and all he/she is left with is to copy the minified javascript from the page and abstract meaning from that non-commented non-formatted and non-named code.. holy hell, i would not want to have OPs job. Especially if that is a common occurrence. Give me the source code. I don't care if it's C or Javascript or HTML. Is this unreasonable?
- douche 10y agoWith C#, as long as you don't go out of your way to run it through an obfuscator, you can generally decompile the bytecode into something that is pretty trivial to understand. I do this all the time with poorly documented Microsoft SDKs.
- azakai 10y agoThe web is different than other platforms, though. It has a culture of people viewing source and tinkering. Minification etc. limit that, but do not eliminate it. And the web is a medium for transmitting and running other people's code on your machine in a safe way, and that includes not just sandboxing but also being able to inspect it. It's important that the wasm text format be as readable as possible, to continue these traditions, even if wasm is a compiler target.
- Narishma 10y agoThe equivalent of WebAssembly isn't minified JS, it's the JS output of compilers like emscripten. Is that really readable by the average JS developer?