Skip to content
0:00 / 0:00

#haskell#ghc-vis#lazyevaluation

Screencast: The two kinds of infinite lists in Haskell

Joachim Breitner

155 subscribers • 3 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Joachim Breitner

Intermediate. Assumes working knowledge.

820 views5 years ago1 recommendation

Programming languagesSystems programmingHaskellMemory managementPerformance and optimization

Joachim Breitner uses ghc-vis to show how Haskell represents infinite and cyclic lists in memory, demonstrating how some fit in finite space.

How can Haskell represent infinite lists? In this screencast, we look into the memory of a running Haskell program to observe laziness and cyclic data structures, and see that infinite lists, when constructed carefully, can completely fit into a finite amount of memory.

Why it's here

1 person recommends this

What people say. Recommended as an excellent visual explanation of cyclic data structures and memory usage in Haskell.

u/nomeatain r/haskell • Recommends

Infinite and cyclic lists explained with ghc-vis

u/nomeatain r/haskell • Recommends

Infinite and cyclic lists explained with ghc-vis