MoonBit's Avatar

MoonBit

@moonbitlang

MoonBit, a Cloud & AI native programming language and toolchain.

109
Followers
2
Following
89
Posts
26.11.2024
Joined
Posts Following

Latest posts by MoonBit @moonbitlang

Part 2 of our QuickCheck tutorial is out.

This time we look at one of the hardest parts of property-based testing: constrained random generation โ€” when valid inputs are rare and simple generators stop working.

Full Write-up: moonbitlang.com/pearls/quick...

06.03.2026 02:34 ๐Ÿ‘ 0 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

Most GC'd languages (Python, JS) make FFI painful. MoonBit doesn't.

With lifetime annotations (`#borrow`/`#owned`), MoonBit interops cleanly with almost any C memory pattern โ€” making it surprisingly easy to bind to system APIs, native libraries, game engines, you name it.

Even stackful coroutines:

06.03.2026 02:34 ๐Ÿ‘ 1 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

Really like MoonBitโ€™s is expression.
Destructuring + guards in one line, reducing boundary checks without unsafe operations

05.03.2026 07:48 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

AI refactors better with guidance.

`moon ide analyze` shows real API usage, so agents can tighten internal package APIs instead of guessing.

Less AI slop, cleaner boundaries, better MoonBit code.

โš ๏ธThis is available on MoonBit nightly for now, and will be in the next stable

04.03.2026 03:32 ๐Ÿ‘ 1 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

QuickCheck Tutorial Part 1 is live ๐Ÿงช

Weโ€™re starting a series on property-based testing in MoonBit.

New to QuickCheck? This is a good place to begin ๐Ÿ™‚
Read: moonbitlang.com/pearls/quick...

๐Ÿ“ Live demo & chat today :http://meet.google.com/ibx-rsuq-mmt๏ผˆ10am London/6pm Beijing๏ผ‰

12.02.2026 06:09 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
SWE-AGI Leaderboard

Is LLM ready for large scale software engineering?
OpenAI Codex5.3 vs AnthropicAI Opus4.6 โ€” which is better and how about the open weights model? How good LLM can adapt to new programming languages like
@moonbitlang
checkout swe-agi.com for our latest research ๐Ÿ“Š

12.02.2026 06:08 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
MoonBit 0.8.0 Released | MoonBit MoonBit 0.8.0 marks a major step toward production-ready development with upgrades across language semantics, tooling, and AI-native workflows.

MoonBit 0.8.0 has landed ๐ŸŽ‰

โœ…Backtrace support across WasmGC, LLVM, and Native backends โ€” much better debugging experience for large codebases
โœ…AI-native specification support with declare keyword, separating specs from implementations for agent-assisted workflows
www.moonbitlang.com/blog/moonbit...

11.02.2026 02:18 ๐Ÿ‘ 1 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

See You This Thursday-Online Meetup#11

Weโ€™re about to ship MoonBit v0.8, and weโ€™d love to walk you through what changed, why we made those choices, and whatโ€™s coming next๏ผ

๐Ÿ’ป Google Meet: meet.google.com/ibx-rsuq-mmt
๐ŸŽฅ Live on YouTube (simulcast)

10.02.2026 05:52 ๐Ÿ‘ 0 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
Building a C Compiler from Scratch with AI-Driven Development | MoonBit How Fastcc, a self-hosting ARM64 C compiler, was built from scratch in 10 days with largely autonomous AI-driven development.

We recently completed Fastcc โ€” a self-hosting C compiler with minimal human involvement.

In ~10 days, an AI agent implemented ~35k LOC, reached self-hosting, and compiled real-world C code, including Sqlite, QuickJS and Tcc

Full article๏ผšwww.moonbitlang.com/blog/fastcc-ai-driven-development

09.02.2026 11:44 ๐Ÿ‘ 0 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
MoonBit Communityโ€จOnline Meetup #11 โ€” Invitation via Google Calendar

MoonBit v0.8 Release Online Meetup โ€” Join us Next Thursday๏ผ
๐Ÿ“… Feb 12 (Thu) ยท 10:00 AM London / 6:00 PM Beijing
๐Ÿ’ป Mark your calender calendar.app.google/qr5D85x4kFSpviJ58
๐ŸŽฅ Live on Google Meet and YouTube (simulcast)
โœจ MoonBit v0.8 Release Highlights
๐Ÿ›  Language & toolchain updates

04.02.2026 02:04 ๐Ÿ‘ 1 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
Implementing CRDT Algorithms with MoonBit and Building Real-time Collaborative Applications | MoonBit A deep dive into OT, RGA, and EG-Walker CRDTs with MoonBit implementations and a Lomo-based collaborative editor demo.

Why do two people edit the same doc at onceโ€ฆ and sometimes end up with different results?
We breaks down concurrent conflicts, compares OT vs CRDT, and shows how RGA/Event Graph-Walker make everyone converge to the same final state โ€” even after reconnection.
www.moonbitlang.com/blog/crdt-al...

28.01.2026 11:24 ๐Ÿ‘ 1 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
AAoM-03: A WHATWG HTML5 Parser, Driven by Tests December 2025 This post covers aaom-html: a WHATWG HTML5 parser implemented in MoonBit. As with the...

Community spotlight: Agentic Adventures of MoonBit (AAoM)

AAoM-03: A WHATWG HTML5 Parser, Driven by Tests, documents building a WHATWG-compliant HTML5 parser in MoonBit, using agentic workflow to grind failures down to zero.
dev.to/milky2018/aaom-03-a-whatwg-html5-parser-driven-by-tests-40o7

22.01.2026 12:10 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
Static Analysis with MoonBit: From Simple Language Analysis to MCIL | MoonBit Build a static analyzer in MoonBit, from AST to CFG and data-flow analysis, ending with MCIL.

๐Ÿ‘Uncover the underlying logic that enables compilers to "foresee" potential risks before your code even runs.

This guide explores the elegance of static analysis and demonstrates how to build a mature MCIL framework using MoonBit.
www.moonbitlang.com/blog/moonbit...

15.01.2026 12:06 ๐Ÿ‘ 0 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Community spotlight: Agentic Adventures of MoonBit (AAoM) by @M_Wildwhisky

AAoM-02 : building an XML parser in MoonBit with the W3C Conformance Test Suite, exploring the use of Claude Code Skills in MoonBit .

Full write-up: dev.to/milky2018/aaom-02-xml-parser-with-w3c-conformance-5a2f

15.01.2026 02:21 ๐Ÿ‘ 0 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

MoonBit Monthly Update Vol.07 is out!
New language features, toolchain improvements, and stdlib updates just landed โ€” from loop reasoning to experimental package support.

๐Ÿ”—Full update: moonbitlang.com/weekly-updat...

๐Ÿ“… This Saturday, join our online meetup to see these features live

14.01.2026 07:53 ๐Ÿ‘ 0 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

MoonBit Community Online Meetup #10
๐Ÿ—“ Jan 17 (Sat), 6:00 PM Beijing / 10:00 AM London
๐Ÿ“ Mark your calendar:
calendar.app.google/TPGyJxGsCaVU...
Next weekend, weโ€™ll focus on our Monthly Meetup highlights:
๐Ÿ”ฎ Community & Tooling Updates and MoonBit 2026 Outlook
๐Ÿค– Using Codex with MoonBit to Scale Up

09.01.2026 04:29 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
AAoM-01: Pug Template Engine December 2025 Let's kick off the Agentic Adventures of MoonBit series with a complete Pug template...

Community spotlight๏ผšAgentic Adventures of MoonBit (AAoM) by @M_Wildwhisky

AAoM-01: A Pug Template Engine, documents the process of building a complete Pug engine in MoonBit,using an agentic workflow with Claude Code (Opus 4.5).
Fullwrite-up๏ผšhttps://dev.to/milky2018/aaom-01-pug-template-engine-11ka

09.01.2026 04:28 ๐Ÿ‘ 0 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
Open Source WebAssembly Runtimes Built in MoonBit | MoonBit Open Source WebAssembly Runtimes Built in MoonBit

Weโ€™re building two open-source WebAssembly runtimes in MoonBit, focused on portable, secure, and consistent wasm execution across platforms.

๐Ÿงฉ wasm5 โ€” a lightweight interpreter with strong sandboxing
โšก wasmoon โ€” a JIT runtime (aarch64)

๐Ÿ“– Full write-up:
www.moonbitlang.com/blog/moonbit-wasm-runtime

30.12.2025 11:27 ๐Ÿ‘ 5 ๐Ÿ” 3 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

Join us for a MoonBit online meetup ๐Ÿš€
DEC 20๏ผˆsat) 10:00am London time
Weโ€™ll share where MoonBit is today, whatโ€™s on the roadmap,
and do a live coding session showing how AI can help build a MoonBit library from scratch.
calendar.app.google/J1Dunq3PduWV...
See you there ๐Ÿ‘‹

19.12.2025 02:49 ๐Ÿ‘ 1 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

MoonBit Monthly Update Vol.6
This month weโ€™ve added JS-module FFI, improved lexmatch and warnings, enhanced ReadOnlyArray, and expanded bitstring pattern matching with signed integers๏ผ
๐Ÿ“ทCheck out the highlights below or read our blog๏ผš
www.moonbitlang.com/weekly-updates/

03.12.2025 02:36 ๐Ÿ‘ 0 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Learn step-by-step how to build a secure AI tool with MoonBit and Wassette, powered by the WebAssembly Component Model.
Read more๏ผšhttps://www.moonbitlang.com/pearls/moonbit-wassette

07.11.2025 05:53 ๐Ÿ‘ 2 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

๐ŸŒ• MoonBit Monthly Update Vol.5
This month, we update alias syntax, new built-ins like ReadOnlyArray and Iterator, and smarter linting and IDE tools.
๐Ÿ‘‰Check out the highlights below or read our blog๏ผšwww.moonbitlang.com/weekly-updates/

04.11.2025 08:00 ๐Ÿ‘ 0 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

Weโ€™ve rolled out some exciting language updates this month! โœจ
Read more:www.moonbitlang.com/weekly-updates/2025/10/14/index
๐Ÿ’ฌ Join our upcoming online meetup to see how these features enable building real AI Agents with MoonBit โ€” details dropping soon!

14.10.2025 11:31 ๐Ÿ‘ 1 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
Install the Wasm version of the MoonBit toolchain | MoonBit Install the Wasm version of the MoonBit toolchain

Learn how to install and configure the Wasm version of the MoonBit toolchain โ€”โ€”on any Node.js-supported environment ๏ผ
www.moonbitlang.com/blog/moonbit...
join us in discord๏ผšhttp://discord.gg/mNf8NG73Te

11.10.2025 05:39 ๐Ÿ‘ 0 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

MoonBit now ships async programming support!

Powered by structured concurrency โ†’ safer & more reliable async.

Yes, you can now build your own AI agentsใ€Cloud services with MoonBit ๏ผ

Check details๏ผšwww.moonbitlang.com/blog/moonbit-async
Repo๏ผšhttps://github.com/moonbitlang/async

29.09.2025 02:11 ๐Ÿ‘ 1 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Mini-adapton: incremental computation in MoonBit
In this article, we will show how to implement an incremental computation library in MoonBit with api used:
www.moonbitlang.com/pearls/mini-...

24.09.2025 14:46 ๐Ÿ‘ 0 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

Weโ€™ve just open-sourced our async networking framework! ๐Ÿš€
Itโ€™s already stable enough to build web services with MoonBit. An article with more details will be coming later this monthโ€”stay tuned!

16.09.2025 01:54 ๐Ÿ‘ 0 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

๐Ÿš€ MoonBit Monthly Update Vol.03 is here!
Highlight of the month: Bitstring Pattern Matching โœจ
Now you can match specific-width bits directly when pattern matching on Bytes or @bytes.View.Full update ๐Ÿ‘‰ www.moonbitlang.com/weekly-updates/2025/09/08/index

08.09.2025 11:21 ๐Ÿ‘ 0 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
A Guide to MoonBit C-FFI | MoonBit A Guide to MoonBit C-FFI

Want to use C libraries in MoonBit? Now you can๐Ÿ˜†
With C-FFI, MoonBit can call native C functions โ€” from low-level hardware ops to high-performance math.
A step-by-step guide to MoonBitโ€™s C-FFI
www.moonbitlang.com/pearls/moonb...

03.09.2025 01:43 ๐Ÿ‘ 4 ๐Ÿ” 2 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Dancing with LLVM: A Moonbit Chronicle (Part 2) - LLVM Backend Generation | MoonBit Dancing with LLVM: A Moonbit Chronicle (Part 2) - LLVM Backend Generation

๐Ÿš€ MoonBit Pearls Series continues!
Last time we built the frontend of TinyMoonbit with parsing & type checking.
๐Ÿ‘‰ Now we dive into the backend: turning AST โ†’ LLVM IR โ†’ RISC-V assembly with MoonBitโ€™s llvm.mbt.
๐Ÿ”— Read here ๏ผšwww.moonbitlang.com/pearls/moonbit-and-llvm-2

28.08.2025 10:06 ๐Ÿ‘ 0 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0