r/ProgrammingLanguages • • Mar 08 '26

I’m building a programming language (Cx) would anyone be willing to check it out and give feedback?

Building a systems language called Cx looking for design feedback

Site: https://cx-lang.com · Repo: https://github.com/COMMENTERTHE9/Cx_lang

Cx is a systems language aimed at game engines and real-time simulation. Early stage tree-walk interpreter right now, compiler backend coming.

Core goals

  • No GC, no runtime pauses
  • Deterministic memory via arenas + handles
  • Control without a borrow checker

What's working today

  • Functions with typed params, implicit/explicit returns
  • Numeric types t8..t128, f64, strings with {name} interpolation
  • Arena allocator + free checker (double-free prevention)
  • Handle<T> registry with generation counters and stale detection
  • Parameter copy modes: .copy, .copy.free, copy_into
  • when blocks with ranges, enums, and three-state bool (true/false/unknown)
  • Basic enums

Not done yet

  • Loops, structs, arrays
  • Modules, generics, stdlib
  • Compiler backend

cx

fnc greet(name: str) {
    print("hello {name}")
}
greet("Zara")
4 Upvotes

24 comments sorted by

View all comments

Show parent comment

10

u/m-in Mar 08 '26

IMHO, The best way to design a systems language is to use it for something, from day 1. And not something minor. It doesn’t need to self-host. But it should have a dogfood app or library that does async, work submission for thread pools, continuations and lambdas. Basically - for me - if you can’t cleanly write networking code and async code (with await), it’s not useful. This stuff goes all the way down to simple embedded systems with 16k of RAM that deal with async user events. If a hierarchical state machine isn’t reasonably clean to put together, UI code written in that language will suffer. Stuff like that.

When I mess with language design, it is mostly by rewriting existing code in the language-under-design (LUD?) with an aim to make the code easier to work on, and for the language to express coder’s intent well.

Also, OP should add into the webpage styling prompt that it should be accessible. Low-contrast text - yuck.