3 ms·
Will I be able to use all of the existing libraries from Python? If not, it's going to be hard to make the switch
by verdverm 4y ago
Will I be able to use all of the existing libraries from Python?
If not, it's going to be hard to make the switch
- chrislattner 4y agoYep, they already just work, Check the website or the demo in the launch video from Jeremy Howard. Also potentially interesting: https://docs.modular.com/mojo/programming-manual.html#python-integration https://docs.modular.com/mojo/programming-manual.html#python... https://docs.modular.com/mojo/notebooks/Mandelbrot.html https://docs.modular.com/mojo/notebooks/Mandelbrot.html
- JonChesterfield 4y agoIf that works with any libraries built on the CPython C API it would be worth calling it out in the docs - it currently reads like pure python or numpy work, but I assumed that was because you'd reimplemented numpy, not managed to dlopen it (and worked around those libraries relying on the GIL).
- JonChesterfield 4y agoFound said part of the docs at https://docs.modular.com/mojo/why-mojo.html#how-compatible-is-mojo-with-python-really https://docs.modular.com/mojo/why-mojo.html#how-compatible-i... notably > We utilize CPython to run all existing Python3 code “out of the box” without modification and use its runtime, unmodified, for full compatibility with the entire ecosystem