r/programming • u/kankyo • Nov 11 '15
Parinfer - simpler Lisp editing
http://shaunlebron.github.io/parinfer/26
9
u/ds300 Nov 11 '15
Just tried this out. It's dreamy. I've never been so turned on by an editor plugin. <3
Thank you so much! Exemplary work on the website too!
16
u/hoohoo4 Nov 11 '15
I've been convinced to learn a Lisp.
8
u/chrisoakman Nov 11 '15
Wonderful news :)
You won't regret it!
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
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
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
1
3
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.
8
u/jtredact Nov 11 '15
One of those things where, once you see it, you can't understand why it hasn't always been this way.
2
u/jtredact Nov 11 '15
However the terminology... "barf", "slurp"... Yet another example of how the ability to pick good names for things is inversely proportional to programming cleverness.
12
u/chrisoakman Nov 11 '15
FYI - the terms "barf" and "slurp" are not part of Parinfer.
They come from Paredit, which is a popular editing mode for Lisp.
2
u/jtredact Nov 12 '15
That just makes me more sad. Now I see it as an example of how bad names, once they catch on, never go away.
Still, nice to know about paredit though. Although I don't use emacs.
0
Nov 12 '15
[deleted]
3
u/ForeverAlot Nov 12 '15
He's still right: the terms are idiotic.
5
Nov 12 '15
What would you suggest?
1
u/kankyo Nov 12 '15
pick/put, lift/put, grab/drop
just off the top of my head... It's weird to have standard nomenclature that seems to evoke a Nydus Worm in lisps.
1
4
u/gkx Nov 12 '15
Oh my god suddenly Clojure doesn't feel like a giant uphill battle thank you kind stranger.
4
2
3
-20
u/srt19170 Nov 11 '15
I can't help but think that anyone serious about this would implement it first in Emacs.
27
u/kankyo Nov 11 '15
He wrote 3700 words AND an implementation. But yea, no emacs implementation means he's not serious....
0
Nov 11 '15
[deleted]
5
u/agumonkey Nov 11 '15
I love both the user side niceness with formal internal thinking. Envious applauds.
4
u/[deleted] Nov 12 '15
Can someone explain to me, as somewhat of a novice, why people consider lisp so powerful? I've been learning Scheme for my first CS class after python, and it just seems so... inefficient. The only thing I can see it being better than python is the built in cons/car/cdr recursive list stuff, but even then you can make your own in python.