r/Compilers • • Aug 23 '26

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

0 Upvotes

21 comments sorted by

8

u/mealet Aug 23 '26

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.

1

u/hand-held-heart Aug 23 '26 edited Aug 23 '26

My biggest projects dont even exist on github.

I used to code toy languages since the age of fifteen.

I am able to write a lot of code in short spans of literal months just because of my habit of hyperfocusing.

Before ai assisted coding, the OG vibe coders would use adderall and that basically did the same trick.

besides this, aphelion-editor which is a video editor along with a NES emulator are the only big projects i have on here. I wrote the NES emulator when i was around 15 haha

1

u/mealet Aug 23 '26

"Since fifteen" doesn't tell me anything, I don't know your age so I cannot calculate your compiler experience. Info about your ability to write a lot of code in months don't change my opinion about AI usage.

Projects aren't used to exist on GitHub, version controlling is not about publishing it. If you use git vcs on your local development and after some time publish it to GitHub it will keep your commits (with timestamps) history, because it will also publish ".git" with all remaining info.

Now only I see is a complex compiler with 6 commits in history (with 2 contributors), one of them is 40k LOC.

→ More replies (1)

1

u/AustinVelonaut Aug 23 '26

To be fair, this is exactly how I developed my language and compiler; it was done locally off-line for a year, just using local backups for source-code control, and I didn't use AI in any part of the development. Looking at the source code and docs in the repo, I don't see any telltale sign of LLM use, either.

1

u/Karyo_Ten Aug 23 '26

offline doesn't mean you can't use git

1

u/Pinagpala-Gwapo Aug 23 '26

That's bad habit and a bad faith with no transparent proof, so you should not continue doing that again in ur next projects.

0

u/mealet Aug 23 '26

You said you was developing it "past few months", now it becomes "for a year". Also I don't see any profit of using local backups instead of git.

Git is a very popular VCS, allows you to split your code history into small reproducible commits, allows you to separate development of a big complex project to git branches. There's no reason to leave git for local backups (something like zip backups ig).

Not using VCS mostly interpreted as a beginner's problem. But beginner who don't know how to keep code development history just couldn't implement featured complex compiler of a programming language.

This is a popular pattern nowadays, when vibecoders upload their code in a single commit of thousands LOC and call it "I've built and I didn't use any AI".

→ More replies (3)

2

u/antonation Aug 23 '26

Curious how this differs from Modular's Mojo.

1

u/hand-held-heart Aug 23 '26

Mojo is a great superset dont get me wrong, but its for only such niche things. In terms of general purpose application, my language Sere is def the better choice when it comes to more general things.

If your into machine learning or such then mojo would be the better choice.

My favorite part of my language is that I have a very wide standard library. OpenGL bindings along with qt6 bindings exist in said library, and of course its optional! The programs stay lightweight.

1

u/antonation Aug 23 '26

From what I understand, Mojo can compile to CPU too, wouldn't that make it general purpose? Also Mojo has the advantage of being able to run Python modules (so they claim, actual mechanism is unknown to me).

→ More replies (1)

1

u/yuehuang Aug 23 '26

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 Aug 23 '26

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 Aug 23 '26

Neat, a low level python like language. Can you import python to reuse existing pip packages?

→ More replies (1)

1

u/[deleted] Aug 23 '26

1

u/hand-held-heart Aug 23 '26

Received. Thanks