News for hackers. Stuff that matters.
Re:Execution in the Kingdom of Nouns (2006) by bloke_zero on Thursday July 03, 2014 @10:19AM (#7983174)
I'm still laughing over: 'The number zero is simply lambda(), and 1 is lambda(lambda()), 2 is lambda(lambda(lambda())), and so on. Every single Thing in this legendary region, be it noun, verb or otherwise, is constructed from the primal verb "lambda".'
Re:Execution in the Kingdom of Nouns (2006) by probably_wrong on Thursday July 03, 2014 @11:25AM (#7983630)
Yeah, well, I wasn't precisely laughing when I saw it on my Formal Languages and Computability course...

Check Church numerals: https://en.wikipedia.org/wiki/Church_encoding

Re:Execution in the Kingdom of Nouns (2006) by bloke_zero on Thursday July 03, 2014 @12:04PM (#7983869)
The reason I was laughing was because I could imagine it happening - know I know it's true I'm not sure how I feel about it.
Re:Execution in the Kingdom of Nouns (2006) by jerf on Thursday July 03, 2014 @01:25PM (#7984428)
It's a mathematical formalism for minimizing the number of distinct entities in minimalistic theories of numbers, and providing definitions of "number" that are as well-defined as possible, which turns out to be harder than it appears at first blush. In practice, it isn't generally directly used, except in places where proper facilities for using integers haven't yet been created (C++ templates at a certain point, some older Haskell type code before ints become promotable to the type level, etc). (And just to be clear, I'm not saying they've never been used in real code, but that it's a serious code smell to need to use them in real code. They get inefficient, fast; given that they're often showing up in type checking algorithms they can get inefficient superlinearly in their size.)
Re:Execution in the Kingdom of Nouns (2006) by srean on Thursday July 03, 2014 @01:57PM (#7984608)
I vaguely remember that church numerals (or was it some other encoding ?) have been used to minimize conditional jumps in code. If someone is familiar with how that works, would love to hear.
Re:Execution in the Kingdom of Nouns (2006) by qwerta on Thursday July 03, 2014 @10:53AM (#7983389)
Kind of similar how barbarians count in Terry Pratchett books. They only know three numbers: one, two and many. And counting is done like this: one, two, many, many one, many two, many many, many many one.....
Re:Execution in the Kingdom of Nouns (2006) by raghuiyer4882 on Thursday July 03, 2014 @11:11AM (#7983522)
Isn't it only trolls? Barbarians are too busy pillaging to count.
Re:Execution in the Kingdom of Nouns (2006) by qwerta on Thursday July 03, 2014 @12:47PM (#7984145)
Yes, trolls, you are right!