~/talk

Dynamic Dispatch and Type Inference in Fortress

links:none on file
slides:none on file

Implements multi-argument overloaded dispatch plus generic type inference for Fortress, producing statically checked but dynamically inferred calls; dispatch orders overloads by partial order topological sort and tests applicability by pattern matching plus constraint propagation that instantiates type parameters. Achieves specialization via a compile-time partially evaluated match routine and runtime applicative cache with volatile root on the JVM, but requires language restrictions: selfless traits singly inherited, no contravariance, finite supertype paths and declared minimum instantiations; the system works but needed those tradeoffs and JVM workarounds.

AI-written summary · about

  1. 0:00Intro
  2. 1:42Java vs. Fortress dispatch
  3. 2:25Generic overloading uses
  4. 3:57Quick type system
  5. 5:05Self-less generic types trait CMPable[+] comprises i
  6. 8:03Test applicability?
  7. 14:02Propagate constraints Least Single Upper Bound
  8. 16:54Worked example
  9. 19:38Run-time type operations
  10. 20:19Longest Erased Path to Any
  11. 21:47JVM issues . Current implementation makes heavy use of applicative caches (declared volatile, CAS for update, no-lock reads).
~/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.