Re:Why I'm still using Python
by alar44 on Friday December 30, 2022 @04:27PM
(#34190313)
This is what I do. Hack it together in Python to get something running, then rewrite everything in C++.
[ Parent
| on HN ]
Re:Why I'm still using Python
by JonChesterfield on Friday December 30, 2022 @05:51PM
(#34191074)
This 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.
Or even better, rewrite the python code in Rust! Like Asahi Lina did.
https://asahilinux.org/2022/11/tales-of-the-m1-gpu/