Search found 96 matches

by dmitry_vk
Thu Mar 26, 2009 12:13 pm
Forum: Common Lisp
Topic: Better then loop/iterate?
Replies: 41
Views: 60431

Re: Better then loop/iterate?

but writing such transformations by hand is tedious. This is lisp! ... This needs to incorporate more &key arguments, and more killing of intermediate lists, from other sources, but it can work. I don't think define-compiler-macro is the most powerful optimalization technique that can exist in ...
by dmitry_vk
Thu Mar 26, 2009 10:49 am
Forum: Common Lisp
Topic: Better then loop/iterate?
Replies: 41
Views: 60431

Re: Better then loop/iterate?

Reducing in place? Ok: (reduce (lambda (x y) (+ x (* 2 y))) '(1 2 3 4) :initial-element 0) what about this, then: (let ((list '(1 2 3 4))) (reduce '+ (map-into list (lambda (x) (* x 2)) list))) ? Your function unnecessarily modifies the list. What I meant is more like this: (let ((res 0) (map nil (...
by dmitry_vk
Thu Mar 26, 2009 9:36 am
Forum: Common Lisp
Topic: Better then loop/iterate?
Replies: 41
Views: 60431

Re: Better then loop/iterate?

One problem with higher-order functions is that they are inefficient, requiring multiple calls on their argument function. While the the built-ins, like map and mapcar, can be open-coded, that cannot be so easily done for user-written functions. Also, using higher-order functions often results in t...
by dmitry_vk
Sat Mar 21, 2009 5:55 am
Forum: Common Lisp
Topic: Auto documentation for lisp?(output html, prefered)
Replies: 15
Views: 21686

Re: Auto documentation for lisp?(output html, prefered)

It might be better to 'ship' libraries with all the dependencies packaged in then making it harder to use by having to chase broken dependencies down, imo. Of course, you have to check once in a while whether you can update the libraries you use to the newest versions of them.. Maybe implementation...
by dmitry_vk
Wed Mar 11, 2009 10:59 pm
Forum: The Lounge
Topic: Qt and Lisp...a great opportunity?
Replies: 18
Views: 43825

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

The other bad thing about QtJambi is that there are issues with memory leaks due to the way Qt disposes of objects, and the separate garbage collector in the JVM not playing nicely together. That's bad. For Gtk, memory management is better — it is easy to use it in garbage-collected language and ...
by dmitry_vk
Wed Mar 11, 2009 9:59 am
Forum: Common Lisp
Topic: help with the heap
Replies: 6
Views: 9729

Re: help with the heap

Uhm... I do not know. I think that with SBCL the GSL callings are made without copying the memory block, so I think It must be just the Lisp's one. But I am not sure. The actual error I get is: * Heap exhausted during allocation: 76496896 bytes available, 100446392 requested. With no further refere...
by dmitry_vk
Wed Mar 11, 2009 6:43 am
Forum: Common Lisp
Topic: help with the heap
Replies: 6
Views: 9729

Re: help with the heap

Is it Lisp's heap of C's heap being exhausted?
by dmitry_vk
Sat Mar 07, 2009 12:20 am
Forum: The Lounge
Topic: Qt and Lisp...a great opportunity?
Replies: 18
Views: 43825

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 dmitry_vk
Fri Mar 06, 2009 10:27 pm
Forum: The Lounge
Topic: Qt and Lisp...a great opportunity?
Replies: 18
Views: 43825

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

There were several efforts to produce Qt binding (e.g., http://uint32t.blogspot.com/2008/07/qtlisp-looking-for-feedback.html). But binding to Qt is hard, because it uses C++ (not evene plain C++, but modified C++). There seems to be some introspection mechanism in Qt (QMetaObject), it might be possi...
by dmitry_vk
Mon Feb 16, 2009 2:19 am
Forum: Common Lisp
Topic: Simplified CL
Replies: 6
Views: 14418

Re: Simplified CL

A small pet idea of mine for lowering the entry barrier to CL: Select a certain subset of the CL standard, throw in some utility libraries (alexandria, cl-ppcre, something for date manipulation come to mind), document it all in a structured manner and offer a downloadable core image. What do you th...