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

Pages: 1-

?

Name: Anonymous 2008-02-13 16:52

How many programmers does it take to screw in a lightbulb?

Name: Anonymous 2008-02-13 16:53

where is mbry0

Name: Anonymous 2008-02-13 17:12

(define OP (+ anti-cudder troll)
 (if (nigger? OP) 'nigger 'b&hammer)
)

Name: Anonymous 2008-02-13 18:06

(not (valid? (code 'scheme) >>3))

Name: Anonymous 2008-02-13 18:09

>>4
Evaluates to #t.

Fixed:

(valid-code? 'scheme >>3)

Name: Anonymous 2008-02-13 19:07

lightbulb-mode

Name: Anonymous 2008-02-13 19:14

>>6
I wanted to learn some enterprise language, because I feared that C and Java won't get me a job.

I opened ``Thinking in Sepples''.

There were light bulbs.

I closed the book and was thinking in Haskell.

Name: Anonymous 2008-02-13 19:17

ScrewLightbulb(hBulb, 0, NULL, NULL, NULL, NULL);

Name: Anonymous 2008-02-13 19:56


<?php

include("lightbulb.class.inc.php");

$bulb = new LightBulb;
while($bulb->ScrewedIn()!===TRUE) {
    $bulb->AddNewProgrammer();
    $bulb->ScrewBulb($bulb->NextProgrammer());
}

echo("doen lol");

?>

Name: Anonymous 2008-02-13 19:58

>>1
None. It's a hardware problem.

Name: Anonymous 2008-02-14 3:38

>>1
Forget it, it's NP-complete.

Name: Anonymous 2008-02-14 3:42


screwBulb [] bulb = bulb
screwBulb [p:ps] bulb = screwBulb ps (p $ bulb)

Name: Anonymous 2008-02-14 3:58

>>11
This might surprise you, but I invented that meme.

Name: Anonymous 2008-02-14 4:16

>>13
This might surprise you, but this might surprise you.

Name: Anonymous 2008-02-14 6:51

>>13,14
This may surprise you, but you're doing it wrong.

Name: Anonymous 2008-02-14 7:29

>>15
This may invent you, but I surprised that meme.

Name: Anonymous 2008-02-14 7:30

>>12
screwBulb [p:ps] bulb = screwBulb ps (p $ bulb)
screwBulb [p:ps] bulb
[p:ps]

GRRRR!!

Name: Anonymous 2008-02-14 7:31

[x:xs]

Name: Anonymous 2008-02-14 7:33

And what the hell is up with (p $ bulb)?

Name: Anonymous 2008-02-14 7:56


for(i=0;;i++)
  if(screwbulb(&bulb,i))
    break;
printf("%d\n",i);

Name: Anonymous 2008-02-14 8:49

>>17
GRRRR!!
What's wrong with [x:xs]?

>> 19
VALID HASKELL CODE. lrn2apply.

Name: Anonymous 2008-02-14 8:51

Curse you, Shii.

Name: Anonymous 2008-02-14 9:54

>>21
What's wrong with [x:xs]?
It's gay -- use (x:xs).

Name: Anonymous 2008-02-14 10:05

HAY GUYS I WROTE A DEBUGGER IN BBCODE

#include <stdio.h>
#include <string.h>
int main()
{
  int a[200],count=0,i,n=0;
  FILE *f;

  f = fopen("42.txt","r");
  if(!f) {
    printf("fopen failed\n");
    return 1;
  }
  memset(a,0,200);
  for(i=1;;i++) {
    n = 0.5 * i * (i+1);
    if(n>=200)
      break;
    a[n] = 1;
  }
  while(!feof(f)) {
    i = fgetc(f);
    if(i!='\n')
      n += i - 64;
    else {
      if(a[n])
        count++;
      n = 0;
    }
  }
  printf("count=%d\n",count);
  return 0;
}

Name: Anonymous 2008-02-14 10:29

>>23
You're gay, if you want to use lists in Haskell, please be consistent and use [] everywhere, not some tuple-parens.

Name: Anonymous 2008-02-14 10:33

>>25
No you!, use cons-like : constructs everywhere.  [] should be exclusively used as the NIL atom.

Name: Anonymous 2008-02-14 11:01

[x:xs] matches a list of lists.

Name: Anonymous 2008-02-14 11:08

>>26
Yes, because, why use syntactic sugar and write
'(0 1 2 3)
when we can write
(cons 0 (cons 1 (cons 3 (cons 3 '())))),
Eh?
(Or, in 'kell, [0,1,2,3] versus 0 : 1 : 2 : 3 : [].)

Name: Anonymous 2008-02-14 11:10

>>27
No, it doesn't. It matches a list of a car and a cudder.

Name: Anonymous 2008-02-14 15:16

>>28
[0,1,2,3] versus 0 : 1 : 2 : 3 : []
(enumFromTo 0 3), please come up with some real life cases where you need list syntax.

Name: Anonymous 2008-02-14 15:27

>>30
[1,2,5,3,4]

Name: Anonymous 2008-02-14 15:48

>>30
[0..3]

Name: Anonymous 2008-02-14 15:57

[1,3,5,..]

Name: Anonymous 2008-02-14 16:01

>>31
uncurry (++) $ second (5:) $ splitAt 2 [1 .. 4]

Name: Anonymous 2008-02-14 16:50

>>31,33
Magic numbers considered harmful.  If you can't express them with a formula you're probably doing something wrong.

Name: Anonymous 2008-02-14 17:04

>>1
Side effects? I don't think so, Tim.

Name: Anonymous 2008-02-14 17:11

>>36 is a Haskellite.

Name: Anonymous 2008-02-15 6:24

>>35
Or you're providing test data. LOLOLOL

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