Re: Let's extend 'eval' and 'run' (was: Variable number of

2009-01-07 Thread Alexander Burger
Hi Tomas, forget my last message about (out *Sock ( ...)), this is off the intended purpose. Instead, '' should probably better have a separate 'Out' parameter: (de (Out . Lst) (if (=T Out) ... This is both simpler and more flexible. What do you think? Cheers, - Alex -- U

Re: Let's extend 'eval' and 'run' (was: Variable number of

2009-01-07 Thread Alexander Burger
Hi Tomas, thanks for the changes! > I have attached the lib/xml.l with a minor change which avoids calling > 'out' when the output file is NIL. I found that I think that there is a general problem with the way '' handles its first argument: (de Lst (let Out (and Lst (atom (car Lst))

Re: sort

2009-01-07 Thread Alexander Burger
Hi Tomas, > strategy how it accesses the elements and by the time the function > compare() is called, it already has the elements available so it does > not have to "retrieve" them. With "retrieve" I meant the raw data which are finally compared. For example, look at the compare() method in "Alp

Re: sort

2009-01-07 Thread Tomas Hlavaty
Hi Alex, > and on top of that calls the "retrieval" code twice on each > invocation). I am not sure about what you mean. The 'sort' algorithm have some strategy how it accesses the elements and by the time the function compare() is called, it already has the elements available so it does not hav

Re: sort

2009-01-07 Thread Tomas Hlavaty
Hi Alex, > BTW, this is almost the same as what 'isa' does. So it looks like that > instead of > >(subclass? LH RH) > > you could simply write > >(isa RH LH) Thanks, I'll have a look into it:-) > The depth does not matter, right? Yes, it is not the way to go. It is something related to

url rewriting

2009-01-07 Thread Tomas Hlavaty
Hi all, the standard picolisp webserver does not allow two things which I (and other people in different disscussions in this mailing list) have missed: 1) custom app specific urls 2) allowing and collecting any query parameters http://logand.com/picoWiki/rewriteUrl shows a sample web server wh

Re: sort

2009-01-07 Thread Tomas Hlavaty
> I'm not sure. I feel that it is its ugliness which predestines it to > denote such a "local" concept. Fair enough:-) Cheers, Tomas -- UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

Re: sort

2009-01-07 Thread Tomas Hlavaty
Hi Alex, > A typical example would be sorting a list of customers by city, name and > customer number, in that order. A binary comparison for 'sort2' would > look like > >(sort2 > (collect ... '+CuSu ...) > '((CuSu1 CuSu2) > (cond > ((<> (; CuSu1 ort) (; CuSu2

Re: sort

2009-01-07 Thread Tomas Hlavaty
Hi Alex, >: (let L (make (do 10 (link (rand (bench (sort L) T)) >0.251 sec >-> T thanks for pointing out the 'bench' function;-) Cheers, Tomas -- UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

Re: Let's extend 'eval' and 'run' (was: Variable number of

2009-01-07 Thread Tomas Hlavaty
Hi Alex, I have attached the lib/xml.l with a minor change which avoids calling 'out' when the output file is NIL. I found that (ht:Out *Chunked ( *Sock ... was breaking chunking output so if I use (ht:Out *Chunked ( ... with the attached file, chunking wor