News for hackers. Stuff that matters.
Re:Node occasionally gives multiple files/folders the same i... by paulddraper on Wednesday April 19, 2017 @10:12PM (#14153434)
tl;dr The inode is a 64-bit integer which the high-level JS language doesn't have.

They could (1) make a two element UInt32Array or (2) use strings or (3) use all 64 bits of the floating point JS number type.

Re:Node occasionally gives multiple files/folders the same i... by rossy on Wednesday April 19, 2017 @11:50PM (#14153790)
It's worth pointing out that (3) sounds good, but it's an imperfect solution too. If Number.isNaN(num) is true, num === num will be false. Not just one, but several 64-bit patterns are considered NaN when represented as a floating-point number, so if all possible 64-bit values can be used, this could cause the opposite problem where inodes that are actually the same are considered not equal by JavaScript.