Hachi

A general purpose, compiled programming language thats simple and easy to use for building performant server-side applications and tools.

GET STARTED
>@ "so/so",
>@ "fmt/fmt"

myString: "It's over 9000!!!!"
mySubString: "9000"

myFunc:: {str:String,sub:String}->{AnyT}: (
    str: Ri.str
    substr: Ri.sub
    returnVar: ""
    status: strContains: str, substr
    status = 1 ?
    (
        returnVar: "Success!!"
    )| status = 0 ? (
        returnVar: "Failed."
    )|(
        shout: "Something went wrong bro"
    )
    returnVar
)

funky: myFunc: myString, mySubString
shout: funky

Sick Features

C++ Interop

Seamless integration with C++ code allow devs to easily drop in C++ code to leverage existing libraries and functions without extra setup, all while providing a versatile build system.

Memory Safe

Hachi employs it's own auto-free memory management mechanism to ensure your code doesn't introduce memory vulnerabilities by deallocating items when no longer in scope.

Highly Flexible

Indentation and (most) spacing is ignored, allowing developers to decide which coding styles and conventions to use for various patterns.

Easy Install

Get going writing your first Hachi program in record time!

# Clone the repository
git clone https://gitlab.com/hachi-lang/hachi
# Navigate to the directory
cd hachi
# Install dependencies
make
# Check version
hachi -v