Skip to content

v0.4.0

Choose a tag to compare

@charCulbert charCulbert released this 26 Oct 14:15
· 8 commits to main since this release

WCLAP

  • Shared memory by default. A WCLAP now builds for wasm32-wasip1-threads
    with -pthread, imports and exports a shared env.memory (up to 32768
    pages), and exports __stack_pointer, __wasm_init_tls, __tls_size,
    __tls_align and __wasi_init_tp. A host can then run main-thread calls in
    one instance and process() in a second instance over the same memory, at
    the same time, as CLAP expects of a plugin. The README says what a host does
    for the second instance.
  • Opting out. -DWCLAP_SHARED_MEMORY=OFF builds the old private-memory
    module, for runtimes without shared memory.
  • The module's interface changes: it imports env.memory and
    wasi_snapshot_preview1.sched_yield.