Re:Efficient and performance-portable vector software
by josephg on Wednesday January 11, 2023 @05:03PM
(#34345632)
This is beautiful work. Do you think it would be possible to port this to Rust some day?
[ Parent
| on HN ]
Re:Efficient and performance-portable vector software
by janwas on Thursday January 12, 2023 @02:49AM
(#34350426)
Thanks!
> Do you think it would be possible to port this to Rust?
Yes, I think so. The main tricks are redefining macros based on the current compilation target, and compiling the same code multiple times. I believe Rust can do both, but have only surface-level familiarity.
One stumbling block is getting the C++ equivalent of #pragma target, but I think Rust also has that.
There's been other interest in a Rust port, feel free to open an issue to perhaps start a discussion.