Live data from Hacker News

Duetto: a C++ compiler for the Web going beyond Emscripten and Node.js

allievi.sssup.it

1–10 of 63 posts

Re: Duetto: a C++ compiler for the Web going beyond Emscripten and Node.js

#4
post #2

Are 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

#5

I'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

#6

I'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++.

Maybe you have a project that you want to target both native platforms and the web. This becomes an option to let you do so with C++, in addition to being able to do so with Javascript. Maybe you don't like C++ personally, but more options is rarely a bad thing.

Re: Duetto: a C++ compiler for the Web going beyond Emscripten and Node.js

#7
post #2

Are 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

Hi Stefano,

there are four important things required for this to work out:

- List of benefits of your solutions compared to other C++ → JS compilers (emscripten)

- Great documentation and good community support (forum, wiki, dynamic list of projects using Duetto)

- Very good debugging capabilities in the produced JS (Developers need to work with the code, an invisible layer sometimes means a lot of trouble)

- Big tech partners who will do complex projects with Duetto to iron-out the compiler and show "real work" can be done with it

rgds, Kira

Re: Duetto: a C++ compiler for the Web going beyond Emscripten and Node.js

#8
post #5

I'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 :-)

I've been away from it for a few years and just recently picked up a new project in C++11. I'm loving the improvements.

Re: Duetto: a C++ compiler for the Web going beyond Emscripten and Node.js

#9
post #2

Are 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

FYI: http://leaningtech.com/duetto/examples/ is broken on OSX in Chrome and FF for me, it looks like a mobile page is served which makes the code examples unreadable. It looks good in Chrome on Windows7, but also broken in FF on Windows7. Haven't test other platforms.

Wow: and a minute after I typed this, my Windows machine gave me a blue screen, not sure if it's related but it's the first in years ;)

Re: Duetto: a C++ compiler for the Web going beyond Emscripten and Node.js

#10
post #5

I'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 :-)

Have you tried Rust? It's not an entirely stable language yet, but I've been absolutely loving it thus far in my few months of close involvement. C++11 and C++14 are vast improvements, but I reckon Rust is still considerably better than them.

As far as Rust for the web is concerned, I've got pretty big ideas which Rust is instrumental in (I've been primarily a Python programmer hitherto, FYI), and so I'm working on the lowest layer at present, in rust-http (https://githib.com/chris-morgan/rust-http). By the time it's entirely ready for production use, I expect someone to have got Rust working with Emscripten too, and then we'll be ready to do even better than Duetto.

Post reply on HN