That was fast Jaguar. But tell me: with what data type did you replace the Java long type?
I'm still thinking through that. Right now, I've found two possibilities.
-
http://jsfromhell.com/classes/bignumber - nice because it would allow us to get rid of the long10 stuff.
-
http://docs.closure-library.googlecode.com/git/class_goog_math_Long.html - will allow the code to stay more similar to the original code
I'm leaning towards the second until everything is working and then maybe switching to the first because it would allow us to remove some of the extra long stuff, but I still need to evaluate how intrusive the changes are. If they're equally intrusive, it might make sense sense to just use the first one from the beginning.
Well I am experimenting with the second possibility, but the Long10 build from Long is very slow. Function recip takes 10ms to compute.