Giter Club home page Giter Club logo

fringe-futures's Introduction

fringe-futures

Experiment in combining libfringe + futures

fringe-futures's People

Contributors

cstorey avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

dpc

fringe-futures's Issues

Need help? (+ some ideas)

Hi. I'm the author of mioco, and I was toying with futures + tokio, and had the same idea as this project. I've found it when doing some initial research googling. I wonder what are your plans and would you accept some bigger PRs if I was to submit them.

I have some ideas already:

  • coroutines could implement Future, but maybe it could also be Stream
  • instead of passing SchedThunk, I was thinking about exposing static functions, that under the hood use task_local values (http://alexcrichton.com/futures-rs/futures/task/index.html); before resuming a coroutine, a Future wrapping it, would set task_local data for given coroutine, and in the coroutine itself it would be possible to call fringe-future::yield(), fringe-future::spawn(/* new coroutine function */)`, etc. ; that would be the analogous to std::thread API, which mioco emulates, and I think users are most happy with it as they don't have to pass any object around.
  • support for tokio-core types with a macro (or a wrapping type), that would suspect after io returned WouldBlock
  • I think that a name of cofuture or something would be shorter and better; user will not care if under the hood it's context-rs or libfringe.

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.