Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



This 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.


Haskell in fact does the opposite. Changes in compiler version can drastically alter the performance of your code, even changing its O() class.


it's just probably correct ;)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: