Skip to content

Specify and verify versioned Whale bytecode in Wave #362

Closed

Description

@LunaStev

Purpose

Define production Whale bytecode separately from the tiny example target: version/semantics/target metadata, types/functions/blocks, constants/storage, instructions and relocatable references. Implement a bounded Wave loader/verifier before execution.

Completion criteria

  • Inventory the currently executable verified IR subset and explicitly map every supported operation; nonexecutable IR forms remain explicit errors.
  • Reject malformed section/index/operand/control-flow/type/version metadata before execution with cumulative size/work limits.
  • Include a written binary format and independent valid/malformed fixtures rather than relying only on writer-reader round trips.

Delivery

Batch 7/8 — Whale bytecode compiler, interpreter and CLI composition in #335. Complete preceding batches first. Exactly one DCO commit per batch and one PR for all eight batches.

Scope correction from the maintainer: targets are source contributions like kernel architectures/drivers. Adding a target may update explicit core definitions, dispatch and Meson lists. Do not introduce an SDK, generic plugin system, automatic module registration or an out-of-tree no-core-change guarantee.

Wave-owned algorithms must execute in Wave; Rust may retain file/OS/CLI/object/link bridges and explicit test/reference implementations. Do not modify the separately owned Wave checkout or take over #100. Preserve existing supported behavior and limits.

Activity

  1. self-assigned this
    on Oct 22, 2026
  2. added
    enhancement
    codegen
    ir
    on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

codegenenhancementir

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions