Archive for the 'Lisp' Category

cl-gnuplot Update

« 1 January 2007 | 11:18 | Computing, Lisp, Science and Math | 3 Comments »

A while back, I wrote a little library to do plotting with Gnuplot and Lisp. In the time since then, I have gotten away from using much Lisp in my work. The library (if you can call it that) is called “cl-gnuplot” and you can get it here. To my surprise, some [...]



OpenGL with Lisp

« 6 September 2005 | 16:21 | Computing, Lisp | No Comments »

I’ve been giving some thought to using OpenGL with Lisp. Looking around CLiki, here is what I’ve found, from here and elsewhere:

cl-sdl: Seems to be pretty well-supported on multiple platforms/implementations. Is available as asdf.
opengl-extensions: Extends cl-sdl and is avaliable as an asdf package.
glos: Allegedly works with CMUCL. Was a masters’ thesis, so currently pretty [...]



Trying Gentoo CMUCL Again

« 5 September 2005 | 18:36 | Computing, Linux, Lisp | No Comments »

I am trying to get CMUCL working via Gentoo Portage again. It looks like I can get version 19b with:

ACCEPT_KEYWORDS=”~x86″ emerge -va cmucl

I’m not sure if this will resolve the streams issue I had earlier or not.



Gnuplot/Lisp Page on CLiki

« 3 August 2005 | 12:02 | Computing, Lisp, Science and Math | No Comments »

In the continuing saga of trying to use gnuplot with Lisp, there is now a page on CLiki.



Recursive Lisp Macros

« 30 July 2005 | 14:21 | Computing, Lisp | No Comments »

Let’s imagine that I have a set of items represented by a list.

(defparameter items ‘(A B C D))

I would like to take some action with all possible lists of a particular length, composed of members of this set (with replacement). For example, with length five:

‘(A A A A A)
‘(A A A A B)
‘(A A A [...]



Lisp Macro Example, Continued

« 27 July 2005 | 10:20 | Computing, Lisp | No Comments »

A while back, I posted an example of how one might use macros to create a tool for iterating through a file, line by line. Someone posted it to paste.lisp.org, to be viewed and commented on in #lisp. So, there’s been a couple of comments that I thought I might go through here. [...]



More Gnuplotting Lispers

« 22 July 2005 | 10:48 | Computing, Lisp, Science and Math | 3 Comments »

It turns out that I’m not the only one with aspirations to be able to use gnuplot from lisp. A gentleman name Gary King has been thinking about the same thing. In his approach, he seems to generate a gnuplot file that you can then execute, while I open a pipe and send [...]



Lisp Job at CMU

« 22 July 2005 | 0:20 | Lisp | No Comments »

For you Lisp hackers out there, this came across my inbox today:

Job: Research Programmer, Lisp/AI, CMU
We have an immediate job opening for someone interested
in doing software development and maintenance in a research
setting. We strongly prefer candidates with experience in
Lisp, but will consider people with a good CS background
and little Lisp experience but with a [...]



Plotting in Lisp, Part III

« 18 July 2005 | 14:19 | Computing, Lisp, Science and Math | 2 Comments »

I’m settling down on an interface, here, and have decided that the best thing to do is to make it as much a Lisp-ified version of the standard gnuplot interface as possible. So here’s what I’m thinking now:

; make data series
(defparameter series1 (make-series-2d ‘((1 2) (2 3) (3 5) (4 7) (5 11) (6 [...]



Plotting in Lisp, Part II

« 17 July 2005 | 8:12 | Computing, Lisp, Science and Math | No Comments »

Ok, I’ve given this gnuplot thing a little more thought, and I’m pretty sure that the interface is going to need a little more complexity in order to wield any sort of power. Since I’d like to be able to eventually use a significant subset of gnuplot’s features, it will need to be extensible. [...]



Plotting in Lisp, Part I

« 15 July 2005 | 9:53 | Computing, Lisp, Science and Math | 1 Comment »

In my continuing saga to find the ideal solution for performing machine learning research, I have decided that Common Lisp is probably the way to go. It has the interactive-development approach of MATLAB, integrates extremely well with Emacs, runs with comparable performance to compiled C code, is elegant and powerful, has extremely easy storage [...]



SBCL Gentoo Installation Diary

« 19 June 2005 | 18:59 | Computing, Linux, Lisp | 3 Comments »

First, I tried SBCL on Gentoo, then I tried CMUCL from Portage, then installing it straight from the binaries. I’m now going back to scratch and I’m going to record what I’m doing here. Truthfully, my objective is to make my efforts here searchable for other people having the same problems. I [...]



CMUCL, Gentoo and simple-streams

« 17 June 2005 | 7:33 | Computing, Linux, Lisp | 1 Comment »

It appears that the Gentoo ebuild of cmucl and cmucl-source does not include simple-streams. I have no idea why this is, but I decided to unmerge them both and just install CMUCL straight off of the tarballs. That seems to be the only way to make sure I have a sane install. [...]



CLOCC with CMUCL on Gentoo

« 16 June 2005 | 9:59 | Computing, Linux, Lisp | No Comments »

Just in case anyone else has problems installing CLOCC on
Gentoo, here is what I ultimately had to do to get it working. My problem was with finding gray streams, as was this guy’s. Anyway, after installing cmucl and cmucl-source, and following most of the instructions for CLOCC, it turns out that you need [...]



Lisp Macro Example

« 12 June 2005 | 12:53 | Computing, Lisp | 5 Comments »

While it is clear that the macro syntax that Lisp offers is quite powerful, I find it hard to identify an easy-to-understand, concrete example of an improvement over other languages. I was writing a little code today and I realized that something I do all the time is open a text file and read [...]



Mouse-Based Focus in Emacs

« 4 June 2005 | 15:08 | Computing, Lisp | No Comments »

I do most of my work in Emacs: Latex, Matlab, various programming, etc. I have a big wide screen on my laptop (1920×1200) and I like to have one big Emacs window, with several buffers in split screens. I find it annoying that it has a click-to-focus policy for the split screens, in [...]



Paul Graham on Why You Should Use Lisp

« 16 May 2005 | 17:56 | Computing, Lisp | 3 Comments »

I thoroughly enjoyed reading this article, entitled “Beating the Averages” by Paul Graham. He argues that there is a conventional wisdom that all “high level” programming languages are equivalent and that it is incorrect. He makes his argument by presenting his own successful startup company as a case study and seems to feel [...]