talira

The systems language for the AI era

open sourceApache-2.0 WITH LLVM-exceptionfree

Mojo is a compiled, statically typed systems programming language from Modular for writing fast code across CPUs, GPUs and other accelerators without vendor lock-in, with Python-like syntax, memory safety through ownership, and compile-time metaprogramming. GPU kernels are written in the same language as CPU code, without CUDA or a separate DSL, and Mojo code can import Python libraries and be called from Python. mojo build and mojo run both compile ahead of time. The SDK (compiler, standard library, language server, debugger, formatter and REPL) installs with pip, uv, conda or pixi, runs natively on macOS and Linux and on Windows through WSL, and is open source under the Apache License 2.0 with LLVM Exceptions. Modular uses it to develop AI algorithms and GPU kernels.

Libraries for Mojo

Talira doesn't list any yet.

Problems it solves

  • write GPU kernels without learning CUDA
  • speed up the slow parts of my Python code without rewriting everything in C++
  • a language with Python-like syntax that compiles to fast native code
  • write high-performance code that runs on NVIDIA, AMD and other accelerators
  • a memory-safe systems language for AI and numerical workloads
  • call fast compiled code from my existing Python project

Features

  • Python-like syntax with static types
  • memory safety through ownership
  • compile-time metaprogramming
  • GPU kernels in the same language as CPU code
  • Python interop in both directions
  • ahead-of-time compilation
  • C foreign function interface
  • SDK with LSP, debugger (LLDB), formatter and REPL
  • stable releases about every six weeks, nightly builds

Alternatives

The same job

These do what Mojo does.

  1. Crystal A language for humans and computers
  2. Nim Efficient, expressive, elegant
  3. Julia The Julia Programming Language
  4. V Simple, fast, safe, compiled. For developing maintainable software
  5. Pony An open-source, object-oriented, actor-model, capabilities-secure, high-performance programming language
  6. Common Lisp The programmable programming language

Compare Mojo with the top 3