Pages tagged recursion:

Speed up your JavaScript, Part 2 | NCZOnline

nest loops too many....
Speed up your JavaScript,
Last week, I covered the first reason why JavaScript can take too long to execute: too much happening in a loop. There's a similar problem with functions in
The C Programming Language: 4.10
4.10 Recursion
Similar to 'Pride and Prejudice and Vampires', here is an adaptation of a famous book in the computer science canon, rewritten in the style of H.P. Lovecraft, specifically 'The Shadow Over Innsmouth' (which I'm coincidentally also reading on my iPhone).
I never heard of C Recursion till the day before I saw it for the first and– so far– last time. They told me the steam train was the thing to take to Arkham; and it was only at the station ticket-office, when I demurred at the high fare, that I learned about C Recursion. The shrewd-faced agent, whose speech shewed him to be no local man, made a suggestion that none of my other informants had offered. "You could take that old bus, I suppose," he said with a certain hesitation. "It runs through C Recursion, so the people don't like it. I never seen more'n two or three people on it– nobody but them C folks."
Brian W Kernighan & Dennis M Ritchie & HP Lovecraft
void Cthulhu (int Ia) { if (Ia/10) Cthulhu (IA/10); putchar // ftagn! (Ia % 10 + '0'); } // neblod zin!
Ruby, Rails, Web2.0 » Blog Archive » Ruby’s Most Underused Keyword
redo ‘jumps’ to the beginning of the block
REDO: Ruby’s Most Underused Keyword
To understand this, remember this (from the Pickaxe book): "A Ruby iterator is simply a method that can invoke a block of code"
Abstract Heresies: You knew I'd say something.
An exhaustive exploration of recursion, tail calls and TCO