Plumlang is an open source programming language created in 2026 by Ayushman Bhattacharya and Subhro Koley and Rohan Hudati.
| #335on PLDB | 0Years Old |
git clone https://github.com/plumlang/plumlangPlumlang is a small, statically typed programming language with a plain-English syntax. Programs compile to typed bytecode for a virtual machine written in C11, with reference counting and copy-on-write values instead of a garbage collector, and the standard library includes JSON, files, sockets, TLS and an HTTP server.
seed math| Feature | Supported | Example | Token |
|---|---|---|---|
| Inheritance | ✓ | tree Animal : Named { branch name() -> str => "animal" } tree Dog : Animal { branch name() -> str => "dog" } | |
| Interfaces | ✓ | trait Named { branch name() -> str } | |
| Pattern Matching | ✓ | branch area(s: Shape) -> float => match s { Circle(r) => 3.14 * r * r Square(a) => a * a } | |
| Enums | ✓ | kind Shape { Circle(radius: float) Square(side: float) } | |
| Scientific Notation | ✓ | plant e = 1.5e3 | |
| Octals | ✓ | plant o = 0o17 | |
| Binary Literals | ✓ | plant b = 0b1010 | |
| Hexadecimals | ✓ | plant h = 0xff | |
| Exceptions | ✓ | try { throw ValueError("bad") } catch e: ValueError { drop(e.message) } | |
| Maps | ✓ | plant counts = {"a": 1} | |
| Lists | ✓ | plant words = ["a", "b"] | |
| Conditionals | ✓ | if i == 1 { continue } | |
| hasForLoops | ✓ | for i in 0..3 { drop(i) } | |
| Null | ✓ | plant maybe: int? = none | |
| Classes | ✓ | tree Point { x: float y: float } | |
| Functions | ✓ | branch square(x: int) -> int { return x * x } | |
| Type Inference | ✓ | plant name = "Plum" | |
| Static Typing | ✓ | ||
| Booleans | ✓ | plant ready = good | good bad |
| Floats | ✓ | plant ratio = 0.75 | |
| Integers | ✓ | plant age: int = 3 | |
| File Imports | ✓ | seed math | |
| Strings | ✓ | "Hello, world!" | |
| Print() Debugging | ✓ | drop("Hello, world!") | drop |
| Doc comments | ✓ | ## Doc comments document what follows them. branch square(x: int) -> int { return x * x } | |
| MultiLine Comments | ✓ | #[ A block comment #[ nests ]# and spans lines. ]# | #[ ]# |
| Line Comments | ✓ | # A comment runs to the end of the line. | # |
| Comments | ✓ | # A comment runs to the end of the line. | |
| Semantic Indentation | X |