WebAssembly: The new platform the scene needs?

category: code [glöplog]
TypeScript is transpiling to JS. You can try TypeScript playground, where you can see how your code is translated directly to JS.

Dart is not just transpiler. It has standalone VM that is interestingly, not even part of Chrome. They support transpiler option for cross-browser compatibility.

In general, every "complete" programming language can be translated to every other automatically. Although, usually, at the cost of some performance reduction. That is why, ultimately, so called language frontend is not really a very interesting topic. The hardest part of every compiler is optimizer. But to be fair, recently a lot of research is going on in the field of static/mandatory analysis during compilation, for example thanks to this, Rust offers greater memory management/pointer safety over C++.

For gentle introduction, try this article by Chris Lattner, one of the originators of LLVM project. It explains the concepts of language frontend or intermediate representation (IR). In this sense WebAssembly is yet another IR.

Nothing of this is really new, it just most Web developers are self-taught and never really had proper introduction to language and automata theory, complexity theory etc... Personally, I learned most of this stuff at the University and some of my own hobby VM/compiler/transpiler projects.

I'm also pretty far from a die-hard C++ fanboy, as there is really no reason to be the one. It's just C++ is so far the most reasonable front-end to the most mature compilers/optimizers in the industry. That situation may drastically change over the years (and hopefully will).

For the 3d app: it was fairly successful, but let just say competition was stronger. I don't want to say much, because I am not in the position to promote this product. The rules of big companies are usually straightforward here: only marketing department should promote stuff, otherwise it can only bring confusion to the users (with some exceptions over more technically oriented products).
added on the 2017-03-19 18:01:18 by tomkh tomkh
Hey wow, thanks! You're so helpful! - with links, and shit! Not like other people here....:)

You sound really,... educated - and this "gentle introduction" sounds like exactly what I need - once saw a demoscene seminar on compiler theory - Damned if I can remember a word of it now... :) THANKS! :)

So for C++ - does that mean you now do Javascript too? What do you do now? :)

3D app: But what WAS it? :) It was a 3D app, in JS/WebGL.. but it wasn't a game..sounds extremely interesting...? :)
Hey, let's move this conversation off of Pouet.... got an email? :)

got an email? :)

I don't want to put you down on anything, you seem like a curious individual. However, I'm relatively busy + afraid of getting extra spam to share my e-mail here. Sorry about that.
added on the 2017-03-20 23:19:14 by tomkh tomkh