4 ms·
I have been using C++ coroutines in all of my development work for the past two years, and I am "excited by them", FWIW; they have changed C++ so drastically fo
by saurik 5y ago
I have been using C++ coroutines in all of my development work for the past two years, and I am "excited by them", FWIW; they have changed C++ so drastically for me that I have no longer felt the need to work with any other random scripting languages (such as Python, which I used to use extensively): their ergonomics are actually pretty awesome.
Most of my projects, however, were things I would have been willing to develop in languages that would heap allocate constantly, so that heap allocations are happening here that I am poorly controlling isn't driving me insane (though I agree it sucks).
(The argument about competition is just strange to me, as that's just how generators as an abstraction--in any language--work... if you want to be able to have a generator yield to a separate generator the way you do that is by first developing a flatmap function that takes a generator of generators and yields its elements.)
- ot 5y ago> I have no longer felt the need to work with any other random scripting languages Compile times are pretty bad though :) Especially with coroutines: at least clang (don't know other compilers) AFAIK works by copying the same function n times for each resumption point, and that's extremely slow.
- saurik 5y agocompetition -> composition yields its elements -> yields its element's elements