Repository navigation
v0.3.0 #29
v0.3.0
#29
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Headline: dynamic code evaluation
Until now, Lua global functions
load(),loadfile()anddofile()were unsupported: compiled binaries had no interpreter to evaluate code at runtime. This release embeds a Lua 5.5 virtual machine behind a bridge library that shares values with compiled code in both directions.clx --dynamic app.lua--dynamiclinks it.This closes the main functional gap between clx and interpreter-based Lua for real applications (config evaluation, plugin loading, serialization).
Other highlights
Better standard modules compatibility:
table.create(n, h)— preallocate array and hash sizes.coroutine.isyieldable().io.stdin,io.stdout,io.stderrSupport for custom environments :
set_fenv()/get_fenv()require(module, env).Lua 5.5 conformance:
tonumberon integer values returned nil (runtime: fix tonumber returning nil for integer values #28) — fixed.next()transitions after the array/hash pivot key and invalid-key handling — fixed.clx_format_double):tostring,string.format %g, and concatenation now match PUC Lua byte-for-byte, including%lldinteger concat operands.Coroutines:
Windows toolchain:
bin/,include/,lib/); the compiler resolves headers and libraries relative to its own location.--sizenow linksclx_size.libas documented.CLX_CXXenvironment variable overrides the C++ compiler; if the build-time compiler path does not exist, clx falls back toclfrom PATH.Performances
Main items in this release:
Benchmark summary :
Full changelog
See CHANGELOG.md for the complete list, including all fixes with commit references.
All reactions