Jun 2025 (v0.7.6)
Mochi v0.7.6 adds typed collection features, primitive casts and stronger type checking across the compilers.
Compilers
- Go compiler supports typed empty lists, map key casts and underscore loop variables
- Primitive casts implemented in Go and Python compilers
- Group-by operations available in Go and TypeScript
- Python compiler loads globals after test blocks
- TypeScript compiler resolves user-defined types
Runtime
- Cast builtin converts between numeric types
- New
inputbuiltin reads a line from standard input
Type Checker
- Builtin functions validate argument counts
- Forward type declarations are recognized
Example Library
- Added solution for LeetCode 401
Build System
- Benchmark generation fixed with updated results