Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Coroutines and Go - Understanding Generalized Subroutines

Conf42 via YouTube

Overview

Explore the concept of coroutines and their implementation in Go in this 36-minute conference talk from Conf42 Golang 2024. Delve into the history and evolution of coroutines, starting with subroutines and progressing to their modern applications. Learn about the characteristics and classifications of coroutines, including control transfer mechanisms, first-class vs. constrained coroutines, and stackfulness. Discover how coroutines relate to cooperative multitasking and compare them to threads and generators. Examine potential APIs for coroutines in Go and discuss possible runtime changes. Gain insights into the challenges and benefits of implementing coroutines in Go, concluding with key takeaways and references for further exploration.

Syllabus

intro
preamble
whoami
what i will be covering
what are subroutines?
eager and closed
coroutines as generalised subroutines
comparing binary trees!
it's 1958
side note - the paper that coined the term "coroutines"
problems with coroutines
characteristics
classifying coroutines
control transfer mechanism - asymmetric, symmetric
first-class versus constrained coroutines
finally, stackfulness
full coroutines
cooperative multitasking
coroutines in go
coroutines, threads and generators
api for coroutines
runtime changes?
conclusions
references

Taught by

Conf42

Reviews

Start your review of Coroutines and Go - Understanding Generalized Subroutines

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.