4 ms·
Download Lisp to my brain.
If I were a character in the movie The Matrix, I could ask an operator to download a program to my brain so I could fly a helicopter or something. I would like to learn Lisp and, well, download it to my brain as rapidly as possible so I can start working with it to write a roguelike. I am looking for good online resources, preferably including a sand-box or similar. I learned to code my websites by having a template (gifted to me by a friend) and playing with it and I still learn new things when I want/need to do something new on my sites. I know a little (X)HTML and CSS already and had intro to VisualBasic about 7 years (which I don't particularly remember, of course).
Yes, I know I can google this. But since I know nothing, I can't judge the quality of the sources. So I am hoping folks here will indulge me.
Thanks.
PS: Am I supposed to do an intro? I just joined today and this is my first post.
- palsecam 17y agoFor an online sandbox, you can use the Lord of the REPLs from Google: http://lotrepls.appspot.com/ http://lotrepls.appspot.com/. You can evaluate expressions (= program) in 2 Lisp dialects, Scheme and Clojure, directly in your browser! (You can also use other non-Lisp languages, notably Ruby).
- Mz 17y agoThank you everyone. This thread is the best internet discussion experience I have had in a long time. :-)
- mahmud 17y agoAssuming this isn't a Joke: Lisp IDE for Windows (the easiest and most basic; use it just for your first 30 days, after that move to SLIME.) http://www.daansystems.com/lispide/ http://www.daansystems.com/lispide/ Implementations (both work with LispIDE above) http://clisp.cons.org/ http://clisp.cons.org/ (byte compiled, fast) http://sbcl.org http://sbcl.org (natively compiled, multithreaded, industrial strenth) Books http://www.cs.cmu.edu/~dst/LispBook/ http://www.cs.cmu.edu/~dst/LispBook/ (easiest intro) More here http://lisp.org/alu/res-lisp-education http://lisp.org/alu/res-lisp-education
- Mz 17y agoNo, this isn't a joke. Thank you for replying.
- cesare 17y agoLisp nowadays comes in two main flavours (dialects, technically): scheme and Common Lisp. I prefer the former and my favorite implementation at the moment is plt-scheme (http://www.plt-scheme.org/ http://www.plt-scheme.org/). From the website above you can download the distribution of the language for your platform. It also has a very nice IDE which has been designed primarily for learning. Here's a book to get you started (it is fully available online): http://www.htdp.org/ http://www.htdp.org/ Happy hacking!
- Mz 17y agoThanks! Any reasons why you prefer scheme to Common?
- palsecam 17y agoFrom http://paulgraham.com/lispfaq1.html http://paulgraham.com/lispfaq1.html: --- Which should I learn, Common Lisp or Scheme? What's the difference? Common Lisp is powerful but ugly. Scheme is small and clean, but the standard only defines the inner core of the language. If I had to deliver an application I'd probably use Common Lisp; if I were teaching a course I might use Scheme (but with Common Lisp macros). --- See also (more detailled): http://community.schemewiki.org/?scheme-vs-common-lisp http://community.schemewiki.org/?scheme-vs-common-lisp
- cesare 17y agoFor me it's mostly an aesthetic thing. It's difficult to explain. I just find simple things more elegant than and Scheme is terser and all the implementations (that I know of) are lighter than CL. It' s also very easy to embed in C code. I'm by no means an expert, though.
- palsecam 17y agoIn addition to "How to Design Programs", there is also the excellent "Structure and Interpretation of computer programs", also fully available online (and also from MIT): http://mitpress.mit.edu/sicp/ http://mitpress.mit.edu/sicp/ SICP is a very very good computer science book, for beginners as for advanced programmers. It uses Scheme, but it is much more than a Scheme book. (I haven't read HTOP, so I can't say, but it also has a very good reputation. +1).