Why is std.math slower than the C baseline?

Timon Gehr timon.gehr at gmx.ch
Thu Jun 4 14:43:32 UTC 2020


On 04.06.20 16:40, 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.

(Note that this also means if you need portability you have to fork all 
your dependencies that use Phobos math functions.)


More information about the Digitalmars-d mailing list