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

LISP is shit

Name: Anonymous 2012-05-14 1:33


>/prog/ raves about how great and powerful LISP is
>download sbcl
>make a simple hello world app
(defun main ()
 (print "Hello World")
 (quit))
>compile it to binary
>50MB file for 3 lines of code

Name: Anonymous 2012-05-14 1:51

>>1

SBCL is shit. And many lisp implementations suck pretty hard. There seems to be a larger number of good scheme implementations, probably because the language is simpler and easier to implement, except for the macro system.

Name: Anonymous 2012-05-14 1:57

Lisp is shit.

Name: Anonymous 2012-05-14 2:24

use chicken:


$ cat hello.scm
(display "Hello World") (newline)
$ chicken hello.scm
compiling `hello.scm' ...
generating `hello.c' ...
$ ls -hs hello.c
8.0K hello.c
$ wc hello.c
 240  649 7882 hello.c
$ gcc -c hello.c
$ gcc -O3 -o hello hello.o -lchicken
$ hello
Hello World
$ ls -sh hello
16K hello
$

Name: Anonymous 2012-05-14 2:46

>>1

thread fails on /prog/
post it on /g/

>>4

[code] du -sh /usr/{local/,}lib/*chicken* [code]?

Name: Anonymous 2012-05-14 2:49

* (defun main () (print "hello world") (quit))

MAIN
* (compile 'main)

MAIN
NIL
NIL
* (disassemble 'main)

; disassembly for MAIN
; 04042D94:       488D5C24F0       LEA RBX, [RSP-16]          ; no-arg-parsing entry point
;       99:       4883EC18         SUB RSP, 24
;       9D:       488B158CFFFFFF   MOV RDX, [RIP-116]         ; "hello world"
;       A4:       488B058DFFFFFF   MOV RAX, [RIP-115]         ; #<FDEFINITION object for PRINT>
;       AB:       B908000000       MOV ECX, 8
;       B0:       48892B           MOV [RBX], RBP
;       B3:       488BEB           MOV RBP, RBX
;       B6:       FF5009           CALL QWORD PTR [RAX+9]
;       B9:       488B0580FFFFFF   MOV RAX, [RIP-128]         ; #<FDEFINITION object for QUIT>
;       C0:       31C9             XOR ECX, ECX
;       C2:       FF7508           PUSH QWORD PTR [RBP+8]
;       C5:       FF6009           JMP QWORD PTR [RAX+9]
;       C8:       CC0A             BREAK 10                   ; error trap
;       CA:       02               BYTE #X02
;       CB:       18               BYTE #X18                  ; INVALID-ARG-COUNT-ERROR
;       CC:       54               BYTE #X54                  ; RCX
NIL


U MENA 7 bytes for 3 lines of code.

Name: Anonymous 2012-05-14 3:30

>>5

that's a good point:


$ ls -sh /usr/lib/libchicken.so.3
3.0M /usr/lib/libchicken.so.3
$


that gc's gotta be somewherez.

Name: Anonymous 2012-05-14 4:13

>>7
A good GC implementation shouldn't take more than a few K.  No, I think they bundled some library stuff in there.

Name: Anonymous 2012-05-14 4:44

>>8

yeah, I bet they put as much as possible into the library. It would make sense if you were compiling many independent scheme files to individual c files, and then linking them together. You would want to minimize code duplication between the c files, and it would be annoying if each c file contained a small implementation of a scheme back end engine of some form, like the core data structures and built in functions.

Name: Anonymous 2012-05-14 5:15

>>1
Ever heard of "strip", Mr. Poopoo pants?

Name: Anonymous 2012-05-14 10:46

>>10
Ye its what ur mum does at a regular basis for a couple of dawlas, what up now fag u mad check em dubs.

Name: Anonymous 2012-05-14 11:55

>>11
OHHH SICK BURN!!!!!!!!!!!

Name: Anonymous 2012-05-16 22:36

Lisp is shit.

Name: Anonymous 2012-05-17 0:55

>50MB

Even a single byte of lisp tastes pernicious.

Name: Anonymous 2012-05-17 1:17

>>1
This includes the runtime. You can compress the saved image if you want. So it's not really a problem. Even so, if I were to write production code, I'd probably use C or FIOC.

Name: Anonymous 2012-05-17 2:05

If there's one thing I know, its that you can judge a language by the size of it hello world.

Name: Anonymous 2012-05-17 4:04

>>16
lisper detected

Name: Anonymous 2012-05-17 4:23

Why are people here using unix?

Name: Anonymous 2012-05-17 4:24

>>18
It works and there are free implementations.

Name: Anonymous 2012-05-17 6:27

>>18
Why aren't you?

Name: bampu pantsu 2012-05-29 4:56

bampu pantsu

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