Why is std.math slower than the C baseline?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Jun 5 19:40:03 UTC 2020


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.


More information about the Digitalmars-d mailing list