HADID ENGINEERING DEVLOG

Compiler, Runtime & Ecosystem Release Log

Architectural milestones, strict ISO C17 backend decisions, verified test evidence, and our transparent roadmap for every HADID release.

v0.13.0Latest Release
CompilerRuntimeWeb & Real-TimeIDE & DebuggerPackagesHADID Learn

Native async/await, First-Class Closures, RFC 6455 WebSockets, Real Breakpoint Debugger & HADID Learn

HADID v0.13.0 advances the language into full native concurrency, constrained generic free functions, pure ISO C17 real-time WebSockets, XSS-safe HTML templates, a built-in Debug Adapter Protocol server (hadid dap), 10 official packages, and the interactive HADID Learn academy.

  • Bilingual async/await, Task<T>/Gorev<T>, sleep_ms, and await_all backed by a bounded OS worker pool and isolated per-task arenas.
  • First-class closures (fn(A): R) with arena-safe read-only value capture: store, pass, and return functions cleanly with zero GC.
  • Generic free functions (fn id<T>), where/nerede interface constraints, and fixed-point nested generic monomorphization (Box<Pair<K, V>>, Box<List<T>>).
  • Built-in RFC 6455 WebSockets (@ws, ws_send, ws_recv, ws_broadcast, ws_close), auto-XSS HTML templates (html_render), traversal-safe web_static, and pure-C17 crypto (SHA-256, HMAC-SHA256, Base64URL, constant-time compare).
  • Real step-through breakpoint debugger (hadid dap) with VS Code F5 integration plus LSP rename, signatureHelp, and semantic tokens.
  • Official package ecosystem doubled from 5 to 10 packages: hadid-jwt, hadid-cache, hadid-rate-limit, hadid-webhook, and hadid-logger.
  • Interactive HADID Learn academy launched with 3 guided Learning Paths, 12 video + live code lab + quiz lessons.

Architecture & Performance Note

To preserve 100% behavioral equivalence between the interpreter and strict ISO C17 native binaries, every v0.13 capability shares libhadid_rt.a with zero external DLL dependencies. The DAP debugger hooks into statement execution with a zero-overhead null check during normal runs and isolates debuggee stdout from JSON-RPC framing.

v0.13.0 — Parallel async/await, Constrained Generics & Closures
Studio
interface IMetric { fn label(): string; }

class NodeStat : IMetric {
    public readonly id: string;
    public NodeStat(id: string) { this.id = id; }
    public fn label(): string { return $"node:{this.id}"; }
}

fn tag<T>(item: T): string where T : IMetric { return $"[{item.label()}]"; }

async fn measure(base_ms: i32, scale: fn(i32): i32): i32 {
    sleep_ms(5);
    return scale(base_ms);
}

let factor = 3;
let mul: fn(i32): i32 = (n: i32): i32 => n * factor;
let t1 = measure(4, mul);
let t2 = measure(6, mul);
let n = new NodeStat("eu-1");
print($"{tag<NodeStat>(n)} total={(await t1) + (await t2)}");
Verified on macOS arm64 and Ubuntu 24.04 x86_64 under strict ISO C17 (-Wall -Wextra -Wpedantic), ASan/UBSan leak checks, NIST SHA-256 / RFC 4231 HMAC vectors, live RFC 6455 WebSocket tests, automated DAP/LSP protocol sessions, all 10 official package suites, and Windows x64 zero-DLL PE audits.
v0.12.0
CompilerRuntime

Compile-Time Query<T> ORM, Zero-Cost Loop-Fused Lambdas & Generic Classes

Zero SQL concatenation, 16 collection pipeline operators fused into a single C17 loop, module-level private visibility, and generic IRepository<T> / BaseRepository<T> OOP.

  • Query<T>: 17 bilingual query operators with compile-time column/type checks, parameterized SQLite & PostgreSQL 17 pushdown, and orm_unsafe_delete_all guard.
  • Loop-fused lambda pipelines: .filter().map().skip().take().sum() compiles to a single C17 for-loop with zero intermediate allocations.
  • Module-level visibility: explicit private/ozel encapsulation across multi-file imports.
  • User-defined generic classes & interfaces (IRepository<T>, BaseRepository<T>, Box<T>, Pair<K, V>) via compile-time AST monomorphization.

Architecture & Performance Note

In reproducible macOS arm64 -O2 native benchmarks, Query<T> SQL pushdown cut 10,000-row SQLite WAL pagination latency by 440× versus in-memory filtering, and a 10M-element fused lambda pipeline completed in a 6 ms median.

v0.12.0 — Loop-Fused Zero-Allocation Pipeline
Studio
let scores: List<i64> = [45, 82, 95, 60, 100, 88];
let total = scores
    .filter(s => s >= 80)
    .map(s => s * 2)
    .take(3)
    .sum();
print($"fused_total={total}");
Passed full regression across macOS arm64, Ubuntu 24.04 x86_64 (including live PostgreSQL 17 E2E), and Windows x64 zero-DLL cross-compilation.
v0.11.0
CompilerRuntimeWeb & Real-Time

Full OOP/SOLID, Constructor-Injected @controller DI, fs Library & Zero-SQL ORM

Enterprise architecture with zero runtime reflection: classes, nominal interfaces, dot-methods, 24 cross-platform filesystem helpers, and @table/Repo<T>.

  • Ergonomic syntax: bare Ok/Err/Some/None inference, concise list/map literals, and bilingual dot-methods.
  • Classes, interfaces, virtual/override dispatch, access modifiers, and @controller Constructor Injection.
  • Cross-platform fs/dosya standard library with atomic writes and root-delete guard.
  • Zero-SQL @table + Repo<T> typed CRUD on both SQLite WAL and PostgreSQL 17.

Architecture & Performance Note

In an 8-worker macOS arm64 benchmark of a SOLID @controller + Repo<T> SQLite WAL API, 800 concurrent requests completed with 0 errors at 6,638 req/s and ~4.5 MB RSS.

v0.11.0 — Bilingual Dot-Methods & Expression match
Studio
let raw = "  hadid native  ";
let clean = raw.trim().to_upper();
let parts = clean.split(" ");
print($"{parts.join("-")} (len={clean.length})");
Verified with 1,800+ language/module/runtime/ASan tests, live PostgreSQL 17 ORM verification, and 3-platform SDK packaging.
v0.10.0
RuntimeWeb & Real-Time

Map<K, V>, HTTP/HTTPS Client, Pure-C17 PostgreSQL v3.0 & Multi-Threaded Worker Pool

A pure ISO C17 PostgreSQL v3.0 driver speaking RFC 5802 SCRAM-SHA-256 with zero libpq, value-semantic Map<K, V>, and a multi-threaded _Thread_local-arena web pool.

  • Value-semantic Map<K, V> and typed JSON decoding for maps and lists.
  • Zero-dependency ISO C17 PostgreSQL v3.0 driver with RFC 5802 SCRAM-SHA-256.
  • Multi-threaded app_run worker pool powering the 24/7 hadid-live native showcase (~4.5 MB RSS).

Architecture & Performance Note

Each worker thread owns a dedicated _Thread_local arena that resets in O(1) at the end of every HTTP request—eliminating fragmentation and GC pauses.

v0.10.0 — Map<K, V> & Typed JSON
Studio
let counts: Map<string, i32> = { "tr": 12, "en": 19 };
counts["de"] = 7;
print($"total_locales={counts.len()} en={counts["en"] ?? 0}");
Verified against live PostgreSQL 17 SCRAM-SHA-256, 1,795 automated tests, and Windows x64 zero-external-DLL PE audit.

What's Next? (v0.14+ Roadmap)

v0.14 — Native TLS (PostgreSQL SSLRequest & HTTPS)

Direct TLS encryption support inside the PostgreSQL driver and built-in web server.

v0.14 — Linux ARM64 Releases & Signed Installers

Official ARM64 Linux packages plus Apple Developer ID and Windows Authenticode code signing.

v0.15+ — WebAssembly (wasm32) Compilation Target

Compiling HADID modules directly to browser-executable WebAssembly.

HADID is developed by Digital HAT under the Apache-2.0 open-source license.

Explore HADID Learn Academy