~/talk

Constraint Typing with Boolean Algebra

links:none on file
slides:none on file

Claim: Scala 3 union and match types plus inline macros let constraints express full Boolean algebra and be checked compile-time verify or at runtime or left unchecked via guarantee.trust. Prototype implements a Compute typeclass for runtime values and an Inlineable/macro path for compile-time reduction, reuses runtime checks, and demonstrates OR and mutually dependent constraints (e.g. divisor nonzero OR dividend not MinInt). Data types work if constructed as white-box values that retain literal info. Repository exists and the prototype mostly works toward production readiness.

AI-written summary · about

  1. 0:00The problem with constraints
  2. 2:02Limits of refinement types
  3. 6:15Singleton constraint typing
  4. 13:03Implementing compile-time checks
  5. 20:01White-box data representation
  6. 27:38Conclusion and future outlook
~/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.