rvirding/luerl
62.8
Adequate · 13 November 2026
12.1k
lines of production code
Erlang
with Lua
8
measurements over time
What this system is
Features
Add Luerl minibench example with Makefile support
The examples/minibench directory now includes two new Erlang benchmark modules (minibench.erl and minibench2.erl) that measure the performance of frequent calls to small Luerl scripts, covering scenarios like state initialization, parsing, and execution. A new Makefile has been added to simplify building and running these benchmarks, allowing users to execute them via standard make targets.
examples/minibench · high confidence
Add luerl.hrl header file with core records and macros
The include directory now contains luerl.hrl, which defines the fundamental records (such as luerl, lua\_func, and call\_frame) and macros required for the Luerl runtime. This file centralizes the data structures for the Lua state, tables, functions, and environment, making them available to other modules via standard Erlang include directives.
include · high confidence
Added Project Euler benchmark examples using luerl
The examples/euler directory now includes a Makefile and Erlang driver (euler.erl) that execute the first ten Project Euler problems via the luerl Lua emulator. This addition provides a benchmarking suite where Lua scripts are loaded and run within the Erlang environment, verifying expected outputs for problems 1 through 10.
examples/euler · high confidence
Initial release of Luerl 1.5.1 application metadata
The luerl application metadata file (luerl.app) has been added to the ebin directory, defining the Luerl Erlang implementation of Lua at version 1.5.1. This file registers the core modules, specifies dependencies on the kernel and stdlib applications, and configures the application callback module (luerl\_app) and licensing information (Apache-2.0).
ebin · high confidence
Introduce idiomatic Elixir API wrappers for Luerl
Added \Elixir.Luerl\ and \Elixir.Luerl.Old\ modules that provide Elixir-friendly wrappers for the Luerl Lua interpreter. These modules reposition the VM State argument to the first position in all function calls, enabling idiomatic usage with the Elixir pipe operator (\\|\>\) for chaining operations. The new \Elixir.Luerl\ module targets the current Luerl interface, while \Elixir.Luerl.Old\ provides the same convenience for the legacy \luerl\_old\ module.
src · high confidence
New Lua benchmark runner and suite
Added a new benchmark runner in \examples/benchmark\ that executes Lua scripts from the \suites/\ directory using the \luerl\ library. The runner compiles the Erlang benchmark driver, loads Lua benchmark suites, extracts benchmark keys, and measures execution time for each test case, providing a way to evaluate \luerl\ performance.
examples/benchmark · high confidence
Project initialization with Apache 2.0 license and build tooling
This change establishes the project's foundational structure by adding a CHANGELOG.md (adhering to Keep a Changelog format), a LICENSE file (switching to Apache License 2.0), and a VERSION file (set to 1.5.1). It introduces a Makefile and rebar.config for building, testing, and documentation generation, including a script to handle Erlang version-specific compiler options. The README is updated to reflect the new community links (Discord) and documentation setup.
(repo-wide) · high confidence
Behavioural changes
Updated Luerl examples to use new API and added sandbox support
The examples in the hello directory have been updated to use the new Luerl API, including stateful execution via luerl:do/2, luerl:load/2, and luerl:call\_chunk/3, as well as table and userdata access via luerl:get\_table\_keys\_dec/2 and luerl:set\_table\_keys\_dec/3. A new hello\_sandbox example demonstrates the luerl\_sandbox module for running Lua code with reduction counting and restricted globals. Additional examples (hello\_funcalls, hello\_table, hello\_userdata) showcase function calls, table manipulation, and userdata handling with the updated interface.
examples/hello · high confidence
Test coverage
Expanded test coverage for Luerl core and library functions
Added comprehensive Common Test (CT) and EUnit suites to verify Luerl's behavior across multiple areas. The new tests validate \os.date\ formatting and table output, ensure \os.time\ returns an integer consistent with Lua 5.3, and confirm that \string.format\ float conversions (\%e\, \%f\, \%g\) match C \printf\ precision and rounding. Additional test files cover \string.gmatch\ iteration, Unicode handling, decimal library arithmetic, private store persistence across garbage collection, and error propagation in external function calls.
test · high confidence
Housekeeping
Legacy Luerl documentation moved to doc\_legacy
The Luerl library documentation (including man pages and source markdown for the basic, old, and sandbox interfaces) has been relocated to the doc\_legacy directory to prevent naming collisions with ex\_doc.
_doc\legacy · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 63 → 63 (+0.0)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.
Lenses
- Code Health 75 → 75 (+0.0)
- Architecture 100 → 100 (+0.0)
- Maturity 52 → 52 (+0.0)
- Readiness 56 → 56 (+0.0)
- Security 97 → 97 (+0.0)
- Event Sourcing 100 → 100 (+0.0)
Resolved (5)
- Duplicated block (12 lines × 2) (src/luerl.erl)
- Edited copy of a member (28 corresponding lines) (src/luerl.erl)
- Members sharing a duplicated core (4 members, 50+ identical tokens) (src/luerl_heap.erl)
- No ADRs found
- Off-boarding risk: anonymized user #1
New (99)
- Edited copies of one member (3 members, 11+ corresponding lines) (src/ttdict.erl)
- Edited copies of one member (3 members, 3+ corresponding lines) (src/luerl_comp_env.erl)
- Edited copies of one member (3 members, 3+ corresponding lines) (src/ttsets.erl)
- Edited copies of one member (3 members, 4+ corresponding lines) (src/luerl_comp_locf.erl)
- Edited copies of one member (3 members, 4+ corresponding lines) (src/luerl_emul.erl)
- Edited copies of one member (3 members, 4+ corresponding lines) (src/ttdict.erl)
- Edited copies of one member (3 members, 6+ corresponding lines) (src/luerl_lib_basic.erl)
- Edited copies of one member (3 members, 6+ corresponding lines) (src/luerl_lib_string_format.erl)
- Edited copies of one member (3 members, 7+ corresponding lines) (src/luerl_comp.erl)
- Edited copies of one member (3 members, 7+ corresponding lines) (src/luerl_comp_vars.erl)
- Edited copies of one member (4 members, 10+ corresponding lines) (src/luerl_lib_table.erl)
- Edited copies of one member (4 members, 16+ corresponding lines) (src/luerl_comp_cg.erl)
- Edited copies of one member (4 members, 18+ corresponding lines) (src/luerl_lib_table.erl)
- Edited copies of one member (5 members, 19+ corresponding lines) (src/ttdict.erl)
- Edited copies of one member (5 members, 5+ corresponding lines) (src/luerl_comp_normalise.erl)
- Edited copies of one member (5 members, 9+ corresponding lines) (src/luerl_emul.erl)
- Edited copies of one member (6 members, 5+ corresponding lines) (src/luerl_emul.erl)
- Edited copies of one member (6 members, 6+ corresponding lines) (src/luerl_comp_vars.erl)
- Edited copies of one member (8 members, 5+ corresponding lines) (src/luerl_comp_env.erl)
- Edited copy of a member (10 corresponding lines) (src/luerl_comp_env.erl)
- …and 79 more
Changes since last survey
- 3 commits — 1 feature/other, 2 fixes
By area
- src/luerl.erl — 1 commit
- src/luerl_lib_string.erl — 1 commit
- src/luerl_lib_table.erl — 1 commit
Notable commits
- fix: fix: plain string.find of the empty string (#238)
- fix: fix: private data is a garbage collection root (#239)
- change: Honor __len for table.unpack's default end index (#241)
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
rvirding/luerl was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 13 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 7d09d1f73e1dd80a89e4e464b71f9e63e0397df8 — the exact code this score is about.
- Scored under rubric-2026.11.3 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.57+preprod-8ebfb01cf4c0.