Git Product home page Git Product logo

Comments (6)

laverdet avatar laverdet commented on August 18, 2024

Hey aa21a1f fixes the build on node 0.7.x. Fibers doesn't play nice with Isolates at all, so don't try that.. but anything that worked in node 0.6.x should probably work.

from node-fibers.

scriby avatar scriby commented on August 18, 2024

I'm getting the following error:

make
make -C src fibers.node
make[1]: Entering directory `/home/ubuntu/sourcecode/asyncblock/node_modules/fibers/src'
make[1]: `fibers.node' is up to date.
make[1]: Leaving directory `/home/ubuntu/sourcecode/asyncblock/node_modules/fibers/src'
./test.sh
already-running.js: pass
bad-context.js: pass
child-process.js: pass
current.js: pass
exec.js: pass
exit.js: pass
fibonacci.js: pass
FATAL ERROR: v8::Isolate::Dispose() Disposing the isolate that is entered by a thread.
make: *** [test] Error 1

from node-fibers.

scriby avatar scriby commented on August 18, 2024

Looks like isolates are getting removed in 0.7.3. We can revisit after it's released.

http://groups.google.com/group/nodejs/browse_thread/thread/ccbceea36f76857d#

Thanks for looking into this!

Chris

from node-fibers.

scriby avatar scriby commented on August 18, 2024

The build works against v0.7.3!

The benchmarks look good, too. Creating 100,000 asyncblocks (fibers) went from 2.1 seconds in 0.6.9 to 1.5 seconds in 0.7.3.

from node-fibers.

laverdet avatar laverdet commented on August 18, 2024

Very cool!

Keep in mind, though, that just invoking new Fiber(function{}) doesn't actually do any work. Coroutines are not created until run() is called for the first time.

from node-fibers.

scriby avatar scriby commented on August 18, 2024

Yeah, creating an asyncblock runs the contents immediately.

On Feb 13, 2012, at 2:44 PM, Marcel [email protected] wrote:

Very cool!

Keep in mind, though, that just invoking new Fiber(function{}) doesn't actually do any work. Coroutines are not created until run() is called for the first time.


Reply to this email directly or view it on GitHub:
#49 (comment)

from node-fibers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.