context
By boostorg
context | ghost-userspace | |
---|---|---|
3 | 2 | |
280 | 207 | |
1.1% | 1.0% | |
5.7 | 8.1 | |
7 days ago | 5 months ago | |
Assembly | C | |
- | BSD 3-clause "New" or "Revised" License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
context
Posts with mentions or reviews of context.
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
https://github.com/boostorg/context/blob/6fa6d5c50d120e69b2d...
...and this causes problems, because it can't guarantee that all fields are initialized or switched successfully: https://lists.boost.org/boost-bugs/2014/10/38476.php
Microsoft continually adds and changes fields in the TIB with each new release of Windows. Attempting to implement fibers manually is a ticking time bomb that should never be used in production.
-
History of non-standard-layout class layouts
Marginally disagree. Lots of optimization work takes advantage of knowing how the ABI works. Knowing you can pass two register returns on SysV is a particularly common optimization point. Writing context switching routines that can be reliably ported (ex, boost-context) requires this consistency of ABI. As a final example, cache locality optimizations require the ability to reason about ABI layout.
- How do you implement green threads?
ghost-userspace
Posts with mentions or reviews of ghost-userspace.
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
Have you seen https://github.com/google/ghost-userspace
-
Use of eBPF in CPU Scheduler
Would be neat if there were materials. Code for this has just started to trickle out earlier this year at https://github.com/google/ghost-userspace and https://github.com/google/ghost-kernel, but Google has been talking in public about userspace scheduling since 2013.
What are some alternatives?
When comparing context and ghost-userspace you can also consider the following projects:
stack-switching - A repository for the stack switching proposal.
ghost-kernel
cgreenlet - Coroutines for C/C++
marl - A hybrid thread / fiber task scheduler written in C++ 11
assembly - assembly projects
atc
gruvi - Async IO for Python, Simplified