Design Philosophy • Plain-English Memory Model • iOS & Android • Reproducible Latency Proof

Predictable Memory, Zero Pauses, Zero Lifetimes

How Veko achieves C/Rust-grade determinism without garbage-collection freezes or <'a> lifetime contracts: One Reference Only (ORO) single-owner values, native iOS & Android compilation (SwiftUI/Compose & Zero-SDK APK v2), reproducible p99.9 latency proofs, and candid comparisons against Go, Rust, Zig, Elixir, and Python.

Homoiconic ui/view + mobile DSL • Swift 6 & Kotlin Codegen • Zero-SDK APK v2

One Homoiconic .vk Spec Across Desktop Preview, SwiftUI/Compose & Zero-SDK .apk

Author mobile state, declarative views, dynamic quote [...] OTA workflows, and .secret-guarded RPC contracts once in Veko — then preview in <50 ms on your desktop and ship via Tier A OEM native UI or Tier B zero-SDK direct binaries.

Instant Loop • <50 ms

Homoiconic ui/view & 60fps Simulator

Combine --strict-types v/screen, v/stat, and v/secret-field-badge builders with quote [...] dynamic OTA views (v/eval-quoted — zero eval, zero capabilities). Preview live across iPhone 16 Pro, Pixel 9, iPad Mini, and Field Handheld viewports.

Tier A • OEM Native UI

Swift 6 SwiftUI + Material 3 Compose

veko mobile gen --all compiles Veko ASTs directly into Swift 6 @Observable + SecretString + SwiftUI (ios/) and Kotlin StateFlow + SecretText + Jetpack Compose (android/), backed by multi-slice .xcframework and 16 KiB ELF64 .so.

Tier B • Zero External SDKs

Zero-SDK Signed .apk & iOS .app

veko mobile apk emits installable ARM64 .apk packages directly — binary AXML AndroidManifest.xml (hasCode=false), 16 KiB page-aligned NativeActivity .so, and ECDSA P-256 APK Signature Scheme v2 — with zero Android SDK, NDK, Java, or Gradle.

FieldSync Mobile — iPhone 16 Pro Light Viewport393x852 • Dynamic Island
FieldSync Mobile — iPhone 16 Pro Light Viewport rendered by ui/view
FieldSync Mobile — Google Pixel 9 Dark Viewport412x915 • Material 3 Dark
FieldSync Mobile — Google Pixel 9 Dark Viewport rendered by ui/view
Compiler-Enforced .secret Bridge Firewall

Automatic <secret> Redaction Across JNI, Swift & JSON RPC

use [v = ui/view, mob = mobile]

// Homoiconic BridgeSpec enforces <secret> redaction across JNI / C-ABI / JSON RPC
bridge = mob/parse-bridge-quote 'FieldSyncCore' (quote [
    package 'org.vekolang.fieldsync'
    state AppState [
        field  site_name   str  'Substation North-04'
        field  online      bool false
        secret vault_token str
    ]
    command toggle-online [] AppState
    query   get-status    [] AppState
])
// Dynamic signed OTA view evaluated in RAM with zero `eval` and zero capabilities:
ota_node = v/eval-quoted ota_quote { online = false, pending_str = '1 remaining' }

Fields declared secret in BridgeSpec emit SecretString / SecretText wrappers in Swift 6 and Kotlin, and mob/dispatch-json scrubs raw credential bytes to "<secret>" before crossing JNI or C-ABI boundaries.

Unified veko mobile Toolchain

Preview, Generate SwiftUI/Compose, Sign APK v2 & Bundle .xcframework

# 1. Scaffold mobile workspace & launch <50 ms 60fps desktop simulator preview
veko mobile init fieldsync --name=FieldSync --pkg=org.vekolang.fieldsync
veko mobile preview fieldsync/src/main.vk

# 2. Tier A — Emit Swift 6 @Observable + SwiftUI (ios/) & Kotlin StateFlow + Compose (android/)
veko mobile gen examples/42_mobile_declarative_view_and_bridge.vk --all -o dist/mobile_gen
veko mobile xcframework examples/42_mobile_declarative_view_and_bridge.vk -o dist/FieldSyncCore.xcframework

# 3. Tier B — Zero-SDK Android .apk (AXML + 16 KiB .so + ECDSA P-256 APK Signature Scheme v2)
veko mobile apk examples/42_mobile_declarative_view_and_bridge.vk -o dist/fieldsync.apk --pkg=org.vekolang.fieldsync
veko mobile verify-apk dist/fieldsync.apk
Runnable across VM, Wasm 3.0 & Native • Zero Capabilities Required

Inspect examples/42_mobile_declarative_view_and_bridge.vk

Demonstrates typed ui/view construction, offscreen iPhone 16 Pro PNG rendering, quote [...] OTA views, and <secret>-redacted mobile RPC dispatch.

View Mobile Example (.vk)Open Visual Demos
Reproducible Proof • Run Locally in 0.5 Seconds

Flat p99.9 Tail Latency & Deterministic Zero-Leak Memory

Every transaction below verifies an HMAC-SHA256 signature, decodes JSON, inserts a row into Veko's pure-.vk 4096-byte B-tree SQLite engine, and encodes a JSON response — with zero background GC threads and a 1.01x ratio from p99 to p99.9.

Per-Transaction Tail Latency Profile (HMAC-SHA256 + JSON + SQLite B-Tree Insert)Measured by examples/41_oro_latency_and_memory_proof.vk (--native) • Lower & flatter at p99.9 is better0 ms5 ms15 ms30+ msp50 (0.95 ms)p95 (1.80 ms)p99 (1.91 ms)p99.9 (1.94 ms)Veko 1.0 Native ORO (0 GC pauses)Typical Tracing-GC Sweep Spike Envelope
Measured MetricVeko 1.0 Native (--native)Veko Wasm 3.0 (--check-slabs)How to Reproduce Yourself
Webhook + SQLite p50 / p99 / p99.90.95 ms / 1.91 ms / 1.94 msDeterministic fuel-boundedveko run --native -C all examples/41_oro_latency_and_memory_proof.vk
p99 -> p99.9 Tail Spike Ratio1.01x (Zero GC pauses)1.01x (Zero GC pauses)12-bucket ORO free-lists recycle slabs inline at closing ]
Unreclaimed Heap Slabs at Exit0 leaked slabs_oro_live_slabs == 0veko run --wasm --check-slabs file.vk
Regression Diffing in CIJSON baseline + % deltaSupported (--wasm / --vm)veko bench --save=base.json && veko bench --compare=base.json
Open Source Proof Script • Zero Black-Box Claims

Inspect or Run examples/41_oro_latency_and_memory_proof.vk

Every benchmark on veko-lang.org ships inside ./examples and ./benchmarks so you can audit and re-run it on your own hardware.

View Proof Source (.vk)Open Browser Playground
Core Design Pillars

One Homoiconic Language Across VM, WebAssembly 3.0 & 8 Native Targets

All three tracks share the exact same whitespace-aware lexer, two-pass Pratt parser, ORO ownership semantics, .secret firewall, and 123-module pure-.vk standard library.

Track A: 64-bit VKO VM

Instant startup, interactive REPL, <50 ms mobile simulator preview, source-level CLI & VS Code F5 DAP debugging, and portable .vko bytecode bundles.

Track B: WebAssembly 3.0 Sandbox

Capability-confined execution in vvm with deterministic instruction fuel quotas, memory caps, and slab leak verification (--check-slabs).

Track C: 8 Desktop, Server & Mobile Targets

Direct machine-code emission (zero C toolchain, zero LLVM) to win-x64 PE32+, win-arm64 PE32+ (0xAA64), linux-x64/arm64 ELF64, macos-arm64 Mach-O, android-arm64 16 KiB ELF64 .so / Zero-SDK APK v2, ios-arm64, and ios-sim-arm64.

Eko & the Veko 3-Track Execution Architecture
Plain-English Guide • Zero Compiler Jargon

Predictable Memory, Zero Pauses, Zero Lifetimes — How ORO Works

Veko gives you the clean feel of a high-level language with the predictable memory and speed of C or Rust — without garbage-collection pauses and without Rust's <'a> lifetime annotations.

1. Shared Google Doc (GC)

Python, JS, Go & Java

Passing an object passes a hidden shared pointer: distant functions can silently mutate your map, and a background Garbage Collector must periodically freeze or scan RAM to clean up.

2. Legal Contract (Lifetimes)

Rust Borrow Graphs

Fast and safe with no GC, but wiring components often requires proving multi-pointer lifetime contracts (<'a, 'b>, Pin<Box<...>>, Arc<Mutex<...>>) to the compiler.

3. Physical Clipboard (Veko ORO)

One Reference Only

One variable owns the clipboard at a time. Reading is free, in-place edits explicitly say mut on the page, copies use Copy-on-Write, and the closing ] shreds the clipboard immediately.

See ORO on the Page in 8 Lines

Explicit mut State Changes, Zero Latency Spikes & True Secret Zeroization

handle-webhook = fn [payload bytes] str [
    // 1. Short strings (<= 14 bytes) sit inline on CPU registers — 0 heap allocations!
    status = 'verified'

    // 2. Explicit in-place mutation: if a line lacks `mut`, it CANNOT mutate `buf`
    mut buf = bytes/with-cap 256
    _ = bytes/push-all mut buf payload

    // 3. Single-owner secrets are tied directly to lexical scope:
    api_key = os/getenv/secret/or 'STRIPE_SECRET' [ bytes/with-secret 0 ]

    status
] // <-- RIGHT HERE: `buf` frees immediately, and `api_key` bytes wipe to 0x00 in RAM!

In GC languages, a moving garbage collector can copy a password string to multiple locations in RAM before eventually reclaiming it. Because Veko knows api_key has One Reference Only, it overwrites those exact RAM bytes with 0x00 at the closing ].

Your BackgroundWhat Zero-GC ORO Determinism Means for Your Services
Python / Node / Ruby DevelopersYour web or AI service runs in 15-30 MB of RAM instead of 500 MB, never suffers random GC latency freezes, and functions can never silently mutate your dicts or arrays behind your back.
Go DevelopersSame fast single-binary compile-and-ship workflow, but zero GOGC/GOMEMLIMIT tail-latency tuning, zero nil pointer panics, and explicit mut on the page whenever a struct changes.
Rust DevelopersYou get deterministic RAII drops, single-owner safety, and zero GC — while trading away complex multi-lifetime borrow graphs so you never write <'a>, Rc<RefCell<T>>, or Arc<Mutex<T>>.
Security & FinTech EngineersKeys and tokens are never copied across RAM behind your back by a moving garbage collector — single ownership lets Veko overwrite secret bytes with 0x00 the exact microsecond a scope exits.
Production Domains

7 Workloads Where Veko Shines

Click any module chip below to open its generated Veko stdlib API documentation.

Web & Edge Platforms

Self-Contained HTTPS, HTTP/2 & HTTP/3 Services

Ship single-file web applications, portals, and API gateways with built-in epoll/kqueue/WSAPoll reactors, post-quantum TLS 1.3, HTTP/2 HPACK, QUIC HTTP/3, and homoiconic HTML views — like this entire veko-lang.org site.

Zero-SDK Mobile & OEM Native UI

Native iOS & Android Mobile Apps

Author one homoiconic ui/view + mobile spec for two deployment tiers: Tier A emits Swift 6 @Observable + SwiftUI and Kotlin StateFlow + Jetpack Compose backed by multi-slice .xcframework and 16 KiB ELF64 .so; Tier B builds ECDSA P-256 APK Signature Scheme v2 signed .apk packages directly with zero Android SDK, NDK, or Gradle.

Domain Dialects & Schemas

Zero-Overhead Homoiconic [ ... ] DSLs & ORM

Because Veko code and data share the exact same [ ... ] token representation, teams author declarative routing tables, firewall rules, workflow sagas, and SQLite ORM schemas without external code generators.

Zero-GC Network & Systems Daemons

Deterministic ORO Memory & Disjoint Field Loans

Pre-allocate connection slabs, mutate packet headers in place with explicit mut loans, and eliminate garbage-collection tail-latency spikes without wrestling lifetime-annotation syntax.

Sandboxed Multi-Tenant Plugins

Capability-Confined WebAssembly 3.0 Execution

Compile untrusted tenant rules or extensions to Wasm 3.0 with bounded fuel budgets, canonical path confinement, and explicit [.fs .clocks .env .net] capability manifests.

Post-Quantum Security & Vaults

NIST FIPS 203/204/205 PQC & .secret Firewall

Protect keys and tokens with compiler-enforced .secret taint tracking (wiped deterministically on scope exit) alongside pure-Veko ML-KEM-768, ML-DSA, SLH-DSA, X25519, Ed25519, ECDSA P-256/P-384, RSA-PSS, and built-in public CA roots.

Zero-libc Desktop & TUI Tooling

Native Win32, Linux Wayland/X11 & macOS Cocoa Studio UIs

Build crisp Light-First 33-widget Studio apps (with Tab focus rings, syntax-highlighted code-editor, command-palette, and file-picker) and terminal dashboards compiled directly to PE32+, static ELF64, and signed ARM64 Mach-O.

Ergonomics & Architecture Matrix

Readability, Writability & Systems Trade-Offs vs. Competitors

Why Veko splits between Day-1 unlearning and high steady-state fluency past your first ~200 lines.

Ergonomics CurveScoreWhy It Splits Between Day 1 and Day 14
First-hour familiarity5.5 / 10Unlearning f(x), n-1, "strings", and null takes deliberate attention for the first few hours (~200 lines).
Steady-state readability9.0 / 10Near-zero syntactic noise; explicit mut at call sites; /or eliminates both hidden exceptions and 4-line error boilerplate; linear \ dataflow.
Steady-state writability8.5 / 10Low ceremony, gradual types (prototype dynamically, lock down --strict-types for production), and homoiconic blocks/templates.
Readability: Veko >= Go | Writability: Veko > Go

vs. Go

Both reject hidden magic, while Veko eliminates vertical if err != nil { return nil, err } sprawl via inline /or [ ... ] and \ pipes. Go wins on Day-1 C-syntax familiarity and third-party IDE ecosystem size.

Readability: Veko >> Rust | Writability: Veko >> Rust

vs. Rust

Both enforce ownership and explicit mutation without a GC. Veko delivers single-owner determinism, shared-nothing spawn/chan, and .secret taint safety without lifetime sigils (<'a>), Arc<Mutex<...>>, or ::<> turbofish noise — trading away only complex multi-lifetime borrow graphs.

Readability: Veko > Zig | Writability: Veko > Zig

vs. Zig

Zig's catch |err| / orelse is the closest C-family cousin to Veko's /or, and both prize defer and explicitness. Veko is faster to write and scan for networking, CLI, codec, and backend work (built-in strings/maps, templates, pipes, gradual typing), while Zig stays lower-level for OS kernels.

Readability: Veko >= Elixir, > Clojure/Rebol | Writability: Tie

vs. Elixir / Clojure / Rebol

Captures Elixir's |> (\ in Veko) and Lisp's quote/compose homoiconicity without outer parenthesis walls — and fixes classic Rebol's dynamic-arity scaling hazard with lexical scoping, explicit use/pub modules, mut borrow checking, and --strict-types.

Readability: Tie | Maintenance: Veko > Python/TS (Day-1: Python/TS)

vs. Python / TypeScript

Python and TS win Day 1 through universal syntax familiarity, whereas over time hidden exceptions, None/undefined landmines, shared-reference mutation, and async/await coloring erode clarity. Veko reads like clean pseudocode while encoding mut, errors, secrets, and capabilities on the page.

Summary Verdict • The ~200-Line Threshold

The steepest window for newcomers is the first ~200 lines — mostly muscle memory around len(x) vs (len x) and spacing around -. Once past that threshold, Veko reads faster than Go or Rust because your eyes stop parsing brackets, semicolons, lifetimes, and if err != nil blocks, and spend nearly 100% of their time reading domain verbs, \ pipelines, and explicit mut / /or boundaries.

Technical DimensionVeko 1.0 (ORO + Homoiconic)Rust / ZigGo / Python
Memory ModelDeterministic ORO + Copy-on-Write (Zero GC, zero lifetime sigils)Borrow lifetimes (Rust) or manual allocators (Zig)Tracing GC pauses (Go) / refcount + cycle GC (Python)
Syntax & MetaprogrammingHomoiconic [ ... ] prefix blocks + natural infix math + parse-blockToken/proc macros (Rust) or comptime AST (Zig)External codegen / runtime reflection
Null & Error SafetyZero nil (.ok / .null) + inline word/or [e -> ...] recoveryOption<T> / Result<T, E> / !T error unionsnil pointers + if err != nil / runtime exceptions
Secret HygieneFirst-class secret T compiler firewall + scope-exit zeroizationExternal library wrappers (secrecy / zeroize crates)Manual discipline; strings remain immutable on GC heap
Execution Tracks3 Tracks: 64-bit VKO VM + Wasm 3.0 Sandbox + 8 Desktop, Server & Mobile Native Targets (zero LLVM)LLVM / self-hosted native + wasm32 targetsNative runtime + GC (Go) or bytecode VM (Python)
Batteries Included123 pure-.vk modules: Zero-FFI SQLite, PQC TLS 1.3, H1/H2/H3, Federal AppSec, Mobile ui/view, UI, DAP, FuzzMinimal stdlib; relies on third-party crate ecosystemRich stdlib; SQLite & GUI typically require CGo / C extensions