dmd makes D appear slow

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Fri May 29 16:14:48 PDT 2015


On Fri, 29 May 2015 11:58:09 -0700, H. S. Teoh via Digitalmars-d wrote:

> On Fri, May 29, 2015 at 06:50:02PM +0000, Dicebot via Digitalmars-d
> wrote:
>> On Friday, 29 May 2015 at 18:38:20 UTC, H. S. Teoh wrote:
>> >This will probably offend some people, but I think LDC/GDC should be
>> >the default download on dlang.org, and dmd should be provided as an
>> >alternative for those who want the latest language version and don't
>> >mind the speed compromise.
>> 
>> I did make LDC default compiler used in Arch but now people are unhappy
>> with increased compile times so I may need to revert it back :)
> 
> Can't please 'em all... According to Walter, many D users want fast
> compile times, and aren't as concerned about performance of the
> generated code. But from this thread's OP, it seems there's another
> group of users who don't care about fast compile times but want the
> generated code to squeeze every last drop of performance from their
> CPUs.
> 
> So I guess we should be equally recommending all 3 compilers, with a
> note to help people choose their compiler depending on their needs.

the thing is that benchmarks are measuring execution time, not compiling 
time. that's why D is failing benchmarks. making LDC or GDC a "reference" 
compiler, and stating that if someone is ready to trade codegen quality 
for compilation speed, he can use DMD instead, is the way to start being 
"benchmark friendly".

people doing benchmarks usually downloading what official site gives 'em. 
so they taking DMD and assuming that it's the best *execution* speed D 
can offer.

i.e. developers can continue using DMD as their base, but offering it as 
"experimental compiler not recommended to use in production" on the 
offsite, replacing "download D compiler" links with LDC/GDC. this way 
people will not get Hot New Features right away, but "D is sloooow" rants 
will go down. ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150529/09f1dc7d/attachment.sig>


More information about the Digitalmars-d mailing list