erlang_wasm 0.4.0
0.4.0
The workers ship with the application. Running JavaScript, Python or Lua
now needs the dependency and a runtime artifact, and nothing copied from
examples/. Nothing breaks: the new modules take names no 0.3 example used,
so code you copied keeps working. Upgrading from 0.3
maps each copied module to its installed one.
wasm_script_workeris the worker kernel;run/3takes a source and a
context.wasm_worker_adapteris the behaviour an adapter implements.- The adapters are
wasm_javascript,wasm_javascript_command,
wasm_python,wasm_python_commandandwasm_lua. wasm_instance_workeris the 0.3examples/wasm_worker.erl, with the same
calls.- The application starts the reaper. Set
scratch_rootsso a restarted node
cleans up what a crashed one left, andreaper_optionsfor the cleanup
limits.wasm_script_worker:cleanup_stats/0andcleanup_requests/0show
what it holds. - The guides open with what you want to do, and ten example pages run as
written. Every code block inREADME.md,docs/and the module docs is
checked on every test run, andgetting-started.mdruns as pasted.