Skip to content
Main site
Getting Startedv0.8.0-rc

What is HADID? Architecture & Design Principles

Overview of HADID's bilingual syntax, C17 native compiler pipeline, arena memory model, and M0–M8 status.

5 min readUpdated: v0.8.0-rc Reference

Welcome to HADID

HADID is a systems and backend programming language engineered by Digital HAT that compiles unified English and Turkish keywords through a single AST, uses value semantics with scope/request arenas, and executes identically in both the interpreter (`hadid run`) and strict C17 native binaries (`hadid build`).

Core Architecture Summary

LayerImplemented DesignVerification Gate
Frontend & BilingualShared TR/EN tokenization, recoverable parser, explicit limits (255 B id, 8 MiB file)1,108+ positive/negative fixtures
Types & ErrorsStatic i32/i64/f64/byte/bool/string, struct, enum, Option<T>, Result<T,E>, List<T>Interpreter = Native parity
Memory & ResourcesValue semantics, function/loop/request arenas, automatic socket/file/SQLite cleanup29/29 ASan/UBSan · 784 C17 O0/O2
SDK & LSPhadid new/deps/lock/test/fmt/lsp, shell-free portable builds, libhadid_rt.aOut-of-repo install with spaces
Web, Data & AuthPinned llhttp v9.4.4, parameterized SQLite (WAL), Argon2id 20190702, BLAKE2b sessions, RBACM5–M8 protocol & E2E suites

Your First Runnable Program

Click Run in the top-right corner of any HADID code block to execute it right in your browser, or click Edit to experiment:

hadid · EN
fn twice(value: i32): i32 {    return value * 2;}const answer = twice(21);print(answer);

And the exact Turkish equivalent compiling to the identical AST:

hadid · TR
fonksiyon iki_kati(sayi: i32): i32 {    dondur sayi * 2;}sabit deger = iki_kati(21);yaz(deger);