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
1
u/mark-sed github.com/mark-sed/moss-lang/ Mar 17 '26
> I didn't know LLVM doesn't support different precisions
Just to clear this up, it does support it for ints, but I think you know that based on your examples having types like `i64`, and it does ofc support floats (32b), doubles (64b), half-floats (16b), 80 bit FP and even 128 bit FP, but I meant rather some very big floats of arbitrary precision, like python has Decimal, which LLVM does not support, but you can always use something like GNU MPFR.