Hacker GitHub

← All repos

kriskowal/q

View on GitHub ↗ ★ 14,987 JavaScript archived

A promise library for JavaScript

51 mentions on Hacker News by 44 people: 2 stories, 49 comments · first 2010-09-16 · latest 2016-10-16

Mentions per year 51 mentions · busiest year 2013 (22)
20082026
  1. …too many other, stronger options available today. [1] http://wiki.commonjs.org/wiki/Promises/A [2] https://github.com/kriskowal/q/graphs/contributors
    comment by SomeCallMeTim · 2016-10-16 · in PHP 7 deployment at Dailymotion
  2. I found this document : https://github.com/kriskowal/q/tree/v1/design very helpful to understand how promises work behind the scene Also liked being able to access the author's reasoning and the motivations behind his design decisions
    comment by hotBacteria · 2015-11-23 · in How do Promises Work?
  3. …[6] https://github.com/petkaantonov/bluebird/blob/master/API.md#... [7] https://github.com/kriskowal/q/tree/v1/examples/async-genera... [8] http://taskjs.org/ [9] https://babeljs.io/docs/learn-es6/#generators [10] https://facebook
    comment by tlrobinson · 2015-05-22 · in Node.js: Cluster vs. Async
  4. I was thinking "Why not q?" That was started in 2010. https://github.com/kriskowal/q
  5. …the JS library q, which has support for stack traces that span async jumps if a promise errors out https://github.com/kriskowal/q#long-stack-traces
    comment by chaitanya · 2014-12-24 · in Promises and Lisp
  6. …limited to all the various promise libraries such as when.js( https://github.com/cujojs/when ), q ( https://github.com/kriskowal/q ), and bluebird ( https://github.com/petkaantonov/bluebird ). Not to mention the Async library (…
    comment by CitizenKane · 2014-11-26 · in Yahoo Mail moving to React
  7. …it :) `thenResolve` is a standard method on a promise object implemented by the Q library ( https://github.com/kriskowal/q/wiki/API-Reference#promisethe... ) I used, it's equivalent to .then () -> accum In other words, `thenResolve`…
  8. …rewriten to use promises. [1] http://strongloop.com/strongblog/comparing-node-js-promises-... [2] https://github.com/kriskowal/q#long-stack-traces [3] https://github.com/btford/zone.js/#zonefork [4] https://github.com/petkaantonov/bluebird
  9. In case you were unaware, there's a very popular and lovely promises library for javascript named q. https://github.com/kriskowal/q
    comment by rcsorensen · 2014-05-19 · in Hoodie – Fast web app development
  10. I use Q and its asynchronous promises for JavaScript works as promised :) https://github.com/kriskowal/q
    comment by ihenriksen · 2014-04-26 · in Better JavaScript Promises
  11. …{ alert('Error: ' + err); }) resp.finally(function() { hideLoadingScreen(); }) [1] https://github.com/kriskowal/q/wiki/API-Reference [2] https://docs.angularjs.org/api/ng/service/$q
    comment by IgorPartola · 2014-04-25 · in Better JavaScript Promises
  12. q.js can properly handle exceptions thrown in a handler. see the examples here: https://github.com/kriskowal/q#chaining
  13. And a promise library: https://github.com/kriskowal/q
    comment by mercurial · 2014-03-03 · in Q – A Data Language
  14. …promises are based on stripped down version of Kris Kowal's Q. You may want to check it out: https://github.com/kriskowal/q
    comment by danabramov · 2013-12-17 · in JavaScript Promises: There and back again
  15. …for technologists who haven't fully changed into thinking about things in "the node way." [1] https://github.com/kriskowal/q [2] https://github.com/substack/stream-handbook
  16. …promise library will matter very little. [1]: http://research.google.com/pubs/pub40673.html [2]: https://github.com/kriskowal/q/wiki/API-Reference#interfacin... [3]: https://github.com/kriskowal/q-connection [4]:…
  17. …with a try/catch statement, and will push caught exceptions into the error pipeline [2]. [1] https://github.com/kriskowal/q#long-stack-traces [2] https://github.com/kriskowal/q#handling-errors
  18. …resource on implementing promises are the design documentation on Q (promise library) repository: https://github.com/kriskowal/q/blob/master/design/README.js (HN discussion: https://news.ycombinator.com/item?id=4767941 )
  19. …be used elsewhere in the code for other purposes (because they are no longer tightly coupled). [0]: https://github.com/kriskowal/q
    comment by prezjordan · 2013-08-17 · in Callbacks are Pretty Okay
  20. https://github.com/kriskowal/q solves this today without needing to cross compile. http://koush.com/post/yield-await-v8 will address this natively however unlike Q or Kal you can't start using it today.
  21. Promises are the only real solution. https://github.com/kriskowal/q
    comment by embwbam · 2013-07-26 · in Node v0.10.14 (Stable)
  22. …least 2009 [1]), I'd also suggest picking a different name for another reason: searchability. [1] https://github.com/kriskowal/q/commit/9191ce4c803cc3f8a01fb6...
  23. …case you didn't already know, there is already a very well known javascript async library called Q. https://github.com/kriskowal/q
  24. There's a very well-known JS library already named "Q", here: https://github.com/kriskowal/q I'd suggest a name change.
  25. …have to make it more friendly. We try to relegate the "list of functions" to the API reference at https://github.com/kriskowal/q/wiki/API-Reference
    comment by domenicd · 2013-07-08 · in Promises/A+
  26. Q has `Q.all()` which does the same thing: https://github.com/kriskowal/q/wiki/API-Reference#promiseall
    comment by jasondenizac · 2013-07-08 · in Promises/A+
  27. …straight callbacks which enforce a serial approach. Check out this link to q's documentation: https://github.com/kriskowal/q#combination
    comment by drhayes9 · 2013-07-08 · in Promises/A+
  28. …it quite hard to locate any "Promises for Dummies" type guide. Most of the libraries like "q" etc ( https://github.com/kriskowal/q ) just give you a list of functions to use and related syntax but I have yet to come across a guide that…
    comment by SeanDav · 2013-07-08 · in Promises/A+
  29. …er.mozilla.org/en-US/docs/DOM/element.classLi... [2] http://jibbering.com/2002/4/httprequest.html [3] https://github.com/kriskowal/q
    comment by gildas · 2013-04-14 · in Why It's Time to Sunset jQuery
  30. …If you want to see how I've used promises, you can take a look at my work on Github [2]. [1] https://github.com/kriskowal/q [2] https://github.com/fruchtose/muxamp
  31. …easy to follow the flow. A better approach, IMHO, would be to use a promise library like q [1] 1: https://github.com/kriskowal/q/
    comment by mercurial · 2013-03-13 · in Callback hell is a design choice.
  32. I'd have to say Q promises ( https://github.com/kriskowal/q , adds promises to JS for much cleaner async code). Even though it's not "cool" in the sense that it's very low level and doesn't do fancy UI stuff, my asynchronous code has…
  33. Promises, with q is my preferred method. https://github.com/kriskowal/q
  34. The usage of Object.freeze() was removed recently and is slated for release in v0.9 https://github.com/kriskowal/q/commit/ef6c1b9ce35c7bf3949c70...
    comment by tlrobinson · 2013-01-30 · in What's so great about JavaScript Promises?
  35. …the different libs, I've found that Q has one of the better APIs, but it's also the slowest. https://github.com/kriskowal/q/issues/153 But that's because it uses Object.freeze(), which the js V8 penalizes with a slowdown, when iterating…
  36. …error handling system today. I've been staying sane through the use of the 'Q' promise package ( https://github.com/kriskowal/q ). For example, in the below code chunk any errors thrown in makeEmailConfirmation or sendEmailConfirmation…
    comment by PhrosTT · 2012-12-22 · in Node.js error handling
  37. You can read this file with syntax highlighting on GitHub: https://github.com/kriskowal/q/blob/master/design/README.js
    comment by dinduks · 2012-11-10 · in Designing JS promises (2011)
  38. …https://groups.google.com/forum/#!msg/nodejs/jaufClrXU9U/ov5... q seems to be a popular choice. https://github.com/kriskowal/q
  39. …get better, but it does. In addition, there is: Q (implementation of the CommonJS Promises spec) https://github.com/kriskowal/q Streamline.js https://github.com/Sage/streamlinejs Await.js (New, inspired by Tame/IcedCS)…
  40. …solution in js is to use an event emitter ( http://nodejs.org/api/events.html ) or promises (like https://github.com/kriskowal/q ), the latter of which seems to be pretty close to what this article is talking about. Is there a fundamental…
  41. …</ul> where $http.get() returns a promise just works. [1]: http://docs.angularjs.org/api/ng.$q [2]: https://github.com/kriskowal/q
    comment by cletus · 2012-10-21 · in Missing the Point of Promises
  42. …Promises/A. It would be really nice if everyone settled on one promise API. Check out "Q" as well: https://github.com/kriskowal/q There are adapters for many of Node's APIs (and it's easy to create more) https://github.com/kriskowal/q-io…
    comment by tlrobinson · 2012-10-16 · in Rsvp.js
  43. …and report it all back to the original caller. There are libraries that make this better (example: https://github.com/kriskowal/q ). But since they're not built into the language itself, you end up with more verbose code that's harder to…
    comment by ef4 · 2012-10-02 · in JavaScript Sucks.
  44. …to find it through search :) Edit: forget it. Someone else mentioned it in another comment: https://github.com/kriskowal/q/
  45. …handled directly). Promises might be baked into ES6. For now these are the best 2 implementations: https://github.com/kriskowal/q/ https://github.com/cujojs/when
    comment by MatthewPhillips · 2012-07-12 · in Thoughts on Rails, Node, and the web apps of today
  46. …important example is the Promise monad used by some Javascript async libraries: (for example, see https://github.com/kriskowal/q or http://dojotoolkit.org/documentation/tutorials/1.6/promises/ ) Basically, creating a new promise is the…
  47. Also, q is a really nice javascript library that models the same pattern: https://github.com/kriskowal/q
    comment by philbo · 2012-04-08 · in An introduction to jQuery Deferreds
  48. …(obviously you don't), I would recommend using promises for any sizable Node.js application. https://github.com/kriskowal/q
    comment by hammerdr · 2011-02-17 · in The Technology Behind Convore
  49. …[1] for most things and Tim Caswell's Do [2] for simple sequencing (a la shell scripts). [1] http://github.com/kriskowal/q/blob/master/q.js [2] http://howtonode.org/do-it-fast