Skip to content

Releases

Wasmtime C API v51.0.0 for erlang_wasmtime

Choose a tag to compare

@github-actions github-actions released this 28 Nov 23:04
382a59d

Runtime-only (no compiler, with WASI) and full builds of the Wasmtime C API, with scripts/wasmtime-patches applied, build revision 9 of the recipe in scripts/build-wasmtime.sh at 8323e5a. Pinned by checksum in scripts/wasmtime-runtime.sha256 and scripts/wasmtime.sha256 of the erlang_wasmtime releases that use it; assets are never replaced: a rebuild bumps scripts/wasmtime-runtime.rev and gets its own release.

Wasmtime C API v51.0.0 for erlang_wasmtime

Choose a tag to compare

@github-actions github-actions released this 28 Nov 21:12
58d63aa

Runtime-only (no compiler, with WASI) and full builds of the Wasmtime C API, with scripts/wasmtime-patches applied, build revision 8 of the recipe in scripts/build-wasmtime.sh at 52b6ff9. Pinned by checksum in scripts/wasmtime-runtime.sha256 and scripts/wasmtime.sha256 of the erlang_wasmtime releases that use it; assets are never replaced: a rebuild bumps scripts/wasmtime-runtime.rev and gets its own release.

Wasmtime C API v51.0.0 for erlang_wasmtime

Choose a tag to compare

@github-actions github-actions released this 28 Nov 12:51
ba74e06

Runtime-only (no compiler, with WASI) and full builds of the Wasmtime C API, with scripts/wasmtime-patches applied, build revision 7 of the recipe in scripts/build-wasmtime.sh at 0d963cc. Pinned by checksum in scripts/wasmtime-runtime.sha256 and scripts/wasmtime.sha256 of the erlang_wasmtime releases that use it; assets are never replaced: a rebuild bumps scripts/wasmtime-runtime.rev and gets its own release.

Wasmtime C API v51.0.0 for erlang_wasmtime

Choose a tag to compare

@github-actions github-actions released this 28 Nov 10:17
e0e8988

Runtime-only (no compiler, with WASI) and full builds of the Wasmtime C API, with scripts/wasmtime-patches applied, build revision 6 of the recipe in scripts/build-wasmtime.sh at dea82db. Pinned by checksum in scripts/wasmtime-runtime.sha256 and scripts/wasmtime.sha256 of the erlang_wasmtime releases that use it; assets are never replaced: a rebuild bumps scripts/wasmtime-runtime.rev and gets its own release.

Wasmtime C API v51.0.0 for erlang_wasmtime

Choose a tag to compare

@github-actions github-actions released this 28 Nov 09:08
7c95921

Runtime-only (no compiler, with WASI) and full builds of the Wasmtime C API, with scripts/wasmtime-patches applied, build revision 5 of the recipe in scripts/build-wasmtime.sh at dbb48cc. Pinned by checksum in scripts/wasmtime-runtime.sha256 and scripts/wasmtime.sha256 of the erlang_wasmtime releases that use it; assets are never replaced: a rebuild bumps scripts/wasmtime-runtime.rev and gets its own release.

Wasmtime C API v51.0.0 for erlang_wasmtime

Choose a tag to compare

@github-actions github-actions released this 29 Nov 00:45
c71d386

Runtime-only (no compiler, with WASI) and full builds of the Wasmtime C API, with scripts/wasmtime-patches applied, build revision 10 of the recipe in scripts/build-wasmtime.sh at 9bb60b1. Pinned by checksum in scripts/wasmtime-runtime.sha256 and scripts/wasmtime.sha256 of the erlang_wasmtime releases that use it; assets are never replaced: a rebuild bumps scripts/wasmtime-runtime.rev and gets its own release.

Wasmtime C API v51.0.0 for erlang_wasmtime

Choose a tag to compare

@github-actions github-actions released this 27 Nov 15:01
732ccf5

Runtime-only (no compiler, with WASI) and full builds of the Wasmtime C API, with scripts/wasmtime-patches applied, build revision 4 of the recipe in scripts/build-wasmtime.sh at a683b5a. Pinned by checksum in scripts/wasmtime-runtime.sha256 and scripts/wasmtime.sha256 of the erlang_wasmtime releases that use it; assets are never replaced: a rebuild bumps scripts/wasmtime-runtime.rev and gets its own release.

Wasmtime C API v51.0.0 for erlang_wasmtime

Choose a tag to compare

@github-actions github-actions released this 27 Nov 13:52
5a3e876

Runtime-only (no compiler, with WASI) and full builds of the Wasmtime C API, with scripts/wasmtime-patches applied, build revision 3 of the recipe in scripts/build-wasmtime.sh at a3549cd. Pinned by checksum in scripts/wasmtime-runtime.sha256 and scripts/wasmtime.sha256 of the erlang_wasmtime releases that use it; assets are never replaced: a rebuild bumps scripts/wasmtime-runtime.rev and gets its own release.

Wasmtime C API v51.0.0 for erlang_wasmtime

Choose a tag to compare

@github-actions github-actions released this 27 Nov 10:59
2eac9ec

Runtime-only (no compiler, with WASI) and full builds of the Wasmtime C API, with scripts/wasmtime-patches applied, build revision 2 of the recipe in scripts/build-wasmtime.sh at a213da4. Pinned by checksum in scripts/wasmtime-runtime.sha256 and scripts/wasmtime.sha256 of the erlang_wasmtime releases that use it; assets are never replaced: a rebuild bumps scripts/wasmtime-runtime.rev and gets its own release.

erlang_wasmtime 0.3.0

Choose a tag to compare

@benoitc benoitc released this 20 Nov 00:17
b70b838

Components and WASI 0.2, with erlang_wasm's term mapping: a componentize-py
agent per request in 0.75 ms on an M4 Pro, 1.27 ms on a 4-vCPU x86_64
runner.

The API now follows erlang_wasm's, so code written for one runtime reads
the same on the other.

  • instantiate/3 takes the import map as its second argument.
    instantiate/2 takes the import map or the options map. The imports
    option still works and is deprecated.
  • get_global/2 answers the value in a list, like a call result.
    global_get/2 is deprecated: calling it gives a compiler warning.
  • load/1,2, load_file/1 and unload/1: a cache of compiled modules for
    the node. Loading the same bytes twice compiles once. erlang_wasmtime
    is now an application with a supervisor; the cache needs it started, the
    rest of the library does not.
  • wasmtime_script_worker runs scripts through an adapter, one request at
    a time, each in a fresh instance with its own directory, a deadline and
    bounded output. wasmtime_javascript_command and
    wasmtime_python_command ship; wasmtime_worker_adapter is the behaviour
    for your own.
  • An import you give instantiate/3 now wins over the WASI function of
    the same name. It was a link error before.
  • Host resources for components: a resource in an interface you serve is
    kept by wasmtime_component (host_new/2, host_get/1,
    host_update/2, host_drop/1), and the guest holds handles to it.
  • http => all in the wasi options lets a component send HTTP requests
    through wasi:http. Off by default, and all or nothing: any server the
    node can reach. Not in runtime-only builds. network => all is refused:
    this Wasmtime cannot open sockets to a guest.
  • Snapshots: snapshot/1,2 captures an instance made with
    snapshotable => true, restore/3 starts new instances from that point,
    save_snapshot/2 and load_snapshot/2 keep the image across restarts.
    Core modules only; the image holds memories and globals.
  • wasmtime_instance_worker: one instance in a process, one request at a
    time, a deadline on each, and a fresh instance per request unless you
    ask to reuse it. A deadline interrupts the guest and the worker lives on.
  • exports/1 also takes an instance. pin/2, release/2, release_all/1
    and the profile option are accepted and do nothing: references stay
    alive as long as you hold them, and Wasmtime has one compile tier.
  • format_error/1 renders an error on one line for logs.
  • func_types_of/1 and func_type_of/2 give the types of a module's
    function exports without instantiating it.
  • wasmtime_limits has the presets of erlang_wasm's wasm_limits.
    instantiate/3 takes timeout, fuel and max_memory_pages: the first
    two apply to every call on the instance unless the call gives its own.
    The limits this runtime cannot enforce (max_depth, max_heap_words,
    max_host_calls) are refused, not ignored.
  • Pools sized for components: pooling takes core_instances, memories
    and tables (each instances by default); a component instance's store
    allows 100 core instances by default instead of 10.
  • bench/agent_bench.erl: a componentize-py agent per request, 0.75 ms and
    5,900 requests a second with 14 callers on an M4 Pro.
  • Components: compile/2, deserialize/1,2, deserialize_file/1,2 and
    validate/1 take components; module_kind/1; call/3,4 by Export or
    Interface#Function, answering {ok, Value}; every WIT value crosses
    with erlang_wasm's term mapping; host imports keyed {Interface, Function}, raw funs answering {ok, [V]} or erlang_wasm's typed
    import_fun/2; resources as integer handles with drop_resource/2,3;
    pooling and precompiled components.
  • WASI 0.2 for components with a wasi option, from the same keys as
    preview 1; run/1,2; streamed stdin and stdout; clocks => monotonic
    traps the wall clock with kind => clock_refused.
  • Wasmtime archives revision 4: every archive carries Wasmtime's LICENSE
    and PATCHES.md with the patches applied; the runtime-only library adds
    the component model (4.2 MB on macOS arm64, from 2.5 MB).
  • stdin => stream is a pipe Wasmtime reads, filled by a thread per
    instance: the fd_read override is gone, streamed stdin works on
    runtime-only builds without a shim, and WASI 0.2 components will read it
    the same way. Stopping a guest (timeout, interrupt/1, destroy/1)
    now ends its stdin, since that is what wakes a blocked read.
  • clocks => monotonic: a refused clock answers ENOTCAPABLE (76) instead
    of ENOTSUP (58), the errno erlang_wasm uses.