[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: My wish list
- From: David Manura <dm.lua@...>
- Date: Sat, 17 Mar 2012 17:38:58 -0400
On Fri, Mar 16, 2012 at 8:03 PM, Rena <hyperhacker@gmail.com> wrote:
> On Fri, Mar 16, 2012 at 7:51 PM, Egor Skriptunoff <egor.skriptunoff@rocketmail.com> wrote:
>> 1) This function will be useful:
>> bit32.weight(n) == Hamming weight of n
Here's benchmarks of various implementations in Lua:
http://lua-users.org/wiki/HammingWeight .
> 3) Lua lacks fast function to build initialized array
or to clear an array or move slices between arrays, which can also be
O(N). See http://lua-users.org/wiki/TablePreallocation .
>> 9) Who are the author of bright idea about _ENV upvalue?
>> Sandboxing in Lua is perfect now.
>> I just want to say thank you.
It was announced by Roberto here:
http://lua-users.org/lists/lua-l/2010-02/msg00753.html .
>> 8) PiL book says, "The generic loop shares
>> two properties with the numeric loop:
>> the loop variables are local to the loop body
>> and you should never assign any value to them."
PiL may be wrong: http://lua-users.org/lists/lua-l/2009-11/msg00280.html .
> 6) Agree, the way some metamethods don't trigger depending on the types of the
> operands is a bit of a pain.
Example: http://lua-users.org/wiki/ModuleVersioning .
>> 10) Did anybody make attempt to write a specializer
>> for implementing Futamura-Turchin projections
>> in Lua (or in subset of Lua)?
>> (see "Partial evaluation" on Wikipedia for
>> brief description of the subject)
Maybe Tempo [1] will help. lua2c [2] perhaps is related in that it
translates Lua code to C API calls, which gets compiled together with
the C API functions, but lua2c was not autogenerated from lparser.c
sources.
[1] http://phoenix.inria.fr/software/past-projects/tempo .
[2] http://lua-users.org/wiki/LuaToCee