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

lolol sussman theme snake ^__^

Name: Anonymous 2008-04-27 6:58

% ghc sicp.hs && ./a.out > /dev/dsp (or | aplay for real men)
module Main where
import Data.Char
makeU8 x freq = (((sin (x * (2 * pi) * (freq / 8000))) + 1) * 128.0)
tone freq length amplitude x =
  if x >= length
    then []
    else (floor ((makeU8 x freq) * amplitude)) : tone freq length (0.99925 * amplitude) (x + 1)
tones = [("c2", 65.406), ("d2", 73.416), ("e2", 82.407), ("f2", 87.307), ("g2", 97.999), ("a2", 110.00), ("b2", 123.47), ("c3", 130.81), ("d3", 146.83), ("e3", 164.81), ("f3", 174.61), ("g3", 196.00), ("a3", 220.00), ("b3", 246.94), ("c4", 261.63), ("d4", 293.66), ("e4", 329.63), ("f4", 349.23), ("g4", 392.00)]
t x = case lookup x tones of
        Just y -> (tone y 2000 0.75 0) :: [Int]
        Nothing -> []
main = do
  putStr $ map chr $ concatMap t ["g3", "a3", "b3", "d4", "c4", "c4", "e4", "d4", "d4", "g4", "f4", "g4", "d4", "c4", "g3", "a3", "b3", "c4", "d4", "e4", "d4", "c4", "b3", "a3", "b3", "g3", "f3", "g3", "a3", "d3", "f3", "a3", "c4", "b3", "a3", "b3", "g3", "a3", "b3", "d4", "c4", "c4", "e4", "d4", "d4", "g4", "f4", "g4", "d4", "b3", "g3", "a3", "b3", "e3", "d4", "c4"]

Name: Anonymous 2008-04-27 7:29

Linux is written by the sussman of the relationship between dqn voltages and /b/tards by number of penises has its background in the space station base of the sussman.

Name: Anonymous 2008-04-27 7:30

>>2
Valid Markov chain.
>>1
Valid WinRAR.

Name: Anonymous 2008-04-27 9:10

>>3
Explain how that is a Markov chain.

Name: Anonymous 2008-04-27 10:09

>>4
I can trll from some of the words, and having seen quite a few Markov chains in my life.

Misspelling unintentional, but left as is because of accuracy.

Name: Anonymous 2008-04-27 10:17

Wait.

You can music in Python?

Name: Anonymous 2008-04-27 11:02

>>5
metatrolling is fail.
hax my anus

Name: Anonymous 2008-04-27 11:35

>>7
hax my anus

Name: Anonymous 2008-04-27 11:36

You can tune a Python

Name: Anonymous 2008-04-27 11:42

>>1
[i]ONE WORD THE FORCED INDENTATION OF CODE THREAD OVER

OH MAN PYTHON CODE FUCKING PISSES ME OFF!!![/i]

Name: Anonymous 2008-04-27 11:58

>>10
I am amused by the fact that I sowed a seed of Pythonic uncertainty and now you speak of >>1 as he had used FIOC. In other words, you have been trolled.

Name: Anonymous 2008-04-27 12:08

>>11
I'm actually just playing along, and the BBCode failure was intentional (can't have caps without a failure or it'll look fake).  Furthermore, I am the OP.

Name: Anonymous 2008-04-27 13:43

>>4
Mr. Jones, this is mr. Kronberg and his nephew, half a guinea
if you do it in twenty minutes! Of bates, which could only
be done by observing another in the centre. He also saw
the tomb of in a thick fog all the succeeding events. For
two tablespoonfuls of melted butter. For the crust no, we
do not mean to let our mouths be stopped,' round about then
lay on a quarter of the white adverbs was retained, except
for a very few already an introduction to him from h.r.h.
zilessultan, before i had warned alcides to economize, and
afar she leant forward listening, and the young streets
and quads and parks the all sufficing i was out in the garden
with horace and dora, evident that this man had been an
artist and poet.

Name: Anonymous 2008-04-27 14:09

>>10
Oh god, get out of my /prog/. You can't even recognise what ./a.out means. Massive failures like yours are only originated by faggots like the ones that spam about ``hacks''. So, please understand that we are not interested in people like you.

>>1
lolol

Name: Anonymous 2008-04-27 14:27

>>1
$ su -c 'pacman -S ghc'
resolving dependencies...
looking for inter-conflicts...

Targets: ghc-6.8.2-1

Total Download Size:    55.37 MB

Proceed with installation? [Y/n]


ENTERPRISE, and I won't install that. Anyway, if it's a "lolol sussman theme snake", you should have written that in scheme.

Name: Anonymous 2008-04-27 14:32

>>15
You don't have GHC or even HUGS? On my UBANTO I have PERL, RUBY, CL, FIOC, although I use none of these. Please keep that in mind.

Name: Anonymous 2008-04-27 14:34

>>16
*hugs*

Name: Anonymous 2008-04-27 14:38

>>15
Hehe, the binary of >>1 is 700KB... and not too long ago it would have been 7MB instead ;)

% pacman -Qi ghc
Name           : ghc
Version        : 6.8.2-1.1
Installed Size : 470330.72 K

Name: Anonymous 2008-04-27 14:41

>>14 is a beet troll

Name: Anonymous 2008-04-27 15:07

Well, hugs is looking better:

Installed Size : 9655.37 K

Can someone explain me why is ghc so big?

Name: Anonymous 2008-04-27 15:09

>>20
You can never have too much lambda.

Name: Anonymous 2008-04-27 15:35

>>13
are taken from $_SERVER[PATH_INFO]. Use / to separate arguments, like read.php/prog/1209231034/. POST something to read.php for an hilarious message. http://dis.4chan.org/admin.php Do nothing (BBCODE!): http://dis.4chan.org/abbc/ http://dis.4chan.org/abbc/abbc.cfg.php http://dis.4chan.org/abbc/abbc.lib.php http://dis.4chan.org/include.php 403: http://dis.4chan.org/salt.cgi http://dis.4chan.org/temp/ http://dis.4chan.org/prog/dat/1.dat ^ Replace 1 with the thought that Simon & Garfunkel song? >>39 that was true... >>53 But it is! Don't you trust James? >>54 I, for one, do not. >>48 Hack my anus, James!7n7xJq/mBg. Get your average gamer. So why the disparity when it comes to developers in the industry? This week MTV’s Multiplayer blog has a lengthy and fascinating look into the world of black DOUBLE NIGGER NIGGERNIGGERNIGGERNIGGERNIGGERNIGGERNIGGERNIGGERNIGGERNIGGER That's 2% of people that shouldn't be there. ARRRRRRR /prog/ i just wanted you to know that i don't like your racism. >>2,3 back to /b/ >>5 I release it. hagagagaag You know, considering Croma will probably own the fuck out of Arc, I'm actually looking forward to the day when the ginger releases it. I probably won't even use it much, but it's going to use OpenAL... >>7 cat /dev/microphone > /dev/kmem > /dev/dsp a bad thing? You don't understand the concept of your pots and pans i am a heron. i haev a long neck and i pick fish out of the user, this check_div(30, 3, "Fizz") or check_div(42, 5, "Buzz"): print else: print 80 if check_div(81, 3, "Fizz") or just FizzBuzz? >>107 you forgot the "hax my" part Mine is fizz. >>109 Sorry. hax my anus hax my anus hax my anus hax my anus hax my anus hax my anus hax my anus hax my anus hax my anus hax anus anus Mrs. Murphy: What did you learn in school today? Dade

Name: Anonymous 2008-04-27 15:41

Tweaked a little.

why is ghc so big? You can never be a unique combination of technical knowledge, consulting skills and broad business Sicp is a Turing complete programming language fixed that are multiples of 3 and not make him so. Oh whoops, add a space to _acceptable_chars, lol. ________________________________FIOC__________________________________ Just watch What's destroying /prog/ is that the MySQL doc states that the collation I selected in a few weeks. read the wikipedia article on a weird obsolete Atari console whose name I forgot. Uhm... Sepples. Then I gave up and wrote that joke, I can't even listen to a french football player. Renowned for bot scripts. hax my life. Misspelling unintentional, but left as is because of accuracy. Wait. You can music in a world where bucket began. bampu pantsu~ someone seems to have a word with you, me, the sussman, and read your poignant guide to_ruby today? I have read my hax my parents met on a battle rap Freestyle King: I come and fish puts "FizzBuzz" elsif tuna puts "Fizz" elsif fish puts "FizzBuzz" elsif

Name: Der Süßmann !MhMRSATORI 2008-04-27 15:43

>>23
Unwissenschaftlich und letztendlich destruktiv.

Name: Anonymous 2008-04-27 15:59

>>24
haskell without all the excessive punctuation, example? lisp without all of a sudden this huge black snake head with the book, disintegrating into a flurry of glowing parentheses. i just sat there dazed for a few seconds, watching the feathery parehtneses

Name: Anonymous 2008-04-27 18:55

Name: Anonymous 2008-04-28 11:50

>>26
ha ha ha, oh wow... thanks, i guess

Name: Anonymous 2008-04-28 14:53

>>22,23,25
Is this modified megahal?
Actually, I refuse to believe that machine generated this text, because it's too brilliant.

Name: Anonymous 2008-04-28 15:07

>>28
10 minute Haskell program implemented after reading http://en.wikipedia.org/wiki/Dissociated_press

Name: Anonymous 2008-04-28 15:13

>>29
source. now. please.

Name: Anonymous 2008-04-28 15:16

>>30
You're kidding?

Name: Anonymous 2008-04-28 15:20

>>30
Heh, it's pretty messy, and it's far from finished.  I recommend implementing it yourself, it's not too hard if you've read SICP, and it's fun.  To help your cause I offer you these sed instructions that (I believe) strip a thread from all that pesky HTML:

sed -ne "0,/^<hr/d;0,/  <hr/p;" | sed -e "/postnum/d" | sed -e "s/<[^>]\+>//g" | sed -e "s/&nbsp;/ /g;s/&lt;/</g;s/&gt;/>/g;s/$/$/g;s/&amp;/\&/g;s/'/'/g;s/&quot;/\"/g"

Name: 15 2008-04-28 18:59

I'm trying >>1 with hugs. Sounds nice. Too bad it's slow as fuck and i have to dump it to a file first.

Name: Anonymous 2008-04-28 19:27

What's the format /dev/dsp accepts? 16-bit PCM?

Name: Anonymous 2008-04-28 19:33

>>34
8bit 8KHz single channel PCM, I believe. Use googol.

Name: Anonymous 2008-04-28 19:39

Hay guys, what do I do with the output in Windows? Is it supposed to be wav file or something?

Name: Anonymous 2008-04-28 19:50

>>36
There's no Haskell for Windows, you're screwed.

Name: Anonymous 2008-04-28 19:56

>>37
Yes, there is. I just compiled the program and got an output. I just don't know what to do with it.

It apparently is a wav file and I am supposed to put some identifier before the file but I don't know what it is. Can anyone help me?

Name: Anonymous 2008-04-28 20:20

>>38
Open it in audacity.

Name: Anonymous 2008-04-28 20:41

>>39
Thanks, that works. It sounds pretty nice.

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