Skip to content

Comment on 22-11-22 22:11:22parent

Comments

while(1) {} is the universal program to do anything. You can then optimise performance later.

Interestingly in Haskell the only pure program of type variable “a” where a means any type at all is the one that never quits:

    myProg: a

    myProg = myProg
Which amounts to the same thing: it can do anything - produce any type - but it takes literally forever.
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.