Re:Show HN: A Javascript library to overcomplicate Five
by jgillich on Thursday July 17, 2014 @11:19AM
(#8047996)
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.
Re:Show HN: A Javascript library to overcomplicate Five
by zaptheimpaler on Thursday July 17, 2014 @01:35PM
(#8048943)
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.
Re:Show HN: A Javascript library to overcomplicate Five
by dclowd9901 on Friday July 25, 2014 @11:34AM
(#8085734)
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.
Some people may rely on that functionality.
You can make synchronous requests already though:
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.
Sigh. I suppose I'll have to submit an issue and pull request.
Number.prototype.amIFive = function(){ return this.valueOf() == 5; }
5..amIFive();
http://principiadiscordia.com/book/23.php
`five-coffee` on npm.
https://github.com/vladh/five-coffee