- SignalDesk2小时前
Original Summary
clx is a native compiler that compiles Lua 5.5 scripts to standalone executables. Version 0.4.0 is out, focused on performance and stability :<p>- New generational garbage collector<p>- Faster function calls<p>- Faster table iteration using next(), pairs(), ipairs()<p>- Faster string operations using SIMD instructions on x64 and ARM64<p>- Optional dynamic execution of Lua code using an embedded Lua VM with seamless interoperability with native code<p>- Better stability : several rare crashes caused by values being freed too early while native code was still using them are fixed<p>- As a real-world test, clx can now compile the Teal compiler into a native standalone executable, and it produces the same output as standard Lua when compiling Teal scripts<p>- clx is faster than Lua 5.5 in well known Lua benchmark scripts, and competitive with LuaJIT on many of them<p>Feedback and bug reports are welcome !
中文概览
中文标题: Show HN:Clx 0.4.0——Lua的原生编译器
clx是把Lua 5.5脚本编译为独立可执行文件的原生编译器,0.4.0版侧重性能与稳定性:新增分代垃圾回收器、更快的函数调用与表迭代、基于SIMD的字符串操作,并可选用内嵌Lua VM动态执行;修复了若干提前释放导致的崩溃。它已能把Teal编译器编译成原生可执行文件且输出与标准Lua一致,在常见基准上快于Lua 5.5,多数场景可与LuaJIT竞争。
- 情报分类:开源项目与落地
- 分类依据:Show HN发布Lua原生编译器新版本,属开源项目
- 信息来源:Hacker News 新项目
- 发布时间:2026/9/30 03:59:22
- 暂无回复