3 ms·
Shameless plug: I just implemented a simple refined type-checking algorithm. It can statically prevent division by 0 and Heartbleed (if functions are given the
by tomp 12y ago
Shameless plug: I just implemented a simple refined type-checking algorithm. It can statically prevent division by 0 and Heartbleed (if functions are given the correct contracts) and is much simpler than I expected. It uses Z3 to prove that the code is correct.
https://github.com/tomprimozic/type-systems/tree/master/refined_types https://github.com/tomprimozic/type-systems/tree/master/refi...
Edit: I submitted it as a separate story here: https://news.ycombinator.com/item?id=7826175 https://news.ycombinator.com/item?id=7826175