3 ms·
Picking a compiler backend is confusing as a new user. I remembering having questions like: is dmd going to produce a slower binary? Are gdc and ldc up to date
by vips7L 6y ago
Picking a compiler backend is confusing as a new user. I remembering having questions like: is dmd going to produce a slower binary? Are gdc and ldc up to date with dmd?
- mhh__ 6y agoIs it confusing? Presumably most C++ programmers have an intuition at very least between gcc and clang? Given my role at the foundation I need more data on this so I'm not being facetious
- vips7L 6y agoMaybe I'm the wrong target audience then. I'm a Java developer and I only dabble in writing some C with GCC or MSVC depending on my OS. The compiler page has a lot more details than I remember [0]. It says: For beginners you should use dmd, but the next sentence says that LDC/GDC produce substantially faster binaries. So why would I ever choose dmd? What are the trade offs? Compile time? What is substantial? And then when you scroll down it doesn't say what version of the D language spec is supported by each compiler, imagine getting started with LDC and then it only supports D 2.02, when dmd is up to D 2.12 or something. I guess for me there were a lot of questions to getting started. [0] https://wiki.dlang.org/Compilers https://wiki.dlang.org/Compilers