Skip to content
@muxlang

Mux Lang

The Mux Organization
Mux Logo

Mux

The programming language for everyone

Mux is a statically-typed, reference-counted language that combines Python's readability, Go's simplicity, and Rust's type safety - compiled to native code via LLVM.

Website Docs Playground License


A first taste

// Error handling with Result types
func divide(int a, int b) returns result<int, string> {
    if b == 0 {
        return err("division by zero")
    }
    return ok(a / b)
}

// Pattern matching with exhaustive checking
func main() returns void {
    match divide(10, 2) {
        ok(value) {
            print("Result: " + value.to_string())
        }
        err(error) {
            print("Error: " + error)
        }
    }
}

Get started

# Install (Linux/macOS)
curl -fsSL https://raw.githubusercontent.com/muxlang/mux-compiler/main/scripts/install.sh | sh

# Run your first program
mux run hello.mux

Or skip the install and try it in the playground.

Why Mux?

  • Simple & readable - clean, semicolon-free syntax with Python-like clarity.
  • Type safe - strong static typing, no implicit conversions, errors caught at compile time.
  • Fast & native - LLVM-powered compilation to real native binaries.
  • Memory safe - reference counting, no GC pauses and no borrow-checker ceremony.
  • Modern - generics, interfaces, tagged unions, and exhaustive pattern matching.

The repositories

Repo What it is
mux-compiler The compiler + CLI (lexer, parser, semantics, LLVM codegen). The canonical "Mux version".
mux-runtime Runtime + standard library for compiled programs. Plain stable Rust, no LLVM. Published to crates.io.
mux-website The documentation site (mux-lang.dev) + the docs AI assistant + indexing tools.
mux-website-api The Fly.io compile/run API behind the playground.
tree-sitter-mux Tree-sitter grammar + highlight queries (Neovim, Helix, Emacs).
mux-syntax-highlighting TextMate grammar, VSCode extension, editor configs, and the canonical syntax spec.
mux-context Cross-repo knowledge hub: architecture, design rationale, feature map, glossary, and the release process.

Getting involved

  • New to the language? Start with the docs.
  • Curious how it fits together? Read mux-context.
  • Want to contribute? Each repo has its own README.md and AGENTS.md; shared guidelines live in CONTRIBUTING.md.
  • Found a bug or have an idea? Open an issue in the relevant repo - or, if you're unsure which, in mux-context for triage.

Mux is MIT-licensed and welcomes contributions.

Popular repositories Loading

  1. mux-compiler mux-compiler Public

    Mux: a strong, statically typed, Go-like language with Rust-inspired safety and LLVM-powered speed.

    Rust 6 1

  2. mux-website mux-website Public

    Docusaurus docs site for Mux (mux-lang.dev), plus the docs AI worker and indexing tools.

    TypeScript

  3. mux-website-api mux-website-api Public

    Fly.io compile/run API backing the Mux playground (wraps the released mux binary).

    Python

  4. mux-runtime mux-runtime Public

    Runtime + stdlib for compiled Mux programs. Plain stable Rust, no LLVM. Published to crates.io.

    Rust

  5. tree-sitter-mux tree-sitter-mux Public

    Tree-sitter grammar + highlight queries for Mux (Neovim, Helix, Emacs).

    C

  6. mux-syntax-highlighting mux-syntax-highlighting Public

    TextMate grammar, VSCode extension, and editor configs for Mux (VSCode, Sublime, JetBrains), plus the canonical syntax spec.

    JavaScript

Repositories

Showing 9 of 9 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…