No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
The Ducktor 0f8907a6d9 Add support for embedded standard library imports
Allows importing files from the built-in standard library if they are
not
found on the filesystem, enabling bundled macros like `std/sanity.mini`.
2026-08-31 19:09:33 +08:00
src Add support for embedded standard library imports 2026-08-31 19:09:33 +08:00
std Add support for embedded standard library imports 2026-08-31 19:09:33 +08:00
.gitignore chore: initial commit (hello world) 2026-08-31 19:00:47 +08:00
Cargo.lock chore: initial commit (hello world) 2026-08-31 19:00:47 +08:00
Cargo.toml chore: initial commit (hello world) 2026-08-31 19:00:47 +08:00
example_add.mini chore: initial commit (hello world) 2026-08-31 19:00:47 +08:00
example_hello_minimal.mini chore: initial commit (hello world) 2026-08-31 19:00:47 +08:00
example_lib.mini chore: initial commit (hello world) 2026-08-31 19:00:47 +08:00
example_macro_import.mini chore: initial commit (hello world) 2026-08-31 19:00:47 +08:00
README.md chore: initial commit (hello world) 2026-08-31 19:00:47 +08:00

MINIMALIST

For the sake of programming

"Finally, a language with the sleek syntax of 2026 and the developer productivity of 1961."

What is Minimalist?

Minimalist is an enterprise-ready, web-scale programming language designed for developers who demand the visually stunning aesthetics of TypeScript, Rust, and Swift, but secretly miss writing raw assembly for a theoretical 2-register vacuum-tube computer.

We took a hard look at modern software development and realized modern languages are full of unnecessary fluff:

  • Multiplication? Bloat.
  • If statements? Pure laziness.
  • Arrays? Unnecessary indulgence.
  • Functions? A crutch for people who fear 8,000-line linear files.

Minimalist strips away 60 years of computer science progress, leaving you with only five features: let, while, + 1, - 1, and print.

Features

  • Zero-Sugar Architecture: No +, -, *, or /. If you want to add 5 and 3, you better be ready to decrement 3 down to 0 while incrementing 5 one by one like an honest worker.
  • Destructive Memory Operations: Want to read a variable? Oops! Checking if x != 0 consumes x down to 0. Better make a copy of it first using a temporary variable (which will also consume that temporary variable).
  • Blazing Fast Native Compilation: Transpiles directly to C and compiles via gcc -O3. Your 10,000-line nested increment loop will be optimized into a single assembly instruction. You're welcome.
  • Modern Curly Braces: It looks like clean, elegant code in your IDE. Your coworkers won't realize you're writing Brainfuck until code review.

Installation

# Clone the repository
git clone https://github.com/minimalist-lang/minimalist.git

# Build the Rust transpiler
cargo build --release

# Realize you could have built the entire compiler in 40 lines of Python

Code Examples

1. Adding Two Numbers (a + b)

Look how modern and clean this code is!

let a = 5
let b = 3

// Perform addition by manually draining 'b' into 'a'
while b != 0 {
    a = a + 1
    b = b - 1
}

// 'a' is now 8. 'b' is dead. Rest in peace, 'b'.

2. The "Hello World" (Printing 'A')

Why pass a string literal when you can construct ASCII character 65 by hand?

let char = 0
let counter = 65

while counter != 0 {
    char = char + 1
    counter = counter - 1
}

print char // Outputs: 'A'

Sanity Pack (Optional Macros)

If your employer forces you to meet deadlines, you can enable our import "std/sanity.mini" macro extension to write fake high-level code:

import "std/sanity.mini"

let score = 10
let bonus = 5

// Expands to 40 lines of nested destructive while-loops at compile time!
add(score, bonus)

Frequently Asked Questions (FAQ)

Q: How do I write an if statement? A: Create a while loop that manually zeroes out its own counter variable on the first run so it only executes once.

Q: How do I store a string? A: Encode your text into a single, massive 400-digit number using prime factorization, then decode it byte-by-byte at runtime.

Q: Can I use Minimalist in production? A: Absolutely. Minimalist has zero external dependencies, zero security vulnerabilities (because it can't do anything), and guarantees job security because no one else will ever be able to maintain your codebase.

License

MIT License. Feel free to use Minimalist to terrorize your local software engineering team.