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
| Layer | Implemented Design | Verification Gate |
|---|---|---|
| Frontend & Bilingual | Shared TR/EN tokenization, recoverable parser, explicit limits (255 B id, 8 MiB file) | 1,108+ positive/negative fixtures |
| Types & Errors | Static i32/i64/f64/byte/bool/string, struct, enum, Option<T>, Result<T,E>, List<T> | Interpreter = Native parity |
| Memory & Resources | Value semantics, function/loop/request arenas, automatic socket/file/SQLite cleanup | 29/29 ASan/UBSan · 784 C17 O0/O2 |
| SDK & LSP | hadid new/deps/lock/test/fmt/lsp, shell-free portable builds, libhadid_rt.a | Out-of-repo install with spaces |
| Web, Data & Auth | Pinned llhttp v9.4.4, parameterized SQLite (WAL), Argon2id 20190702, BLAKE2b sessions, RBAC | M5–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);