News for hackers. Stuff that matters.
Re:Dang is going to have 65,535 karma points soon by phendrenad2 on Wednesday April 05, 2023 @07:13PM (#35461796)
They should store karma points as floats, so it won't overflow, it'll just loose precision.
Re:Dang is going to have 65,535 karma points soon by toast0 on Wednesday April 05, 2023 @07:29PM (#35461957)
Assuming karma is added and removed one at a time, there's a number that's not particularly large where you can't add any more.
Re:Dang is going to have 65,535 karma points soon by notepalf on Wednesday April 05, 2023 @07:52PM (#35462160)
Just keep adding karma
Re:Dang is going to have 65,535 karma points soon by dang on Wednesday April 05, 2023 @10:07PM (#35463216)
HN runs on Lisps that don't lose precision, just slow down.
Re:Dang is going to have 65,535 karma points soon by rurban on Thursday April 06, 2023 @07:32AM (#35466963)
arc is written in mzscheme and/or racket, and not C. It has infinite integer precision.

https://github.com/arclanguage/anarki