2 ms·
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
by janwas 4y ago
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.