javascript or typescript
Dukc
ajieskola at gmail.com
Mon Nov 5 11:27:48 UTC 2018
On Monday, 5 November 2018 at 08:49:42 UTC, Laurent Tréguier
wrote:
> On Monday, 5 November 2018 at 02:51:19 UTC, Fred wrote:
>> hi,
>> my javascript skill is bad.
>> but i want to host some nodejs app
>>
>> i am aware that there is converter to js like dtojs. but it is
>> out of date.
>>
>> i'd like to give d a try. is there any other converter
>> available. a decent one.
>
> I haven't personally tried it, but there is an example of
> compiling D to Javascript here :
> https://github.com/Ace17/dscripten
The example I used (thanks to Cosinuns):
https://github.com/cosinus2/dlang-emscripten-demo
I'd try DScripten first, though. Without, I need to compile parts
of Phobos myself to JS. Plus the Emscripten linker seemingly
can't link D symbols because of some bug.
I have to manually call the LLVM linker, which sometimes seems to
have different ideas about what the program is calling.
More information about the Digitalmars-d-learn
mailing list