Top all-time · #9316
Asymmetric Transfer
Personal blog · lewissbaker.github.ioprogramming
Asymmetric Transfer is a personal blog at lewissbaker.github.io about programming. Since 2017, 8 different Hacker News readers have linked it 9 times, most often “C++ Coroutine Theory (2017)”. The last post was in 2022, but the archive is still widely read.
Too few sampled comments (2) to say how often HN recommends it.?
Why HN links it
HN readers link Lewis Baker's blog as a reference for C++ coroutines, the mechanics behind them and how they are implemented. One commenter points to it as detailed and insightful.
Summarised by Claude from a sample of 2 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
Some thoughts on programming, C++ and other things.
Most-linked posts?
- C++ Coroutine Theory (2017)3 people · 3 mentions · first linked 2018-02-06
- C++ Coroutines: Understanding operator co_await2 people · 2 mentions · first linked 2017-11-22
What Hacker News says?
> In C++, technically every initialization of a sub-coroutine starts defaults to being a new heap allocation. I don't want to spread FUD: my understanding is that the vast majority of these are optimized out by the compiler. But one downside of this approach is that you could change your code and accidentally disable one of these optimizations. I don't think this is correct. C++ 20 allows a lot of choices to impleme…
Comment linking /2017/11/17/understanding-operator-co-await
on “How Rust optimizes async/await”Submitted C++ Coroutine Theory (2017) as a story · 190 points
HN discussionI feel you! Coroutines can be tricky at first. I recommend Lewis Baker's blog about coroutines [1], which is detailed and insightful. Additionally, cppreference [2] is a great resource to understand how coroutines work in C++. In a nutshell, C++ coroutines are almost like regular functions, except that they can be "paused" (suspended), and their state is stored on the heap so they can be resumed later. When you resu…
Comment linking /
on “Show HN: Coros – A Modern C++ Library for Task Parallelism”Submitted C++ coroutines: Understanding the compiler transform as a story · 78 points
HN discussionSubmitted Coroutine Theory (2017) as a story · 78 points
HN discussionSubmitted C++ Coroutines: Understanding operator co_await as a story · 18 points
HN discussionSubmitted Coroutine Theory as a story · 4 points
HN discussionSubmitted C++ Coroutines: Understanding Symmetric Transfer as a story · 2 points
HN discussionSubmitted C++ Coroutines: Understanding the promise type as a story · 2 points
HN discussion