6 ms·
Interesting change! Before, people had a choice between the proprietary Digital Mars D (dmd) compiler, or the GCC-based GDC compiler. And apparently, since th
by JoshTriplett 10y ago
Interesting change! Before, people had a choice between the proprietary Digital Mars D (dmd) compiler, or the GCC-based GDC compiler. And apparently, since the last time I looked, also the "LDC" compiler that used the already-open dmd frontend but replaced the proprietary backend with LLVM.
I wonder how releasing the dmd backend as Open Source will change the balance between the various compilers, and what people will favor going forward?
- WalterBright 10y agoEach of dmd/gdc/ldc has their individual strengths and styles. It's an embarrassment of riches.
- JoshTriplett 10y ago> Each of dmd/gdc/ldc has their individual strengths and styles. I'd be really interested to hear a comparison of those from someone experienced with D and its community.
- CyberShadow 10y agoThe download page gives a brief summary: http://dlang.org/download.html http://dlang.org/download.html More information on the wiki (also linked to from the download page): https://wiki.dlang.org/Compilers https://wiki.dlang.org/Compilers
- qznc 10y agoDMD compiles really fast. At the level of Go. As the reference compiler it always has the latest features. LDC compiles to fast code and only slightly lags behind the reference. It might even catch up soon. GDC compiles to fast code and supports many architectures in theory. It lags behind the most and architecture support also requires a ported runtime.
- Ace17 10y agoProfessional D coder here. - DMD is by far the D compiler with the shortest compile time. It's actually so fast that it comes with a utility, 'rdmd', which compiles-then-execute a D program. Say goodbye to shell/perl/python scripts, now you can have compile-time checks without an explicit/slow compilation step. We use it for automation tasks. - GDC is the compiler of choice when it comes to supporting multiple targets and cross-compilation. It closely follows GCC and G++ command line conventions, meaning that using a single properly written Makefile it's easy to target x86/x86_64/arm, GNU/Linux (or Windows, but the mingw support has been in statis for years). Debian comes with pre-compiled arm-targetting GDC compiler. gdb, gcov, and operf work well. The generated code is fast (more than LDC), we use it for heavy computation tasks.
- mamcx 10y agoHow good is D for: -iOS? -Android? -Windows?
- qznc 10y agoiOS: Experimental https://wiki.dlang.org/LDC#iOS_.28iPhone_OS.29 https://wiki.dlang.org/LDC#iOS_.28iPhone_OS.29 Android: Experimental https://wiki.dlang.org/Build_LDC_for_Android https://wiki.dlang.org/Build_LDC_for_Android Windows: Works. Here is the Visual Studio Integration https://github.com/dlang/visuald https://github.com/dlang/visuald
- kaleidic 10y agoIos kind of works but is lacking bitcode on mobile devices. Lacking a bit wrapping of system and gui calls but for android see dlangui and Jni is not so bad. It's very practical to write libraries in D. Possible to write whole apps, but I wouldn't start there for now.
- kaleidic 10y agoOn Windows it's fine, but same library packaging problems as for C++...
- vram22 10y ago>- DMD is by far the D compiler with the shortest compile time. It's actually so fast that it comes with a utility, 'rdmd', which compiles-then-execute a D program. Say goodbye to shell/perl/python scripts, now you can have compile-time checks without an explicit/slow compilation step. We use it for automation tasks. Right. See: http://www.infognition.com/blog/2014/d_as_scripting_language.html http://www.infognition.com/blog/2014/d_as_scripting_language... Also of interest: Why D? http://www.infognition.com/blog/2014/why_d.html http://www.infognition.com/blog/2014/why_d.html Both pages down right now, maybe the site is down, but have read those pages earlier. Google cache or archive.org may also work. Infognition is a software product company (video and related products) that does a good amount of their work in D. No connection them, just saw the site while browsing for D info earlier.
- WalterBright 10y agoMany people have been reluctant to contribute to the backend because of the license, which was very understandable. Now this barrier is obliterated.