M Mozhi v3.7.0 code

Development Roadmap

Mozhi Programming Language
Version 2.0 · Updated August 2026

Overall Progress

22%
130
Total Features
29
Completed
1
In Progress
100
Planned
12
Phases
10
Long-Term

Phase 1 — Language Core

Language Core

Critical · v2.1
FeatureStatusDescription
Generic FunctionsPlannedFunctions parameterized by type
Generic TypesPlannedStructs/enums with type parameters
Trait / Interface SystemPlannedFull trait dispatch, default methods
Struct MethodsPlannedimpl blocks with self receiver
Enum MethodsPlannedimpl blocks for enums
Extension MethodsPlannedAdd methods to existing types
Named ArgumentsPlannedf(name: "Alice")
Default ArgumentsPlannedParameters with default values
Function OverloadingPlannedSame name, different signatures
Operator OverloadingPlannedCustom +, -, *, / for types
Lambda Functions✓ DoneAnonymous functions
Closures✓ DoneCapture enclosing scope
Iterator SystemPlannedmap, filter, collect, lazy eval
Range TypePlanned1..10, 1..=10, 0..
Pattern Matching EnhancementPlannedGuards, or-patterns, bindings
DestructuringPlannedlet (x, y) = point
Tuple TypePlanned(int, string, bool)

Phase 2 — Collections

Collections

High · v2.2
FeatureStatusDescription
VectorPlannedContiguous growable array
Hash MapPlannedO(1) key-value lookup
Hash SetPlannedUnique element collection
Linked ListPlannedDoubly-linked list
QueuePlannedFIFO queue
StackPlannedLIFO stack
DequePlannedDouble-ended queue
Priority QueuePlannedHeap-based priority
Ordered MapPlannedInsertion-ordered map
Ordered SetPlannedInsertion-ordered set
Ring BufferPlannedFixed-size circular buffer
Bit SetPlannedCompact bit storage

Phase 3 — Standard Library

Standard Library

High · v2.3
ModuleStatusDescription
std.fsPlannedFile system operations
std.pathPlannedCross-platform path manipulation
std.processPlannedProcess spawning, pipe, exit
std.envPlannedEnvironment variables
std.timePlannedTimestamps, durations, sleep
std.datePlannedDate parsing, formatting, timezones
std.randomPlannedRandom number generation
std.uuidPlannedUUID v4/v5 generation
std.base64PlannedBase64 encode/decode
std.hexPlannedHex encode/decode
std.jsonPlannedJSON parse, stringify, streaming
std.xmlPlannedXML parse, serialize, XPath
std.csvPlannedCSV read/write
std.tomlPlannedTOML parse/serialize
std.yamlPlannedYAML parse/serialize
std.compressPlannedgzip, zlib, deflate, bzip2
std.archivePlannedtar, zip, extraction
std.cryptoPlannedAES, RSA, HMAC, SHA family
std.hashPlannedMD5, SHA-256, SHA-512, BLAKE3

Phase 4 — Networking

Networking

Medium · v2.4
FeatureStatusDescription
HTTP ClientPlannedGET, POST, PUT, DELETE, streaming, TLS
HTTP ServerPlannedRouting, middleware, static files
TCPPlannedTCP socket client/server
UDPPlannedUDP socket support
WebSocketPlannedClient/server, ping/pong, frames
DNSPlannedDNS resolution, custom resolvers
TLSPlannedTLS/SSL secure connections
URL ParserPlannedURL parsing, building, encoding
MIME ParserPlannedMIME type detection, multipart

Phase 5 — Concurrency

Concurrency

Medium · v2.5
FeatureStatusDescription
ThreadsPlannedOS-level threads with join/detach
AsyncPlannedasync fn returning Future<T>
AwaitPlannedawait expression for async functions
Task SchedulerPlannedCooperative runtime, work stealing
ChannelsPlannedMPSC, SPSC, broadcast channels
MutexPlannedMutual exclusion lock
RWLockPlannedRead-write lock
Atomic TypesPlannedAtomicInt, AtomicBool, AtomicPtr
Thread PoolPlannedFixed-size worker pool

Phase 6 — Package Manager

Package Manager

High · v2.2
FeatureStatusDescription
mozhi install✓ DoneInstall dependencies from mozhi.toml
mozhi update✓ DoneUpdate dependencies
mozhi remove✓ DoneRemove dependencies
mozhi search✓ DoneSearch packages
mozhi publishPartialStub — needs public registry
Dependency Lock File✓ Donemozhi.lock with resolved versions
Version Resolution✓ DoneSemver with ^, ~, >=, <, *
Offline Cache✓ Done~/.mozhi/cache/ for offline builds
MirrorsPlannedMirror servers for faster downloads
Private RegistryPlannedSelf-hosted registry

Phase 7 — Compiler

Compiler

Critical · v3.0
FeatureStatusDescription
Lexer✓ DoneFull tokenizer
Parser✓ DoneRecursive descent + Pratt parser
AST Generation✓ DoneComplete AST
Semantic Analysis✓ DoneScope resolution, validation
Type Checking✓ DoneStatic type checking with inference
Incremental CompilationPlannedOnly recompile changed modules
Bytecode GenerationPlannedCompile to .sibc bytecode
Dead Code EliminationPlannedRemove unreachable code
Constant FoldingPlannedEvaluate constants at compile time
Inline ExpansionPlannedInline small functions
Escape AnalysisPlannedStack vs heap allocation
Register AllocationPlannedEfficient register usage
Link Time OptimizationPlannedCross-module optimization

Phase 8 — Runtime

Runtime

Critical · v3.0
FeatureStatusDescription
Tree-walking Interpreter✓ DoneCurrent execution model (v2.0)
Bytecode VMPlannedStack-based VM for .sibc
Garbage CollectorPlannedMark-sweep, generational
JIT CompilerPlannedJust-in-time for hot paths
Native Code GeneratorPlannedLLVM backend
Dynamic LoaderPlannedLoad .mzl at runtime
Plugin SystemPlannedDynamically loadable modules

Phase 9 — Developer Experience

Developer Experience

Medium · v3.0
FeatureStatusDescription
LSP ServerPlannedLanguage Server Protocol
Auto CompletionPlannedContext-aware completion
Hover HelpPlannedShow type and docs on hover
Go to DefinitionPlannedJump to symbol definition
Rename SymbolPlannedProject-wide renaming
Formatter (mozhi fmt)✓ DoneBasic code formatting
Linter (mozhi lint)✓ DoneBasic linting
DebuggerPlannedSource-level debugger
ProfilerPlannedCPU and memory profiler
Coverage ToolPlannedCode coverage reporting
Documentation Generator✓ Donemozhi doc generates API docs

Phase 10 — Testing

Testing

High · v2.3
FeatureStatusDescription
Unit Testing✓ Donemozhi test runs tests/
Integration TestingPlannedMulti-module tests
Benchmark Framework✓ Done26 tests, statistics, history
Mock LibraryPlannedMock functions and types
Snapshot TestingPlannedGolden file comparison
Property TestingPlannedRandom input verification
Fuzz TestingPlannedAutomated fuzzing

Phase 11 — Cross Platform

Cross Platform

High · v2.2
PlatformArchitectureStatusNotes
Linuxx86_64✓ DonePrimary development platform
LinuxARM64✓ DoneRaspberry Pi, ARM servers
Alpine Linuxx86_64✓ DoneStatic musl build
Alpine LinuxARM64✓ DoneStatic musl build
Termux (Android)ARM64✓ DoneVia static musl build
macOSIntel✓ DoneMach-O binary
macOSApple Silicon✓ DoneMach-O binary
Windowsx86_64✓ DonePE32+ executable
WebAssemblywasm32PlannedBrowser execution

Phase 12 — Security

Security

Low · v3.0+
FeatureStatusDescription
Sandboxed ExecutionPlannedRestrict file/network/process access
Capability PermissionsPlannedExplicit permission grants
Memory Leak DetectionPlannedAllocation tracking
Race DetectionPlannedThread sanitizer
Static AnalyzerPlannedCompile-time security analysis
Secure Package VerificationPlannedPackage signing
Package Signature ValidationPlannedGPG/minisign checking

Long-Term Goals

These are ambitious goals that extend beyond the 12-phase roadmap.

Self-hosting Compiler

Rewrite the Mozhi compiler in Mozhi itself

Native IDE

Full-featured IDE built specifically for Mozhi

Official GUI Toolkit

Cross-platform GUI library (desktop + mobile)

Database Driver Framework

Unified interface for SQL/NoSQL databases

Embedded Runtime

Lightweight runtime for embedded systems

Plugin Ecosystem

VS Code, IntelliJ, Vim plugins

Official Package Registry

Hosted registry at registry.mozhi.org

Continuous Benchmark Dashboard

Automated CI benchmark with web dashboard

Language Server Ecosystem

LSP for all major editors

Stable ABI

Binary compatibility across versions

Version Timeline

VersionTargetFocus
v2.0✓ ReleasedNew syntax, C++/ASM/Rust backend
v2.1Q3 2026Language core: generics, traits, iterators
v2.2Q4 2026Collections + package manager
v2.3Q1 2027Standard library + testing
v2.4Q2 2027Networking library
v2.5Q3 2027Concurrency (threads, async/await)
v3.0Q4 2027Bytecode VM + JIT + native codegen
v3.1Q1 2028Developer experience: LSP, debugger
v4.0Q4 2028Self-hosting compiler