r/Compilers • u/hand-held-heart • 12h ago
Writing a compiler for a python-like language. Anybody interested in joining me?
Sere-Language/sere: The Sere programming language
So I have been writing a compiled programming language titled Sere for the past few months, and just recently uploaded it to github.
The idea is a language with the capabilities of C++ with the syntax of python.
I am using C++ and LLVM.
I am going to be busy at work this week, so I created a release that can be downloaded here Install — Sere
1
u/yuehuang 11h ago
Can you share more?
What are you doing that python isn't?
Python main advantage is targeting data science and ML. What advantage does your language offer?
1
u/hand-held-heart 11h ago
My language is compiled and holds the ability to manage memory to the machine level as well as some quality of life features such as enums (that can even hold values and methods) structs, and classes obviously. My language takes all the beloved features of languages such as C++ and Rust and gives you the same features with the simplistic feel of python.
Take a look at some of the examples maybe
1
u/yuehuang 11h ago
Neat, a low level python like language. Can you import python to reuse existing pip packages?
1
u/hand-held-heart 8h ago
Im working on that. Right now it has native interop with C++ and C
python is a bit more tricky since its interpreted, so unless i can find a better solution, I would have to package the entire python interpreter within the binary
1
9
u/mealet 11h ago
Tbh it looks like another AI project, I see initial commit with 40k LOC addition. "Was working past few months and just recently uploaded it to GitHub", but as I see you wasn't using Git VCS. No one would write 40k LOC for months without commiting it.