Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Cobrust

< >

Cobrust is an open source programming language created in 2026 by Cobrust contributors.

#1525on PLDB 0Years Old
Download source code:
git clone https://github.com/cobrust-lang/cobrust
Homepage · Source Code

Cobrust is a statically typed Python successor implemented in Rust with an AI-native compiler that closed-loop translates the Python ecosystem. It keeps Python ergonomics (indentation blocks, comprehensions, pattern matching, f-strings) while adopting Rust's ownership model and Result/Option error handling. No GIL, no implicit truthiness, no mutable default arguments. Targets Cranelift and LLVM backends. File extension: .cb


Example from the web:
fn greet(name: str) -> str: f"Hello, {name}!"
Example from hello-world:
print("Hello World")

Language features

Feature Supported Example Token
Line Comments ✓ # This is a comment #
Floats ✓
Integers ✓
Booleans ✓ true false
Booleans ✓ true false
Strings ✓ "Hello, world!" "
First-Class Functions ✓
Enums ✓
Generics ✓
Pattern Matching ✓
Print() Debugging ✓ print
Static Typing ✓
Semantic Indentation ✓
Comments ✓

- Build the next great programming language · Add · Add Prompt · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v178.2.3

license Apache-2.0 OR MIT

hasLambda true