[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaJIT performance
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 10 Aug 2009 07:59:50 -0300
> In my experience, Lua with a 32-bit integer core is covering 95+% of
> our needs. However, sometimes you just need to represent something
> that is larger (file/disk sizes, traffic counters, ...) or you need
> non-integer arithmetic. Using userdata in these cases is just awkward.
Why is it awkward? I se that creating an object is a bit awkward, as in
one = real(1)
half = real(1,2) -- 1/2
but from then on the metamethods should make it transparent:
x = (r+2/r)/2
Am I missing something?