~/talk

A Tail of TwoTails: The Second Act

Talkat Typelevel Summit NYC 2017 · on Thursday, 2017-03-23· [compilers-and-language-design, scala]
speakerdeck:wheaties
slides:none on file

TwoTails is a Scala compiler plugin that implements mutual tail recursion without trampolines by transforming mutually recursive methods into a single loop-based implementation. The first scheme inlines method bodies and hits the JVM method size limit (64KB) and JIT loss; the second scheme captures arguments into vars and emits a while loop to avoid huge methods at the cost of more complex transformations and extra allocations. Snapshot lacks by-name parameter support, offers options to favor smaller methods or fewer allocations, and is used in production—bug reports welcome.

AI-written summary · about

  1. 0:00Start
  2. 1:19Overview
  3. 1:38Tail Recursion
  4. 2:10Neutral Tail Recursion
  5. 9:58Jvm Method Size Limit
  6. 13:34Compilation Options
~/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.