3 ms·
learn lisp, instead of reinventing the wheel badly When someone says something like this, my typical response is "That's true, I should dig more into Lisp. Oh,
by erikpukinskis 16y ago
learn lisp, instead of reinventing the wheel badly
When someone says something like this, my typical response is "That's true, I should dig more into Lisp. Oh, look! A bug in my software I need to fix. * forgets Lisp entirely *"
If you were to say something like "the difference between Lispy and Lisp is that in Lisp you can do X", then my likelihood of actually going out and learning about X, pulling out the Lisp interpreter and playing around goes up about 1000x.
- pavelludiq 16y agoYes, finding the time and motivation to educate ourselves is sometimes hard, especially when we have to deal with other crap, I've been meaning to look into smalltalk for ages now, myself. If you want an example of something cool you can do with lisp, in principal the common lisp object system is built with macros on top of the non-object oriented lisp. Could i use Lispy to add a CLOS style object system on top of ruby? What about a prototype based one? This isn't a rhetorical question, I'm actually curious if ruby can do these kinds of things.
- erikpukinskis 16y agoCould i use Lispy to add a CLOS style object system on top of ruby What features of CLOS are you interested in? I just whipped up some CLOS-style parameter-matching method invocation in Ruby: https://gist.github.com/926156 https://gist.github.com/926156 I'm not sure how you'd do that with Lispy. But it's definitely possible in Ruby. If you Google "prototype-based object model in Ruby" you get at least one solution: http://www.google.com/search?hl=en&q=prototype-based+object+in+ruby#sclient=psy&hl=en&safe=off&source=hp&q=prototype-based+object+model+in+ruby&aq=f&aqi=&aql=f&oq=&pbx=1&bav=on.2,or.r_gc.r_pw.&fp=3826ddc6bde629ca http://www.google.com/search?hl=en&q=prototype-based+obj...
- spacemanaki 16y agoI was so impressed by pavelludiq's comment (I had the impulse to post a comment citing Greenspun but refrained, their comment was so much better than what I would have posted) and I tried to come up with a tiny example of a defmacro which would show where Lispy is reinventing the wheel, but really, why bother when much better writers and teachers have already. I think Peter Seibel's Practical Common Lisp is a great intro and this chapter is so early in the book it nearly stands on its own: http://www.gigamonkeys.com/book/practical-a-simple-database.html http://www.gigamonkeys.com/book/practical-a-simple-database.... There's a couple of simple macros in there and it's not that long a read. Then there's Casting SPELs in Lisp which is another great concise intro to macros that shows them off: http://www.lisperati.com/casting.html http://www.lisperati.com/casting.html I don't think I could do better than that. Both of those are short enough that you can read them in an evening. If you're not hooked by then, at least you haven't spent much time on it.
- erikpukinskis 16y agoThanks!