Hacker GitHub

← All repos

laverdet/node-fibers

View on GitHub ↗ ★ 3,545 C++

Fiber/coroutine support for v8 and node.

24 mentions on Hacker News by 20 people: 1 story, 23 comments · first 2011-03-24 · latest 2018-06-06

Mentions per year 24 mentions · busiest year 2012 (10)
20082026
  1. https://github.com/laverdet/node-fibers Is a project that enables writing code this way. It's used, for example, in webdriver.io so that you can write synchronous test code that transparently (ie, without `await`) calls out to async…
    comment by gcommer · 2018-06-06 · in Things I Regret About Node.js [video]
  2. …' + new Date); }).run(); console.log('back in main'); It is used heavily in meteor[2] 1: https://github.com/laverdet/node-fibers 2: https://github.com/meteor/meteor
  3. …[2] https://github.com/node-inspector/node-inspector/issues/523 [3] https://github.com/laverdet/node-fibers/issues/203 [4] https://github.com/msgpack/msgpack-node/issues/20 [5] https://github.com/iojs/io.js/issues/456
    comment by doublerebel · 2015-02-10 · in Joyent Moves to Establish Node.js Foundation
  4. I just crudely tested this pull request. Seems to work. https://github.com/laverdet/node-fibers/pull/205/files
    comment by jekrb · 2015-02-07 · in Node v0.12.0 (Stable)
  5. See https://github.com/laverdet/node-fibers
  6. …this before. Fibers is inline non-blocking. The readme explicitly even mentions that it yields: https://github.com/laverdet/node-fibers/blob/master/README.m... "Again, the node event loop is never blocked while this script is running."…
    comment by yukichan · 2014-04-13 · in A JavaScript Primer For Meteor
  7. You mean like fibers? :) https://github.com/laverdet/node-fibers This is what Meteor uses on the server side, and it's a pleasure. Everything is suddenly synchronous.
    comment by davedx · 2014-01-07 · in Why I am switching to promises
  8. It uses Fibers ( https://github.com/laverdet/node-fibers ). I don't know much about it, but you have to wrap all your code in a call to `Fiber()`, which is written in C++.
  9. …Science should be familiar with. Unfortunately I was never taught about it in University. [0]: https://github.com/laverdet/node-fibers
    comment by hasenj · 2012-11-10 · in The Nature of Lisp
  10. …is on a really old version of spidermonkey, unfortunately. Also, node-fibers looks totally sweet: https://github.com/laverdet/node-fibers Lua has coroutines built in, so I'm guessing this kind of stuff is common there. I haven't used lua…
  11. In the short term: https://github.com/laverdet/node-fibers In the long term: http://wiki.ecmascript.org/doku.php?id=harmony:generators
  12. I thought they were using fibers ( https://github.com/laverdet/node-fibers ) so much more scalable than threads but slightly worse performance than callbacks
  13. No - a Fiber is completely different to a process/thread. The server is still evented. https://github.com/laverdet/node-fibers
    comment by maccman · 2012-02-15 · in Ace - Sinatra for Node with Fibers
  14. Futures like in node-fibers? https://github.com/laverdet/node-fibers I think it is the proper way to complement generators and give the alternative to wait for a function value.
    comment by wslh · 2012-02-10 · in The Future of JavaScript
  15. If you prefer vanilla JS and are only working with Node, you should check out https://github.com/laverdet/node-fibers . I use it in my https://github.com/olegp/common-node package to address the same issues as those tackled by StratifiedJS.
  16. Node has coroutine support via the fibers package: https://github.com/laverdet/node-fibers . For some benchmarks, check out my Common Node project's README: https://github.com/olegp/common-node
    comment by olegp · 2012-01-26 · in Node.js - A giant step backwards?
  17. To make things easier, you can use node-fibers ( https://github.com/laverdet/node-fibers ) to structure your asynchronous code with coroutines or, if you are feeling less adventurous, async ( https://github.com/caolan/async ) is an…
    comment by shangaslammi · 2012-01-25 · in Node.js - A giant step backwards?
  18. …and futures, asynchronous programming is incomplete without that. Happily Node supports that with https://github.com/laverdet/node-fibers/
    comment by wslh · 2012-01-11 · in JavaScript Needs Blocks
  19. Coroutines are available in Node via the fibers package ( https://github.com/laverdet/node-fibers ). For benchmarks comparing performance to purely asynchronous webapps, check out the README to my Common Node project (…
  20. It's possible to have the best of both worlds by using node-fibers ( https://github.com/laverdet/node-fibers ) and mixing synchronous and asynchronous styles as appropriate. I believe that JavaScript could become the dominant language on…
    comment by olegp · 2011-08-06 · in Node.js - A Giant Step Backwards
  21. Marcel Laverdet has built a node extension that provides yield: https://github.com/laverdet/node-fibers
    comment by daakus · 2011-08-05 · in Node.js - A Giant Step Backwards
  22. Same idea, not the same implementation: https://github.com/laverdet/node-fibers
  23. Main gotcha is listed in the "Garbage Collection" section of the readme: https://github.com/laverdet/node-fibers
    comment by grayrest · 2011-03-25 · in Bullet-proof Node.js coding