Earlier quoted context omitted.
We will publish extensive tutorials soon, for now you can find some examples on http://leaningtech.com/duetto/examples/ In addition, the full source code of Nontetris ( http://allievi.sssup.it/jacopone/cnontetris/ ) will be published in a couple of days, with a 'guide' on porting a C++ game to Javascript with duetto. Stefano of Leaningtech
For games I think you need to show that duetto is just as fast as emscripten when running. emscripten-generated code is very light on the garbage collector (inside emscripten generated code no garbage is produced at all, only in some wrapper code which needs to talk to JS libs), and having the "heap" in a plain typed array usually also gives a performance advantage, since as in C++ you have exact control of the memor…
Duetto: a C++ compiler for the Web going beyond Emscripten and Node.js
21–30 of 63 posts
Re: Duetto: a C++ compiler for the Web going beyond Emscripten and Node.js
#22Earlier quoted context omitted.
I really love C++ and I bet with the currently developing standard (C++11, C++14) more people will start loving C++ again :-)
"I bet with the currently developing standard (C++11, C++14) more people will start loving C++ again" I doubt it. C++11 takes C++ even further from where it needs to be. Every high-level feature is bogged down by low-level annoyances. Do you capture variables by value or by reference? Do you need a weak pointer to break this cycle, or can you use a weak pointer somewhere else (or maybe just not both with smart pointe…
Re: Duetto: a C++ compiler for the Web going beyond Emscripten and Node.js
#23It's a slow morning, so this was good for a chuckle: " Bring the robustness and proven scalability of C++ programming to the Web " Ha. Ha ha. Ha ha ha.
Re: Duetto: a C++ compiler for the Web going beyond Emscripten and Node.js
#24Earlier quoted context omitted.
Our memory management approach is still not tuned and optimized. There are quite a few low hanging fruits that should provide great improvements, but we have not yet implemented them - Alessandro of Leaningtech
Would you mind if I suggested that arbitrarily using a couple of gigabytes of memory like that was a fairly severe problem? :-) Seriously, I would like to see a warning put on links to that example to the effect that at present it will make your browser use up to 2½ GB more RAM and will thrash your memory. Because it did render my browser (and to a lesser degree my system) unresponsive for a couple of minutes while t…
Re: Duetto: a C++ compiler for the Web going beyond Emscripten and Node.js
#25Earlier quoted context omitted.
I really love C++ and I bet with the currently developing standard (C++11, C++14) more people will start loving C++ again :-)
"I bet with the currently developing standard (C++11, C++14) more people will start loving C++ again" I doubt it. C++11 takes C++ even further from where it needs to be. Every high-level feature is bogged down by low-level annoyances. Do you capture variables by value or by reference? Do you need a weak pointer to break this cycle, or can you use a weak pointer somewhere else (or maybe just not both with smart pointe…
All C++ programmers who I have talked to welcome most things in C++11. It simplifies their C++-code in many ways. As an example: specifying how to capture variables was something they were already dealing with when writing functors manually, now they have a shorthand syntax for it.
As for the reason why non-C++ programmers don't like C++, perhaps you are in a better position to say.
Re: Duetto: a C++ compiler for the Web going beyond Emscripten and Node.js
#26I'm not sure why you would want something like that, unless you really have a lot of existing code C++ business code you want to reuse, or you really love C++.
I really love C++ and I bet with the currently developing standard (C++11, C++14) more people will start loving C++ again :-)
Re: Duetto: a C++ compiler for the Web going beyond Emscripten and Node.js
#27I'm not sure why you would want something like that, unless you really have a lot of existing code C++ business code you want to reuse, or you really love C++.
Re: Duetto: a C++ compiler for the Web going beyond Emscripten and Node.js
#28Are there any tutorials on this so that we can compare it to emscripten?
We will publish extensive tutorials soon, for now you can find some examples on http://leaningtech.com/duetto/examples/ In addition, the full source code of Nontetris ( http://allievi.sssup.it/jacopone/cnontetris/ ) will be published in a couple of days, with a 'guide' on porting a C++ game to Javascript with duetto. Stefano of Leaningtech
Re: Duetto: a C++ compiler for the Web going beyond Emscripten and Node.js
#29I'm not sure why you would want something like that, unless you really have a lot of existing code C++ business code you want to reuse, or you really love C++.
1) There is at least one company located in MN whose website is done in COBOL.
Re: Duetto: a C++ compiler for the Web going beyond Emscripten and Node.js
#30As many have noticed the blog is being seriously crushed by the heavy traffic. We are mirroring the content here: http://leaningtech.com/duetto/blog/2013/10/31/Duetto-Release...
EDIT:
After some consideration, I've removed my post. Though the irony is great, the fact is that this is a cool use of LLVM and a pretty interesting thought-experiment made live. I know I wouldn't appreciate the kind of heckling I'd just posted were our roles reversed.
Good work on the technical stuff folks.