Sere, a compiled Python-like systems programming language

3 pointsposted 10 hours ago
by handheldheart

4 Comments

handheldheart

10 hours ago

I’ve been building Sere, a statically typed compiled language that tries to combine Python-like syntax with lower-level capabilities you’d normally associate with C++, Rust, or Zig.

The core idea is to keep everyday code simple:

def main() -> i32: print("hello from sere") return 0

while still allowing things like structs, enums, generics, native interop, and explicit memory control when needed:

struct Point: x: i32 y: i32

    def length_sq(self) -> i32:
        return self.x * self.x + self.y * self.y
Sere currently compiles through LLVM and produces native binaries. I’ve also been working on the surrounding tooling, including a language server, VS Code support, project tooling, library packaging, and C/C++ interoperability.

This is still an early project, and there are definitely rough edges. I’m posting it here because I’d really like feedback from people who work on compilers, language design, LLVM, systems programming, or just enjoy trying new languages.

Website: https://sere-lang.com

GitHub: https://github.com/Sere-Language/sere

I’d especially be interested in feedback on the language design itself, what feels unnecessary, what feels missing, and whether the Python-like syntax works well once the language starts exposing lower-level features.

MiroslavPokorny

10 hours ago

What does python like actually mean ?

How easy is it to convert real python programs to Sere ?

handheldheart

10 hours ago

The language syntax is pythonic. This is not a superset of python. Interop for sere/python isnt official yet. Right now interop for C/C++ does exist and works well.

MiroslavPokorny

6 hours ago

Ask 10 people what that means and you will probably get 11 difference answers.

The devil is in the details. You only mention one interesting gotcha and thats the problem.