the content for the lecture https://docs.google.com/presentation/d/15NT43vujrvG7cbrnbFsAau3SeKaZ8Sb-YwNtpMnHS9Q/edit?usp=sharing
These examples are taken from code snipets provided via links on the lecture - i take no credit for them! I will try to provide the most accurate links in them-if you have found any error in the credits please let me know.
I used my ubuntu laptop, no special hw needed.
- For rust you do need the rust installations.
- my venv included cython,numpy,rustimport,cppyy,numba
- the examples were tested on python 3.9
- PyBind11 sample needs pybind11 - see the cmake file
- Some exampels are docker based so you need that support as well
- Please notre that some cython and cpp examples code are in seperated folders and need to be build.
- The CPP code in
- I tried to add to every compiled file the compilation instructions.
- ChatGPT helped obviously.
- The https://saidvandeklundert.net/learn/2021-11-18-calling-rust-from-python-using-pyo3/ provided me the py03 example
- I heavily used https://pythonspeed.com
- Cpp - swig https://gist.github.com/mattbierbaum/1193397
- SimpleCppToPython - https://pythonspeed.com/articles/rust-cython-python-extensions/
- NUMBA -
- pybind11 - https://pybind11.readthedocs.io/en/stable/advanced/embedding.html -
- Rust
- Cython - a lot of help 7. https://www.peterbaumgartner.com/blog/intro-to-just-enough-cython-to-be-useful/ 8. https://pythonspeed.com/articles/faster-cython-simd/