Can someone explain how WebAssembly will work, is it JavaScript compiler

Hi guys,

I’ve read this article: http://techcrunch.com/2015/06/17/google-microsoft-mozilla-and-others-team-up-to-launch-webassembly-a-new-binary-format-for-the-web/

and I don’t quite understand how Javascript will work in WebAssembly. Is it JavaScript compiler. I look at its code on Github page, they are JavaScript.

So how they work? JavaScript compiles JavaScript.

Sorry for stupid question, I’ve to understand this.

Thanks

Hey - questions, stupid or otherwise, are the only effective way to learn. FWIW I don’t think that it’s stupid in this case.

So far as I understand, WebAssembly is a binary format that can be parsed (turned in to executable code) much faster, and has a smaller footprint, than standard text-based file formats.

Pay attention to WebAssembly if you are planning to convert C++ or other languages over to JavaScript. Otherwise, it’s not likely to affect you much at all.

Brendan Eich has further details on this (video and more) at https://brendaneich.com/2015/06/from-asm-js-to-webassembly/

In short the concept of webassembly is to bring

a portable bytecode that will be efficient for browsers to download and load, providing a more efficient target for compilers than plain JavaScript or even asm.js.

http://arstechnica.com/information-technology/2015/06/the-web-is-getting-its-bytecode-webassembly/

Post edited by TechnoBear to format and attribute quoted content

Thank you for your help.

It seems I have to learn C++ in order to take advantage of the new feature.

This article explains it pretty well: https://medium.com/javascript-scene/what-is-webassembly-the-dawn-of-a-new-era-61256ec5a8f6

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.