Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions concepts/cobrust.scroll
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
../code/conceptPage.scroll

id cobrust
name Cobrust
appeared 2026
creators Cobrust contributors
tags pl
website https://github.com/cobrust-lang/cobrust
description 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
fileExtensions cb
license Apache-2.0 OR MIT
isOpenSource true
writtenIn rust toml markdown

githubRepo https://github.com/cobrust-lang/cobrust
stars 0
forks 0
created 2026

compilesTo llvm-ir

influencedBy python rust

country International

lineCommentToken #
printToken print
assignmentToken =
stringToken "
booleanTokens true false

hasComments true
hasSemanticIndentation true
hasStaticTyping true
hasPrintDebugging true
hasPatternMatching true
hasGenerics true
hasEnums true
hasFirstClassFunctions true
hasLambda true
hasStrings true
"Hello, world!"
hasBooleans true
hasBooleans true
hasIntegers true
hasFloats true
hasLineComments true
# This is a comment

leachim6 Cobrust
filepath c/Cobrust.cb
fileExtensions cb
example
print("Hello World")

example
fn greet(name: str) -> str:
f"Hello, {name}!"

fn main():
result = greet("World")
print(result)