Is it feasible to slowly rewrite a C++ codebase in D?

Dukc ajieskola at gmail.com
Wed Jul 11 20:38:13 UTC 2018


On Wednesday, 11 July 2018 at 19:41:37 UTC, Jordi Gutiérrez 
Hermoso wrote:
> Just getting it into -betterC territory seems like a very 
> daunting task.

You do not need -betterC anymore. At least the LDC frontend will 
only add linking hooks for what you use, -betterC or no. No need 
build a stub runtime anymore or give a switch to the compiler to 
not use the default one.

I know because I compile to JavaScript: first to LLVM bitcode, 
then manual link (with llvm-link), then to JavaScript using 
Emscripten. I only have to compile those parts of DRuntime and 
Phobos I use. Its unlikely I could even have a stub runtime to 
work, so this is the only reason I can use D in my web page to 
any real degree.


More information about the Digitalmars-d-learn mailing list