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
20082026
-
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] -
…' + 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
comment by drinchev · 2017-05-24 · in Show HN: Nsynjs – JS engine with stoppable threads and without callback hell -
…[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 -
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) -
See https://github.com/laverdet/node-fibers
comment by kamladi · 2015-01-04 · in Some reflexions on Node.js and asynchronicity dictature -
…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 -
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 -
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++.
comment by tg3 · 2013-08-23 · in Wait.for: Sequential programming for Node.js (beta) -
…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 -
…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…
comment by fzzzy · 2012-05-23 · in Distributed Systems with ZeroMQ and Gevent (Presentation) -
In the short term: https://github.com/laverdet/node-fibers In the long term: http://wiki.ecmascript.org/doku.php?id=harmony:generators
comment by zoips · 2012-05-17 · in To boldly go where Node man has gone before -
I thought they were using fibers ( https://github.com/laverdet/node-fibers ) so much more scalable than threads but slightly worse performance than callbacks
comment by benmmurphy · 2012-04-11 · in Show HN: Meteor, a realtime JavaScript framework -
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 -
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 -
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.
comment by olegp · 2012-02-01 · in StratifiedJS: Javascript + structured concurrency -
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? -
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? -
…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 -
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 (…
comment by olegp · 2011-12-01 · in Luvit - Lua + UV + Jit = NodeJS re-implemented in Lua -
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 -
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 -
Same idea, not the same implementation: https://github.com/laverdet/node-fibers
comment by tlrobinson · 2011-07-18 · in Tame.JS: Flow-control by the makers of OkCupid.com -
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