r/Compilers • u/ApprehensivePipe1584 • Sep 21 '26
C^4 Programming Language
I've been making a programming language, C^4 for almost a year. It's got generics, concepts, OOP, inheritance and polymorphism, error handling, and is able to build projects. It has some docs and a README, and a book is in the works. Wondering if anybody could check it out?
4
Upvotes
View all comments
Show parent comment
1
u/EmDashNine Sep 23 '26
Y'know this whole thing gives me the impression that you are relatively early in your career and so I'm going to pull my punch, because I was green once.
If you're keeping this a personal passion project, then of course it's your choice how you want to implement it. Some of your other comments hint at a workflow that deviates somewhat from the typical developer.
If you want other folks to contribute, it would be wise to adopt --gradually -- at least some mainstream coding conventions, tooling, and practices. Hey, At least you're using git.
The whole compiler being one source file isn't really a selling point in my book, and having worked on C and C++ projects, it can be really hard to modularize things after the fact, should it prove necessary: because
#includeis a bad feature (hence, C++ namespaces, and C++ modules) and it's very easy to misuse them.The sooner you can modularize this code and get to separate compilation, the better off your project will be be long term. Not saying it's easy.