News for hackers. Stuff that matters.
Re:WTFJS? by pmjordan on Friday February 12, 2010 @06:18PM (#1122103)
Standard JavaScript uses doubles everywhere. They get casted to 32-bit signed integers for bitwise operations, the results are casted back. It's a little odd, but consistent at least.
Re:WTFJS? by andreyf on Friday February 12, 2010 @09:28PM (#1122415)
A little odd and a lot slow, if you do them a lot (js-protobuf, I'm looking at you).
Re:WTFJS? by jrockway on Saturday February 13, 2010 @04:34AM (#1122819)
Execution tracing should eliminate the cast if it is not necessary.