CS 6983 Special Topics: The Technology of Lambda -*-Org-*- Spring 2026 CRN 40363 There may, indeed, be other applications of the system than its use as a logic. -A. Church * Basic information ------------------- Professor: Olin Shivers shivers@ccs.neu.edu Office hours: & by appt WVH room 318 Lectures: Tue/Fri 3:25-5:05 Ryder 128 Web page: http://www.khoury.neu.edu/~shivers/cs6983 Piazza: https://piazza.com/northeastern/spring2026/cs6983 ------------------------------------------------------------------------------- * Lectures ---------- 29 classes -- no Monday holidays! Note: The lecture schedule is apt to change over time as the course progresses, so consult the on-line version at http://www.khoury.neu.edu/~shivers/cs6983/sched.txt for the up-to-date information. # Date Topic -- -------- ----- 1 Fri 1/ 9 Intro & overview of lambda-based compilers 2 Tue 1/13 Lambda calculus I 3 Fri 1/16 Nanopass intro [Project 1 out: Warmup] 4 Tue 1/20 CPS I: Big idea, propaganda, converters 5 Fri 1/23 CPS II: Engineering (Orbit, Kennedy) [Project 2 out: CPS converter] 6 Tue 1/27 CPS III 7 Fri 1/30 Scope analysis & local simplification - no-brainer reductions [Project 3 out: Simplifier] 8 Tue 2/ 3 BUBS & efficient beta-reduction on terms 9 Fri 2/ 6 Closure reps / high-level view 10 Tue 2/10 Syntactic extraction of 1st-order control skeleton 11 Fri 2/13 Closure conversion 12 Tue 2/17 Closure conversion: LETRECs [Project 4 out: Classification] 13 Fri 2/20 Closure conversion: continuations & the stack 14 Tue 2/24 The general monotone data-flow analysis framework I 15 Fri 2/27 The general monotone data-flow analysis framework II -- Tue 3/ 3 Spring break -- no class [Project 5 out: Env analysis] -- Fri 3/ 6 Spring break -- no class 16 Tue 3/10 The general monotone data-flow analysis framework III 17 Tue 3/17 Webs I [Project 6 out: Stack layout] 18 Fri 3/20 Webs II 19 Tue 3/24 Defunctionalisation & monomorphisation: Mlton & Stalin 20 Fri 3/27 Webs & defunctionalisation -- wrapup 21 Tue 3/31 3CPS: binding extent, alloc on entry [Project 7 out: Code gen] 22 Fri 4/ 3 Polymorphism & data representations I 23 Tue 4/ 7 Polymorphism & data representations II 24 Fri 4/10 Optimal code for case statements 25 Tue 4/14 Callee-saves registers in CCPS / Contification 26 Fri 4/17 Call/cc -- why & how [Project 7 in] 27 Tue 4/21 Bonus lecture: ANF vs CPS vs SSA: Felleisen, Appel, Kelsey, Kennedy Possibles: GC Case statements ANF I: History, theory, propaganda (Invite MF?) ANF II: Engineering payoff of theory Simple 0CFA Type-directed compilation: SML/NJ Typed intermediate languages Opportunities for 64b & wider machines Hygienic macros DSLs & macros Displays Caller saves registers in CCPS (as requested by H) Call/cc -- why & how Scheme48 & PreScheme 64b opportunities Contification pattern matching algebraic datatypes * Key semester dates -------------------- 1/7 Wed First day of classes 1/19 Mon MLK Jr. Day, no classes 2/16 Mon Presidents Day, no classes 3/2 Mon First day of spring break 3/9 Mon Spring classes resume 4/19 Sun Last day of classes 4/28 Tue Faculty grade deadline at 2:00 p.m. ET * Papers -------- Lambda: Declarative Kennedy CPS Orbit ICFP Orbit Kranz diss Kelsey diss -- TC compiler Hecht Cousot '77 Nilson, Principle of Program Analysis Shivers: diss & PLDI '88, PEPM '91 Appel & Jim on simple contractors; Shivers no-brainer CPS Muchnick's text Mlton ?? Stalin ?? ANF ?? SML/NJ conf paper Compiling with Continuations, Appel Dybvig -- stacks & continuations Shivers -- atomic consing HOPL macro paper (Wand & Clinger) Bawden exrename Keep nanopass Morrissett TIL & TAL 3CPS intro paper Shivers DSL via macros