Help - Search - Members - Calendar
Full Version: WebAssembly becomes a W3C Recommendation
HTMLHelp Forums > General Interest > Off Topic
Christian J
Following HTML, CSS and JavaScript, WebAssembly becomes the fourth language for the Web which allows code to run in the browser:

Recent Study Estimates That 50% of Websites Using WebAssembly Apply It for Malicious Purposes:

I had missed this thread. I, of course, blame the forum since as everyone knows I am impeccable. cool.gif

I looked a little at . Does this thing really run in the browser? unsure.gif
Uh, partly, I guess. This sounds complicated and makes me think of Java applets.

A JavaScript API is provided which allows JavaScript to compile WebAssembly modules, perform limited reflection on compiled modules, store and retrieve compiled modules from offline storage, instantiate compiled modules with JavaScript imports, call the exported functions of instantiated modules, alias the exported memory of instantiated modules, etc.
Christian J
What's not clear to me is if browser users will be able to decompile and inspect the code, or if we're just supposed to accept running unknown programs from web sites?
If they have a decompiler. And if it's possible to download the compiled program (or whatever it is). unsure.gif

Here you have it, WebAssarmbly to C decompiler. So one assumes the compiled things are written in C then. wacko.gif
From the look of it I think you also need Linux or similar.
Christian J
Found this:

Will WebAssembly support View Source on the Web?

Yes! WebAssembly defines a text format to be rendered when developers view the source of a WebAssembly module in any developer tool. Also, a specific goal of the text format is to allow developers to write WebAssembly modules by hand for testing, experimenting, optimizing, learning and teaching purposes.

Of course you need to understand the source you're viewing as well...
Yeah, but that goes for the existing three languages as well. Most people don't.
Christian J
True, but a lot more understand at least a little HTML.

Also it seems WASM is intended for very large script files, making it even harder to decipher even if you know the language. But of course that problem already exists with to today's javascript libraries. Better to block all of it from even downloading.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2021 Invision Power Services, Inc.