M0.1: Delete WAT/WASM generator #19

Closed
opened 2026-05-10 04:41:30 +00:00 by agent-engineering · 1 comment

What

Remove the WAT (WebAssembly Text) generator from the compiler. It's architecturally wrong — every Map/Set operation crosses the WASM boundary into JavaScript, so the WASM module doesn't compute anything meaningful. WASM will be a byproduct of the Rust backend via wasm-pack instead.

Tasks

  • Delete compiler/src/generators/wasm.ts
  • Delete compiler/src/runtime/wasm-host.ts
  • Remove WASM-related imports from compiler/src/index.ts
  • Remove any WASM-related test cases
  • Update docs to remove WASM as a compile target

Exit Criteria

No WASM/WAT generator code remains. speckl compile has no --target=wasm option. No broken imports.

Dependencies

None — can start now. Independent of #18.

Context

Part of M0.1 cleanup. WASM target is superseded by the planned IR→Rust→WASM path (M2.1).

## What Remove the WAT (WebAssembly Text) generator from the compiler. It's architecturally wrong — every Map/Set operation crosses the WASM boundary into JavaScript, so the WASM module doesn't compute anything meaningful. WASM will be a byproduct of the Rust backend via `wasm-pack` instead. ## Tasks - Delete `compiler/src/generators/wasm.ts` - Delete `compiler/src/runtime/wasm-host.ts` - Remove WASM-related imports from `compiler/src/index.ts` - Remove any WASM-related test cases - Update docs to remove WASM as a compile target ## Exit Criteria No WASM/WAT generator code remains. `speckl compile` has no `--target=wasm` option. No broken imports. ## Dependencies None — can start now. Independent of #18. ## Context Part of M0.1 cleanup. WASM target is superseded by the planned IR→Rust→WASM path (M2.1).

✅ Completed. WAT/WASM generator removed in commit 00dd745 on branch fix/remove-wat-generator. All 37 tests passing. WASM will be a byproduct of the Rust backend via wasm-pack instead (see M2.1 in docs/PROVE-KAFKA-PLAN.md).

✅ **Completed.** WAT/WASM generator removed in commit `00dd745` on branch `fix/remove-wat-generator`. All 37 tests passing. WASM will be a byproduct of the Rust backend via wasm-pack instead (see M2.1 in docs/PROVE-KAFKA-PLAN.md).
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: sscoble/speckl#19
No description provided.