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

Lisp is SHIT

Name: Anonymous 2011-12-07 13:05

Give me three good reasons to use Lisp or Scheme instead of C++

Name: Anonymous 2011-12-07 13:07

1. Eval
2. Continuation
3. Macro
4. GC

Name: Anonymous 2011-12-07 13:12

>>2
1.eval(MY ANUS)
2.Possible in C
3.Possible in C
4.GC IS SHIT

Name: Anonymous 2011-12-07 13:16

1. LITHP
2. LITHP
3. LITHP

Name: Anonymous 2011-12-07 14:13

1. eval
2. λ
3. anus


(define x 2)
(define y 3)
(define a 0)
(eval ((λ (anus)
  (define (hax t)
     (match t
       [(regexp #rx"^(.+) *\\+ *(.+)$" `(,_ ,op1 ,op2)) `(+ ,(hax op1) ,(hax op2))]
       [(regexp #rx"^(.+) *\\* *(.+)$" `(,_ ,op1 ,op2)) `(* ,(hax op1) ,(hax op2))]
       [(regexp #rx"^([0-9.]+) *$" `(,_ ,num))           (string->number num)]
       [(regexp #rx"^([A-Za-z0-9.]+) *$" `(,_ ,lit))     (string->symbol lit)]))
  (match anus
    [(regexp #rx"^([a-zA-Z0-9]+) *= *(.+)$" `(,_ ,lhs ,rhs))
     `(set! ,(string->symbol lhs) ,(hax rhs))])
  ) "a = x+10*y"))
a
32

Your move.

Name: Anonymous 2011-12-07 14:19

>>1
1. uniformity
2. generality
3. simplicity

Name: Anonymous 2011-12-07 14:29

>>6

1. Explain
2. Templates
3. Simplicity should be left to the programmer. The language itself should be able to do whatever the programmer needs. If lisp can't do what the programmer needs (which may often be imperative programming), then simplicity in a language merely means less features. You can write simple programs in C++, but were C++ a simple language, it would not be nearly as popular because it would not be able to achieve everything a programmer needs.

Name: Anonymous 2011-12-07 14:33

>>7
1. Use of the same data structure for everything.
2. Templates are static -> not general engough.
3. C++ lefts no simplicity to the programmer. It's standard is much biggers than Scheme's.

Name: Anonymous 2011-12-07 14:37

>>7
You can write simple programs in C++, but were C++ a simple language, it would not be nearly as popular because it would not be able to achieve everything a programmer needs.
Simplicity/complexity has nothing to with C/C++'s popularity. C/C++ became popular due to its legacy-compatibility, which makes C/C++ bloatware by default.

Name: Anonymous 2011-12-07 14:37

>>1
1. Readability
2. Performance
3. Clarity

Name: Anonymous 2011-12-07 14:59

>>10
0/10

Name: Anonymous 2011-12-07 15:04

>>8

Use of the same data structure for everything

But that's a horrible idea.

Name: Anonymous 2011-12-07 15:20

>>12
>>8 doesn't know what ey's talking about. All serious CL implementations have hash-table, arrays, and vector types.

Name: Anonymous 2011-12-07 15:22

Name: Paul Graham 2011-12-07 15:39

>>13
All serious CL implementations have hash-table, arrays, and vector types.
There's a similar opposition between the use of lists to represent things and the use of "objects" with named, typed fields. I went through a stage, after I'd been programming in Lisp for 2 or 3 years, where I thought the old way of using lists to represent everything was just a hack. If you needed to represent points, surely it was better to declare a proper structure with x and y fields than to use a list of two numbers. Lists could contain anything. They might even have varying numbers of elements.

I was wrong. Those are the advantages of using lists to represent points.

Over the years my appreciation for lists has increased. In exploratory programming, the fact that it's unclear what a list represents is an advantage, because you yourself are unclear about what type of program you're trying to write. The most important thing is not to constrain the evolution of your ideas. So the less you commit yourself in writing to what your data structures represent, the better.

Name: Anonymous 2011-12-07 15:48

>>12
void * is the only thing i need.

go back to shit ++  faggot

Name: Anonymous 2011-12-07 15:53

>>14
So Lisp=Communism?

Name: Anonymous 2011-12-07 15:55

>>17
Lisp = I'dont want to hack and recompile fucking kernel to watch an AVI movie.

Name: Anonymous 2011-12-07 17:11

Lisp implies small penis.

Name: Anonymous 2011-12-07 17:31

>>19
No.

Name: Anonymous 2011-12-07 17:43

>>19
I have a small penis and I hate Lisp.

Name: Anonymous 2011-12-07 17:45

>>19
I like DICK... fixed that for you

Name: Anonymous 2011-12-07 17:46

>>20
Actually it does. Beautiful and soft, small sweet penises… んー…

Name: Anonymous 2011-12-07 20:16

>>15

that might work for small things like points, but seems to fall apart on larger structures.

you have to know what position the thing you want is in the list. for points, knowing that "y" is at index 1 is obvious and you don't have to think about it. but for some other data structure -- say a "user" with an "email" property -- a dict/map/hash/object is a lot nicer because you can just say user.email and not be concerned with the order of things inside your data!

Name: Anonymous 2011-12-07 20:27

I'd recommend you use Scheme or Lisp as opposed to one of the 3 most mainstream languages(C++, C#, Java), but that would be completely and utterly RETARDED.

Name: Anonymous 2011-12-07 20:36

>>25
I'd recommend bashing >>25's head repeatedly with a rock, then writing your own language and implementing it in C.

Name: Anonymous 2011-12-07 20:49

>>26
I meant to quote >>1 in the first line.

Name: Anonymous 2011-12-07 21:18

1. Lisp
2. is
3. SHIT

Name: Anonymous 2011-12-07 21:46

1. Sexp
2. Macros
3. Existance is written in Lisp.

Name: Anonymous 2011-12-07 21:47

>>24
That's what association lists are for.

Name: Anonymous 2011-12-07 22:09

>>30
Slow as cock.

Name: Anonymous 2011-12-07 22:13

>>31
Enjoy you're premature ejaculation.

Name: Anonymous 2011-12-07 22:25

PREMATURE OPTIMIZATION OF THE ORGASM

Name: Anonymous 2011-12-07 23:06

If association lists are slow as cock, then who was phone?

Name: Anonymous 2011-12-08 0:10

>>31
>>30-san meant to say, thats what balanced immutable red black trees are for, or alternatively, thats what immutable almost complete binary trees are for

Name: Anonymous 2011-12-08 16:54

>>32
New /prog/ challenge: find a compiler (AOT or JIT) that is able to optimize (immutable) cons into destructive operations on arrays or hash tables, depending on their use, without any kind of hint on the part of the programmer.

Deadline: Heat death of the universe.

Name: Anonymous 2011-12-08 17:02

>>34
You can use Finger Trees to implement Lists. FTs allow fast access to the hot points, called "fingers".

Name: Anonymous 2011-12-08 17:13

Give me three good reasons to use Lisp or Scheme
1. R4RS
2. R5RS
3. R7RS

Name: Anonymous 2011-12-08 17:14

>>37
you're tree have so much fingers inside does not it hurt pull those fingers out fagget

Name: Anonymous 2011-12-08 17:16

>>39
you seem buttdevestated

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