Search found 12 matches

by nklein
Wed Aug 27, 2008 2:41 pm
Forum: Common Lisp
Topic: Macro expansion, packages, and LET
Replies: 9
Views: 18993

Re: Macro expansion, packages, and LET

I'd also recommend looking more closely at the Vecto package that you're using/emulating/etc. In particulary, the WITH-CANVAS macro sets the graphic state in a dynamic variable. Then, all of the functions called within the body of the WITH-CANVAS use the *GRAPHIC-STATE*. In your case, the WITH-PIE-C...
by nklein
Fri Jul 25, 2008 2:35 pm
Forum: Common Lisp
Topic: Programming Style & (eval ...)
Replies: 17
Views: 40300

Re: Programming Style & (eval ...)

(defun all (f l) (let ((r (mapcar f l))) (eval `(and ,@r)))) I haven't read this whole thread, so I might be repeating something already mentioned. But, the every function has the advantage that it doesn't call the function f more times than it has to. To see the difference, think of how often #'ev...
by nklein
Tue Jul 15, 2008 9:24 am
Forum: The Lounge
Topic: Thinking Functional
Replies: 6
Views: 15352

Re: Thinking Functional

Thank you all for the information. I suppose I did have my head on straight, I just
wasn't seeing a way around the log_n rebuilds of a tree or without a top-level setf
somewhere (unless I use the Erlang-ish tail-recursion trick).
by nklein
Thu Jul 10, 2008 3:27 pm
Forum: Common Lisp
Topic: C FILE* -> Lisp stream?
Replies: 10
Views: 35007

Re: C FILE* -> Lisp stream?

I think an implementation may be allowed to fill its buffer during the open call if you open the file for reading. I would bet most don't bother. But, I doubt there is a reason they can't.
by nklein
Thu Jul 10, 2008 3:22 pm
Forum: The Lounge
Topic: Thinking Functional
Replies: 6
Views: 15352

Thinking Functional

I can really see and feel the benefits of pure functional programming. I don't yet have my head around it enough to use it everywhere I want to though. Maybe I am off track early somewhere. As a toy example, pretend I am implementing a chat server. Somewhere, there will be a list of who is currently...
by nklein
Thu Jul 10, 2008 11:40 am
Forum: Common Lisp
Topic: Anyone using Lisp for web in production?
Replies: 19
Views: 47146

Re: Anyone using Lisp for web in production?

And, Mike? You're in a situation where you have a full server box or a big slice of one? or is it being served through some webhosting company?

Thanks,
Patrick
by nklein
Thu Jul 10, 2008 11:33 am
Forum: Common Lisp
Topic: C FILE* -> Lisp stream?
Replies: 10
Views: 35007

Re: C FILE* -> Lisp stream?

The FILE* buffers in user-space (your program). Any buffering that happens with the file descriptor (from fileno()) is in kernel-space (your operating system). You will run into trouble if your C code writes to the FILE* before you Lisp code is invoked without calling fflush() because there will be ...
by nklein
Thu Jul 10, 2008 11:25 am
Forum: Books and Resources
Topic: What's your favorite book about Lisp?
Replies: 34
Views: 1992640

Re: What's your favorite book about Lisp?

I voted for ACL over PCL (although i like them both) for its style, exercises, and appendix B and D. Agreed about ACL over PCL (as long as I'm remembering right and Appendix B is the Lisp in Lisp section). Sadly, neither book address the pile of soup that is (loop ...). Each have a few examples. I'...
by nklein
Tue Jul 01, 2008 8:36 am
Forum: Common Lisp
Topic: GUI lib recommendations
Replies: 6
Views: 20558

Re: GUI lib recommendations

There are a ton listed here: http://www.cliki.net/Graphics%20Toolkit
I haven't tried any yet though so I can't really recommend. Also, I don't think http://common-lisp.net/project/cello is on the Cliki page, and it seems worth a peek.
by nklein
Mon Jun 30, 2008 3:19 pm
Forum: User Groups and Conferences
Topic: Looking for users in the Twin Cities area
Replies: 1
Views: 7773

Re: Looking for users in the Twin Cities area

Agreed. I am in Minneapolis. I would be interested in occasional get-togethers.