Category Archives: Programming

Lexical Binding in Emacs Video

If you’re still confused about the difference between dynamic and lexical scoping in Emacs, Nic Ferrier has an excellent video that explains it with a couple of simple examples. You may find it useful to review the meaning of closure … Continue reading

Posted in Programming | Tagged | Leave a comment

Complexity Cheat Sheet

Eric Rowell and Nick Dizazzo have posted a great Big-O cheat sheet. The sheet gives time and space complexity for several popular algorithms such as searching, sorting, and manipulation of data structures and graphs. One feature that I like is … Continue reading

Posted in Programming | Tagged | Leave a comment

A Summary of New Libraries in April’s Quicklisp

Ben Hyde has produced a summary of the new libraries in April’s Quicklisp distribution. Each item has a link to the library’s README so it’s easy to get a more detailed look at libraries that interest you. A very nice … Continue reading

Posted in Programming | Tagged , | Leave a comment

SBCL 1.1.7 Released

The folks at Steel Banks Common Lisp have released SBCL 1.1.7. As usual the build, test, and installation went without mishap. This month’s release is mainly bug fixes but also includes an enhancement to TRACE so that PRINT-ALL handles multiple-valued … Continue reading

Posted in Programming | Tagged , | Leave a comment

Vi(m) and Lisp

Those of you who have been around for a while know that I was a Vi(m) user for a long time. I switched to Emacs when I started doing most of my programming in Lisp and Scheme. My main reason … Continue reading

Posted in Programming | Tagged , | Leave a comment

disaster.el

This is great! It’s disaster.el, a really useful tool if you write in C/C++ and can grok assembly language. What is does is compile and disassemble the C/C++ code in the current buffer. In will even jump to the code … Continue reading

Posted in Programming | Tagged | Leave a comment

A O(n) Solution to the Last Elisp Challenge

As I mentioned in the post, my An Elisp Challenge post was suggested by this Programming Praxis post. The next Programming Praxis post was a followup that discussed Booth’s Algorithm, which calculates how many left rotations a string must undergo … Continue reading

Posted in Programming | Tagged , | Leave a comment

Tags with Emacs

One of the oldest and most general code navigation tools is tags. The idea is that you generate a tags database for your code base and then use it to tell your editor where to find the definition of a … Continue reading

Posted in Programming | Tagged | Leave a comment

My Solution to the Elisp Challenge

Here’s my solution to the recent Elisp challenge. It’s easy to be seduced by the notion of rotating one sequence to see if it’s equal to the other. That would work but the rotation is pretty expensive and the solution … Continue reading

Posted in Programming | Tagged , | Leave a comment

An Elisp Challenge

Here’s a simple Elisp challenge suggested by a problem from by ProgrammingPraxis. We call one string a cycle of another if one string can be transformed into the other by a rotation of the characters. Note that this means They … Continue reading

Posted in Programming | Tagged , | 7 Comments