~/talk

Into the Core Squeezing Haskell into nine Constructors

Talkat ZuriHac 2022 · on Wednesday, 2022-06-15· [haskell, compilers-and-language-design]
slides:none on file

GHC Core is a tiny explicitly-typed intermediate language (about nine expression constructors) where explicit types on every binder and System F big-lambdas and type applications make typechecking trivial and reliable. The simplifier relies on aggressive inlining plus an occurrence analyzer to avoid code bloat, guided by size/cheapness heuristics and interface (.hi) unfoldings for cross-module inlining. Rewrite rules implement specialization (num dictionaries turn into direct ops), and join points as tail-call jumps convert duplicated continuations into efficient stack-adjust-and-jump code.

AI-written summary · about

  1. 0:00Start
  2. 0:11Simon Payton Jones
  3. 15:16Beta Reduction
  4. 17:58How Is Big Lambda Different from Type Applications
  5. 23:00Case Alternatives
  6. 26:02Why Do We Need a Default Case in Case Expressions
  7. 32:49Type Inference
  8. 37:33Optimizations
  9. 40:25Insights of the Simplifier
  10. 41:10What Happens inside the Simplifier
  11. 45:07Occurrence Analyzer
  12. 52:33Rewrite Rules
  13. 53:38Rewrite Rules in the Source Code
  14. 1:07:01Matching Calls
  15. 1:13:08Join Points
  16. 1:22:57Point Transformations
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.