Skip to content
0:00 / 0:00

#thunks#laziness#ghc

Laziness in Haskell — Part 4: Thunks

Tweag by Modus Create

5K subscribers • 20 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Alexis King

Advanced. Deep dive for people who know the field.

5.4K views3 years ago1 recommendation

Programming languagesSystems programmingHaskellPerformance and optimizationMemory management

Alexis King explains how GHC introduces thunks to implement laziness, when thunking acts as an optimization, and why unnecessary thunks occur.

It is finally time to take a look at how GHC introduces thunks to implement laziness. We first consider ways that thunking can sometimes be viewed as an optimization, then try to understand the source of unnecessary thunking in most Haskell programs. Effects for Less: youtube.com/watch?v=0jI-AlWEwYI The worker-wrapper transformation: youtube.com/watch?v=XiTO1EGKrhE Part 1: youtube.com/watch?v=fSqE-HSh_NU Series Playlist: youtube.com/playlist?list=PLyzwHTVJlRc8620PjqbM0x435-6-Gi1Gu — Contact: • Tweag Website: tweag.io/ • Tweag Twitter: twitter.com/tweagio • Alexis King's Twitter: twitter.com/lexi_lambda

Why it's here

1 person recommends this

What people say. Recommended as a clear and detailed explanation of how thunks work in GHC and how they affect memory and performance.

u/lexi-lambdain r/haskell • Recommends

Laziness in Haskell, Part 4: Thunks