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

Random Programs

Name: Anonymous 2009-12-08 0:05

You know the saying about monkeys and typewriters? What if one used a random number generator to create a valid binary executable? Sure, most of them would crash, but maybe you'd get something interesting eventually?

Name: Anonymous 2009-12-09 6:16

>>40
Like Horsies?

Name: Anonymous 2009-12-09 7:54

RANDOMIZE MY ANUS

Name: Anonymous 2009-12-09 7:57

>>40
"The majority of the competitors"? Only on the nano hill, where length is limited to 6 instructions. Last time I checked the tiny hill (20 instructions) was still a fight between evolution and design, and bigger hills were dominated by designed warriors.

Name: Anonymous 2009-12-09 9:28

>>43
DOMINATE MY ANUS

Name: Anonymous 2009-12-09 12:54

>>44
With or without lube?

Name: Anonymous 2009-12-09 13:30

>>42
SODOMIZE MY ANUS

Name: Anonymous 2009-12-09 13:50

>>38
Toy language code creating toy language code.

Name: Anonymous 2009-12-09 15:00

>>47
code doesn't create code silly

Name: Anonymous 2009-12-09 15:59

>>48
There is no code.

Name: Anonymous 2009-12-09 17:24

>>49
There is data. Code is data.

Name: Anonymous 2009-12-09 18:49

>>50
data is code

Name: Anonymous 2009-12-09 20:18

>>51
Lisp is gay

Name: Anonymous 2009-12-09 20:28

>>52
That is what is so beautiful about it

Name: Anonymous 2009-12-09 22:44

>>52
How can a non-sentient thing be happy?

Name: Anonymous 2009-12-09 23:04

It's like my first "hello, world".

Name: >>51 2009-12-09 23:36

>>52
U MENA HASKAL?
'cuz I was definitely talkin' bout some Haskell.

Name: Anonymous 2010-12-17 1:32

Xarn is a bad boyfriend

Name: Anonymous 2010-12-23 8:45

Name: Anonymous 2013-10-05 21:37

I'm bumping this because I find it interesting

Name: Anonymous 2013-10-05 23:01

>>58
>le pedophile sage

Name: Anonymous 2013-10-06 3:52

>>38
import Control.Arrow (first)
import Control.Monad.State
import System.Environment (getArgs)
import System.Random

data BF = MR | ML | IP | DP | PC | IC | LB | LE deriving (Eq, Enum)
type BFGen a = StateT Int IO a

instance Show BF where
  show MR = ">"
  show ML = "<"
  show IP = "+"
  show DP = "-"
  show PC = "."
  show IC = ","
  show LB = "["
  show LE = "]"

instance Random BF where
  random g = first (toEnum . flip mod 8) $ next g
  randomR = error "8=D"

one :: BFGen BF
one = do
  o <- get
  x <- io randomIO
  when (x == LB) (modify (+1))
  when (x == LE && o > 0) (modify (subtract 1))
  if x == LE && o <= 0 then one >>= return else return x

many :: Int -> BFGen [BF]
many n = do
  o <- get
  if (n-o) <= 0
  then return $ replicate o LE
  else do
    x <- one
    xs <- many (n-1)
    return (x:xs)

main :: IO ()
main = fmap (read . head) getArgs >>= flip evalStateT 0 . many >>= mapM_ (putStr . show) >> putChar '\n'

io :: IO a -> BFGen a
io = liftIO

Name: Anonymous 2013-10-06 3:56

If one buries lots of plastic buckets, will the ground hold more water?

Name: Anonymous 2013-10-06 6:28

>>62
Radioactive water or normal water?

Name: Anonymous 2013-10-07 22:41

>>62
the plastic buckets are filled with water?

Name: Anonymous 2013-10-07 23:17

Name: Anonymous 2013-10-08 0:26

kek

Name: Anonymous 2013-11-02 21:01

*YOU HAVE BEEN VISITED BY LE TOP LEL OF COMEDY GOLD** POST THIS IN 3 threads or lose your sides!
░░░░░░░▄▀▀▀░▄▄▄▄░░░▀▀▀▀▀▀▀▀▄▄░▀
░░░░░░░█░░░░░░░░▀▀▀▀▀▄▄▄▄▄▄▄▄▀░░█
░░░░░▄▀░░░░░░░░░░▄░░░░░░░░▄▄░░░░░▀▄
░░░▄▀░░░░░▄▀▀▀█▄░▀░░░░▄▀▀▀██▀▀▄░░░░░▀
░░▄▀░░▄▄░░▀▀▀▀████▀░░░▀▄▄▀▀▀▀▄█░░░░░░█
░▄▀░▄▀█░░▄▄░░░░░░░█░░░░░▄▄▄░░░▀▀░░░░░░█
▄▀░░█░█░▀░░▀▀▄░░░░░█░░░░░░░▀▀▀▀▀▄░░░░░█
▀▄░░▀░█░░░▄░░░░░░▄▀░░░░▀▄░░░▄▄░░▀▄░█░▄▀
░░▀▄░░░░█▀▄░░░░░▀█░░░░▀▀░█▄▀▄░█░░░█░█
░░░░█░░█░▀▄▀▄▄░░░░▀▀▀░░░▄█▀░▄▀█░░░░▄
░░░░░█░░█░▀▀▄░▀▄▄▄▄▄▄▄▀█░▄█▀▄▀░░░░░
░░░░░█░░▀▄▄░░▀█░░░█░░▄▄▀▀▄▄█▀░░░░▀
░░░░▄▀░░░▀▄▀▀▄░▀▀▀▀▀▀▄▄▀▀▀▄▀░░░░▀
░░░▄▀░░░░░░▀▄░█▄▄▄▄▀▀░▀▄▀▀░░░▄▀▀
░░▄▀░░░░░░░░░▀▄▄▄▄█▄▄▀▀░░░░▄
░░█░░░░░░▀▄▄░░░▄▄▄▄▄▄▀░░░▄▀
░░█░░░░░░░░░▀▀▀▄▄▄▄▄▄▄▀▀
░░░█░░░░░░▀▀▀▀▀░░░░▄
░░░▀▀▄▄▄▄▄▄▄▄▄▀▀▀

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