Skip to content

Parse and print versioned Whale IR in Wave with bounded streaming #349

Closed

Description

@LunaStev

Purpose

Move typed text parsing, canonical printing and source mapping into Wave. Preserve supported historical versions and format/semantics version separation; changes to the wire contract must be explicit.

Completion criteria

  • Accept retained supported input versions (currently 3 through 8), emit canonical current output and reject unknown versions or features introduced too late for the declared version.
  • Preserve UTF-8 byte spans and bounded input/token/nesting/work/output behavior, including giant names and malformed/deep inputs.
  • Run canonical print-parse-print and independent negative fixtures against both implementations during migration.

Delivery

Batch 3/8 — Wave IR model, parsing, verification and frontend 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
    ir
    semantics
    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

enhancementirsemantics

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions