~/talk

Seamless Scope-Safe Metaprogramming Through Polymorphic Subtype Inference (Short Paper)

Talkat GPCE 2024 · 2024-10-21..10-22· [compilers-and-language-design]
links:none on file
slides:none on file

A new type system statically tracks code-fragment context requirements by combining Boolean-algebraic subtyping (union/intersection/negation types to encode scope sets) with first-class polymorphic inference (level-based extrusion to prevent polymorphic leakage), reducing the annotation and upcast work required by environment classifiers and contextual types. Implementation exists as an MLscript prototype with a browser demo, supports let-insertion for common code-duplication cases (generalized Fibonacci example), and uses a single down-then-up traversal without backtracking.

AI-written summary · about

  1. 0:00Scope-safe metaprogramming intro
  2. 1:50Limitations of scope-safety
  3. 2:33Bialgebraic subtyping
  4. 4:42First-class polymorphism
  5. 6:28Metaprogramming with templates
  6. 8:14Code types context
  7. 9:21Variable binding in terms
  8. 10:23Context requirements for subterms
  9. 12:33Generalized Fibonacci example
  10. 13:16Optimizing with let insertion
  11. 14:40Future work
  12. 15:24Q&A
  13. 15:45Algorithm efficiency question
  14. 17:37Implementation and future work
~/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.