News for hackers. Stuff that matters.
Re:RethinkDB is shutting down by Dylan16807 on Friday October 07, 2016 @01:56AM (#12658498)
Why do you NEED a 64 bit int? Why not 32 bit? You're not storing pointers in a database. (And then you can implement your 32 bit int in terms of the 53 bits of int-capacity in a double.)
Re:RethinkDB is shutting down by StreamBright on Friday October 07, 2016 @06:13AM (#12659464)
Because I want to store something that is a 64bit int? I mean this is really a weird question. There are a lot of things that require this starting with timestamps:

https://en.wikipedia.org/wiki/Year_2038_problem

Re:RethinkDB is shutting down by Dylan16807 on Friday October 07, 2016 @03:46PM (#12663430)
Which you can store as two 32 bit integers, or one 53 bit integer. Nothing requires native 64 bit.

64 bit is nicer than 32 bit, but it's scarcely more necessary than 128 bit numbers.

Re:RethinkDB is shutting down by jnordwick on Friday October 07, 2016 @02:23AM (#12658604)
datetimes, aggregations, etc. pretty much anything non-toy in the modern world requires 64 bit int.

like I said. read NEED as in you can certainly hobble around without it (pick an appropriate offset and read your 53 bits in relation to it), but like a fracture in a leg, it's still considered broken.

Re:RethinkDB is shutting down by Dylan16807 on Friday October 07, 2016 @02:32AM (#12658648)
What exactly do you mean by aggregations here?

If you want a good timestamp you probably want a timespec, and that won't fit in 64 bits anyway.

I don't see why it's easy to make 128+ bit types be composite, but you can't have 64 bit types be composite.

Your database driver can take care of how the bits are packed on the wire. It really shouldn't be a big concern.

Re:RethinkDB is shutting down by SamReidHughes on Friday October 07, 2016 @03:12PM (#12663192)
A query optimizer might do a lot better with a native integer type than a user-defined one cobbled out of int32's. It knows all the mathematical properties of the type and add things in any order, knows that x < y implies x + 1 <= y, etc.
Re:RethinkDB is shutting down by jnordwick on Friday October 07, 2016 @07:19AM (#12659736)
probably easier to have this convo in email (check my profile). HN iisn't quite setup for back and forth. I'm more than willing to see your point about about a 53-bit int. I think dev experience can be made more difficult as long as a you get compensation in other areas. Email me a "hi" and I'll respond, but it might have to wait until later in the day.