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-linuxFor 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-powershellThe 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 = 255Interfaces 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
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.
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.omniImplementation sources:
compiler/src/particle.cpp·compiler/src/check.cppContracts:
spec/LANGUAGE_0_2.mdSource reproduction command:
python3 -B tools/omni_dev.py test --group cliNumeric 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.omniImplementation sources:
compiler/src/check.cpp·compiler/src/llvm.cppContracts:
spec/DATA_LANGUAGE_0_8_1.mdSource reproduction command:
python3 -B tools/omni_dev.py test --group capabilitiesRecords 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.omniImplementation sources:
compiler/src/check.cpp·compiler/src/particle.cppContracts:
spec/PRODUCT_TYPES_LAYOUT_0_2.mdSource reproduction command:
python3 -B tools/omni_dev.py test --group cli --group capabilitiesOption 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.omniImplementation sources:
compiler/src/check.cpp·compiler/src/particle.cppContracts:
spec/ADTS_0_2.mdSource reproduction command:
python3 -B tools/omni_dev.py test --group cli --group capabilitiesGenerics 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.omniImplementation sources:
compiler/src/check.cpp·compiler/src/particle.cppContracts:
spec/GENERICS_ABSTRACTION_0_2.mdSource reproduction command:
python3 -B tools/omni_dev.py test --group capabilitiesOwnership 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.omniImplementation sources:
compiler/src/check.cpp·runtime/omni_runtime.cContracts:
spec/MEMORY_AUTHORITY_0_8.mdSource reproduction command:
python3 -B tools/omni_dev.py test --group capabilitiesEffects 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.omniImplementation sources:
compiler/src/capabilities.cpp·compiler/src/check.cppContracts:
spec/OCAP_0_7.mdSource reproduction command:
python3 -B tools/omni_dev.py test --group cliUnicode 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.omniImplementation sources:
compiler/src/check.cpp·compiler/src/llvm.cppContracts:
spec/UNICODE_TEXT_0_8_1.mdSource reproduction command:
python3 -B tools/omni_dev.py test --group capabilitiesTasks 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.omniImplementation sources:
compiler/src/check.cpp·compiler/src/llvm.cpp·runtime/omni_runtime.cContracts:
spec/CONCURRENCY_0_8_5.mdSource reproduction command:
python3 -B tools/run_app_examples.py (prepares file placeholders and OHP1 policy)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.omniImplementation sources:
compiler/src/host_policy.cpp·runtime/omni_runtime.cContracts:
spec/HOSTED_EFFECTS_FFI_0_8_6.mdSource reproduction command:
python3 -B tools/run_app_examples.py (prepares file placeholders and OHP1 policy)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.omniImplementation sources:
compiler/src/modules.cpp·compiler/src/packages.cppContracts:
spec/PACKAGES_STDLIB_0_8_4.mdSource reproduction command:
python3 -B tools/omni_dev.py test --group packages13Evaluator 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.omniImplementation sources:
compiler/src/check.cpp·compiler/src/llvm.cpp·compiler/src/main.cppContracts:
spec/TARGET_PROFILES_0_8_8.mdSource reproduction command:
python3 -B tools/omni_dev.py test --group cliWave 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.omniImplementation sources:
compiler/src/formats.cpp·compiler/src/onme.cpp·compiler/src/osnmf.cppContracts:
spec/IR_WAVE_WIRE_0_2.mdSource reproduction command:
python3 -B tools/omni_dev.py test --group projection13C 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.pyImplementation sources:
compiler/src/host_sdk_public.cpp·compiler/src/host_invocation_loader.cpp·include/omni/omni_host_sdk_v1.hContracts:
spec/HOST_SDK_1_2.mdSource 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 outputDevelopment 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.mdImplementation sources:
tools/omni_dev.py·tools/omni_lsp.py·tools/run_test_matrix.pyContracts:
spec/CP16_TOOLING_CANDIDATE.mdSource reproduction command:
python3 -B tools/omni_dev.py test --group toolingSIMD
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.omniImplementation sources:
compiler/src/check.cpp·compiler/src/llvm.cppContracts:
spec/SIMD_BASELINE_CANDIDATE.mdSource reproduction command:
python3 -B tools/omni_dev.py test --group cpustate13Dynamic 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.omniImplementation sources:
examples/storage/heap.omni·examples/storage/seq.omni·runtime/omni_runtime.cContracts:
spec/DYNAMIC_STORAGE_CANDIDATE.mdSource reproduction command:
python3 -B tools/omni_dev.py test --group storage13Hardware 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.mdImplementation sources:
compiler/src/check.cpp·compiler/src/llvm.cppContracts:
spec/TARGET_BAREMETAL_PROFILE_CANDIDATE.mdSource 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.
README.mddocs/language/CAPABILITY_STATUS.mddocs/sdk/QUICKSTART.mdexamples/README.mdspec/INDEX.mdtools/omni_dev.pytools/check_local.pytools/ci.shtests/MATRIX.json
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