Duetto compiles C++ applications to JavaScript (leaningtech.com)
For the length, I omitted some words. The whole sentence here:
Duetto is a software that compiles C++ applications to binary code and Javascript, allowing you to write high-performance, client-server distributed applications in a single C++ codebase. With Duetto, all your C++ applications can go to the web!
21 comments
[ 4.7 ms ] story [ 58.8 ms ] threadAnd my tech is crazy,
But it's not yet ready,
Come back in 6 months maybe?"
Basically, the idea seems to be to translate more C++ features directly into high-level JavaScript equivalents, rather than into code that primarily operates on byte arrays, as I believe emscripten does.
Great that they want to release it as open source as well, although I'm guessing they're going to be charging for it. And if they aren't, then they really should be.
That is indeed good, but I was worried to see
> Duetto is based on the LLVM stack, and uses patent-pending algorithms to ensure the highest performance.
on their site. Not sure how it could be open sourced if it's patented.
A recent example is the case where Google bought patent license from MPEG-LA for VP8 codec. And then Google sublicensed it, giving a royalty-free patent license for every user of VP8 codec, along with the source code.
emscripten is something on similar lines. If you pass --html to the compiler, it generates and html file which when you browse will run your program.
Further, I have seen that you can pass a JavaScript file to emscripten. I asked on the emscripten irc, if I passed Jquery UI or Dojo toolkit as the JavaScript file to be embedded, could I have a UI Widget System embedded. But one of the logged in persons said, no one had asked about something like this.
or did i missed some-points ?
The Duetto folks mention asm.js in passing on the news page, but don't specifically state that it is their compilation target.
Of course, X86 is "not that bad" according to Linus et. al. But it is awfully full of cruft, and could be a lot better. Yet it's fixed and will probably remain so. I wouldn't be surprised if there are x86 CPUs of some sort in 500 years.
It's the awesome power of installed userbase.
JavaScript is the same. It's not that bad of a language... using node.js converted me from a hater to a mild-disliker. But it's got some really ugly stuff and is missing some very important things.
But it's probably going to become one of the biggest and longest lasting languages due to its massive installed userbase.