2 ms·
This is what I do. Hack it together in Python to get something running, then rewrite everything in C++.
by alar44 4y ago
This is what I do. Hack it together in Python to get something running, then rewrite everything in C++.
- JonChesterfield 4y agoThis works especially well if you test the python version as you go, then run the same python tests against the C++ replacement. The up front bother of pybind or similar is minor relative to not having to recompile the C++ to iterate on test scripts.
- trenchgun 4y agoOr even better, rewrite the python code in Rust! Like Asahi Lina did. https://asahilinux.org/2022/11/tales-of-the-m1-gpu/ https://asahilinux.org/2022/11/tales-of-the-m1-gpu/