News for hackers. Stuff that matters.
Re:WebAssembly Specification Prototype by kevinwang on Wednesday July 13, 2016 @05:33PM (#12089832)
Would this be any different than debugging code currently written in a language that compiles to asm? For example, people debug C code, compiled to asm, on their computers. Would it be different to debug C code, compiled to webassembly, in a browser?

Although I can't disagree that debugging js directly in browser tools is a nice experience.

[dead]
Re:WebAssembly Specification Prototype by sctb on Thursday July 14, 2016 @04:06PM (#12096798)
> Rockstartup Cowboys on HN

This isn't conducive to a civil discussion on the subject. Please don't.

Re:WebAssembly Specification Prototype by jfbastien on Wednesday July 13, 2016 @05:50PM (#12089948)
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. :-)

Re:WebAssembly Specification Prototype by fizzbatter on Wednesday July 13, 2016 @08:36PM (#12090902)
Yea 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?

Re:WebAssembly Specification Prototype by douche on Wednesday July 13, 2016 @09:19PM (#12091073)
With 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.
Re:WebAssembly Specification Prototype by azakai on Thursday July 14, 2016 @12:18AM (#12091598)
The 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.

Re:WebAssembly Specification Prototype by Narishma on Thursday July 14, 2016 @01:04AM (#12091738)
The 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?
Re:WebAssembly Specification Prototype by azakai on Thursday July 14, 2016 @10:34AM (#12094128)
Perhaps less, but I would argue that WebAssembly should aim to be no less readable than that.
Re:WebAssembly Specification Prototype by jfbastien on Thursday July 14, 2016 @01:46PM (#12095868)
I don't think you know much about emscripten. /trololol
Re:WebAssembly Specification Prototype by corysama on Wednesday July 13, 2016 @05:50PM (#12089947)
I'm having a hard time following your example. Relating it back to traditional web dev, it sounds like you've experienced developers leaving your team, taking the original JS/Coffeescript/whatever source with them and leaving you with the Closure Compiler minified JS to move forward with the project. Is that something that actually happens? That sounds like grounds for an IP lawsuit. Because that's equivalent to what you are describing in your WASM hangover example.
[dead]
Re:WebAssembly Specification Prototype by coldtea on Thursday July 14, 2016 @05:33AM (#12092582)
Yeah, and sometimes a dog eats your homework.

Back on earth though, all those things don't make sense, and are so rare as to be statistically insignificant.

In any case, not a valid argument to make against a new language/delivery format, any more than "what if someone drops it off some building and kills passers by" is an argument against pianos.

>If nothing like that ever happened to you... well I hope it never does, friend.

And if something like that ever happened to you, then maybe consider it an outlier experience, and don't extrapolate on that?

It's like an airplane accident survivor going on about how flights should be banned.

Re:WebAssembly Specification Prototype by todd3834 on Wednesday July 13, 2016 @05:49PM (#12089945)
In this scenario you are going to have to maintain the binary code without having the original source code that generated it? My understanding is that you would maintain the cleaner non binary version, am I understanding this wrong?
Re:WebAssembly Specification Prototype by coldtea on Thursday July 14, 2016 @05:30AM (#12092573)
>Pretend the relationship with the initial developers went sour (as is often the case)... and you're left with this steaming pile of binary WASM

Yeah, hardly a real world use case.

And if a company ever has it, this would point that they have far bigger problems than being left without the source code for their service...

Re:WebAssembly Specification Prototype by mozumder on Wednesday July 13, 2016 @08:11PM (#12090795)
Wut?

Why would you not have the source code to your site that you're debugging?