On 16 March 2012 01:32, Robert Jacques
<sandford@jhu.edu> wrote:
[snip]
This sounds reasonable. However, please realize that if you wish to use
the short vector names (i.e. float4, float3, float2, etc) you should
support the full set with a decent range of operations and methods. Several
people (myself included) have written similar short vector libraries; I
think having having short vectors in phobos is important, but having one
library provide float4 and another float2 is less than ideal, even if not
all of the types could leverage the SMID backend. For myself, the killer
feature for such a library would be have the CUDA compatible alignments for
the types. (or an equivalent enum to the effect)
I can see how you come to that conclusion, but I generally feel that that's
a problem for a higher layer of library.
Then you should to leave namespace room for that higher level library.
I haven't stolen any names that aren't already taken by core.simd. I just want to claim those primitive types already aliased in std.simd to enhance them with some more useful base-level functionality.