gruvi

Async IO for Python, Simplified (by geertj)

Gruvi Alternatives

Similar projects and alternatives to gruvi

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better gruvi alternative or higher similarity.

gruvi reviews and mentions

Posts with mentions or reviews of gruvi. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-24.
  • Fiber in C++: Understanding the Basics
    8 projects | news.ycombinator.com | 24 Sep 2023
    A disadvantage to the ‘no function coloring’ in fibers is that it makes lockless programming harder. A nested function call can switch from under you without your knowledge, making it hard to know where the preemption points are and whether to take locks when making updates to shared state. With function coloring you know exactly whether a function might switch or not.

    I’ve programmed both fiber based systems and coroutines. I even created my own fiber libraries for Python (https://github.com/geertj/gruvi) and C++ (https://github.com/geertj/cgreenlet, mostly an experiment, and incorrectly named coroutines for C++ while it’s really fibers). In the Python version I experimented with some features to help you know whether a nested function might switch.

    In the end, for me and for the problem domains I worked in, the explicit async/await co-routine style wins over fibers. It gives you most of the performance and memory benefits of user mode switching while keeping your code mostly lock free.

Stats

Basic gruvi repo stats
1
94
10.0
over 6 years ago

geertj/gruvi is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of gruvi is Python.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com