4 ms·
> Which means you can slowly use type holes to chip away at a difficult implementation, without ever really knowing what you're doing. Yeah, look! I started wi
by kazinator 7y ago
> Which means you can slowly use type holes to chip away at a difficult implementation, without ever really knowing what you're doing.
Yeah, look! I started with a function signature and a little _. Lo and behold, fifty seven holes later, I have a graph-coloring optimal register allocator for MIPS for my compiler back end. Don't ask me how it works, but the type system assures it.
- state_less 7y agoThis type system, is it powered by AI?
- mrkeen 7y agoThere's nothing fuzzy going on. If I said f(x) = 2, you could quickly work backwards from that and state: 2 is an Int. x isn't used so it could be any type, let's say a. That means f has type (a -> Int).
- mrkeen 7y agoThis, but unironically.