LANGUAGE / INTEGRATED SDK

Omni Language and SDK 0.1.0.00

OMNI LANGUAGE / OMNI SDK 0.1.0.00 · WIP / NOT_RELEASED

People, models, machines. A language, native runtime and integrated SDK with explicit contracts. This is the reorganized product edition; the catalog below describes the implemented surfaces and the evidence reported by their sources.

The declared version for both the language and SDK is 0.1.0.00. Source builds are available; no binary release or npm/pip/winget package is announced.

Build and run from the source tree

The exercised native profile is Linux x86-64, including Ubuntu 24.04 in WSL. The documented toolchain uses C++20/GCC 13, Clang 18, Python 3.12 and OpenSSL development headers. Node.js and N-API headers are needed for the Node binding. Windows uses Git, Python 3.11+ and the WSL bridge.

Run these commands from the checkout root. Install Linux dependencies inside Ubuntu, including when starting from PowerShell. Use a fresh output directory for each SDK example run.

Linux / WSL

sudo apt-get update
sudo apt-get install -y git g++ clang python3 libssl-dev nodejs libnode-dev
python3 -B tools/omni_dev.py env
python3 -B tools/omni_dev.py build --target compiler --jobs 2
python3 -B tools/omni_dev.py check examples/hola.omni
python3 -B tools/omni_dev.py run examples/hola.omni
python3 -B tools/omni_dev.py build --target loader --jobs 2
python3 -B tools/omni_dev.py build --target node
python3 -B tools/run_sdk_examples.py --output build/sdk-web-linux

For a checkout on a Windows-mounted filesystem, add --allow-slow-fs before the driver subcommand. The default WSL distro is Ubuntu-24.04; OMNI_WSL_DISTRO selects another installed distro.

PowerShell / WSL

python -B tools/omni_dev.py --allow-slow-fs env
python -B tools/omni_dev.py --allow-slow-fs build --target compiler --jobs 2
python -B tools/omni_dev.py --allow-slow-fs check examples/hola.omni
python -B tools/omni_dev.py --allow-slow-fs run examples/hola.omni
python -B tools/omni_dev.py --allow-slow-fs build --target loader --jobs 2
python -B tools/omni_dev.py --allow-slow-fs build --target node
python -B tools/run_sdk_examples.py --output build/sdk-web-powershell

The hello program prints “Hola, Omni” and 720 and exits 0 in the documented walkthrough. The SDK guide documents the following expected consumer lines; these are reproduction expectations, not output captured by this website.

C: echo_u8(255) = 255 (real invocation)
Node: encoded 255; decoded runtime response = 255
Python: encoded 255; decoded runtime response = 255

Full SDK guide, doctor and local extraction ↗

Interfaces and the minimal example

These consumers show one small SDK walkthrough. They do not translate Omni source into JavaScript or Python, and they do not define the limit of Omni integrations.

C
Uses the public SDK and invocation ABI to call the compiled Omni echo_u8 entry and decode its returned value.
Node.js / N-API
The minimal consumer encodes the typed input and decodes the real response saved by the C/runtime invocation.
Python / ctypes
The minimal consumer performs the corresponding typed encode/decode through the public wrapper. Python can also host real runtime invocations, as demonstrated by the Brain integration below.

Product version, omni.std package versions, OMI1, public ABI and representation formats have independent identities. Version identities ↗

Brain already completes real cross-language work

Synapse has a real completed path: Node/TypeScript requests admission from native Omni Brain, an admitted Python worker performs the operation, Brain validates the result and Node receives it. B050 records the completed native path; B060 adds a durable Brain ledger with real PostgreSQL and restart/CAS checks.

Node → Omni Brain → Python → Omni Brain → Node

The reviewed Python host invokes the actual Omni runtime ABI; the Node gateway uses the real native addon. This integration is implemented, beyond the small echo consumer walkthrough. Its recorded acceptance is tied to the pinned historical artifacts; this website review does not rerun the integration against the reorganized SDK.

B050 · PASS_CLOSED / B060 · PASS_CLOSED · Synapse 7fb176042344

Read the Brain overview ↗

18 areas of the language and SDK

Implementation and verification are separate fields. Verification below describes the evidence recorded in the source catalog. Not executed in that revision does not mean absent.

  1. Functions and flow

    Compute typed recursive functions and branch on values.

    Implementation
    Implemented
    Recorded verification
    First-use evaluator/native oracles
    Scope
    Examples do not certify all recursion/budget bounds.

    Examples: examples/hola.omni

    Implementation sources: compiler/src/particle.cpp · compiler/src/check.cpp

    Contracts: spec/LANGUAGE_0_2.md

    Source reproduction command: python3 -B tools/omni_dev.py test --group cli

  2. Numeric types and conversions

    Use fixed-width integers, checked casts, wrapping/saturating arithmetic and f32/f64.

    Implementation
    Implemented
    Recorded verification
    Numeric/float examples in evaluator and native execution
    Scope
    Not a full IEEE/NaN/differential campaign; floats intentionally returns 7.

    Examples: examples/numeric.omni · examples/floats.omni

    Implementation sources: compiler/src/check.cpp · compiler/src/llvm.cpp

    Contracts: spec/DATA_LANGUAGE_0_8_1.md

    Source reproduction command: python3 -B tools/omni_dev.py test --group capabilities

  3. Records tuples and arrays

    Represent checked records, heterogeneous tuples and fixed-size arrays.

    Implementation
    Implemented subset
    Recorded verification
    Product example evaluator/native oracles
    Scope
    Owning aggregates have additional move/cleanup restrictions.

    Examples: examples/product_types.omni · examples/result_minimo.omni

    Implementation sources: compiler/src/check.cpp · compiler/src/particle.cpp

    Contracts: spec/PRODUCT_TYPES_LAYOUT_0_2.md

    Source reproduction command: python3 -B tools/omni_dev.py test --group cli --group capabilities

  4. Option Result enums and matching

    Handle missing/error alternatives, including an Err branch that continues execution.

    Implementation
    Implemented
    Recorded verification
    First-use and Option/enum example oracles
    Scope
    Closed variants and checked payload restrictions apply.

    Examples: examples/result_minimo.omni · examples/option.omni · examples/adt_enum.omni

    Implementation sources: compiler/src/check.cpp · compiler/src/particle.cpp

    Contracts: spec/ADTS_0_2.md

    Source reproduction command: python3 -B tools/omni_dev.py test --group cli --group capabilities

  5. Generics and traits

    Specialize explicit type arguments and statically checked trait implementations.

    Implementation
    Implemented static subset
    Recorded verification
    Generic example evaluator/native; broader trait methods not rerun here
    Scope
    Example covers generic constraints/UFCS, not every trait method or dynamic dispatch.

    Examples: examples/generics_iteration.omni

    Implementation sources: compiler/src/check.cpp · compiler/src/particle.cpp

    Contracts: spec/GENERICS_ABSTRACTION_0_2.md

    Source reproduction command: python3 -B tools/omni_dev.py test --group capabilities

  6. Ownership loans views and resources

    Borrow a buffer exclusively, release it and inspect bounded read-only views.

    Implementation
    Implemented subset
    Recorded verification
    Borrow/view examples evaluator/native; broader owning containers separate
    Scope
    Examples intentionally return 8 and 50; no whole-family ownership certification.

    Examples: examples/borrow_mut.omni · examples/borrowed_views.omni

    Implementation sources: compiler/src/check.cpp · runtime/omni_runtime.c

    Contracts: spec/MEMORY_AUTHORITY_0_8.md

    Source reproduction command: python3 -B tools/omni_dev.py test --group capabilities

  7. Effects and capabilities

    Declare required effects and reject I/O in a pure function before execution.

    Implementation
    Implemented
    Recorded verification
    Positive evaluator/native and semantic E_CAPABILITY rejection
    Scope
    Static capability declarations do not provide runtime grants or a security sandbox.

    Examples: tests/fixtures/dx/io_allowed.omni · tests/fixtures/dx/pure_io_denied.omni

    Implementation sources: compiler/src/capabilities.cpp · compiler/src/check.cpp

    Contracts: spec/OCAP_0_7.md

    Source reproduction command: python3 -B tools/omni_dev.py test --group cli

  8. Unicode text and iteration

    Distinguish UTF-8 byte/scalar counts and iterate bounded ranges/views.

    Implementation
    Implemented subset
    Recorded verification
    Unicode/range examples evaluator/native
    Scope
    Examples return 3 and 22; full Unicode/differential suites remain separate.

    Examples: examples/unicode_text.omni · examples/ranges.omni

    Implementation sources: compiler/src/check.cpp · compiler/src/llvm.cpp

    Contracts: spec/UNICODE_TEXT_0_8_1.md

    Source reproduction command: python3 -B tools/omni_dev.py test --group capabilities

  9. Tasks and concurrency

    Spawn/join scoped tasks and persist recovery generations.

    Implementation
    Implemented bounded subset
    Recorded verification
    Existing native application evidence; full concurrency suite not rerun here
    Scope
    Requires prepared files/OHP1 policy; not general async or distributed exactly-once.

    Examples: examples/applications/recovery-service/src/main.omni

    Implementation sources: compiler/src/check.cpp · compiler/src/llvm.cpp · runtime/omni_runtime.c

    Contracts: spec/CONCURRENCY_0_8_5.md

    Source reproduction command: python3 -B tools/run_app_examples.py (prepares file placeholders and OHP1 policy)

  10. Files and permissions

    Read bounded input and write checked output under explicit filesystem grants.

    Implementation
    Implemented hosted subset
    Recorded verification
    Existing exact-output native application evidence
    Scope
    The fixture needs OHP1 setup; no ambient authorization or provider-security claim.

    Examples: examples/applications/data-cli/src/main.omni

    Implementation sources: compiler/src/host_policy.cpp · runtime/omni_runtime.c

    Contracts: spec/HOSTED_EFFECTS_FFI_0_8_6.md

    Source reproduction command: python3 -B tools/run_app_examples.py (prepares file placeholders and OHP1 policy)

  11. Modules packages and stdlib

    Resolve declared imports/dependencies and generate/check offline locks.

    Implementation
    Implemented offline subset
    Recorded verification
    Package evidence and real extracted-SDK stdlib consumption
    Scope
    No published registry; omni.std has an independent package version.

    Examples: examples/a84_package_consumer/src/main.omni

    Implementation sources: compiler/src/modules.cpp · compiler/src/packages.cpp

    Contracts: spec/PACKAGES_STDLIB_0_8_4.md

    Source reproduction command: python3 -B tools/omni_dev.py test --group packages13

  12. Evaluator and native compilation

    Evaluate checked programs or emit LLVM IR and build with Clang and the C runtime.

    Implementation
    Implemented Linux profile
    Recorded verification
    Exact first-use evaluator/native output and exit oracles
    Scope
    Linux x86-64 exercised; Windows commands bridge to WSL.

    Examples: examples/hola.omni

    Implementation sources: compiler/src/check.cpp · compiler/src/llvm.cpp · compiler/src/main.cpp

    Contracts: spec/TARGET_PROFILES_0_8_8.md

    Source reproduction command: python3 -B tools/omni_dev.py test --group cli

  13. Wave Wire ONME and OSNMF

    Read/write structured programs and project/query semantic identities and memory.

    Implementation
    Implemented versioned surfaces
    Recorded verification
    Accepted projection/compatibility evidence retained; not rerun wholesale here
    Scope
    ONME is not an ISA; identity does not grant authority; native compilation need not traverse every projection.

    Examples: examples/hola.owave · examples/hola.omni

    Implementation sources: compiler/src/formats.cpp · compiler/src/onme.cpp · compiler/src/osnmf.cpp

    Contracts: spec/IR_WAVE_WIRE_0_2.md

    Source reproduction command: python3 -B tools/omni_dev.py test --group projection13

  14. C Node and Python SDK

    Embed admitted host entries and exchange values through the public ABI and codecs.

    Implementation
    Implemented bounded ABI and codecs
    Recorded verification
    C invokes; Node/Python encode and decode a real runtime response
    Scope
    The bundled minimal Node/Python echo consumers encode/decode; Brain separately demonstrates real cross-language execution. OMI1 retains its declared type subset.

    Examples: examples/host-sdk/consumer.c · examples/host-sdk/consumer.mjs · examples/host-sdk/consumer.py

    Implementation sources: compiler/src/host_sdk_public.cpp · compiler/src/host_invocation_loader.cpp · include/omni/omni_host_sdk_v1.h

    Contracts: spec/HOST_SDK_1_2.md

    Source reproduction command: python3 -B tools/run_sdk_examples.py --output build/sdk-catalog-example; [full SDK smoke](../../tools/run_sdk_smoke.py) needs a fresh output

  15. Development tools

    Check/format code, inspect diagnostics, export context and use the existing LSP implementation.

    Implementation
    Implemented subset
    Recorded verification
    Tooling regressions; full LSP/admission suites not rerun here
    Scope
    Discovery/export is not proof of every command or complete editor support.

    Examples: docs/language/IMPLEMENTATION_SURFACE.md

    Implementation sources: tools/omni_dev.py · tools/omni_lsp.py · tools/run_test_matrix.py

    Contracts: spec/CP16_TOOLING_CANDIDATE.md

    Source reproduction command: python3 -B tools/omni_dev.py test --group tooling

  16. SIMD

    Use supported 128-bit lane records and masks with explicit profile fences.

    Implementation
    Implemented target-bound subset
    Recorded verification
    Not executed in this revision; dedicated tests indexed
    Scope
    No AVX, wide vectors, shuffle or autovectorization guarantee; baremetal SSE2 needs its ISA profile and emulator prerequisites.

    Examples: examples/storage/simd.omni

    Implementation sources: compiler/src/check.cpp · compiler/src/llvm.cpp

    Contracts: spec/SIMD_BASELINE_CANDIDATE.md

    Source reproduction command: python3 -B tools/omni_dev.py test --group cpustate13

  17. Dynamic storage

    Build resource-based heaps, arenas, vectors and related containers.

    Implementation
    Implemented library subset
    Recorded verification
    Not executed in this revision; dedicated tests indexed
    Scope
    Allocator, lifetime and cleanup contracts apply; no unrestricted GC heap claim.

    Examples: examples/storage/vec.omni

    Implementation sources: examples/storage/heap.omni · examples/storage/seq.omni · runtime/omni_runtime.c

    Contracts: spec/DYNAMIC_STORAGE_CANDIDATE.md

    Source reproduction command: python3 -B tools/omni_dev.py test --group storage13

  18. Hardware profiles

    Express checked raw-memory, layout, CPU and port operations in explicit freestanding profiles.

    Implementation
    Implemented experimental subsets
    Recorded verification
    Not executed in this revision; target/QEMU suites indexed
    Scope
    Not physical-hardware or universal-platform certification; i386 bootstrap is not general C ABI.

    Examples: tests/x64/README.md

    Implementation sources: compiler/src/check.cpp · compiler/src/llvm.cpp

    Contracts: spec/TARGET_BAREMETAL_PROFILE_CANDIDATE.md

    Source reproduction command: python3 -B tools/omni_dev.py test --group freestanding13

Source, acceptance and adoption

The common driver unifies build/check/run/test and validates compiler inputs and output identity. Local and CI acceptance share check_local.py / tools/ci.sh. The source catalog distinguishes implemented capabilities, candidate contracts and deferred work.

Deferred work includes advanced SIMD operations, remote package infrastructure, broader foreign-ABI mapping and additional host platforms. A candidate specification alone does not claim adoption or a completed implementation.

sirfederick/omni-lang · b64b6bc0ace94717b3dd30612e6c6b04ae6f8f01

OMNI LANGUAGE / ORIGIN

Since the hobby kickoff

Days
—
Hours
—
Minutes
—
Seconds
—


Buenos Aires · UTC−3

A hobby for learning, experimenting and building Omni. This is elapsed calendar time, not hours worked or the age of every project.

Calculated using your device clock.

Join the project ↗