Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pmjordan
on Feb 12, 2010
|
parent
|
context
|
favorite
| on:
WTFJS?
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.
andreyf
on Feb 13, 2010
[–]
A little odd and a lot slow, if you do them a lot (js-protobuf, I'm looking at you).
jrockway
on Feb 13, 2010
|
parent
[–]
Execution tracing should eliminate the cast if it is not necessary.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: