Skip to content
@thrushlang

Thrush Programming Language

A programming language dedicated to creating maintainable and modular software.

logo

Thrush Programming Language

The Thrush Programming Language. A programming language dedicated to creating maintainable and modular software.

Philosophy

The Thrush Programming Language aims to simplify the inherently tedious process of programming in a systems language, streamlining the experience while maintaining the essence of a proper systems language.

Introducing concepts such as:

  • Memory safety.
  • Simple error handling.
  • Strong Foreign Function Interface (FFI).
  • Simplified low-level memory control.
  • Compile-time execution with Just-In-Time compiler.
  • Automatic deallocation when reaching EFC.
  • Automatic construction of destructors.
  • Reference and hidden dereference systems.

Features

  • High level abstraction.
  • Non-explicit cast for primitive types.
  • Strongly statically typed.
  • Strongly in OOP paradigm.
  • Automatic memory management.
  • Partial memory safety.
  • Ahead of time compilation.
  • Just in time compilation.
  • Faster compilation times.
  • Faster as C.
  • Compiled to machine code.

Example - Fibonacci sequence

Compiler

thrushc fibonacci.th -o fibonacci && ./fibonacci

Package Manager

thorium run

Code

fn print(fmt :: str) s32 @public @ignore @extern("printf");

fn fibonacci(n :: u64) u64 @alwaysinline @strongstack @hot {

    if n <= 1 {
        return n;
    }

    return fibonacci(n - 2) + fibonacci(n - 1);

}

fn main() { 

    for local i: u64 = 0; i < 10; i++; {

        print("fibonacci of '%ld': %ld\n", i, fibonacci(i));

    }

}

Contribute

  • If you're interested in contributing to the project and you're a Spanish speaker, let us know by visiting our official social media channels below.

Social Media

Thrush Programming Language

Pinned Loading

  1. thrushc thrushc Public

    The Thrush Programming Language. A programming language dedicated to creating maintainable and modular software.

    Rust 16 3

  2. thorium thorium Public

    The package manager for Thrush Programming Language.

    Rust 1

  3. toolchains toolchains Public

    Standard LLVM/Clang pre-optimized toolchains for the Thrush programming language.

    Python 1

  4. syntax syntax Public

    The meta syntax, which tries to be understood and compiled by the Thrush compiler.

    1

  5. techniques techniques Public

    We will explain in detail and concisely the techniques currently used by compiler or language approach, from the beginning of their development to the present day.

    1

  6. quantum quantum Public

    Extending the Thrush programming language for quantum programming.

    1

Repositories

Showing 7 of 7 repositories
  • toolchains Public

    Standard LLVM/Clang pre-optimized toolchains for the Thrush programming language.

    thrushlang/toolchains’s past year of commit activity
    Python 1 MPL-2.0 0 0 0 Updated Apr 21, 2025
  • thrushc Public

    The Thrush Programming Language. A programming language dedicated to creating maintainable and modular software.

    thrushlang/thrushc’s past year of commit activity
    Rust 16 MPL-2.0 3 0 0 Updated Apr 21, 2025
  • quantum Public

    Extending the Thrush programming language for quantum programming.

    thrushlang/quantum’s past year of commit activity
    1 MPL-2.0 0 0 0 Updated Apr 19, 2025
  • syntax Public

    The meta syntax, which tries to be understood and compiled by the Thrush compiler.

    thrushlang/syntax’s past year of commit activity
    1 MPL-2.0 0 0 0 Updated Apr 19, 2025
  • thorium Public

    The package manager for Thrush Programming Language.

    thrushlang/thorium’s past year of commit activity
    Rust 1 MPL-2.0 0 0 0 Updated Apr 19, 2025
  • .github Public

    The profile repository for thrushlang github project.

    thrushlang/.github’s past year of commit activity
    1 MPL-2.0 0 0 0 Updated Apr 19, 2025
  • techniques Public

    We will explain in detail and concisely the techniques currently used by compiler or language approach, from the beginning of their development to the present day.

    thrushlang/techniques’s past year of commit activity
    1 MPL-2.0 0 0 0 Updated Apr 15, 2025

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…