Alternera.Plugins.Lua54.Application (alternera_plugin_lua54 v0.9.0)

Copy Markdown View Source

Compiles the Lua 5.4 module once when the package starts (PluginWasmFramework.Modules.load/2): compiling the interpreter takes a few hundred milliseconds, which would otherwise fall on the first step that runs. A module that fails to compile is logged there and fails each step that runs it; the application starts regardless, so the rest of the proxy does.

The plugin is experimental, installed only with the proxy's :experimental_plugins set, so a node without it does not compile a module no step can use. Where the flag is set later than the package starts (the package's own tests, a test suite that puts it), the module is compiled on the first call instead (Modules.load/2 compiles once).