Why aren't you programming in LISP`?`?`
1
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))
2
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.
3
Name:
Anonymous
2013-05-10 17:25
>import
/g/ood troll e/g/in /g/roski
4
Name:
Anonymous
2013-05-10 17:26
Didn't even realize your code is fucking retarded and doesn't work in both examples.
5
Name:
Anonymous
2013-05-10 17:32
/g/ROOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
6
Name:
Richard Stallman
2013-05-10 17:39
Same ole /prog/ , never a working program in any thread.
7
Name:
Anonymous
2013-05-10 17:41
>>6
Fuck off RMS, your code is bad.
8
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.
9
Name:
Anonymous
2013-05-10 17:47
(print 1 2 3 4 5 6 7 8 9 10)
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
11
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);
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}]]
12
Name:
Anonymous
2013-05-10 18:19
>>1
Symta:
as X 1 to 10: say X
13
Name:
Anonymous
2013-05-10 19:03
14
Name:
Anonymous
2013-05-11 9:25
>>10
That calculates 1+2+3+4+...+10. You really just want
ι10.
15
Name:
Anonymous
2013-05-11 9:43
>>14
Leavin us puzzled, aint cha? Where is lower bound? Where is variable binding?
16
Name:
Anonymous
2013-05-11 10:05
17
Name:
Anonymous
2013-05-11 12:51
(define (asdf x)
(display x)
(cond ((< x 10) (asdf (+ x 1)))))
(asdf 1)
18
Name:
Anonymous
2013-05-11 14:53
>>17
asdf
Really, nigger? Ever heard of lambdas?
19
Name:
Anonymous
2013-05-11 15:38
Really, lambda? Ever heard of niggers?
20
Name:
Anonymous
2013-05-11 15:58
Really, niggers? Ever heard of Neanderthals.
21
Name:
Anonymous
2013-05-11 16:12
Really Neanderthals? Ever heard of Australopithecinas?
22
Name:
Anonymous
2013-05-11 16:25
Really, Xanax? Ever heard of weed?
Well, Xanax is fine too.
23
Name:
Anonymous
2013-05-11 16:28
Really Australopithecinas? Ever heard of Catarrhini (the old-world monkeys) ?
24
Name:
Anonymous
2013-05-11 17:29
Of course I've hear of Catarrhini. But have you have of Haplorrhini (the dry nosed primates?)
25
Name:
Anonymous
2013-05-11 17:41
>import stdio.h
Oh god what is this.
26
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.
27
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?
28
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?
29
Name:
Anonymous
2013-05-11 19:52
Of course I've hear of Haplorrhini. But have you have of Haskal (the no nosed dog?)
30
Name:
Anonymous
2013-05-11 20:33
>>18
Sorry, could you show me with lambdas then?
31
Name:
Anonymous
2013-05-11 20:49
32
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.
33
Name:
Anonymous
2013-05-11 21:10
>>31
No syntax sugar, only lambdas.
>>33
Read my post. And, as far as I know, letrec still requires you to bind the functions to a name.
35
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)
36
Name:
Anonymous
2013-05-12 0:54
>>35
Yes, fixed point.
You win 1 Suss-shekel. Use it wisely, goy.
37
Name:
Anonymous
2013-05-12 0:55