adamdruppe/dtojs

difference with https://github.com/adamdruppe/dmd/tree/dtojs ?

Opened this issue · 4 comments

which is the most up to date version? this repo or https://github.com/adamdruppe/dmd/tree/dtojs ?
Also I can't build the latter one either (posting here since there's no issue section in the latter):

microd.c:4:10: fatal error: 'microd.h' file not found

include "microd.h"

indeed, it's not there

On Sat, Feb 01, 2014 at 04:23:47PM -0800, Timothee Cour wrote:

which is the most up to date version? this repo or https://github.com/adamdruppe/dmd/tree/dtojs ?
Also I can't build the latter one either (posting here since there's no issue section in the latter).

The dmd one is probably closer to working but neither of them really work.

I got this working for a while but found it pretty useless in practice (I
don't write much javascript so it was easier to just write it normally) and the
code got too convoluted to keep working on so i pretty much gave up on it.

The browser interfaces in the tests here could still be very practical to use in an extern (C) because (I didn't test) you should be able to use LDC to compile to LLVM bytecode which would, in turn, be compiled to (very fast) javascript asm.js using EMScripten https://github.com/kripken/emscripten/wiki/Interacting-with-code

r4j4h commented

Just to update etcimon's link to http://kripken.github.io/emscripten-site/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html as the old one is deprecated and may be removed at any time.

note btw that I have abandoned this project. dmd's code has changed enormously too, so if we wanted to do it again, it would be entirely different (actually probably entirely easier but still, not something I care about doing any more...)