News for hackers. Stuff that matters.
Re:Philosophy of Coroutines by anonymoushn on Saturday September 02, 2023 @03:51AM (#37359360)
You can do 1-4 with Zig frames, but 5 and 6 are tougher since there's no guarantee that you won't end up with internal pointers.
Re:Philosophy of Coroutines by 10000truths on Saturday September 02, 2023 @09:26AM (#37361323)
The easiest solution to this would be a "relocatable frame" type that forces the compiler to throw an error if it would otherwise have to spill an internal pointer at a suspension point.