
Hachi
A general purpose, compiled programming language thats simple and easy to use for building performant server-side applications and tools.
GET STARTED>@ "so",
>@ "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
Drop C++ Anywhere
Drop C++ code blocks directly into your Hachi files. Write native logic, include libraries, and tap into the full power of C++ exactly where you need it, and Hachi just takes care of the build.
Auto-Free Memory Safety
Hachi auto-free’s your memory as soon as it goes out of scope. No leaks, no dangling pointers, no garbage collector. Just safe, clean memory management built into the language.
Build for Anything
Hachi ships with its own powerful build system and transpiler. Write Hachi code and transpile it to clean, portable C++, cross-compile to any target architecture, and link native C/C++ libraries seamlessly all with one tool.
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 Hachi executable
make
# Check version
hachi -v