D => asm.js for the web?

Brad Anderson eco at gnuk.net
Sat Mar 23 16:20:57 PDT 2013


On Saturday, 23 March 2013 at 02:34:56 UTC, Adam D. Ruppe wrote:
> On Saturday, 23 March 2013 at 02:20:33 UTC, bearophile wrote:
>> I think someone will be happy to use D instead of C/C++ on the 
>> web for performance-sensitive code, like games.
>
> If it compiles to any kind of javascript it is a mistake to 
> think they'll be a performance boost over just writing 
> javascript, with or without annotations. Odds are there will be 
> leaky abstractions in the compile process that can hurt speed.

The DeltaBlue benchmark written in Dart, translated to JS using 
dart2js, and run on V8 actually just started running faster than 
handwritten JS running on V8.

http://www.dartlang.org/performance/#

Of course, the handwritten JS could be optimized to match 
whatever dart2js is doing but it's an interesting result.


More information about the Digitalmars-d mailing list