LispCast: Writing a simple Reddit clone in Common Lisp

October 16th, 2007

Hey everyone! This is the first episode of LispCast. I had already posted this to Google Video, but unfortunately with the compression it applies, the text was unreadable. But it’s better now! I’ve also added sound, so it should also be more understandable.

Watch Episode 1 here. Download source code.

This episode: I create the beginnings of a Reddit clone using Hunchentoot.

Next episode: I create Acceptance Tests of the code from Episode 1.

Here is the software I use in the video:

Inspired by Screencast by Sven Van Caekenberghe

Popularity: 7% [?]


18 Responses to “LispCast: Writing a simple Reddit clone in Common Lisp”

  1. Wilkes Joiner on October 29, 2007 12:07 pm

    These are great!

    This may be to implementation specific, but one thing that would be great to add is something on setting up the environment, where to put the libraries and such.

  2. Gotttzsche on October 29, 2007 4:44 pm

    Yeah, that would be interesting.

    Why do you use XEmacs and not GNU Emacs?

  3. admin on October 29, 2007 11:35 pm

    Historical reasons — it was installed at my university. So I basically grew up with XEmacs.

  4. seth on October 30, 2007 3:47 pm

    I just recently picked up lisp (and as a result Emacs). This video is great and quite helpful.

    I also would like to see something about how to install the various libraries. That part kind of baffles me.
    Something that shows what keys you are using would be nice too. I thought I saw an emacs screencast somewhere that had that but now I can’t find it.

    Thanks again.

  5. greboide on October 31, 2007 7:53 am

    the other cast for emacs that had captured keys that i saw was the css restructuring one i think, can be found here:

    http://derekslager.com/blog/posts/2007/02/screencast-formatting-a-css-file-with-emacs.ashx

    and the script he used was this one:

    http://foldr.org/~michaelw/emacs/mwe-log-commands.el

    i hadnt watched your videos yet but looking forward to do it.

  6. seth on October 31, 2007 3:02 pm

    @greboide: Yeah, that’s the one. Thanks!

  7. michaelw on October 31, 2007 3:05 pm

    @Seth:

    Maybe this screencast? http://www.foldr.org/~michaelw/emacs/redshank/

  8. seth on November 1, 2007 8:08 pm

    @michaelw: That’s a good one too. Thanks.

    The one I was talking about in my previous post though was the one that greboide pointed out.

  9. Steve on November 2, 2007 7:41 am

    I learnt a lot in those 24 minutes!

    Great work!

  10. reddit on December 11, 2007 11:52 pm

    […] LispCast: Writing a simple Reddit clone in Common Lisp […]

  11. Victor on January 5, 2008 4:04 pm

    Very good introduction - thanks for you effort!

    I understand that you may want to make things really simple for the beginners, but why don’t avoid copy-pasting as much as possible? E.g. you could define a function to register a new handler, make incpoint / decpoint the same handler (by adding second parameter), make a function to show sorted links with :key argument, etc.

    BTW, the standard (parse-integer str :junk-allowed t) works the same as s-utils:parse-integer-safely, and next-id is better defined as a closure:

    (let ((last-id 0))
    (defun next-id () (incf last-id)))

  12. Victor on January 5, 2008 8:19 pm

    Aha - I haven’t noticed that there are more lispcasts, and refactoring is among them. So please ignore my previous comment :).

  13. G on January 6, 2008 8:12 pm

    Nice! keep it up!

  14. Scott on January 7, 2008 5:46 pm

    I have a quick question. Can you substitute CLISP in for SBCL? Are they just libraries or basis for running common lisp?

  15. Sverre Johansen on January 25, 2008 1:50 pm

    Scott: Hunchentoot requires a common lisp implementation that supports threads, which CLISP does not.

  16. Boyd Brown on February 10, 2008 12:00 pm

    I downloaded and played it with both Windows Media Player and Nero ShowTime on Windows XP but got no sound. Can you help?

    Thanks

  17. Upward Index on April 1, 2008 3:25 pm

    Very nice video, looking forward for more.

  18. Lars Rune Nøstdal on April 2, 2008 1:26 pm

    Boyd Brown:
    Since you’re using Windows you’re beyond help I’m afraid .. but a quick fix might be trying VLC: http://www.videolan.org/vlc/

Trackback URI | Comments RSS

Leave a Reply

Name (required)

Email (required)

Website

Speak your mind