Translating Cython to Mojo, a first attempt

Since hearing about Mojo I thought it might be a good language used in cases where Cython would usually be used, so I wrote up a quick blog post on my first experiences translating some Cython code in scikit-learn into Mojo.

Spoiler: it was surprisingly easy, although the example I picked was fairly trivial.

Once the python interop is a bit more mature I’d like to give it another go.

7 Likes

This is great!! Thank you for sharing!