News for hackers. Stuff that matters.
Re:Stack safety for free? by wahern on Monday December 06, 2021 @08:03PM (#29467950)
> I demonstrate how to (ab)use generators/coroutines to transform any recursive function into an iterative function with nearly zero code changes.

That's not abuse. Reversing consumer/producer calling protocols (i.e. reversing caller/callee relationship) is exactly the fundamental purpose of generators and coroutines. It's a useful insight, nonetheless, for those exploring the fundamental problem and solution space regarding concurrency and, more generally, the reification of execution flow.

There are no comments on this comment yet.