deniz.in

Markets

Weather

Loading weather

· via dev.to (home feed)

Sere Launches as Open-Source Compiled Language Mixing Python Syntax with Manual Memory Control

Sere, a newly launched open-source language, compiles Python-style syntax to native binaries via LLVM while offering raw pointers, ownership types and pattern matching. Its author calls it early and wants feedback.

Sere Launches as Open-Source Compiled Language Mixing Python Syntax with Manual Memory Control

A new open-source programming language named Sere has been publicly launched, pairing Python-like syntax with native compilation and systems-level features such as static typing and manual memory control. According to the announcement post on dev.to, written by the language's creator, Sere is built on LLVM and is already usable enough to write programs, compile native binaries and package libraries, though the author is upfront that it remains an early-stage project.

Python in shape, systems language in substance

On the surface Sere reads like Python: functions are declared with def, code blocks are delimited by indentation rather than braces, and types appear as annotations rather than separate declarations. The entry point shown in the announcement is a short main function annotated to return a 32-bit integer, and structs can carry both fields and methods with little ceremony, demonstrated by a Point type with a method that computes its squared length.

The language also includes modern conveniences such as enums that carry associated data and a match/case construct for pattern matching over them, along with interpolated strings for output.

Compiled through LLVM

Under the hood, Sere is a native compiled language built on LLVM. A single compiler invocation turns a source file into an executable, and the toolchain can also emit the intermediate LLVM representation or the generated assembly, letting developers inspect exactly what the compiler produces. According to the dev.to post, this is the core promise: readable high-level code that still ends up as a real native binary.

Memory control as a first-class feature

The creator is explicit that Sere is not simply "Python with a compiler." The language exposes explicit ownership through a Unique type, with operations to create, dereference and load owned values, and it provides raw pointers with manual allocation, storing and freeing for cases where that level of control is genuinely needed. The stated ambition is a language where iterating over a list stays effortless while allocating a raw byte buffer by hand remains possible, keeping code high-level when convenient but able to drop to manual allocation when necessary.

Tooling ships alongside the compiler

Rather than treating developer experience as an afterthought, the launch already includes syntax highlighting, diagnostics, hover information, go-to-definition, rename support, VS Code integration and project builds. Libraries can be packaged into .slib files and imported into other Sere projects through dedicated init and pack commands. Native interoperability is described as a major goal, with C and C++ interop planned so Sere can work with the existing native ecosystem instead of pretending it does not exist.

An early project launched to gather criticism

The announcement is frank about the language's maturity: there are still bugs, missing features, compiler edge cases and parts of the ecosystem that need more work. The creator says the public launch is deliberate at this stage, because feedback is most valuable while the design is still flexible enough to change. Sere is explicitly not intended to replace Python, C++ or Rust, but to explore a different balance between readability and control. The project is open source on GitHub, and the author invites contributions from anyone interested in compilers, LLVM, language design or systems programming.

Why it matters

The tension between approachable scripting syntax and fine-grained native performance has shaped language design for decades, and every new entrant takes a slightly different position on it. Sere's most notable choice is shipping real tooling, from editor integration to refactoring commands and library packaging, at the same time as the compiler itself, which is rare for a language this young and often decisive for whether anyone adopts it. Nobody should build production systems on Sere today, and the author does not claim otherwise. But as a public, feedback-driven experiment in combining Python-style ergonomics with LLVM-backed native output and planned C interop, it is a project worth watching for anyone who follows programming language design.

  • #programming-languages
  • #llvm
  • #open-source
  • #compilers
  • #systems-programming

Related posts