r/ProgrammingLanguages • u/Francog2709 • Mar 16 '26
Requesting criticism Mathic programming language
Hi everyone!
My name is Franco. This is a post to introduce Mathic to the public. Perhaps it is too early, perhaps not — I wanted to do it anyway.
Mathic is the programming language I always wanted to build. It started as a way of learning and improving my skills with MLIR/LLVM. My goal is to build a language with simplicity as its first-class implementation driver, with native support for symbolic algebra.
Mathic is built with Rust, from which its syntax took some inspiration, and as I mentioned, LLVM/MLIR.
The project is at quite an early stage right now. However, it does support some features like control flow, variables, functions, structs, and types.
I would very much appreciate feedback from anyone. Also, if anyone has experience with MLIR, I'd love any recommendations on things that could have been done better.
View all comments
Show parent comment
3
u/Francog2709 Mar 17 '26
I mainly started this project as way of improving my knowledge on compilers (this is my very first language), LLVM and MLIR. I didn't know LLVM doesn't support different precisions, so that's good to know. Talking about planning, I do want to create an std library providing functions for integrals, limits, derivatives, etc. I want to avoid giving the language to many keywords, I'm trying to keep it simple. So my first try would be to build things like matrices as structs and provide essential methods. However, I didn't started designing the symbol system yet.