2 ms·
> Haskell is a good example of where if your program type-checks, there's a high chance it's probably correct. I really wish people would stop saying this. It'
by twic 13y ago
> Haskell is a good example of where if your program type-checks, there's a high chance it's probably correct.
I really wish people would stop saying this. It's not in the slightest bit true. Making this assertion makes Haskellers seem dangerously naive.
- rtpg 13y agoit's just probably correct ;)
- makomk 13y agoThis is especially true in the field of crypto, where timing attacks are a major issue. Knowing that your program will produce the correct result isn't enough, you need to know that the amount of time taken to compute that result doesn't leak information, and I don't think Haskell provides any way to ensure this.
- stevejones 13y agoHaskell in fact does the opposite. Changes in compiler version can drastically alter the performance of your code, even changing its O() class.