Search found 6 matches

by xach
Wed Oct 06, 2010 6:57 am
Forum: Common Lisp
Topic: Quicklisp beta and survey
Replies: 0
Views: 4307

Quicklisp beta and survey

I've been working on Quicklisp , a project to make it really easy to install and use CL libraries. On Saturday, October 9th, I'm going to release what I have as a public beta for anyone to try. As of today, the discussion group is open for any kind of Quicklisp discussion. I'd like to find out more ...
by xach
Mon Jun 01, 2009 5:32 am
Forum: Common Lisp
Topic: Got any good examples of CL in action?
Replies: 5
Views: 8119

Re: Got any good examples of CL in action?

I've always liked cl-ppcre as an example. It covers many different features of Common Lisp, it does an interesting job, it's well-commented and well-documented, it's challenging but not impossible to understand, and it's very fast.
by xach
Fri May 29, 2009 5:34 am
Forum: Common Lisp
Topic: Combining digits to make a string
Replies: 18
Views: 21673

Re: Combining digits to make a string

Here are a few things that sprang to mind. (defun miningold.alphabet (&key (length 3) (alphabet "0123")) (let ((output (make-string length))) (dotimes (i length output) (setf (aref output i) (aref alphabet (random (length alphabet))))))) (defun miningold.numbers (&key (length 3) (l...
by xach
Fri Dec 05, 2008 11:29 am
Forum: Common Lisp
Topic: Choose numbers at random
Replies: 14
Views: 24471

Re: Choose numbers at random

There isn't anything built-in.

For the former, you could do something like

Code: Select all

(+ low (random (1+ (- high low))))
For the latter, one option is

Code: Select all

(elt list (random (length list)))
by xach
Tue Nov 25, 2008 6:58 am
Forum: Common Lisp
Topic: Using static typing in CL
Replies: 5
Views: 16645

Re: Using static typing in CL

The assertions inform the type inference, and you will usually get compile-time warnings for code that violates type declarations.
by xach
Tue Nov 11, 2008 7:50 am
Forum: Common Lisp
Topic: Is there any Library for Feed-Parsing
Replies: 6
Views: 9917

Re: Is there any Library for Feed-Parsing

For Planet Lisp, I wrote a short Python program that loads feeds with the Universal Feed Parser and writes out files of sexps representing their contents. Then a Lisp program puts the HTML pages together.