Hachi Mascot

Hachi ハチ

A lean, compiled language that combines script-like simplicity with raw native performance. Build performant server-side applications and tools with minimal boilerplate, automatic memory management, and seamless C++ integration.

GET STARTED DOWNLOAD
>@ "fmt/color"
pulse: makeChannel: String
boot :: {}:
(
    msg: outc: "1;35", "async worker online"
    send: pulse, msg
)
status :: {name:String, score:Int} -> {String}:
(
    badge: outc: "1;33", "WATCH"
    Ri.score >= 90 ? (
        badge: outc: "1;32", "LOCKED"
    )
    Ri.name + " :: " + badge + " :: " + Ri.score.String + "%"
)
print: outc: "1;36", "Hachi systems check"
go: boot
print: recv: pulse
close: pulse
print: status: "compiler", 98
print: status: "runtime", 91
print: status: "native-cpp", 87

This example shows typed functions, async tasks, channels, colorized output, and native-style execution in a compact Hachi program.

Native Power, Less Ceremony

Drop C++ Anywhere

Embed native C++ directly in your program. Use existing libraries, write low-level glue, or expose native routines without leaving the Hachi workflow.

Automatic Clean-Up

Hachi-managed values are cleaned up automatically when they leave scope. You get a simpler ownership story while still keeping native interoperability available when you need it.

One Tool, Native Output

Hachi includes its own build system and transpiler, turning compact Hachi programs into clean C++ that builds with a standard native toolchain. Use it for command-line tools, server-side programs, systems utilities, automation, and native glue code that needs to work directly with existing C and C++ libraries.

Easy Install

Go from install to making your first Hachi program in record time!

curl -fsSL https://hdev.run/install | bash