Next thing you know they'll be "rounding" password hashes and session tokens...https://twitter.com/RichFelker/status/854421890135461890 …
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
This is actually a shortcoming of JavaScript. Node.js is just along for the ride.
-
Well it's a matter of node.js using the wrong type.
End of conversation
New conversation -
-
-
iirc that’s a JS specification, not a choice by node
-
No, it's a wrong choice of type. If the language's numbers are doubles, you can't use numbers to store inodes. Same error as ptr->int in C.
-
that’s a fair point
End of conversation
New conversation -
-
-
this is about safe integers in JS and not specific to node.js http://2ality.com/2013/10/safe-integers.html …
-
no, this is about node choosing an inappropriate data type
-
well the issue with inode indeed is, but I was referring to the rounding mentioned before
-
.
@a0viedo the bizarre part is 1) it took this long to notice, and 2) some proposals, like “let’s just hash the ID”, are terrible
End of conversation
New conversation -
-
-
AAAAAAAAAAAAAAAAAAAAA—
-
Hahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahah.... everything is shit. Now I made myself sad
End of conversation
New conversation -
-
-
This is an interesting form of compression- store 2^64 possible combinations in the space of 2^53 :D!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
JavaScript is SUCH a great language.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
if you want to laugh hard: try bit operations on a 64 bit number (and, or, bis shifts, etc.).
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
wtf:"There really is no good solution for this until JS gets 64-bit types. IIRC this isn't the only place where node hopes for the best ..."
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I would laugh, but I worked with someone who did the same thing with 32bit pointers and floats. at least that code never went out to users
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
this is fine
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Outch.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.