Repository navigation
Releases
Wasmtime C API v51.0.0 for erlang_wasmtime
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
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
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
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
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
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
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
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
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
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/3takes the import map as its second argument.
instantiate/2takes the import map or the options map. Theimports
option still works and is deprecated.get_global/2answers the value in a list, like a call result.
global_get/2is deprecated: calling it gives a compiler warning.load/1,2,load_file/1andunload/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_workerruns 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_commandand
wasmtime_python_commandship;wasmtime_worker_adapteris the behaviour
for your own.- An import you give
instantiate/3now wins over the WASI function of
the same name. It was a link error before. - Host resources for components: a
resourcein an interface you serve is
kept bywasmtime_component(host_new/2,host_get/1,
host_update/2,host_drop/1), and the guest holds handles to it. http => allin thewasioptions lets a component send HTTP requests
throughwasi:http. Off by default, and all or nothing: any server the
node can reach. Not in runtime-only builds.network => allis refused:
this Wasmtime cannot open sockets to a guest.- Snapshots:
snapshot/1,2captures an instance made with
snapshotable => true,restore/3starts new instances from that point,
save_snapshot/2andload_snapshot/2keep 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/1also takes an instance.pin/2,release/2,release_all/1
and theprofileoption are accepted and do nothing: references stay
alive as long as you hold them, and Wasmtime has one compile tier.format_error/1renders an error on one line for logs.func_types_of/1andfunc_type_of/2give the types of a module's
function exports without instantiating it.wasmtime_limitshas the presets of erlang_wasm'swasm_limits.
instantiate/3takestimeout,fuelandmax_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:
poolingtakescore_instances,memories
andtables(eachinstancesby 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,2and
validate/1take components;module_kind/1;call/3,4byExportor
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 withdrop_resource/2,3;
pooling and precompiled components. - WASI 0.2 for components with a
wasioption, from the same keys as
preview 1;run/1,2; streamed stdin and stdout;clocks => monotonic
traps the wall clock withkind => clock_refused. - Wasmtime archives revision 4: every archive carries Wasmtime's
LICENSE
andPATCHES.mdwith the patches applied; the runtime-only library adds
the component model (4.2 MB on macOS arm64, from 2.5 MB). stdin => streamis a pipe Wasmtime reads, filled by a thread per
instance: thefd_readoverride 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 answersENOTCAPABLE(76) instead
ofENOTSUP(58), the errno erlang_wasm uses.