News Score: Score the News, Sort the News, Rewrite the Headlines

Python can run Mojo now

Chris Lattner mentioned that Python can actually call Mojo code now. I love this idea (!) as I'm definitely in the market for a simple compiled language that can offer Python some really fast functions. So I gave it a quick spin Setup The setup is much simpler than I remember it, you can use uv for it now. uv pip install modular --index-url https://dl.modular.com/public/nightly/python/simple/ After that you can declare a .mojo file that looks like this: # mojo_module.mojo from python import Pyth...

Read more at koaning.io

© News Score  score the news, sort the news, rewrite the headlines