five.tooSlow = function() {
var returnIn = new Date(new Date().valueOf() + 555);
do {} while(new Date() < returnIn);
return five();
};
Finally a way to escape callback hell. I think somebody should write a jQuery.ajax plugin that calls the function repeatedly until a request is finished.
I poked around at the source code and this really doesn't seem to be web scale at all. Please look into mongodb to store the five, maybe throw in Redis to cache five in memory, and consider using a real-time processing framework like Storm to implement mapping and reducing five.
Until then I'm afraid this is just far too slow to consider using seriously in my web-scale project. This probably cant even handle 100M+ requests/second. Right now, its just me and grandma so I need 2 requests/sec, but this really doesn't seem scalable.
Ah, so you have to have two dots... I suppose the first one denotes the floating point value, and the second denotes the prototype accessor. Very clever.