Hey Pythonistas and Magicians! Mojo Miji has been updated to reflect the changes in Mojo v0.26.1.
It took much more time than I expected β I had to go through every piece of code example and verify it against the latest version. The changes in v0.26.1 are quite substantial. Luckily, I managed to finish the update within a month of the release.
What is Mojo Miji?
Mojo Miji is an open-source book for Pythonistas who want to learn Mojo. The name βMijiβ comes from the Chinese word βη§η±β, meaning βsecret manualβ. It systematically covers Mojo from the ground up β from setting up your environment, to basics like variables, functions, and structs, all the way to advanced topics like ownership, lifetimes, and meta-programming β but always from a Pythonistaβs perspective, with side-by-side Python-vs-Mojo comparisons and memory layout diagrams throughout.
Beyond being a tutorial, it also provides complementary insights and conceptual models not found in the official documentation, such as a quaternary system of variables and four states of ownership, making it a useful companion to the official Mojo manual.
Read it here: Mojo Miji - A Guide to Mojo Programming Language from A Pythonistaβs Perspective
GitHub: https://github.com/forfudan/MojoMiji
Feedback and issues are always welcome!