logoalt Hacker News

tliltocatl • today at 5:47 PM • 2 replies • view on HN

Not an expert, but doesn't HCC (and pure functional programming in general) have an issue of being insensitive to time/space complexity? Space complexity is basically hopeless because functional programming doesn't really have a notion of "memory space" (see also: haskell infamous "quicksort" example). Time isn't as bad in general (well, list access is O(n) but you can make it O(log(n)) with a trivial transformation) but still irrelevant for HCC. Since you don't have to execute a proof to check it, a galactic algorithm is still a valid proof. And a complexity-sensitive type system is still and open problem. So proofs and algorithms are isomorphic, proofs and practical algorithms aren't necessarily so.


Replies

seeknotfind • today at 8:59 PM

No, they don't have this issue. Space and time complexity apply to functional programming exactly the same as normal programming.

nagaiaida • today at 6:02 PM

the practical ones are equally as related to proofs as the impractical ones are, so you probably meant to phrase your last sentence differently at the very least