[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Energy Benchmarks
- From: Italo Maia <italo.maia@...>
- Date: Mon, 8 Apr 2019 11:40:08 +0200
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?
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 ??
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.
On 04/04/2019 10:44, Frank Kastenholz wrote:
>> On Apr 4, 2019, at 1:35 AM, joy mondal <email@example.com> 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á
Desenvolvedor Full-Stack, Escritor, Empresário, Visionário