Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

The Ultimate Challenge

Name: Anonymous 2014-11-29 16:57

Writa a program in untyped lambda calculus that prints "hello world" to stdout.

Name: Huskellfaggot 2014-12-02 10:43

There are multiple problems with this bait. First off: the idea of files does not exist in lambda calculus. Strings don't either. You can assume that an object like stdout is passed to the program in the beginning. Strings are a bit tougher, you can encode them as a number, easily enough. Using basic ASCII, there are 128 numbers. So each number can be gotten by getting the remainder from dividing the current ``array'' by 128 (the quotient would be the remainder of the array). Super simple stuff, anon.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List