Required DMD changes for Mir and few thoughts about D future

Guillaume Piolat via Digitalmars-d digitalmars-d at puremagic.com
Tue Sep 27 05:37:39 PDT 2016


On Tuesday, 27 September 2016 at 10:48:40 UTC, Ilya Yaroshenko 
wrote:
> On Tuesday, 27 September 2016 at 10:44:28 UTC, Guillaume Piolat 
> wrote:
>> On Tuesday, 27 September 2016 at 01:17:16 UTC, Andrei 
>> Alexandrescu wrote:
>>> I'm not going to argue this much further. Essentially Mir is 
>>> touted as a highly generic and portable library. Having it 
>>> only work on one language implementation works against that 
>>> statement, the credibility of Mir, and the credibility of D 
>>> as an universal platform for creating fast code.
>>
>> Isn't it just a matter of adding "version(LDC)" around the 
>> more optimized blocks?
>> Having it work in DMD, however slower, is good enough.
>
> 50 times slower for modern CPUs.

version (DMD)
{
     pragma(message, "It seems you are building with DMD instead 
of LDC. Be aware that some functions will go up to 50x slower");
}

=> no misrepresentation of Mir performance
=> the user testing Mir keeps testing instead of having it not 
working


More information about the Digitalmars-d mailing list