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

Pages: 1-

Why aren't you programming in LISP`?`?`

Name: Gagrid 2013-05-10 17:23


The expert ``programmer'' language.

C code to print from 1 to 10

import stdio.h

int main(){
  for (int i=1; i<=10; i++) {
    printf(yada yada);
  }
}





LISP


(loop for i from 1 to 10 do (print x))

Name: Anonymous 2013-05-10 17:25

So whatever can be done in the least amount of characters is the best language? I guess Perl is better than lisp then.

Name: Anonymous 2013-05-10 17:25

>import

/g/ood troll e/g/in /g/roski

Name: Anonymous 2013-05-10 17:26

Didn't even realize your code is fucking retarded and doesn't work in both examples.

Name: Anonymous 2013-05-10 17:32

/g/ROOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO

Name: Richard Stallman 2013-05-10 17:39

Same ole /prog/, never a working program in any thread.

Name: Anonymous 2013-05-10 17:41

>>6
Fuck off RMS, your code is bad.

Name: Richard Stallman 2013-05-10 17:45

Oy goyim. Say that again, and I'll personally come to your house and rip that fuqin foreskin of.

Name: Anonymous 2013-05-10 17:47

(print 1 2 3 4 5 6 7 8 9 10)

Name: Anonymous 2013-05-10 17:53

You lowly peasants don't know about the master race AplLanguage! I can do that shit in 5 characters.


+/ι10

Name: govno 2013-05-10 18:18

pavlik abstract final private transient class ConcreteBusinessSOlutionBean
{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{
pavlik stasik void main(String args[]){{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{
for(abstract static volatile Integer myLoopCounterIntegerVariableI = AbstractNumberBuilderFactorySingletonBean.getAbstractIntegerFactorySingleton().getIntegerBuilder().getConcreteOne(); AbstractComparatorBuilderSingleton.getAbstractComparator().compare(AbstractComparatorBuilderSingleton.getAbstractComparator().compare(myLoopCounterIntegerVariableI, AbstractNumberBuilderFactorySingletonBean.getAbstractIntegerFactorySingleton().getIntegerBuilder().getConcreteTen()), AbstractNumberBuilderFactorySingletonBean.getAbstractIntegerFactorySingleton().getIntegerBuilder().getConcreteZero();, ++myLoopCounterIntegerVariableI){{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{
System.out.println(myLoopCounterIntegerVariableI);
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}]]

Name: Anonymous 2013-05-10 18:19

>>1
Symta: as X 1 to 10: say X

Name: Anonymous 2013-05-10 19:03

>>12
No, that's JEWSymta

Name: Anonymous 2013-05-11 9:25

>>10
That calculates 1+2+3+4+...+10. You really just want ι10.

Name: Anonymous 2013-05-11 9:43

>>14
Leavin us puzzled, aint cha? Where is lower bound? Where is variable binding?

Name: Anonymous 2013-05-11 10:05

>>15
lrn2APL faggot

Name: Anonymous 2013-05-11 12:51

(define (asdf x)
  (display x)
  (cond ((< x 10) (asdf (+ x 1)))))
(asdf 1)

Name: Anonymous 2013-05-11 14:53

>>17
asdf
Really, nigger? Ever heard of lambdas?

Name: Anonymous 2013-05-11 15:38

Really, lambda? Ever heard of niggers?

Name: Anonymous 2013-05-11 15:58

Really, niggers? Ever heard of Neanderthals.

Name: Anonymous 2013-05-11 16:12

Really Neanderthals? Ever heard of Australopithecinas?

Name: Anonymous 2013-05-11 16:25

Really, Xanax? Ever heard of weed?

Well, Xanax is fine too.

Name: Anonymous 2013-05-11 16:28

Really Australopithecinas? Ever heard of Catarrhini (the old-world monkeys)?

Name: Anonymous 2013-05-11 17:29

Of course I've hear of Catarrhini. But have you have of Haplorrhini (the dry nosed primates?)

Name: Anonymous 2013-05-11 17:41

>import stdio.h

Oh god what is this.

Name: Anonymous 2013-05-11 18:07

I have indeed heard of those types of primates. But sir have you heard of Primatomorpha, which include both primates and colugos before evolution branched them into separate descendants.

Name: Anonymous 2013-05-11 18:32

Hoho my dear fellow, you have once again rejuvenated my memories for I do have knowledge about the Primatomorpha. The question is do you know of the Euarchontoglires, the supraprimates?

Name: Anonymous 2013-05-11 18:54

Oh you, of course one ha'th knowledge of supraprimates; they include primates, rodents, rabbits, tree shrews, and colugos. Intensity of thou IQ probing has increased five fold, can you with absolute certainty state you know of the Eutheria?

Name: Anonymous 2013-05-11 19:52

Of course I've hear of Haplorrhini. But have you have of Haskal (the no nosed dog?)

Name: Anonymous 2013-05-11 20:33

>>18
Sorry, could you show me with lambdas then?

Name: Anonymous 2013-05-11 20:49

>>30
letrec*

Name: Anonymous 2013-05-11 20:55

>>31
Shut up, nigger, you're not me.

>>30
Hint: Hacker News. No, it doesn't have anything to do with the content of that site.

Name: Anonymous 2013-05-11 21:10

>>31
No syntax sugar, only lambdas.

Name: >>32, not >>31 2013-05-11 21:22

>>33
Read my post. And, as far as I know, letrec still requires you to bind the functions to a name.

Name: Anonymous 2013-05-11 22:46

>>30,33,34
fixed point.

I would have done >>18 with named let.


(let asdf ((x 1))
  (display x)
  (if (< x 10)
    (asdf (+ x 1))))


if you wanted to avoid recursive definition:


(define asdf (lambda (f x)
               (display x)
               (if (< x 10)
                 (f f (+ x 1)))))

(asdf asdf 1)


if you wanted to avoid recursive definition with style:


(define fix_ (lambda (f g)
  (lambda args
    (apply g (cons (f f g) args)))))

(define fix (lambda (f)
  (fix_ fix_ f)))

(define asdf (fix (lambda (f x)
                    (display x)
                    (if (< x 10)
                      (f (+ x 1))))))

(asdf 1)

Name: Anonymous 2013-05-12 0:54

>>35
Yes, fixed point.

You win 1 Suss-shekel. Use it wisely, goy.

Name: Anonymous 2013-05-12 0:55

>>35
You murderer. ;_;

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