plum

#treesitter#compiler#wasm

git clone https://git.pyrossh.dev/plum

A statically typed, imperative programming language inspired by rust, python


cbeca8d — Peter John 2026-11-13T17:28:52+05:30
std: no top-level funs outside std/game; std/math/math.plum is std/math/Math.plum with `primitive Math` (`Math.sqrt`), std/testing.plum is std/Test.plum with `primitive Test` (`Test.expectEq`) beside `trait UnitTest`, std/http.plum is std/Http.plum with `primitive Http` (`Http.get`); each collection's helpers are statics of its type without their prefix (`bpTake` is `BPlusTree.take`, `hamtPopcount` `Hamt.popcount`), BPlusTree's invariant checker inside `isValid`; Slice's loops are methods (`eachFrom`, `mapFrom`, ..) and its merge sort and `outOfRange` statics, `List.consFrom` and the method `mapCells`, `Int.repeatUntil`, `Aabb.slab` and `outside`, `Str.typeName` (`@typeName` lowers to it, the native table names `Math.sqrt` and `Str.typeName`); the test-only helpers and structs left in std moved to their tests/ mirror, in a `primitive <Type>Helpers` (a `primitive` is allowed under a `tests` folder), map_model.plum with its own `MapModelHelpers`; tests/std/http.plum and testing.plum are Http.plum and Test.plum; every caller (std/game, examples, games, tests, benchmarks, compiler tests and fixtures), the LSP index test, the module-rule tests on tests/modules/Palette; docs (language.md, std.md)

This diff is too large to display.