Skip to main content
Mojo is now open source! Click to learn more.
Mojo
InstallDocsPackagesReleasesCommunity
Nightly 1.1.0 1.0.0

The Mojo Manual

The Mojo Manual
QuickstartGet started with MojoTips for Python devsSystem requirements
OverviewFunctionsVariablesTypesOperatorsControl flowErrors and context managers
OverviewOperator supportSelf-referential structs
Modules and packages
Intro to value ownershipValue semanticsOwnershipLifetimes, origins, and references
Creating valuesInitialization stateAutomatic destructionExplicit destruction
IntroCompile-time evaluationParameterizationTraitsParameterized declarationsConstraintsMaterializationReflection
Intro to pointersUsing pointers
ClosuresLambda expressions
IntroductionCalling Python from MojoCalling Mojo from PythonPython typesCalling C from Mojo
Compilation targetsFeature togglesDebuggingTestingJupyter notebooksMojo AI skillsPackaging
⌂/Docs/Manual

Version: 1.1.0

Mojo Manual

The manual is the long-form guide: enough to write Mojo, and pointers into the reference when you need a rule.

Start here

  • Quickstart for a short tour
  • Get started to build the Game of Life
  • Language basics for the syntax you will see everywhere
  • Ownership before you write functions that pass collections around

Also

The language reference is the rulebook. The standard library is the catalog of types.

NextQuickstart
Edit this page
Start hereAlso
Mojo
Releases Roadmap License Contributing
Install now

Privacy settings

This local copy does not set tracking cookies. Essential storage remembers the theme and whether the announcement bar is dismissed.