A collection of sample programs written in the Mojo programming language.
The easiest way to get started with Mojo is to install the Pixi package and virtual environment manager:
curl -fsSL https://pixi.sh/install.sh | shThen use git to clone this repository of Mojo samples using the command
below:
git clone https://github.com/modular/modular.gitNavigate into the examples directory and use pixi run to invoke mojo and
run the basic example programs. For example:
pixi run mojo matmul.mojoThe Mojo examples in this repository are licensed under the Apache License v2.0 with LLVM Exceptions (see the LLVM License).
As a contributor, your efforts and expertise are invaluable in driving the evolution of the Mojo programming language. The Mojo contributor guide provides all the information necessary to make meaningful contributions—from understanding the submission process to adhering to best practices: