4 ms·
In C++ I can write a generic vector math routine that operates on any scalar type and still simd specialize it for particular scalar types.
by thwest 12y ago
In C++ I can write a generic vector math routine that operates on any scalar type and still simd specialize it for particular scalar types.
- maaku 12y agoYou can do that in many languages...
- thwest 12y agoStatically typed i.e. without a inner loop dispatch penalty? Which others? I've considered an implementation in Fortran and OCaml as well. OCaml is attractive but doesn't cross compile to ARM officially. With C++ we can target x64, ARM and TI DSP with the same core processing module.
- maaku 12y agoHave you tried Haskell?
- deleted 12y ago[deleted]
- loup-vaillant 12y agoYou're not describing a problem. You're describing a solution, that C++ can implement.