Elektrine lite

← Feed

@fanf@mendeddrum.org

Post #2497433

2026-05-13 22:41 UTC

@joe@f.duriansoftware.com @zwarich@hachyderm.io aren’t rust async / c++ coroutines based on knowing transitive frame sizes?

Replies (2)

  • @joe@f.duriansoftware.com 2026-05-13 22:50

    @fanf@mendeddrum.org @zwarich@hachyderm.io rust, perhaps, in an indirect rube goldberg way through monomorphizing all of the generated `impl Future` structs. c++ i believe just dynamically allocates its coroutine contexts on the heap

    Open ##2497432

  • @fanf@mendeddrum.org @joe@f.duriansoftware.com @zwarich@hachyderm.io rust: sort of. ultimately it has to track which locals are stored and it has to all be sized, but of course async is rewritten to effectively an enum of states and the polling logic still can use the stack.

    Open ##2578195