lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

I understand that energt efficiency and memory usage (not sure on this) could not be gols for Lua, as it's bread and butter are being simple (not simplistic) and easely embedable but ... should those be the only bread and butter of the language? 

As Lua outgrows its niche, I think benchmarks like those will have more and more weight when deciding to adopt Lua. Even in the embedable and enterprise world, as Scott put it, energy efficiency is a thing. 

More importantly: do we have leads on why Lua scored so poorly in this benchmark besides some copy/paste algorithms? 

Em dom, 7 de abr de 2019 às 23:03, joy mondal <> escreveu:
Anybody who looks at this results and says :

" Jeez Lua is so inefficient, I won't use it "

I am glad they go and use C.

Lua was never designed to minimize energy usage, i do not see energy use mentioned anywhere on lua's wiki page.

I want a ranking of :

- embedding with C, Lua will beat every other language on this.

- compiler complexity, Lua will beat every other language on this.

If somebody creates a language that causes lua to lose on those front, I would agree that that would be the time to start freaking out, but for now Lua maintains a monopoly.

Its like somebody coming to me and asking them to help them do a cardiac bypass surgery - its not my job !

Lua excels in things it set as its goals. Many languages that set their goals to be something and never get to achieve it.

- "Java write once run everywhere" someone ??

On Sat, Apr 6, 2019 at 4:22 PM Italo Maia <> wrote:
I wonder how this benchmark would look like without the worst case algorithm implementation for each language. 

Another thing that worries me is the bad propaganda of such results given tests might have issues, as mentioned.

I have a hard time phantoming what could cause that Lua memory result. 

Em qui, 4 de abr de 2019 12:09, Scott Morgan <> escreveu:
On 04/04/2019 10:44, Frank Kastenholz wrote:
>> On Apr 4, 2019, at 1:35 AM, joy mondal <> wrote:
>> Trying to measure programming languages based on how much electricity they use is a lot like ranking aircrafts by their weight - completely meaningless metric.
> There are environments where the energy supply is extremely limited, such as battery powered (or pv powered or motion powered) devices and where the device MUST remain operational for a specified period of time, so consumption is important to measure.
> Whether _this_ benchmark accurately measures that consumption is a separate question.

Also, in big data centres, where thousands of machines are running the
same code, power consumption (and heat dispersal) are important issues
that make these sorts of benchmarks useful.

I'll echo the question about how good this particular paper is at
measuring these things.


"A arrogância é a arma dos fracos."

Me. Italo Moreira Campelo Maia
Co-fundador do Grupo de Usuários Python do Ceará
Secretário ForHacker (
Desenvolvedor Full-Stack, Escritor, Empresário, Visionário
Meu Livro, Site, Blog