lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> I have been playing a little with the idea of introducing an integer
> type in Lua. I have intended to present some initial thoughts in the
> workshop.

Doubles can represent integers in the range (-2^53, 2^53) exactly, so
why a separate integer type? OK, I'm mainly programming for x86 but if
speed was ever an issue it certainly no longer is with SSE/AVX
available.  If the main benefit is 64-bit bit operations then why not
a "bit set" type without the additional coercion rules?  Still, it
does impact size, at least on 32-bit systems.

But, an intelligent way to do will be presented at the workshop, no doubt..  ;-)
Bye,
Wim