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:
https://www.w3.org/2019/12/pressrelease-wasm-rec.html.en

Recent Study Estimates That 50% of Websites Using WebAssembly Apply It for Malicious Purposes:
https://www.infoq.com/news/2019/10/WebAssem...alicious-usage/




pandy
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 https://webassembly.org/ . Does this thing really run in the browser? unsure.gif
pandy
Uh, partly, I guess. This sounds complicated and makes me think of Java applets.

CODE
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.

https://webassembly.org/docs/web/
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?
pandy
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
https://github.com/wwwg/wasmdec
From the look of it I think you also need Linux or similar.
Christian J
Found this:

QUOTE
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.
https://webassembly.org/docs/faq/

Of course you need to understand the source you're viewing as well...
pandy
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.