Nex

A practical, expression-oriented language with clean control flow, contracts, classes, and REPL-friendly ergonomics — designed to teach good software engineering practice: problem decomposition, interface design, invariants, and testable program structure.

Simple Core Clear syntax for values, functions, and control structures with minimal ceremony.
Engineering Discipline Contracts, decomposition, and clear interfaces so learners build correct software habits early.
Object + Functional Classes and methods alongside first-class functions and composable expression forms.
-- From the Nex tutorial
function greet(name: String)
do
  print("Hello, " + name)
end

greet("world")

New to Nex? Start with the tutorial, then install the CLI and work through examples locally. Keep the Syntax Postcards and the complete class reference handy.

Quick install

Download the bootstrap installer and run it. This installs the nex command so you can use it from anywhere.

bash <(curl -fsSL https://raw.githubusercontent.com/vijaymathew/nex/main/bootstrap-install.sh) jvm --install-deps

Recommended for full language support — REPL, formatting, documentation, and compilation tools.

Install without sudo

If you prefer a user-local install, place Nex under ~/.local and add the bin directory to your shell path.

bash <(curl -fsSL https://raw.githubusercontent.com/vijaymathew/nex/main/bootstrap-install.sh) jvm --prefix "$HOME/.local" && export PATH="$HOME/.local/bin:$PATH"

After installation, verify with nex help or start the REPL with nex.