Search found 17 matches

by August
Sun Nov 27, 2011 10:57 am
Forum: Common Lisp
Topic: Don't understand (when = (...))
Replies: 2
Views: 1919

Re: Don't understand (when = (...))

It was definitely a DO form and I tested it to make sure it worked as expected but, you're right, I must have missed a pair of parenthesis somehow when doing the expansion :oops:

Thanks much.
by August
Sat Nov 26, 2011 7:26 pm
Forum: Common Lisp
Topic: Don't understand (when = (...))
Replies: 2
Views: 1919

Don't understand (when = (...))

I was playing around with DO in Lispworks and did a macro expansion of a simple example. (BLOCK NIL (LET ((I 0)) (DECLARE (IGNORABLE I)) (DECLARE) (TAGBODY #:G727 (WHEN = (RETURN-FROM NIL (PROGN I 10))) (PRINT "hello") (SETQ I (1+ I)) (GO #:G727)))) This all makes sense to me except for the (when = ...
by August
Wed Jun 01, 2011 10:33 am
Forum: Common Lisp
Topic: Question about lambda
Replies: 5
Views: 1905

Re: Question about lambda

OK, thanks much for the help!
by August
Wed Jun 01, 2011 9:57 am
Forum: Common Lisp
Topic: Question about lambda
Replies: 5
Views: 1905

Re: Question about lambda

Thanks Ramarren. I guess I need to read through the hyperspec more thoroughly :-)

Style-wise, do people generally use the #' when using lambda as a function argument and when returning a lambda from a function?
by August
Tue May 31, 2011 9:23 pm
Forum: Common Lisp
Topic: Question about lambda
Replies: 5
Views: 1905

Question about lambda

On my Lisp journey, there is something about lambda that has been bugging me. ;; This works, as expected. ((lambda (n) (* n n)) 3) ;; This doesn't work, as expected; (#'(lambda (n) (* n n)) 3) ;; This works, as expected. (mapcar #'(lambda (n) (* n n)) '(1 2 3)) ;; Why does this work also? (mapcar (l...
by August
Tue May 18, 2010 1:37 pm
Forum: Common Lisp
Topic: Only in Lisp
Replies: 43
Views: 10165

Re: Only in Lisp

I'd highly appreciate real, short examples in this thread. I hardly know enough Lisp to make up my own, but I can guess what example code means. Can you write out an example, which cannot easily be replicated with Python? I'm learning Lisp at the moment and use Python fairly regularly but am certai...
by August
Tue Mar 10, 2009 9:14 pm
Forum: The Lounge
Topic: Qt and Lisp...a great opportunity?
Replies: 18
Views: 25790

Re: Qt and Lisp...a great opportunity?

You can have type declarations and primitive unchecked integer/floating point arithmetic in Clojure if you want it. http://clojure.org/java_interop#toc36 Clojure can be just about as fast as Java. Not sure if that's fast enough but it might be worth a try. Thanks much for the info! I will definitel...
by August
Sat Mar 07, 2009 2:59 pm
Forum: The Lounge
Topic: Qt and Lisp...a great opportunity?
Replies: 18
Views: 25790

Re: Qt and Lisp...a great opportunity?

Qt moc seems to actually be a great help in the task of writing the binding. Because it allows to automatically gather information about classes and it provides general method of invoking methods and properties of objects. I guess the main reason for absence of a complete Qt binding (and many other...
by August
Fri Mar 06, 2009 11:32 pm
Forum: The Lounge
Topic: Qt and Lisp...a great opportunity?
Replies: 18
Views: 25790

Re: Qt and Lisp...a great opportunity?

There's no doubt that it would be a significant project for a number of reasons (C++, the Qt meta object compiler, etc.) I have seen the guy doing some work on a Qt binding already and he looks a bit lonely. From the perspective of a company creating commercial software, the look of Gtk is a bit of ...
by August
Thu Mar 05, 2009 10:37 pm
Forum: The Lounge
Topic: Qt and Lisp...a great opportunity?
Replies: 18
Views: 25790

Qt and Lisp...a great opportunity?

For folks that don't know, Nokia has decided to change to an LGPL license starting with Qt 4.5 in order to broaden usage of the toolkit. It's great news for those of us writing, or wanting to write, commercial applications using it. My company is currently using Qt and and we like it a lot...and we ...