Packages
alternera_plugin_lua54
0.9.0
An Alternera pipeline step that runs Lua 5.4 compiled to WebAssembly, on the WebAssembly framework.
Current section
Files
Jump to
Current section
Files
alternera_plugin_lua54
README.md
README.md
# alternera_plugin_lua54
The Lua 5.4 pipeline step (`Alternera.Plugins.Lua54`, plugin id
`"lua54"`): a Lua 5.4 chunk with Script's API, run in a fresh WebAssembly
instance per call on `alternera_plugin_wasm_framework`. Installed only
with `:experimental_plugins` set.
- `priv/lua54.wasm`: the built module, committed with its SHA-256
(`priv/lua54.wasm.sha256`), so nothing here needs a WebAssembly
toolchain. `guest/build.sh` rebuilds it from `guest/lua54_guest.c`,
`guest/prelude.lua` (the script's API) and the Lua 5.4.7 sources,
unmodified and checked against their SHA-256, with wasi-sdk 34.0; any
other version is refused.
- `lib/`: the plugin, its editor (the framework's `StepEditor`) and the
colouring it registers with the proxy's code editor.
- `docs/`: the user guide page (`lua54.md`), the assistant's notes
(`guide.md`) and the internals chapter (`internals.adoc`, included by the
repository's `docs/internals.adoc`).
`test/` checks the plugin against the framework's language contract and
its own API list with no proxy around (`mix test`). How close it is to
Script is measured in Alternera's
`test/alternera/plugins/lua54_conformance_test.exs`.
## Licence
Licensed under the Apache License, Version 2.0 (`LICENSE`, `NOTICE`).
Alternera itself, the proxy this package plugs into, is under the Elastic
License 2.0.
The third-party software it bundles (Lua 5.4, wasi-libc and musl) is
listed with its licences in `priv/THIRD_PARTY_NOTICES.txt`.