News for hackers. Stuff that matters.
Re:Energy Efficiency Across Programming Languages by copx on Thursday September 14, 2017 @04:04PM (#15251998)
>5. I wonder which implementation of Lua they used. Lua can be pretty fast, one of the fastest dynamic languages out there.

I looked at the binary trees benchmark and while the Python version used multiprocessing to parallelize the code, the Lua version was not parallelized at all..

.. not that this is entirely unrealistic. Python comes with MP in the standard library while I am not aware of any "industrial strength" solution for Lua, whether MP or thread-based.

Re:Energy Efficiency Across Programming Languages by wruza on Thursday September 14, 2017 @07:14PM (#15253264)
Idk if it is industrial strong, but there is lanes and probably few more listed at lua-users. Do you have any experience to share on these?

The choice of 5.3 is pretty strange, as Lua is known to split in two at 5.2, because LuaJIT was fixed to 5.1 variant with compat backports and is to my opinion an "industrial" Lua standard. 5.x are actually three different (but not absolutely superior to each other) languages with shared 5-like foundation and app-level code compatibility, so speaking about Lua in general is pointless in a sense.

http://lualanes.github.io/lanes/

http://lua-users.org/wiki/MultiTasking

Re:Energy Efficiency Across Programming Languages by igouy on Thursday September 14, 2017 @07:00PM (#15253181)
For an interested Lua programmer, there's a kind-of workable approach --

http://benchmarksgame.alioth.debian.org/u64q/program.php?tes...

Re:Energy Efficiency Across Programming Languages by etiene on Friday September 15, 2017 @05:17AM (#15255730)
The industry standard in Lua is to have multiple Lua states doing stuff. A different approach, but it is there