Generating Javascript or asm.js from LDC?
Laeeth Isharc via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Sat Sep 5 06:23:23 PDT 2015
On Saturday, 5 September 2015 at 01:32:43 UTC, Adam D. Ruppe
wrote:
> On Friday, 4 September 2015 at 18:47:06 UTC, Laeeth Isharc
> wrote:
>> Is this by any chance possible?
>
> I'm not entirely sure myself, but my theory is if you can feed
> the llvm code out of ldc and into the emscripten backend... the
> basics should just work, D can pretend to be C, and we build up
> from there. Indeed, the whole D runtime might even build - if
> we're really lucky - since some Linux functions are apparently
> supported by emscripten.
>
> But I haven't actually tried doing it.
http://wiki.dlang.org/GSOC_2013_Ideas
Develop a simple way to compile D for the browser with Emscripten
to "asm.js" (***this is a very small project***);
More information about the digitalmars-d-ldc
mailing list