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-1.0.0b1-py3-none-manylinux_2_34_x86_64.whl (25.2 MB view details)

Uploaded Python 3manylinux: glibc 2.34+ x86-64

mojo-1.0.0b1-py3-none-manylinux_2_34_aarch64.whl (24.9 MB view details)

Uploaded Python 3manylinux: glibc 2.34+ ARM64

mojo-1.0.0b1-py3-none-macosx_13_0_arm64.whl (15.7 MB view details)

Uploaded Python 3macOS 13.0+ ARM64

File details

Details for the file mojo-1.0.0b1-py3-none-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for mojo-1.0.0b1-py3-none-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 4b3ae9a13b35ed704fa3d90f08947b5e9859a553ae75ad2b70282d1848fec333
MD5 67945eebfcd1b0e0acdaf9ee30438a4d
BLAKE2b-256 e485b4f6a9e6b7b1c21c1b9f0bd162618836681178a6d7f26f5d8ecb91226ec3

See more details on using hashes here.

File details

Details for the file mojo-1.0.0b1-py3-none-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for mojo-1.0.0b1-py3-none-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 4e5417be92214b90f37ed3859b8f945cf43ed5f1c43c0cea377e29358065bff4
MD5 5306a20a0186ef36e15f47c423ae9cf0
BLAKE2b-256 7c1cdfc7c0e2a65f3c75477d6117c26d218688ed2bce9eac11acd6d4d5530386

See more details on using hashes here.

File details

Details for the file mojo-1.0.0b1-py3-none-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for mojo-1.0.0b1-py3-none-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4213448c26fb5b1813bf193b8adc8bcef48136c92b890c6caf676e3ee94152cc
MD5 5037b9f564605d946ded938498271af3
BLAKE2b-256 771cfe64f2b91c429fc146df35dfda0da29e2bc39a5984c40bcd8c356e5315d6

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