this post was submitted on 24 Oct 2023
41 points (97.7% liked)

Rust

7081 readers
9 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 2 years ago
MODERATORS
 

What is this title

top 10 comments
sorted by: hot top controversial new old
[–] anlumo@feddit.de 4 points 2 years ago

The section titled “what is the difference” doesn’t explain what the difference is, only what a generator is (which I already knew).

[–] m_e@lemmy.ml 3 points 2 years ago (1 children)

The only language to get it right was Simula 67.

[–] davawen@programming.dev 7 points 2 years ago

Could you explain to me how simula's implementation of coroutines differ from modern languages (be it stackless or stackful)? I tried to dig a little but didn't find much and I don't really have time to investigate further.

Thank you!

[–] m_e@lemmy.ml 1 points 2 years ago

Simulation 67 keeps the coroutine data on the heap (it is garbage collected).