Coder Social home page Coder Social logo

jhrutgers / zth Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 2.0 8.15 MB

Cross-platform cooperative multitasking (fiber) framework.

Home Page: https://jhrutgers.github.io/zth/

License: Mozilla Public License 2.0

CMake 4.44% C++ 94.86% C 0.70%
fibers multitasking cpp cmake async cross-platform fsm embedded zeromq

zth's People

Contributors

jhrutgers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

zth's Issues

Allow building using Ninja and with ZTH_HAVE_LIBZMQ=OFF

When building with cmake -G Ninja .. I ran into some troubles, also building with ZTH_HAVE_LIBZMQ=OFF results in some build errors.

What would you like me to do? Submit a pull request for this? Add a CI job for this specific configuration?

Name change request

Currently, the way to start a new fiber, is by using the keyword async. This might be somewhat confusing for people coming from C# or Python (like me).

I'd like to suggest renaming async to spawn, so that it is clear a fiber is spawned at that point in the code.

Another thing which is available in python and C# is the await keyword, this could be useful to await the returned futures. Maybe a macro for this would be a nice syntactic sugar.

Support for libuv

A cool addition might be support for libuv using a configure option.

Libuv library: https://github.com/libuv/libuv

Benefits of using libuv: expose all of the libuv API in a cross platform way, so you have sockets and filesystem IO asynchronously.

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.