r/ProgrammingLanguages • u/thecoommeenntt • 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 whenblocks 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
View all comments
Show parent comment
1
u/Felice_rdt Jun 11 '26 edited Jun 11 '26
Agreed. I noodle with language ideas a lot and this is one constant. It just makes a ton of sense.Oh wait, you said
:for assignment. I use:for declaration+initialization. Then=is both for assignment and comparison. Note that I don't allow in-expr assignments like C/C++, so there is never any ambiguity.Edit: I might note that I briefly considered using
←for assignment, since I allow UTF-8 source code with stuff like≥or≠, and traditionally pseudocode used to use that for assignment, but I think that's asking for too much of a cognitive shift for most modern programmers.