Search found 6 matches

by calibraxis
Mon Jul 19, 2010 9:36 pm
Forum: The Lounge
Topic: What's wrong with this code?
Replies: 3
Views: 7716

Re: What's wrong with this code?

This section of Practical Common Lisp should help you understand loop better. It is a funky macro, warping some of the intuitive rules of Lisp. When it sees keywords like collect and while , it takes special action. I think sbcl is looking at ... ((collect (subseq string n pos)) (setf n (+ pos l)))...
by calibraxis
Sat Jul 17, 2010 5:46 pm
Forum: Common Lisp
Topic: Any one of you use lisp in his work?
Replies: 6
Views: 5628

Re: Any one of you use lisp in his work?

Traffic consulting sounds like fun. Is it a little like a game? I've worked with Common Lisp with other CL programmers. But not recently, and am not particularly interested in programming with it. If you need help with a commercial endeavor, it might be worthwhile to contact Lispworks or Allegro bec...
by calibraxis
Sat Jul 17, 2010 5:13 pm
Forum: Common Lisp
Topic: suggestions for Lisp syntax to python translator
Replies: 8
Views: 6420

Re: suggestions for Lisp syntax to python translator

You should ask the clpython-devel list too. Willem Broekema likely has thought about this and could give nuanced advice.
by calibraxis
Fri Jul 16, 2010 4:25 pm
Forum: The Lounge
Topic: What's wrong with this code?
Replies: 3
Views: 7716

Re: What's wrong with this code?

First, let's format the code conventionally, so everyone can read it more easily. (defun string-split (split-pattern string) (let ((n 0) (l (length split-pattern))) (loop (setf pos (search split-pattern string :start2 n)) (if pos ((collect (subseq string n pos)) (setf n (+ pos l)))) (collect (subseq...
by calibraxis
Mon Jul 12, 2010 5:57 pm
Forum: Common Lisp
Topic: Asking what is your opinion about clos.
Replies: 3
Views: 3859

Re: Asking what is your opinion about clos.

I've used Lisp commercially. It just seemed this question is very broad and needed a foundational answer. It's simple to be fast enough for real applications. I hear Ruby is slow, but it's certainly used in real applications. CLOS was at least designed with performance in mind. If you profile your c...
by calibraxis
Mon Jul 05, 2010 12:41 am
Forum: Emacs Lisp
Topic: comparing two files
Replies: 2
Views: 8232

Re: comparing two files

Also check out ediff-files and relatives like ediff-buffers. They're easy to use, and ediff-revision is good with version control.