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!