Live data from Hacker News

Lua Fun: A high-performance functional programming library designed for LuaJIT

github.com

1–10 of 34 posts

Re: Lua Fun: A high-performance functional programming library designed for LuaJIT

#2
Even though we occassionally talk about Lua on HN, it frankly still doesn't get enough attention - nor does Mike Pall and his fantastic work on LuaJIT.

Please considering sponsoring [1] LuaJIT so that Mike can continue working on it.

Lua Fun looks like a wonderful addition to the Lua ecosystem.

[1] http://luajit.org/sponsors.html

Re: Lua Fun: A high-performance functional programming library designed for LuaJIT

#7
post #2

Even though we occassionally talk about Lua on HN, it frankly still doesn't get enough attention - nor does Mike Pall and his fantastic work on LuaJIT. Please considering sponsoring [1] LuaJIT so that Mike can continue working on it. Lua Fun looks like a wonderful addition to the Lua ecosystem. [1] http://luajit.org/sponsors.html

I can't agree with you enough.

Re: Lua Fun: A high-performance functional programming library designed for LuaJIT

#9

Is this similar to the functools package in Python? If so, that would certainly convince me to use Lua for some of what I use Python for.

You should use it for all of what you use Python for. Python is a sinking language, that has taken too much input from a community of bikeshedders, to the point it can barely move. LuaJIT makes PyPy look like a high school technology project.

Re: Lua Fun: A high-performance functional programming library designed for LuaJIT

#10
In case you skipped the article it contains this nugget:

Take this example containing functional composition and higher-order functions:

reduce(operator.add, 0, map(function(x) return x^2 end, range(n)))

LUA converts this into 10 lines of assembler (2 jumps). Also, the LUA compiler is directly generating SSE.

Anyone have any good benchmarks comparing simple functional examples in LUA with Clojure or Common Lisp?

Post reply on HN