News for hackers. Stuff that matters.
Re:Luxon – A library for working with dates and times in JS by collectively on Saturday November 18, 2017 @05:13PM (#15730982)
TIL they just completely redefined a kilobyte a while ago.
Re:Luxon – A library for working with dates and times in JS by orf on Saturday November 18, 2017 @09:59PM (#15732018)
Can you elaborate?
Re:Luxon – A library for working with dates and times in JS by collectively on Saturday November 18, 2017 @11:21PM (#15732226)
At some point, a kilobyte was 1024 bytes. Now, a kilobyte is 1000 bytes, and 1024 bytes is a kibibyte.

I mean, it does make sense. But it just sounds off to me.

Re:Luxon – A library for working with dates and times in JS by seanp2k2 on Sunday November 19, 2017 @12:56AM (#15732494)
Hard drive manufacturers have been doing this for decades. This is why the “80GB” drives were 74.5GB in Windows.

It’s more complicated with SSDs: https://www.anandtech.com/show/2829/7

EDIT: the official “kibibyte” was standardized in 1998: https://physics.nist.gov/cuu/Units/binary.html so almost 20 years ago. Blame Windows and HDD mfgs for sticking with the SI definitions.

Re:Luxon – A library for working with dates and times in JS by sd8dgf8ds8g8dsg on Sunday November 19, 2017 @01:38AM (#15732618)
Yea, bad bad windows for following standards.

The SI prefixes are well established before 1998 and the cause for this brainmelt.

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

Re:Luxon – A library for working with dates and times in JS by CodesInChaos on Sunday November 19, 2017 @05:08AM (#15733179)
Windows (at least up to 8) does not follow the SI standard. It uses KB, MB, GB but converts using 1024. Which has funny consequences, like 999MB being smaller 0.94GB.
Re:Luxon – A library for working with dates and times in JS by collectively on Sunday November 19, 2017 @03:11AM (#15732853)
Well to be fair “GB” could refer to either prefix.