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.
6
u/Meistermagier Mar 17 '26
I want to give you a heads up that your languages name is very close to https://mathics.org/ which is a Open Source Implementation of Mathematica.
4
u/ohforth Mar 17 '26
Can you show me the planned syntax and semantics of mathic?
3
u/mark-sed github.com/mark-sed/moss-lang/ Mar 17 '26
I like some parts of the syntax (I also put the range syntax `x..y` in all my languages), but I wonder who is this targeted at? My guess is mathematicians/scientists doing some big computations? Or is this just for you to learn LLVM?
If it is for scientists do you plan on supporting arbitrary precision floats since LLVM cannot target those and also do you plan on adding some math-specialized types like matrices, fractional representation of floats..?
1
u/nerdycatgamer Mar 19 '26
so what does a basic procedural language have to do with math?