Re: Asyncronous IO

2008-10-10 Thread Alexander Burger
Hi Tomas, I attach a simple non-blocking echo server. There are some functions Nice! Conceptually it should not block, I am not sure how to test it though. Any ideas? Positive testing works well: abu:~/pico ./p dbg.l nb-ex.l : (more *Run) (5 (when (accept @) (task @ Sock @

Re: Asyncronous IO

2008-10-10 Thread Alexander Burger
Hi Konrad, But the underlying select function also provides non blocking writes. so that you can dely trying to write to a socket until it is ready for more data. Yep, this is also needed. It would appear that task and *Run have no way of using this part of the select function. Right.

Re: Asyncronous IO

2008-10-10 Thread Tomas Hlavaty
Hi Konrad, train. The task and *Run mechanism (if used with enough care) give us non blocking reads. But the underlying select function also provides non blocking writes. so that you can dely trying to write to a socket until it is ready for more data. I would say that select (in C) and

Re: Asyncronous IO

2008-10-10 Thread Tomas Hlavaty
Hi Alex, http://www.software-lab.de/refP.html#poll says: (poll 'cnt) - cnt | NIL Checks for the availability of data for reading on the file descriptor cnt. See also open, in and close. : (and (poll *Fd) (in @ (read))) # Prevent blocking The comment is a bit misleading as it does

Re: Asyncronous IO

2008-10-10 Thread John Duncan
If the socket is set not to block, then the socket will read as much data as is available and the underlying read call will return the number of bytes read, right? So the poll will still be useful in an nbio world. John On 10 Oct 2008, at 12:36 PM, Alexander Burger wrote: Hi Tomas, The

Unsubscribe

2008-10-10 Thread Howard Gordon
Good bye Howard Gordon [EMAIL PROTECTED] :-( You are now unsubscribed -- UNSUBSCRIBE: mailto:[EMAIL PROTECTED]

Re: picoWiki

2008-10-10 Thread Tomas Hlavaty
Hi Henrik, I could help with implementing the code highlighting I have on prodevtips, it's all happening in the client through javascript, very easy actually, you simply need the ability to add html in the content, if the necessary javascript files are included then you can do:

Re: Cutting a circular list.

2008-10-10 Thread Henrik Sarvell
There has been some prior discussion on the list: http://www.mail-archive.com/search?q=circular+listsl=picolisp%40software-lab.de It might or might not be of help. /Henrik -- UNSUBSCRIBE: mailto:[EMAIL PROTECTED]