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.0b2-py3-none-manylinux_2_34_x86_64.whl (25.8 MB view details)

Uploaded Python 3manylinux: glibc 2.34+ x86-64

mojo-1.0.0b2-py3-none-manylinux_2_34_aarch64.whl (25.4 MB view details)

Uploaded Python 3manylinux: glibc 2.34+ ARM64

mojo-1.0.0b2-py3-none-macosx_13_0_arm64.whl (15.9 MB view details)

Uploaded Python 3macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for mojo-1.0.0b2-py3-none-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 6a68fbd862ff8160284ad9fbf3b8f18744e624b1be00eb8affe615036e068d04
MD5 9cee4433ab56d1817b768374d0e59eff
BLAKE2b-256 7863c1ba98329824d5cdaa6fd3c93dc8541fca34090dce0589c30432ba02701c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mojo-1.0.0b2-py3-none-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 51579b8b5361982b25c42f1c6f669855bde00419bd96c27e3b3c4266f9c836f5
MD5 a3df23a32fd52a9fbaa9f8c20caa1f34
BLAKE2b-256 88d52c191b54c29fbfc61ed9261046fec544106c24d70e9dbcbad5c48bbbae95

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mojo-1.0.0b2-py3-none-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3c7aba4a049c8ca715dbcc4aaa3f610c6415c29b6ec4b9a65a670103d5e81351
MD5 2bc60337ebaf08a9faf9af88f703193a
BLAKE2b-256 eb64a04071bc87495905d1fcce48980a8abfd38c30e7c65b121dcb2bad778eb9

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