Programming Languages and Runtime Systems
-
Lexical Scope and Closure Environments
Follow a function value after it leaves its defining block and determine which binding each free variable uses.
-
De Bruijn Indices and Binder Depth
Represent bound variables by the number of enclosing binders between an occurrence and its definition, then see why moving terms requires shifting indices.
-
Gradual Types and Runtime Cast Boundaries
Follow a value across a typed boundary and see why checking a function requires obligations on later calls and returns.
-
Stack Frames and Activation Records
Trace how recursive calls keep independent local values and how escaping variables change where a binding must live.
-
Tail Calls and Frame Reuse
Identify when no work remains after a call and use that condition to explain constant stack usage for a tail-recursive loop.
-
Operand-Stack Bytecode and Stack Effects
Track the stack height of arithmetic bytecode and check that different incoming paths leave compatible operand states.
-
Closure Conversion and Free-Variable Layout
Rewrite nested functions into code plus an explicit environment and account for copied values, shared locations, and recursive binding.
-
Continuation-Passing Style and Explicit Control
Represent the rest of a computation as a function and preserve source evaluation order through nested continuations.
-
Effect Operations, Handlers, and Resumption
Separate a request made by a computation from the interpretation supplied by a handler and trace what resuming means.
-
Term Rewriting, Termination, and Confluence
Recognize a branching rewrite system and determine whether different legal reduction orders give a common result.
-
Contextual Equivalence and Observable Behavior
Compare expressions by all well-typed enclosing contexts and use a small context to distinguish two behaviors.
-
Ownership, Borrowing, and Resource Lifetimes
Use a unique owning capability and temporary borrows to justify reclamation and exclude conflicting access patterns.
-
Tagged Values and Representation Invariants
Use a tag bit to distinguish immediate integers from aligned references and calculate the integer range that remains.
-
Tracing Collection with Mark and Sweep
Compute live objects as a reachability problem and keep the worklist invariant visible during tracing.
-
Copying Collection and Forwarding Pointers
Relocate live objects into a fresh space while preserving reference sharing and avoiding duplicate copies.
-
Generational Collection and Remembered Sets
Trace a young heap without rescanning every older object and explain why recording old-to-young writes is necessary.
-
Reference Counting and Object Cycles
Track incoming references so zero-count objects can be reclaimed promptly, then reason about the strongly connected case.
-
Escape Analysis and Scalar Replacement
Determine whether an allocation’s identity can be observed outside a region and use that fact to eliminate storage work.
-
JIT Specialization, Guards, and Deoptimization
Specialize a frequent value shape under a runtime guard and reconstruct the general execution state when the guard fails.
-
Partial Evaluation and Residual Programs
Specialize a program on known inputs and identify which work and effects must remain in the residual program.