C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Proposal for `std::fiber<T>` Language-Level Extension in C++23

From: Thiago Macieira <thiago_at_[hidden]>
Date: Fri, 07 Jul 2023 00:08:43 -0700
On Friday, 7 July 2023 00:05:20 PDT 1one1 via Std-Proposals wrote:
> ## Motivation and Scope
> Concurrent programming is a challenging aspect of C++, requiring careful
> synchronization to avoid data races and associated undefined behavior. This
> proposal seeks to mitigate these challenges by introducing a unit of
> execution, `std::fiber<T>`, designed with built-in Read-Copy-Update (RCU)
> or Copy-On-Write (COW) semantics to handle shared state. This approach
> simplifies concurrent programming, allowing programmers to reason about
> each fiber's execution as if it were single-threaded, whilst the complexity
> of managing shared state is handled by the language or runtime.

Please include a link to a library with at least 3 years of real-world
experience implementing this functionality. Until you have such a link, I
doubt it'll be considered even for debate.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2023-07-07 07:08:45