Skip to content

v0.3

Choose a tag to compare

@github-actions github-actions released this 28 Oct 21:08
· 25 commits to master since this release
v0.3
c988b7c

Prometheus v0.3: VM virtualization

  • New VM: Vmify now compiles Lua into custom instructions executed by a generated interpreter, with randomized opcode IDs and operand layouts.
  • Updated presets: Medium and Strong combine VM virtualization with control flow flattening. Weak retains flattening without the VM.
  • Runtime optimizations: faster small calls and returns, fewer allocations, and improved register cleanup.
  • Lua 5.1 fixes: corrected assignment behavior, discarded expression evaluation, negative zero, long string newlines, and unexpected environment lookups.
  • Expanded documentation, benchmarks, and regression tests.

Migration: In custom configurations, replace Vmify with Cff to retain the previous control flow flattening behavior. Keep Vmify to use the new VM.

VM virtualization adds runtime overhead; benchmark your application when choosing a preset.

Full changelog