6 releases
new 0.2.4 | Jul 26, 2024 |
---|---|
0.2.3 | Jul 26, 2024 |
0.2.0 | Jun 27, 2024 |
0.1.0 | May 18, 2023 |
0.0.0 | Dec 10, 2022 |
#72 in WebAssembly
204 downloads per month
15MB
296K
SLoC
weval: the WebAssembly partial evaluator
weval
partially evaluates WebAssembly snapshots to turn interpreters into
compilers (see Futamura
projection
for more).
weval
binaries are available via releases on this repo or via an npm
package.
Usage of weval is like:
$ weval weval -w -i program.wasm -o wevaled.wasm
which runs Wizer on program.wasm
to obtain a snapshot, then processes any
weval requests (function specialization requests) in the resulting heap image,
appending the specialized functions and filling in function pointers in
wevaled.wasm
.
See the API in include/weval.h
for more.
Releasing Checklist
-
Bump the version in
Cargo.toml
andcargo check
to ensureCargo.lock
is updated as well. -
Bump the tag version (
TAG
constant) innpm/weval/index.js
. -
Bump the npm package version in
npm/weval/package.json
. -
Run
npm i
innpm/weval/
to ensure thepackage-lock.json
file is updated. -
Commit all of this as a "version bump" PR.
-
Push it to
main
and ensure CI completes successfully. -
Tag as
v0.x.y
and push that tag. -
cargo publish
from the root. -
npm publish
fromnpm/weval/
.
Dependencies
~51MB
~890K SLoC