On Friday, 4 March 2022 at 15:26:38 UTC, H. S. Teoh wrote:

Both GDC and LDC are good compilers. I wouldn't hesitate to use either if performance is important in what I'm doing.

The only difference is that GDC, being a part of the GCC project, is tied to the GCC release cycle, so it tends to lag behind DMD and LDC in terms of the latest language developments. LDC releases on its own schedule, and as of a year or two ago, has been closely tracking DMD releases, so it is very up-to-date in terms of language development. Being practically on par with DMD means that I can easily switch between DMD and LDC latest releases without having to worry about my code being incompatible with either. (Though generally that doesn't really happen that much, and hardly at all if you aren't always keeping tabs on the latest language developments.)

If your code isn't reliant on the bleeding edge, though, GDC is definitely not inferior to LDC in any way.


T

Thank you! I was wondering, Is staying so much up to date really impossible here? Other than ImportC (which will still be completed at some point), D has already support for 1 million features already so will this be a big problem? I see this becoming a smaller problem with each release.

Reply via email to