r/rust • u/Francog2709 • Mar 16 '26
🛠️ project Mathic: My 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
1
u/Francog2709 Mar 19 '26 edited Mar 19 '26
That's a good question. The reality is that I chose to do it from the rust side because it's simpler. All the semantic checks are easier to make and integrate from rust, and honestly I think that doing it from the MLIR side would be quite an overkill in that sense. The purpose of MATHIR is mainly to ease the code generation.
I do intend to create a dialect for the symbolic system. However, I didn't even get to the design of it, I wanted to have some features done before it mainly to feel more confortable with MLIR, after all this is my first try on creating a language.
Thanks for the comment!