Coder Social home page Coder Social logo

Comments (1)

Xudong-Huang avatar Xudong-Huang commented on August 24, 2024 1

thanks @s-panferov. Yes, I also notice those attempts that trying to make coroutine based systems. Actually those libraries such as mioco and coio-rs are started very earlier than I begin to develop May. But I have very little experience in using those libraries.

Coroutines are just user space threads, so the most sensible abstraction over coroutines is supply a thread like API set for it, and user can have the freedom to switch to any kind of implementations. e.g.
std::thread::* vs may::coroutine::* and other libraries could be something like xxx::coroutine::*

not only the thread model should be compatible, but all kinds of blocked version APIs such as IO and Sync Primitives should all be compatible with libstd

Actually go! macro is just a thin wrapper around the unsafe spawn API, which would save users some types. And in coroutine you should never call yield, this is a generator concept. in coroutines, users only have normal system APIs.

Yes, it's possible to have a "front" wrapper library, but it's not an easy thing that all coroutine libraries that support the same compatible APIs.

from may.

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.