TezzNative SDK Reference

Module-by-module function index

SDK Reference

Module-by-module API index with descriptions. Use search to quickly reveal specific functions.

Indexed SDK Functions

Modules: 45 · Functions: 1740

Optional native C-kernel bridge for AI hot loops. These functions are intended for native builds that link matching C objects.

File: ai_kernels.tn

autodiff module (Phase 4 scaffold)

File: autodiff.tn

Core SDK module.

File: data.tn

event module: deterministic UI/input event queue primitives.

File: event.tn

frame module: deterministic rect + damage-region utilities for GUI compositors.

File: frame.tn

gpu module: native GPU/accelerator stubs + kernel entry wiring. Backend lowering is target-dependent (cuda/metal/vulkan/directml).

File: gpu.tn

gui module: minimal immediate-mode GUI for freestanding targets Uses the Limine framebuffer when available (via os.fb_* accessors).

File: gui.tn

intrin module: low-level intrinsics and explicit SIMD kernels

File: intrin.tn

io module: constants, helpers, and File handle wrapper

File: io.tn

Core SDK module.

File: llm_core.tn

Core SDK module.

File: math.tn

ml module: unified AI/ML surface for TezzNative

File: ml.tn

Core SDK module.

File: modelio.tn

net module: production network baseline for TezzNative. Scope in v1.0: - TCP + UDP socket wrappers - DNS endpoint helpers + URL utilities - TLS socket handle wrappers - HTTP/HTTPS convenience helpers (client + minimal server helpers) - WebSocket handshake + frame helpers - Native runtime-backed URL downloader Notes: - This module is the production baseline for app/service networking. - HTTP/2, QUIC, SMTP/IMAP, and full proxy stacks remain future milestones.

File: net.tn

npu module: accelerator stubs (NPU/AI cores)

File: npu.tn

ocr module: Hindi-first OCR helpers (production baseline). Backend: - tesseract CLI (cross-platform) Notes: - This module provides deterministic command construction + extraction helpers. - For production OCR quality, install language data for Hindi (`hin`) and English (`eng`).

File: ocr.tn

Core SDK module.

File: optim.tn

os module: freestanding helpers for OS/kernel targets This module is intentionally minimal and only depends on `sys`.

File: os.tn

simd module: scalar fallbacks for vector-style operations API uses pointers so callers can pass arrays (array-to-pointer decay).

File: simd.tn

std module: common prelude for TezzNative Import core libraries so projects can just `import "std"` as a baseline.

File: std.tn

sys module: freestanding ABI surface (no stdlib) NOTE: These are stubs/signatures for low-level targets. Backends/targets can map them to platform syscalls or kernel services.

File: sys.tn

task module: minimal async/await wrappers (native runs concurrently; VM runs synchronously)

File: task.tn

tensor module (Phase 4 advanced)

File: tensor.tn

Core SDK module.

File: tensor_gpu.tn

Core SDK module.

File: tensor_mt.tn

tezzapi module: route-table API service layer + TNXB bytecode transport. Goals in v1.0: - CRUD-oriented API registration on top of net route tables - binary TNXB packet encode/decode for faster data transfer paths - socket/file helpers for TNXB payload transmission

File: tezzapi.tn

tezzdb module: lightweight TezzNative key/session/history store. Record format (append-only): U|<user>|<hash> T|<token>|<user>|<ts_ms> S|<session>|<user>|<ts_ms> H|<session>|<user>|<ts_ms>|<prompt>|<reply>

File: tezzdb.tn

tezzserve module: production API server framework on top of TezzApi. Goals in v1.0: - Fast route registration helpers for API servers - Hardened HTTP session lifecycle wrappers - TNXB bridge endpoint helpers (HTTP body -> TNXB decode -> route dispatch)

File: tezzserve.tn

tezzsetup module: production installer/uninstaller core logic for TezzNative. This module intentionally keeps the operational logic separate from GUI code, so we can validate install/uninstall behavior in headless CI and reuse it from Tk-style GUI frontends.

File: tezzsetup.tn

tezzspeech module: local TezzSpeech IPC protocol (no HTTP). Transport: - TCP loopback service (default 127.0.0.1:8097) - Binary framed protocol for low-latency request/response. Frame layout (12-byte header + payload): [0..3] magic "TZS1" [4] version (1) [5] op [6] status (response only; request uses 0) [7] reserved [8..11] payload_len (u32 little-endian) Payload for SPEAK: lang=<lang>\n voice=<voice>\n rate=<int>\n clone=<voice_ref_path>\n trace=<request_id>\n \n <text>

File: tezzspeech.tn

Core SDK module.

File: tezzspeechd.tn

tezzui module: HTML-like UI composition for TezzNative web/service apps. This is a lightweight string-builder layer (no external runtime dependency).

File: tezzui.tn

time module: sleep + time/date helpers

File: time.tn

tkui module (deprecated): use tzui instead. Goals: - Keep app code short and readable (window/frame/label/button/entry) - Use dirty-region rendering by default via tzgui tree - Provide basic pointer + keyboard interaction for installer-style apps

File: tkui.tn

tls module: OS-backed TLS/HTTPS helpers

File: tls.tn

Core SDK module.

File: tnauto.tn

TezzNative eXchange (TNX): JSON-like data encoding for payloads and storage. Types: null, bool, int, float, string, array, object. Memory: all returned values/strings are heap-allocated; call tnx.release().

File: tnx.tn

Core SDK module.

File: tokenizer.tn

tsm module: TezzServiceManager (cross-platform service/process control scaffold). Registry format: TNX array of service objects. Service object keys: - name:str - cmd:str - cwd:str - autostart:int (0/1) - restart:int (0=never,1=always) - enabled:int (0/1)

File: tsm.tn

tts module: Hindi-first text-to-speech helpers (production baseline). Backends: - espeak-ng / espeak (Linux/WSL/macOS/Windows if installed) - PowerShell SAPI fallback on Windows Notes: - This module is a stable v1 baseline wrapper around host TTS engines. - Engine discovery is runtime-based and non-fatal.

File: tts.tn

tzgui module: production-oriented, low-boilerplate GUI engine helpers. Built on top of core `gui` + `frame` primitives. Goals: - Easy app code (few calls to get a windowed UI) - Damage-aware redraw requests (apps mark what changed) - Deterministic behavior for freestanding/framebuffer targets

File: tzgui.tn

tzimage: compact image kernels for TezzNative. Focus: simple RGB/RGBA image operations with low-overhead memory handling.

File: tzimage.tn

tznum: compact numeric kernels for TezzNative Focus: concise, NumPy-style core operations without runtime overhead.

File: tznum.tn

tzui module: TzUI-style retained GUI wrapper over tzgui. Goals: - Keep app code short and readable (window/frame/label/button/entry) - Use dirty-region rendering by default via tzgui tree - Provide basic pointer + keyboard interaction for installer-style apps

File: tzui.tn

wm module: simple window manager + input dispatch (keyboard only)

File: wm.tn