Why is std.math slower than the C baseline?

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


On 6/4/20 10:43 AM, Timon Gehr wrote:
> 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.)

I think it means make Phobos be portable transparently.


More information about the Digitalmars-d mailing list