News for hackers. Stuff that matters.
Re:Fengari – Lua for the Browser by harpiaharpyja on Sunday February 20, 2022 @08:59AM (#30405720)
The Lua interpreter is really lightweight, and for decades has been the go to choice for when you need dynamic code and speed (for example, it's been popular in the games industry for this reason).

Probably someone else can shed light on exact numbers, but Lua is faster than Python.

Re:Fengari – Lua for the Browser by scruple on Sunday February 20, 2022 @11:05AM (#30406706)
It's also very small. We used it extensively on embedded Linux devices in the 2000s for these reasons as well as easy interop with C/C++.
Re:Fengari – Lua for the Browser by aa-jv on Monday February 21, 2022 @08:34AM (#30415696)
I'm still using Lua on embedded Linux devices, and in fact completed a project last year that was deemed impossible by the Java devs, but easily within our memory/time budget as a Lua group. The success of that embedded Lua project converted a large number of Java diehards into Lua accolytes...

Folks who sniff at putting a scripted/interpreted language into an embedded environment really need to think twice with Lua. It is fast, tight and highly performant - and if you bundle it along with LuaJIT and Turbo.lua, it'll give you the best of all worlds - aynsc i/o, coroutines, very, very fast performance and a great execution environment upon which to build truly useful apps.