Why is std.math slower than the C baseline?

Timon Gehr timon.gehr at gmx.ch
Sat Jun 6 01:10:59 UTC 2020


On 05.06.20 21:40, Andrei Alexandrescu wrote:
> On 6/4/20 10:40 AM, Timon Gehr wrote:
>> On 04.06.20 16:14, Andrei Alexandrescu wrote:
>>> D should just use the C functions when they offer better speed.
>>>
>>> https://www.reddit.com/r/programming/comments/gvuy59/a_look_at_chapel_d_and_julia_using_kernel_matrix/fsr4w5o/ 
>>>
>>
>> In one of my projects I had to manually re-implement all functions 
>> that currently forward to libc, because libc is not portable.
> 
> It's totally fine to version() things appropriately. In fact it's the 
> best way - you get to version() in specific libc implementations known 
> to be adequate.

I think the issue was that different implementations were inadequate in 
different ways.


More information about the Digitalmars-d mailing list