Hachi – A new systems language built on C++, with built-in auto-free mem mgmt

1 takko_the_boss 1 7/25/2025, 2:58:06 PM hdev.run ↗

Comments (1)

takko_the_boss · 17h ago
I’ve been building a programming language called Hachi for the past couple of years. It’s a lightweight systems language that transpiles to C++, giving you native performance with a modern, simple syntax.

One of Hachi’s most unique feature is its memory management model: it uses static lifetime analysis to automatically insert free calls when values go out of scope. There’s no garbage collector, no runtime overhead, and you still get memory safety similar to RAII, but without the boilerplate.

Hachi also makes it easy to embed C or C++ code directly into your source files, so you can leverage existing libraries without fighting the toolchain. It’s been especially fun to use for security tooling and networking-related projects.

The language is still evolving, but it already works well for real-world code (I use it for work at my company). If you’re curious, check it out, try a small project, or even just skim the tutorials in the docs site. I’d love feedback, ideas, or just to know what folks think.