simd comparison operator?

bearophile bearophileHUGS at lycos.com
Tue Feb 19 08:46:35 PST 2013


John Colvin:

>> I think the right design here is to return a bool[N].
...
> There is significant opposition to any simd operators that 
> allocate. The reasoning is that they appear fast but are in 
> actual fact slow (for most normal size vectors, the allocation 
> would be much slower than the calculation itself).
>
> I love the features of numpy and matlab etc. when it comes to 
> array operations, many of which allocate implicitly, but Walter 
> and others were quite adamant they they do not belong in D, a 
> position I've come to agree with.

Can't D allocate that bool[N] on the stack?

Bye,
bearophile


More information about the Digitalmars-d mailing list