10:18:30 GMT hi, is redis still using 64 bit int internally even on raspberry pi? (I think I know the answer, looking for confirmation) 10:18:53 GMT King_DuckZ: depends for what 10:19:46 GMT badboy_: for numbers o.O 10:20:21 GMT there are a lot of numbers in Redis 10:20:48 GMT the numbers you store in the db 10:23:54 GMT I see no ifdef of sorts here https://github.com/redis/hiredis/blob/master/hiredis.h#L114 so I guess yes? or is hiredis for 64 bit machines only? 10:24:19 GMT weeeell, that's hiredis ;) 10:24:28 GMT for storing it uses long 10:24:49 GMT at least for integers <10000 10:25:44 GMT what's the problem with 64bit integers on the Pi? 10:27:24 GMT euh... some dude on irc is "criticising" my incredis lib because it uses int64 types, and seemed to hint that it can't possibly work 10:27:48 GMT there's a high probability he's yet another irc troll, but just to be sure 10:28:16 GMT oO why shouldn't it work? 10:28:35 GMT 00:34 < Broly> you're using long long int on a 32 bit platform and expecting me to really believe you can wrap, what is probably, the most legacy-laden library out there 10:29:19 GMT nice person! 10:29:38 GMT iono, he was spouting stuff about libc on rpi, not sure 10:29:57 GMT heh so troll label on him? :) 10:30:33 GMT ah hm 10:30:39 GMT in case you feel like having a look -> https://github.com/KingDuckZ/incredis 10:31:55 GMT so yeah, it might be that it can't properly handle 64bit integers indeed 10:32:14 GMT the build on rpi is currently broken, I'm trying to work on it on evenings and to me it looks like the problem is not in redis/hiredis at all, rather in some metaprogramming stuff 10:32:28 GMT you mean hiredis? or incredis? 10:32:33 GMT the pi 10:32:42 GMT ah 10:32:49 GMT hm 10:33:22 GMT the newer pi does have a 64-bit cpu ¯\_(ツ)_/¯ 10:33:54 GMT if you own one and can test it... :) 10:34:12 GMT only an old one 10:34:20 GMT and it seems to not handle long long well 10:36:08 GMT oh, my test was dumb :D 10:36:14 GMT passing 64-bit integers is no problem 10:36:45 GMT even division works 10:37:25 GMT so unless that person can give any hints on what he's talking about i consider it a non-problem 10:37:33 GMT (there might be a performance impact, but meh) 10:38:05 GMT that's far from being a build-breaking issue 10:38:11 GMT 64bit integers work on 32bit systems? color me surprised 10:38:15 GMT (not) 10:38:54 GMT what I can do is use decltype(hiredis_long_long_var) instead of just int64_t (not sure if that's already the case), so incredis will just follow hiredis on that 10:39:03 GMT minus: certain arithmetic might fail though ;) 10:39:17 GMT they're supposed to since int64_t is standard, they're just not atomic afaik 10:39:19 GMT (but I guess not with an up2date compiler and kernel)