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

Pages: 1-

TEACH ME LISP

Name: Anonymous 2012-01-27 21:06

I want to become a master LISP programmer by the time this thread reaches 1000 replies

Name: Anonymous 2012-01-27 21:11

So you can end up being the master cashier at a place like Burger King?

Name: Anonymous 2012-01-27 21:12

This is worse than the holocaust.

Why aren't these videos banned yet?

http://www.youtube.com/watch?v=-a94VSeGOiM

http://www.youtube.com/watch?v=HN3qR2H4jGY

Name: Anonymous 2012-01-27 21:21

>>2
no, so i can seem smart by telling woman what some ugly bullshit that looks complex means

Name: Anonymous 2012-01-28 2:50

read SICP

Name: Anonymous 2012-01-28 5:00

Learn from the Land of Lisp if that's your intended goal.
http://landoflisp.com/

Name: Anonymous 2012-01-28 6:31

>>2
I conjur the spirit of the ground beef patties with my spells

Name: Anonymous 2012-01-28 7:46

>>6

this website gave me autisms

Name: Anonymous 2012-01-28 11:18

Lisp bump.

Also if you're going to get all hard gay and schemey, try out learn scheme in fixnum days or possibly some of the racket guides.

Name: Anonymous 2012-01-28 11:19

And this is the new lisp thread to combat the jews.

Name: Anonymous 2012-01-28 11:22

>>10
3/10

Name: Anonymous 2012-01-28 11:48

Common Lisp or Scheme?
I've probably written adozen replies to the same question, so just use /prog/scape or google search.

Scheme: SICP, RnRS specs, Lambda papers, Lisp in Small Pieces (compilers/interpreters), The 90 Minute Scheme to C compiler, ...
Common Lisp: Practical Common Lisp(PCL), Paradigms of Artificial Intelligence Programming (PAIP), ANSI CL (rather incomplete introduction to CL by P. Graham), On Lisp (in-depth macro-programming), Hyperspec (HTML version of the ANSI standard), The Art of the Meta-object Protocol (AMOP), Common Lisp The Language 2 (commentary on a pre-(latest) ANSI CL standard, rather complete), Keene's Object-Oriented Programming in Common Lisp. I also hear some more recent books like Land of Lisp and Let over Lambda are popular, but I have no idea how complete their CL teachings are (I've yet to read Land of Lisp, and I've looked through an incomplete version of Let over Lambda, and while it seemed to present some interesting tricks, some of the techniques presented were quite hacky, so I wouldn't recommend it to a beginner that doesn't know what proper Lisp style looks like, lest he may learn some bad habbits as well, however the same is true about Graham's ANSI CL book...).

Name: Anonymous 2012-01-28 11:52

>>1
Disregard Land of Lisp. That book is crap. Pick up On Lisp, ANSI Common Lisp, and Paradigms of Artificial Intelligence Programming (PAIP). I assume you have downloaded a suitable Lisp (Scheme? LOL!), but if you have not, download SBCL+Slime+Emacs. If you don't like emacs, select something from here: http://www.cliki.net/development

If you want to just start hacking away, you can. Pick up a copy of the hyperspec and churn out some code. It'll probably be shitty, but you'll learn something at least.

Happy hacking.

Name: >>12 2012-01-28 12:06

>>13
I would also recommend >>1 also use Paredit+Redshank along with SLIME.

Name: Anonymous 2012-01-28 13:53


(car ;list/primitive)
(cdr ;list)
set "varname"
(setq varname ;;same thing as above
(defun functionname (nameofparameter))
use 'if using something a variable can be used for but you are using a list instead

Name: Anonymous 2012-01-28 14:36

>>13
I can't figure out how to set emacs with slime

Name: Anonymous 2012-01-28 14:40

>>16
Download lispbox. Unless you're on Linux, then it's buggy and you'll just have to do it yourself.

Name: Anonymous 2012-01-28 14:44

Lisp is fucking shit.

Name: Anonymous 2012-01-28 14:51

>>18
I agree PHP >>> Lisp

Name: Anonymous 2012-01-28 15:33

LITHP

Name: Anonymous 2012-01-28 16:18

>>19
Wrong, nothing is better than Lisp, yet Lisp is fucking shit.

Name: >>12 2012-01-28 17:28

>>16
Depends on the OS. Usually you first install Emacs, then you download SLIME from CVS (or get a cvs snapshot). After that you write your .emacs, if you haven't written one already, this means writing something like:

(setq slime-lisp-implementations
    '((sbcl ("sbcl") :coding-system utf-8-unix)   
      (ccl ("path/to/wx86cl"))
      (clisp ("path/to/clisp")
      ...)))

(setq slime-net-coding-system 'utf-8-unix)

(add-to-list 'load-path "path/to/slime/")
(add-to-list 'load-path "path/to/paredit/and/other/stuff/you/want/to/load")

(require 'slime)
(slime-setup '(slime-fancy slime-asdf slime-banner slime-presentation-streams slime-xref-browser slime-compiler-notes-tree slime-indentation slime-mrepl slime-sbcl-exts))


or merely (require 'slime-autoloads) and (slime-setup)

(defun slime-lisp-implementations-fun (name)
  (eval `(defun ,name ()
           (interactive)
           (apply 'slime-start
                  (list* :buffer (concat "*inferior-lisp-" 
                                         ,(symbol-name name) "*")
                         (slime-lookup-lisp-implementation
                          slime-lisp-implementations ',name))))))

(mapcar 'slime-lisp-implementations-fun (mapcar 'car slime-lisp-implementations))

(autoload 'paredit-mode "paredit" "Minor mode for pseudo-structurally editing Lisp code." t)
(add-hook 'lisp-mode-hook (lambda () (paredit-mode +1))) ; always default


I also have a lot of other stuff in there like various key-chords, various settings for all kinds of Emacs, SLIME, ...-related things, hooks, hyperspec path, indentation settings, color scheme and so on. Just read the documentation or source code for the things that you want to install or customize.

Here's some short tutorial for setting up SLIME, I used something like it when I first set Emacs+SLIME+ASDF up: http://paste.lisp.org/display/89718

Name: Anonymous 2012-01-28 21:14

>>22
Thanks.

Name: Anonymous 2012-01-29 15:37

so what are the most used/practical key words in lisp?

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