Hacker GitHub

← All repos

petkaantonov/bluebird

View on GitHub ↗ ★ 20,467 JavaScript

:bird: :zap: Bluebird is a full featured promise library with unmatched performance.

87 mentions on Hacker News by 66 people: 13 stories, 74 comments · first 2013-10-04 · latest 2022-08-24

Mentions per year 87 mentions · busiest year 2014 (33)
20082026
  1. …BB and promises in general. A well-written guide would be a great star on your friend's resume. [0] https://github.com/petkaantonov/bluebird
  2. …to Promises, which I have grown to really love in the last few months - especially since bluebird ( https://github.com/petkaantonov/bluebird ) handles errors really sanely. It takes a lot of getting used to but it is really, really nice to…
    comment by STRML · 2014-09-19 · in Handling Errors in IcedCoffeeScript
  3. …reading an article about how using Array.proto.slice on arguments will not get optimised by V8. https://github.com/petkaantonov/bluebird/wiki/Optimization-k...
  4. …object. If you haven't yet, please do check out Petka Antonov's Optimization Killers [0]. [0]: https://github.com/petkaantonov/bluebird/wiki/Optimization-k...
    comment by couchand · 2014-08-19 · in A JavaScript Quality Guide
  5. …I'm curious to compare approaches :-) - mine is a sweet.js macro: http://pastie.org/9410315 (uses https://github.com/petkaantonov/bluebird and https://github.com/BranchMetrics/promise-accum ). The basic syntax would be: task { item1 <-…
  6. …672 80.59 promises-cujojs-when.js 731 68.74 callbacks-caolan-async-waterfall.js 733 44.57 [1]: https://github.com/petkaantonov/bluebird/blob/master/benchma...
  7. …callback hell and having to perform error handling in multiple places. A good Promise library (like https://github.com/petkaantonov/bluebird ) even provides mechanisms for writing functions that both return Promises as well as accept…
    comment by hiddentao · 2014-07-20 · in JavaScript (and Node) Best Practices
  8. ▲ 244
    V8 Optimization Killers
    story by diggan · 2014-06-25 · 80 comments
  9. His "optimization killers" article is also really insightful: https://github.com/petkaantonov/bluebird/wiki/Optimization-k...
  10. …are some cases where you must use inline for loops (such as when slicing arguments objects, see https://github.com/petkaantonov/bluebird/wiki/Optimization-k... ) and a function call is not possible. These can also be addressed with…
  11. ▲ 1
    Petka Antonov on why use bluebird vs. other JavaScript promise libraries
    story by rayshan · 2014-05-30 · 0 comments
  12. …https://github.com/kriskowal/q#long-stack-traces [3] https://github.com/btford/zone.js/#zonefork [4] https://github.com/petkaantonov/bluebird
  13. …I recall hearing that variables mixed with literals in a switch could trip up the optimizer. [1] https://github.com/petkaantonov/bluebird/wiki/Optimization-k...
  14. ▲ 1
    The Deferred Anti Pattern
    story by inglor · 2014-05-12 · 0 comments
  15. ▲ 2
    JavaScript Performance Killers
    story by inglor · 2014-05-11 · 0 comments
  16. ▲ 9
    V8 Optimization killers and their workarounds
    story by adamnemecek · 2014-05-07 · 0 comments
  17. Petka Antonov (the author) wrote this: https://github.com/petkaantonov/bluebird/wiki/Optimization-k... Other than that, I think he also said similar rules of C++ and Java optimization apply (avoid allocations a.k.a. creations of new…
    comment by spion · 2014-04-30 · in JavaScript Promises in Wicked Detail
  18. …a github issue? (or is mongoose doing something so crazy that it cannot be helped at all? :P) [1] https://github.com/petkaantonov/bluebird/commit/70f90c33dd94...
    comment by esailija · 2014-04-26 · in Better JavaScript Promises
  19. …3 simultaneous async requests, it's super easy with promises. Here's an example using bluebird ( https://github.com/petkaantonov/bluebird ): Promise.all([async1, async2, async3]).then(function(results) { console.log('async1:', results[0]);…
    comment by jclem · 2014-04-25 · in Better JavaScript Promises
  20. As long as the library follows the "function (err, data)" convention: https://github.com/petkaantonov/bluebird/blob/master/API.md#...
    comment by unspecified · 2014-04-18 · in Write Better JavaScript with Promises
  21. ok... then can you explain what's happening here: https://github.com/petkaantonov/bluebird/blob/master/js/brow... Where the line checks for `window.Promise`
  22. - Why BlueBird? What's wrong with Q? - Isn't data a scope down? - https://github.com/petkaantonov/bluebird/blob/master/API.md is API based, not task based. async is API based too, but the API has names like 'waterfall' and 'parallel'. I…
  23. …Promise.spawn(function* () { var data = yield fs.readFileAsync(somefile); }); Documentation: https://github.com/petkaantonov/bluebird/blob/master/API.md My favorite example is doing a diff using an async diff service which provides a…
  24. Bluebird is the best promises library: https://github.com/petkaantonov/bluebird
  25. I would not say this[1] is a minimal difference :P [1]: https://github.com/petkaantonov/bluebird/blob/master/benchma...
  26. …promise articles/tutorials reference Q as the preferred promise library, rather than bluebird - https://github.com/petkaantonov/bluebird Bluebird is not only so fast that it's almost on par with callbacks[1], but also innovates on the…
  27. …CSS) but these don't dictate how you structure your code so there's still room for conflict. [1] https://github.com/petkaantonov/bluebird/blob/master/API.md#...
  28. …PromiseThatMissesThePointOfPromises { ... Please point out anything I am misunderstanding. [1] https://github.com/petkaantonov/bluebird/issues/51 [2] https://github.com/petkaantonov/bluebird/issues/51#issuecomm...
    comment by eldude · 2014-01-08 · in Why I am switching to promises
  29. …even if that weren't the case, it would be a simple matter to write a more specific wrapper. [1]: https://github.com/petkaantonov/bluebird/issues/51#issuecomm...
    comment by spion · 2014-01-08 · in Why I am switching to promises
  30. …and Q seems to be shockingly slow compared to the dozen or so other promise libraries out there. 1. https://github.com/petkaantonov/bluebird 2. http://spion.github.io/posts/why-i-am-switching-to-promises....
    comment by JoshGlazebrook · 2013-12-17 · in JavaScript Promises: There and back again
  31. ▲ 2
    V8 Optimization Killers
    story by Zikes · 2013-11-12 · 0 comments
  32. Here you go! https://github.com/petkaantonov/bluebird/issues/5
  33. Hmm. Can you post your code and description of the problem as an issue? https://github.com/petkaantonov/bluebird/issues
  34. …of the async event chain 3. I will skip this, because, uhh... 4. You didn't look hard enough. https://github.com/petkaantonov/bluebird/tree/master/src 5. Yes, promises are confusing. I'm going to write a straight-forward introduction (that…
  35. …figure out a way to do it). Bluebird looks promising, but IE<9 isn't supported at the moment ( https://github.com/petkaantonov/bluebird/issues/3 ). Rules it out for most of my projects.
  36. …wrappers manually, that could be improved. Look into both overloads of [`Promise.promisify`]( https://github.com/petkaantonov/bluebird/blob/master/API.md#... )
  37. ▲ 90
    Bluebird – A full-featured, fast promises library for JavaScript
    story by esailija · 2013-10-04 · 42 comments