Skip to content

Instantly share code, notes, and snippets.

@munen
Created December 16, 2010 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save munen/743398 to your computer and use it in GitHub Desktop.
Save munen/743398 to your computer and use it in GitHub Desktop.
My 'nop' battle entry
(comment
"We were doing a 'nop' battle in IRC today. First it was manual typing of 'nop's,
but quickly we got certain scripts running.
Learning clojure, I thought I could come over the top easily. And I did. I
defined a lazy cycling sequence containing 'nop', then I tried to get the last
entry of that list.
Unfortunately this didn't just burn my CPU (as I expected), but it also allocated
so much memory in seconds, that my X got shutdown by kernel.
Wheter this approach is a win or an epic fail, I will leave to you.")
(def nop-seq (cycle '("nop")))
(last nop-seq)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment