r/ProgrammingLanguages • u/mttd • Mar 16 '26
Duboc's TDD optimization for unions of constraint sets
https://github.com/astral-sh/ruff/pull/23881
17
Upvotes
r/ProgrammingLanguages • u/mttd • Mar 16 '26
3
u/mttd Mar 16 '26
The referenced PhD dissertation looks interesting:
Typing Dynamic Languages with Set-Theoretic Types: The Case of Elixir, https://gldubc.github.io/#thesis
9
u/ggchappell Mar 16 '26
FYI to anyone else who doesn't know:
1
u/Arthur-Grandi Mar 17 '26
Interesting optimization.
Does Duboc's TDD here mainly reduce the cost of normalization when unions of constraint sets are merged, or is the win mostly from avoiding repeated satisfiability checks across equivalent branches?
I'm curious what the key invariant is that makes the optimization correct.