News for hackers. Stuff that matters.
Re:What is WebAssembly? (2015) by _alexander_ on Monday January 11, 2016 @02:26AM (#10879354)
I read this article several times, however I still have't understood how JS and WASM will be live together?

If I can use C/C++ with static typing(of course if I can do DOM manipulation from my C/C++ program) why I should use JS?

Re:What is WebAssembly? (2015) by spicyj on Monday January 11, 2016 @02:31AM (#10879375)
Why would you ever use any language over C/C++? Different abstraction levels, type systems (or lack thereof), ecosystems of libraries, even syntaxes all contribute to a decision in choosing a language.

You might not like JS personally but there are plenty of things to like about it and many other people do.

In practical terms, browsers will support JS forever for backwards compatibility even if all new code is written in WASM.

Re:What is WebAssembly? (2015) by _alexander_ on Monday January 11, 2016 @03:29AM (#10879578)
Personally I really like JavaScript and I use it many years.
Re:What is WebAssembly? (2015) by koder2016 on Monday January 11, 2016 @04:30AM (#10879787)
What happens when a monopoly is broken? A healthy competition ensues. The "misunderstood" language will still be used by devoted fans, the rest of developers will be able to have their pick as it should have been to begin with.
Re:What is WebAssembly? (2015) by ethbro on Monday January 11, 2016 @01:25PM (#10882122)
There was an article on the history of Internet standards that I really liked that noted the most effective and adaptable standards had all essentially been API-like rigidly-defined-but-simple boundaries.

The relationship between WASM and JS seems to be "js/js virtual machines are a de facto standard, so let's not repeat the mistakes of Java plugins and instead build off that foot-in-the-door."

Re:What is WebAssembly? (2015) by kevingadd on Monday January 11, 2016 @08:25AM (#10880605)
C/C++ doesn't have any sensible way to interact with the DOM and the JS GC heap directly, so that's one reason you'll want javascript code to stick around. Your website/application will probably need access to some JS libraries for things like analytics, as well.
Re:What is WebAssembly? (2015) by robmcm on Monday January 11, 2016 @09:48AM (#10881005)
You could mix and match modules and library perhaps.

You could make the same argument about any higher level language, even those with as many quirks as JS, like PHP ;)

Re:What is WebAssembly? (2015) by nv-vn on Monday January 11, 2016 @08:24AM (#10880602)
Because using C or C++ for a website frontend would make your code 10x longer and more likely to have bugs.
Re:What is WebAssembly? (2015) by JupiterMoon on Monday January 11, 2016 @08:46AM (#10880701)
Is this assertion actually based on any data?