SIMD-specialized overloads of Phobos algorithms

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Jul 4 18:43:46 UTC 2019


On 7/1/19 11:52 AM, Per Nordlöw wrote:
> On Sunday, 30 June 2019 at 15:40:07 UTC, Johan Engelen wrote:
>> Indeed:
>> https://wiki.dlang.org/LDC-specific_language_changes#targetCPU
>>
>> -Johan
> 
> Cool.
> 
> Even better,
> 
> https://wiki.dlang.org/LDC-specific_language_changes#targetHasFeature
> 
> is _exactly_ what I want! :)
> 
> Still, the question remains to be answered:
> 
>      Where should these CPU-specialized overloads of Phobos algorithms 
> be placed?

There are several schools of thought. A simple way to ease into it is to 
place specializations with the algorithms. That's transparent to coders 
and backward compatible. The decision to create visible, user-selectable 
versions can be thus postponed.


More information about the Digitalmars-d mailing list