Hello World in Mojo
Mojo brings Python’s familiar syntax to systems-level programming. If you know Python, you already know how to write Hello World in Mojo—with one small addition.
The Code
Create a file named …
Read more →Mojo brings Python’s familiar syntax to systems-level programming. If you know Python, you already know how to write Hello World in Mojo—with one small addition.
Create a file named …
Read more →Mojo’s type system is one of its most distinctive features. As a Python superset, Mojo supports both dynamic typing (Python-style) and static typing (systems-style) in the same language. This …
Read more →Operators are the building blocks of every expression you write. In Mojo, operators look and behave almost exactly like their Python counterparts—+, -, *, /, //, %, **, ==, and, or, and not all work …
Control flow determines the order in which your program’s statements run—which branches execute, how many times a block repeats, and when to stop early. Without it, a program is just a straight …
Read more →Functions are how you give a name to a piece of work and reuse it. They let you break a program into small, testable pieces, hide details behind a clear interface, and avoid repeating yourself. Every …
Read more →Input and output are how a program talks to the outside world—printing results, reading what a user types, and persisting data to disk. Because Mojo is designed as a Python superset, its I/O surface …
Read more →Every programming language is, at its core, a written argument. An argument that the languages which came before failed at something important — something worth spending years of your life to fix. …
Read more →Showing 1–7 of 7 posts (page 1 of 1)