Thread overview
compile D to asm.js using ldc --betterC and emcc
Oct 07
cosinus
Oct 07
Suliman
Oct 07
cosinus
Oct 08
Dukc
October 07
I wrote a little working demo that shows how to use D inside firefox.

It uses emscripten(emcc) and ldc.

https://github.com/cosinus2/dlang-emscripten-demo


October 07
On Saturday, 7 October 2017 at 17:31:37 UTC, cosinus wrote:
> I wrote a little working demo that shows how to use D inside firefox.
>
> It uses emscripten(emcc) and ldc.
>
> https://github.com/cosinus2/dlang-emscripten-demo

could you make it online?
October 07
On Saturday, 7 October 2017 at 18:27:53 UTC, Suliman wrote:
> could you make it online?

you mean build everything and commit?

I've just added the binaries, I can't add the whole chain, its to big.
October 08
On Saturday, 7 October 2017 at 17:31:37 UTC, cosinus wrote:
> I wrote a little working demo that shows how to use D inside firefox.
>
> It uses emscripten(emcc) and ldc.
>
> https://github.com/cosinus2/dlang-emscripten-demo

Judging by looking at that build script, sure that's simpler than what I read you had to do some time back! You had to switch to some legacy llvm and compile the indermediate first to C and only then to Asm.js.

This looks like powerful enough for normal use. You still miss DRuntime but a lot better than using C to do the same. Perhaps even better than Typescript in some cases?