Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Spec Coverage

zwasm targets full WebAssembly 3.0 compliance. All spec tests pass on macOS ARM64 and Linux x86_64.

Test results: 62,158 / 62,158 (100.0%)

Core specification

FeatureOpcodesStatus
MVP (core)172Complete
Sign extension7Complete
Non-trapping float-to-int8Complete
Bulk memory9Complete
Reference types5Complete
Multi-value-Complete
Total core201+100%

SIMD

FeatureOpcodesStatus
SIMD (v128)236Complete
Relaxed SIMD20Complete
Total SIMD256100%

Wasm 3.0 proposals

All 9 Wasm 3.0 proposals are fully implemented:

ProposalOpcodesSpec testsStatus
Memory64extends existingPassComplete
Tail calls2PassComplete
Extended constextends existingPassComplete
Branch hintingmetadata sectionPassComplete
Multi-memoryextends existingPassComplete
Relaxed SIMD2085/85Complete
Exception handling3PassComplete
Function references5104/106Complete
GC31PassComplete

Additional proposals

ProposalOpcodesStatus
Threads79 (0xFE prefix)Complete (310/310 spec)
Wide arithmetic4Complete (99/99 e2e)
Custom page sizes-Complete (18/18 e2e)

WASI Preview 1

46 / 46 syscalls implemented (100%):

CategoryCountFunctions
args2args_get, args_sizes_get
environ2environ_get, environ_sizes_get
clock2clock_time_get, clock_res_get
fd14read, write, close, seek, stat, prestat, readdir, …
path8open, create_directory, remove, rename, symlink, …
proc2exit, raise
random1random_get
poll1poll_oneoff
sock4NOSYS stubs

Component Model

FeatureStatus
WIT parserComplete
Binary decoderComplete
Canonical ABIComplete
WASI P2 adapterComplete
CLI supportComplete

121 Component Model tests pass.

WAT parser

The text format parser supports:

  • All value types including v128
  • Named locals, globals, functions, types
  • Inline exports and imports
  • S-expression and flat syntax
  • Data and element sections
  • All prefix opcodes: 0xFC (bulk memory, trunc_sat), 0xFD (SIMD + lane ops), 0xFE (atomics)
  • Wasm 3.0 opcodes: try_table, call_ref, br_on_null, throw_ref, etc.
  • GC prefix (0xFB): GC type annotations and struct/array encoding
  • 100% WAT roundtrip: 62,156/62,156 spec test modules parse and re-encode correctly

Total opcode count

CategoryCount
Core201+
SIMD256
GC31
Threads79
Others14+
Total581+