4 ms·
Would there be any possibility for the addition of native Long numbers to JavaScript, or is this, due to some nature of the language, something that can't, or s
by Siverv 15y ago
Would there be any possibility for the addition of native Long numbers to JavaScript, or is this, due to some nature of the language, something that can't, or shouldn't, be included?
- JoshTriplett 15y agoI'd settle for integers. :)
- abecedarius 15y agoYou could add a 64-bit int type, sure, but since implementations use pointer-sized data that has to represent other types as well, making it as efficient as a long long in C isn't as easy. Seems unlikely to muster enough priority. (I haven't been following their work, though.)
- jorangreef 15y ago64-bit bitwise operations would be a big help.