wess's profile
Wess Cope@wess•Feb 20
140
Post cover image

wess/moxy: A superset for the almighty C language.

From github.com•Feb 20•14m read time

Moxy is a lightweight superset of C that transpiles to clean C11 output. It adds modern language features like string and bool types, dynamic arrays, hash maps, tagged enums with pattern matching, Result types for error handling, pipe operators, lambdas, async/futures via pthreads, and automatic reference counting — all while preserving C's type system and control flow. The transpiler is written in ~6,200 lines of C and follows a five-stage pipeline: preprocessor, lexer, parser, AST, and codegen. It ships with a CLI supporting build, run, test, fmt, lint, and project management commands, plus a small embedded standard library and Zed editor support.

7 Impressions
wess's user avatar
Wess Cope
@wess
Joined Sep 21. 2022
140

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard