Skip to main content

The Mojo programming language

Project description

Mojo

Mojo is a systems programming language specifically designed for high-performance AI infrastructure and heterogeneous hardware. Our vision for Mojo is to be the one programming language developers need to target diverse hardware—CPUs, GPUs, and other accelerators—using Python's intuitive syntax combined with modern systems programming capabilities. Of course, Mojo also provides strong interoperability with Python.

NOTE: Not available for Windows.

What's in mojo

The mojo package includes everything you need to program with Mojo, including the Mojo compiler, standard library, language server (LSP), debugger (LLDB), and more.

Not included but recommended is the Mojo extension for VS Code.

Get started with pip

  1. Install Mojo:

    pip install mojo
    

    If you want the nightly build, instead use:

    pip install --pre mojo \
      --extra-index-url https://whl.modular.com/nightly/simple/
    
  2. Write some code:

    # hello.mojo
    def main():
      print("Hello, World!")
    
  3. Run the code:

    mojo hello.mojo
    
    Hello, World!
    

Using pip is great for existing Python-based environments, but if you're getting started for the first time, we recommend instead installing with pixi. For more information, see the Mojo install guide.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

mojo-0.26.2.0-py3-none-manylinux_2_34_x86_64.whl (21.4 MB view details)

Uploaded Python 3manylinux: glibc 2.34+ x86-64

mojo-0.26.2.0-py3-none-manylinux_2_34_aarch64.whl (21.2 MB view details)

Uploaded Python 3manylinux: glibc 2.34+ ARM64

mojo-0.26.2.0-py3-none-macosx_13_0_arm64.whl (14.6 MB view details)

Uploaded Python 3macOS 13.0+ ARM64

File details

Details for the file mojo-0.26.2.0-py3-none-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for mojo-0.26.2.0-py3-none-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 068ad903bb64dc1535aee7da5cf84957f7da84a0e248b72589efa63e7d6ac955
MD5 1ce0c75d659196921639cfb05bfa16ed
BLAKE2b-256 bc0975fb9b91a39e000b40642399f9011d0038be01b14978e614db6d54a1d126

See more details on using hashes here.

File details

Details for the file mojo-0.26.2.0-py3-none-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for mojo-0.26.2.0-py3-none-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 fbb2472a243faa8304871e914e94356ad72261f06c2ba4bb8cc4f1c49fc71004
MD5 e804211e08ec81c56034c8f5781f42b5
BLAKE2b-256 3b28a378040026e36a963a49a7ec38e6390d0a4ab8bd49daab0cc81f43280494

See more details on using hashes here.

File details

Details for the file mojo-0.26.2.0-py3-none-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for mojo-0.26.2.0-py3-none-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 fb37761fa3e685240908c4dddf9f423a8bc73f7a8e924d646759e63da474c3e5
MD5 6981cc941cd837c8ab37156f4b9a2f08
BLAKE2b-256 ef1f78cf04ae01e019d1c20ac6706d4107cf0b7efe219b41f3614a8f8a7b5a56

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page