Live data from Hacker News

WebAssembly: a binary format for the web

2ality.com

161–164 of 164 posts

Re: WebAssembly: a binary format for the web

#161
Hi i have also found one good example here ... http://androidexample.com/Global_Variable_Or_Application_Con... _Variable_-_Android_Example /index.php?view=article_discription&aid=114&aaid=136">http://androidexample.com /Global_Variable_Or _Application_Context_Variable_-_Android_Example/ index.php?view=article_discription&aid=114&aaid=136

Re: WebAssembly: a binary format for the web

#162

As far as the intersection of (innovation in web technology) and (innovation in programming languages) is concerned, I think the focus on performance is like going backwards in time, perhaps to the mid 90s. I feel like these innovations are being turned into a kind of "social media spectacle" with relatively little discussion of what innovation really means in this context. For example: I don't understand why Python,…

> For example: I don't understand why Python, JavaScript, Java, Ruby, and so on have not delivered tools that ease the path for those who wish to write applications designed to run code from untrusted sources. Probably because it is stupidly difficult to do robustly, especially when the language and standard libraries weren't originally designed to do that. Lua is perhaps best positioned for this given how tightly yo…

Difficult, yes. There was an attempt by Google at a capability-secure JavaScript called Caja " rel="nofollow">http://www.links.org/?p=271>. I think it failed mainly because taming the standard library and DOM was too hard - there were too many leaks of ambient authority.

Re: WebAssembly: a binary format for the web

#163
post #113

Earlier quoted context omitted.

I think it will be much worse. Minified Javascript is pretty easy to turn back into something moderately understandable just by "prettifying" it. I do this all the time. It works pretty well because it started as Javascript, so turning it back into Javascript has a relatively clean mapping. WebAssembly will have started as some other language or even as no language at all - there may be no mapping back to anything Ja…

its built into the spec of WASM for it to be able to be "prettified" as well. I imagine it'd do about as good of a job as current prettifying of minified JS. "The WebAssembly text format, which is designed to be read and written when using tools (e.g., assemblers, debuggers, profilers), is specified as a textual projection of a module's AST." This is apart of the MVP even. I think the authors of WASM actually agree w…

> I think the authors of WASM actually agree with your opinions here and are working to a system that satisfies that concern

That's very reassuring - I hope it works out that way.

Re: WebAssembly: a binary format for the web

#164
post #97

As laudable as the goal of improving performance is, I hope this never takes off. Why? Because it will take about 5 minutes from 90% of the web to go from open, transparent, easily reverse engineerable source code to essentially giant blobs of secret binary code. People will pay lip service to performance but 99% of the reason that web sites will implement this will be to cover up their code, keep secret their implem…

We will instantly have tools to decompile this stuff so it will look just as good if not even better than what you get when formatting minified javascript today.

In fact pick any language today that compiles output and you will find decompiling tools made for it, including the original compiled web stuff like Flash and Silverlight.

I'd much rather the web get faster for everyone than save a few people some time when deconstructing.

Post reply on HN