From 94fd077099aa4eb43273d30e8c680f6e118275da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=86=B0=E6=99=B6?= Date: Fri, 22 May 2026 16:39:23 +0800 Subject: [PATCH] Add Cobrust language Cobrust is a statically-typed Python successor implemented in Rust with an AI-native translation subsystem. Compiles to native binaries via Cranelift / LLVM. File extension: .cb Repository: https://github.com/cobrust-lang/cobrust License: Apache-2.0 OR MIT --- concepts/cobrust.scroll | 62 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 concepts/cobrust.scroll diff --git a/concepts/cobrust.scroll b/concepts/cobrust.scroll new file mode 100644 index 000000000000..997a96f09d67 --- /dev/null +++ b/concepts/cobrust.scroll @@ -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)