D to ASM.js vs D to Dart (VM)

Etienne via Digitalmars-d digitalmars-d at puremagic.com
Thu May 15 14:05:11 PDT 2014


On 2014-05-15 4:58 PM, "Ola Fosheim Grøstad" 
<ola.fosheim.grostad+dlang at gmail.com>" wrote:
>
> That sounds like a bad idea. No sane person would write Dart code in D.
> The main benfit would be in sharing datastructures/RPC-like functionality.

The Phobos and druntime would most likely be type-resolved and inlined 
when converted to Dart code. It's mostly to stay in D. This compiler 
wouldn't really generate Dart code for... you know.. being "used". It 
would mostly allow to use the power of 
templates/alias/ctfe/contracts/auto/etc for browser-executed code (going 
through Dart is a side-effect)


More information about the Digitalmars-d mailing list