Search found 25 matches

by makia
Sat Jan 03, 2009 7:02 am
Forum: Common Lisp
Topic: Sorting big arrays
Replies: 2
Views: 4661

Sorting big arrays

Hi, I was playing with some code where bottleneck was numeric sorting array with milions of fixnums and playing with both clozure cl and sbcl noticed that sorting is much faster in clozure .. 4-5x faster Then just for fun i tested same thing in java (numeric sorting of 10mil integers with random val...
by makia
Sat Dec 27, 2008 2:02 pm
Forum: Common Lisp
Topic: Timers
Replies: 7
Views: 6941

Re: Timers

you should look ABCL or ECL if your target is windows and you dont want to pay lispworks or alegro cl
by makia
Sat Dec 27, 2008 9:59 am
Forum: Common Lisp
Topic: Timers
Replies: 7
Views: 6941

Re: Timers

by makia
Sat Dec 27, 2008 8:36 am
Forum: Common Lisp
Topic: Deleting a sequence from a list
Replies: 3
Views: 3616

Re: Deleting a sequence from a list

CL-USER> (set-difference '(2 x + 1) '(+ 1))

(X 2)
CL-USER> (remove-if (lambda (a) (member a '(+ 1))) '(2 x + 1))
(2 X)
CL-USER>

Notice that in set-differece case order is not preserved.
by makia
Tue Sep 16, 2008 11:40 am
Forum: Common Lisp
Topic: Poll: Which Lisp implementations do you use?
Replies: 32
Views: 52806

Re: Poll: Which Lisp implementations do you use?

both CCL and SBCL on linux/osx CCL is better if you are woring about SBCL memory usage, CCL is also fast implementation (meaby not like SBCL) , also threading in OSX is more mature in CCL then on SBCL. SBCL on x86 linux (there is only 64bit linux CCL port) Anyway, i'm using both implementation, ofte...
by makia
Sat Aug 30, 2008 9:51 am
Forum: Common Lisp
Topic: Pipe program output to stream
Replies: 6
Views: 8831

Re: Pipe program output to stream

hmm, looks like process-output slot can be read only when process finishes ... so it does not do what i want
by makia
Sat Aug 30, 2008 4:04 am
Forum: Common Lisp
Topic: Pipe program output to stream
Replies: 6
Views: 8831

Re: Pipe program output to stream

Yes, something like this works
Thanks

(let ((pty (process-pty (run-program "external-program" '("arg1") :search t :wait nil :pty t))))
(loop for line = (read-line pty nil nil)
while line do
(print line)))
by makia
Thu Aug 28, 2008 12:05 pm
Forum: Common Lisp
Topic: Pipe program output to stream
Replies: 6
Views: 8831

Pipe program output to stream

Something like perl -> open STREAM, "program |"
How can i do something like this in common lisp
btw. i can collect output in string and work on it but after program finishes, i need to read output while program is running
Is there something portable to do this ? If not then sbcl specific.
Thanks
by makia
Thu Aug 07, 2008 8:35 am
Forum: Common Lisp
Topic: Favorite "underrated" Lisp feature?
Replies: 13
Views: 14637

Re: Favorite "underrated" Lisp feature?

I like how you can easily transform code or add new code because syntax and 'everything returns value' concept does not stand on your way. This is very usefuly to me.
by makia
Fri Aug 01, 2008 1:07 am
Forum: Common Lisp
Topic: define-compiler-macro
Replies: 11
Views: 16126

Re: define-compiler-macro

yes, i know that ... but then there is no huge impact in real programs if you can only optimize literal arguments ?