www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - What is the most stable D compiler

reply eugene <egordeev18 gmail.com> writes:
What is the most reliable D compiler: dmd, ldc, gdc?
Which can be used in production?
Why there are 3(maybe more) compilers and not just one?
Sep 14 2016
next sibling parent reply rikki cattermole <rikki cattermole.co.nz> writes:
On 14/09/2016 11:34 PM, eugene wrote:
 What is the most reliable D compiler: dmd, ldc, gdc?
 Which can be used in production?
 Why there are 3(maybe more) compilers and not just one?
What exactly do you define as stable?
Sep 14 2016
parent reply eugene <egordeev18 gmail.com> writes:
On Wednesday, 14 September 2016 at 11:35:46 UTC, rikki cattermole 
wrote:
 On 14/09/2016 11:34 PM, eugene wrote:
 What is the most reliable D compiler: dmd, ldc, gdc?
 Which can be used in production?
 Why there are 3(maybe more) compilers and not just one?
What exactly do you define as stable?
i mean without bugs in compiler
Sep 14 2016
parent reply rikki cattermole <rikki cattermole.co.nz> writes:
On 14/09/2016 11:37 PM, eugene wrote:
 On Wednesday, 14 September 2016 at 11:35:46 UTC, rikki cattermole wrote:
 On 14/09/2016 11:34 PM, eugene wrote:
 What is the most reliable D compiler: dmd, ldc, gdc?
 Which can be used in production?
 Why there are 3(maybe more) compilers and not just one?
What exactly do you define as stable?
i mean without bugs in compiler
Okay well all three compilers share a frontend with all new work being done in dmd. GDC is the slowest to update currently so that can be ignored for now. LDC has fairly fast updates in terms of the frontend and can target more platforms. So the question is simply, do you care about performance or platform availability over faster bug fixes and new features? Most people develop using dmd because of the fast turn around times, but utilize ldc IF they need performance in the end program. But in most cases you don't need to worry about performance or platform support so dmd wins out.
Sep 14 2016
next sibling parent eugene <egordeev18 gmail.com> writes:
yes, speed is a second matter, so the first matter is 
reliability, i.e.: the less bugs compiler has, the more it is 
stable, which of them is the most stable one?
Sep 14 2016
prev sibling parent reply Jacob Carlborg <doob me.com> writes:
On 2016-09-14 13:42, rikki cattermole wrote:

 GDC is the slowest to update currently so that can be ignored for now.
 LDC has fairly fast updates in terms of the frontend and can target more
 platforms.
I would say 42 minutes for LDC is good enough :) [1] [1] http://forum.dlang.org/post/b328372d-686e-9931-03ba-c2db13e0b2de yahoo.com -- /Jacob Carlborg
Sep 14 2016
parent reply eugene <egordeev18 gmail.com> writes:
On Thursday, 15 September 2016 at 06:26:40 UTC, Jacob Carlborg 
wrote:
 On 2016-09-14 13:42, rikki cattermole wrote:

 GDC is the slowest to update currently so that can be ignored 
 for now.
 LDC has fairly fast updates in terms of the frontend and can 
 target more
 platforms.
I would say 42 minutes for LDC is good enough :) [1] [1] http://forum.dlang.org/post/b328372d-686e-9931-03ba-c2db13e0b2de yahoo.com
so, ldc is also not stable as dmd?
Sep 15 2016
parent reply Sai <test test.com> writes:
On Thursday, 15 September 2016 at 13:02:29 UTC, eugene wrote:
 On Thursday, 15 September 2016 at 06:26:40 UTC, Jacob Carlborg 
 wrote:
 On 2016-09-14 13:42, rikki cattermole wrote:

 GDC is the slowest to update currently so that can be ignored 
 for now.
 LDC has fairly fast updates in terms of the frontend and can 
 target more
 platforms.
I would say 42 minutes for LDC is good enough :) [1] [1] http://forum.dlang.org/post/b328372d-686e-9931-03ba-c2db13e0b2de yahoo.com
so, ldc is also not stable as dmd?
If stability is more important, I recommend to only update to x.y.2 or higher releases, just don't update to x.y.0 releases.
Sep 15 2016
parent reply eugene <egordeev18 gmail.com> writes:
On Thursday, 15 September 2016 at 13:14:16 UTC, Sai wrote:
 On Thursday, 15 September 2016 at 13:02:29 UTC, eugene wrote:
 On Thursday, 15 September 2016 at 06:26:40 UTC, Jacob Carlborg 
 wrote:
 On 2016-09-14 13:42, rikki cattermole wrote:

 GDC is the slowest to update currently so that can be 
 ignored for now.
 LDC has fairly fast updates in terms of the frontend and can 
 target more
 platforms.
I would say 42 minutes for LDC is good enough :) [1] [1] http://forum.dlang.org/post/b328372d-686e-9931-03ba-c2db13e0b2de yahoo.com
so, ldc is also not stable as dmd?
If stability is more important, I recommend to only update to x.y.2 or higher releases, just don't update to x.y.0 releases.
yes, reliability is more important, could you, please, point out the link where i can read about versions?
Sep 15 2016
parent reply Sai <test test.com> writes:
 If stability is more important, I recommend to only update to 
 x.y.2 or higher releases, just don't update to x.y.0 releases.
yes, reliability is more important, could you, please, point out the link where i can read about versions?
Here is the changelog page: https://dlang.org/changelog/2.071.1.html
Sep 15 2016
parent eugene <egordeev18 gmail.com> writes:
On Friday, 16 September 2016 at 02:39:07 UTC, Sai wrote:
 If stability is more important, I recommend to only update to 
 x.y.2 or higher releases, just don't update to x.y.0 releases.
yes, reliability is more important, could you, please, point out the link where i can read about versions?
Here is the changelog page: https://dlang.org/changelog/2.071.1.html
thank you
Sep 16 2016
prev sibling parent reply Klmp <klmp nowhere.de> writes:
On Wednesday, 14 September 2016 at 11:34:22 UTC, eugene wrote:
 What is the most reliable D compiler: dmd, ldc, gdc?
because it's slightly before DMD the answer is: LDC. GDC is too far behind DMD is at the front LDC has most of the DMD fixes but sometimes without the regressions coming from the front.
Sep 14 2016
next sibling parent reply eugene <egordeev18 gmail.com> writes:
On Wednesday, 14 September 2016 at 11:52:00 UTC, Klmp wrote:
 On Wednesday, 14 September 2016 at 11:34:22 UTC, eugene wrote:
 What is the most reliable D compiler: dmd, ldc, gdc?
because it's slightly before DMD the answer is: LDC. GDC is too far behind DMD is at the front LDC has most of the DMD fixes but sometimes without the regressions coming from the front.
did you use ldc in production? do you use ldc in production?
Sep 14 2016
next sibling parent Johan Engelen <j j.nl> writes:
On Wednesday, 14 September 2016 at 12:13:33 UTC, eugene wrote:
 On Wednesday, 14 September 2016 at 11:52:00 UTC, Klmp wrote:
 On Wednesday, 14 September 2016 at 11:34:22 UTC, eugene wrote:
 What is the most reliable D compiler: dmd, ldc, gdc?
because it's slightly before DMD the answer is: LDC. GDC is too far behind DMD is at the front LDC has most of the DMD fixes but sometimes without the regressions coming from the front.
did you use ldc in production? do you use ldc in production?
LDC (exclusively afaik) is used by Weka.io (http://www.weka.io). Pretty serious "production use". -Johan
Sep 14 2016
prev sibling parent Guillaume Piolat <first.last gmail.com> writes:
On Wednesday, 14 September 2016 at 12:13:33 UTC, eugene wrote:
 On Wednesday, 14 September 2016 at 11:52:00 UTC, Klmp wrote:
 On Wednesday, 14 September 2016 at 11:34:22 UTC, eugene wrote:
 What is the most reliable D compiler: dmd, ldc, gdc?
because it's slightly before DMD the answer is: LDC. GDC is too far behind DMD is at the front LDC has most of the DMD fixes but sometimes without the regressions coming from the front.
did you use ldc in production? do you use ldc in production?
Yes. I only ever send builds made with LDC to customers, both for freelance work and products. Why? I've found that with DMD there is a bigger chance of backend regressions. Using LDC you get to rely on a pretty rock-solid code generator. I do use DMD for all dev builds.
Sep 14 2016
prev sibling parent Klmp <klmp nowhere.de> writes:
On Wednesday, 14 September 2016 at 11:52:00 UTC, Klmp wrote:
 On Wednesday, 14 September 2016 at 11:34:22 UTC, eugene wrote:
 What is the most reliable D compiler: dmd, ldc, gdc?
because it's slightly before DMD the answer is: LDC.
I meant slightly "behind", "before" is not appropriated. i understand the misunderstanding in the following comments. I meant that for LDC being just one step behind is an asset because there's always a risk of regression in DMD.
 GDC is too far behind
 DMD is at the front
 LDC has most of the DMD fixes but sometimes without the 
 regressions coming from the front.
Sep 14 2016