0:00 / 0:00
#hyperfunctions#ghc#heapprofiling
Screencast: Zipping with Hyperfunctions
Joachim Breitner
155 subscribers • 3 videos on Hallway
- Recommended by 1 person: 1 in engineering communities.
- Presented by Joachim Breitner
Advanced. Deep dive for people who know the field.
692 views5 years ago1 recommendation
Programming languagesSystems programmingHaskellFunctional programmingMemory management
Joachim Breitner demonstrates how to rewrite the zip function using hyperfunctions and analyzes its impact on the Haskell heap.
Daniel Díaz (twitter.com/DiazCarrete/status/1373296311391379461) asked for an episode where we look at what is happing on the heap with the zip function, both regular and when implemented as two right folds, using (pause for effect) hyperfunctions! He pointed me to a Blog post by Oisín Kidney (doisinkidney.com/posts/2021-03-14-hyperfunctions.html) and here we are: We look at the normal zip, then rewrite it to use hyperfunctions, and look at the heap again (and find that it looks rather similar). Want more stuff like this? Let me know what you want to hear about! Code at gist.github.com/nomeata/b9d3e18a49f0c320c0d1f0e7b72a9c73Why it's here
1 person recommends thisWhat people say. Recommended as an interesting exploration of Haskell heap behavior and hyperfunctions.