lua-users home
lua-l archive

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


On Tue, Jul 9, 2013, at 06:44 PM, William Ahern wrote:
> On Tue, Jul 09, 2013 at 12:08:04PM -0400, Todd Coram wrote:
> <snip>
> > I too am very happy to see what 5.3 is doing with ints. When I do data
> > encoding/decoding protocol work (e.g. Google Protocol Buffers, BSON,
> > etc), it would be very nice ?to properly handle 64 bit integers in pure
> > Lua. This will go a long way to making Lua a first class player in data
> > protocol manipulation!
> 
> One quibble: most protocols sanely use unsigned integers. A signed 64-bit
> integer is 1 bit too short, and generally speaking you're not much better
> off than with floating point doubles and the bit32 library.

That is true. "First class" player may be a bit of an overstatement. 
That being said, it does get Lua "into the game". I can live with
+-9,223,372,036,854,775,807 as a maximum (for now) ;)

/todd