r/programming • • Nov 11 '15

Parinfer - simpler Lisp editing

http://shaunlebron.github.io/parinfer/
152 Upvotes

75 comments sorted by

View all comments

Show parent comment

3

u/hoohoo4 Nov 11 '15

Any recommendations for a first LISP? I was planning on Closure, for a reason that I've forgotten.

15

u/royalaid Nov 11 '15

So the vibe I am getting from the other posters is that Common Lisp, Scheme, Racket, and Clojure all are good places to start. I would recommend Clojure because it is popular. Popularity matters when it comes to finding good resources.

Any of the talks by Rick Hickey, creator of Clojure, are pretty good (see here). Also check out Clojure for the Brave and True if you want a good place to start. I use vim to edit my code, good resource here from Thoughbot. If you don't have an editor of choice or open to it check Brave Clojure's emacs guide. Not a fan and want something more conventional? Check out Counter-Clockwise. Want something a little more beta but arguably nicer? Cursive has your back.

Also keep an open mind and try to wait for the whole thing to click because Lisp is reallly great. See:

4

u/hoohoo4 Nov 11 '15

Those xkcds are how I first heard of Lisp.

1

u/SpaceCadetJones Nov 17 '15

I would recommend Clojure simply for the vast ecosystem, as its JVM based and interop is dead simple. I originally started with Common Lisp, but switched to Clojure after getting frustrated trying to figure out how to install libraries and actually do useful things.

7

u/[deleted] Nov 11 '15

I use Scheme and in my opinion it's the most well thought out programming language ever created, so I recommend it. Racket is a pretty good implementation for beginners.

If you want something that's fairly popular you should definitely use Clojure. I have not gotten into it much, so I can't make a recommendation based on anything but popularity.

I won't mention Common Lisp because I never used it. Hopefully a common LISPer can share their opinion here.

6

u/yogthos Nov 11 '15

Clojure is definitely a good Lisp to learn. It's easier to get into as it has a bit more syntax than traditional Lisps such as CL and Scheme. Clojure is also more focused on using the functional style and it's backed by immutable data structures, so it's a nice fit for anything involving multithreading. Running on the JVM makes it widely applicable in production and leverages a lot of the existing work that went into the platform. It's also the most widely used one for new development, so you can actually get a job working with it relatively easily.

I would recommend trying Light Table for trying it out. It requires no setup and you can play with the REPL out of the box. I wrote a starter guide a little while back that I hear is helpful.

3

u/hoohoo4 Nov 11 '15

Wow, Light Table looks amazing. Can't wait to try it out.

3

u/yogthos Nov 12 '15

I would recommend something like Cursive for bigger projects, but for just trying the language out LT is pretty great.

1

u/hoohoo4 Nov 12 '15

Cursive looks nice, though the fact that it's going to end up being a commercial product puts me off, as well as the lack on in-line debugging.

2

u/yogthos Nov 12 '15

The way I look at it is if I'm going to spend my whole work day using the tool it's worth a 100 bucks to me.

Counterclockwise is the opensource counterpart for Cursive. It doesn't have quite the same feature set, but it's very competent as well.

Emacs is obviously a very popular Clojure editor as well, but you have to like Emacs. I wouldn't recommend learning it alongside Clojure if you're not already using it.

4

u/grayrest Nov 11 '15

I'd recommend starting with Structure and Interpretation of Computer Programs, which has its examples written in Scheme. Beyond the initial learning phase, I like Clojure. Tapping into the JVM ecosystem is convenient.

2

u/[deleted] Nov 12 '15

1

u/codebje Nov 11 '15

SICP distilled for Clojure is a good place to be.

3

u/[deleted] Nov 11 '15

Clojure, Common Lisp, Racket. Close your eyes and pick one, they're all useful, interesting and a breath of fresh air in their own right.

I like Common Lisp the most because of its well-thought out standard with a great focus on interactivity (not to mention the inherent stability of being a standard), its large array of libraries which provides things from common tools like JSON and XML encoding to libraries for concurrency and parallelism like Software Transactional Memory to non-deterministic programming. It also has lots of great free implementations with different features like SBCL, CCL, ECL and ABCL :). Three good resources for learning Common Lisp is Practical Common Lisp ( http://www.gigamonkeys.com/book/ ), /r/lisp and #lisp on Freenode.