Zhang Hongbo’s team at the IDEA Institute released MoonBit 1.0 at the sixth IDEA conference in November 2026, four years after starting the project in October 2022. MoonBit is a general-purpose programming language designed with AI coding agents in mind: it gives them a way to run generated code in isolation and check whether it meets a specification.
The language includes a WebAssembly-based sandbox that the team says starts in microseconds. Its formal verification tools serve a different purpose: an agent can supply a mathematical proof alongside the code it generates. Verification can also extend to the assembly code produced by the compiler.
How MoonBit compared with Rust
Zhang’s team asked Opus 5.5 to build a database engine in both MoonBit and Rust. Across three rounds of comparison involving roughly 500 tests, the two implementations had nearly identical pass rates, but the model used 12% fewer tokens with MoonBit. The team said the amount of MoonBit material in the model’s training data was only 1% of the corresponding Rust material. The token result applies to this database task, not to AI-assisted development in general.
In a separate compilation test involving hundreds of packages, the team reported that MoonBit took one-tenth as long as Rust and also finished ahead of Go. As an example of a larger project, the researchers showed a 17 MB Office document-processing tool they had built with 880,000 lines of MoonBit code. They reported incremental compile times of one to two seconds at the million-line scale; those were not full rebuild times.
Libraries and adoption
The number of libraries in the MoonBit ecosystem grew from about 2,500 at the start of 2026 to 36,000 by the conference, according to the team. Packages recorded nearly 10 million downloads in the preceding six months, including nearly 3 million in the final month alone. That month’s downloads roughly matched the total accumulated over the earlier period of nearly two years.
Peking University had introduced MoonBit into a graduate course, and the team said overseas AI agent developers were using it to build products. Zhang estimated that MoonBit’s ecosystem could reach a size comparable to Rust’s by late 2027 or early 2028 if the growth rate continued.
