digitalmars.D - Best Compiler for Performance
- Kangoroo (5/5) Dec 26 2023 Which is better for performance and stability in the D language,
- Sergey (7/12) Dec 26 2023 For macOS - use LDC (the only nice option for M1 for example)
- H. S. Teoh (6/10) Dec 26 2023 My usual practice is to use DMD for development because of the
Which is better for performance and stability in the D language, GDC or LDC? Which one do you prefer for your projects? I know DMD includes the language's new features early but considering its slower performance, I am thinking of switching to an alternative compiler.
Dec 26 2023
On Tuesday, 26 December 2023 at 08:22:47 UTC, Kangoroo wrote:Which is better for performance and stability in the D language, GDC or LDC? Which one do you prefer for your projects? I know DMD includes the language's new features early but considering its slower performance, I am thinking of switching to an alternative compiler.For macOS - use LDC (the only nice option for M1 for example) For Windows - again LDC (there was a project for GDC on Windows, but it is not in “just works” phase) For Linux - you can try both GDC and LDC. It depends on the type of the code/tools - which will be more convenient, both of them have similar performance.
Dec 26 2023
On Tue, Dec 26, 2023 at 08:22:47AM +0000, Kangoroo via Digitalmars-d wrote:Which is better for performance and stability in the D language, GDC or LDC? Which one do you prefer for your projects? I know DMD includes the language's new features early but considering its slower performance, I am thinking of switching to an alternative compiler.My usual practice is to use DMD for development because of the lightning speed compile times, and LDC for release builds. T -- What's the difference between a 4D tube and an overweight Dutchman? One is a hollow spherinder, and the other is a spherical Hollander.
Dec 26 2023