From: Neil Jerram <neil@ossau.uklinux.net>
Cc: guile-user@gnu.org
Subject: Re: mod_lisp for guile
Date: Thu, 29 Dec 2005 10:18:34 +0000 [thread overview]
Message-ID: <87zmmki4ud.fsf@ossau.uklinux.net> (raw)
In-Reply-To: <43A2BF46.4090407@mail.msen.com> (Alan Grover's message of "Fri, 16 Dec 2005 08:21:10 -0500")
Alan Grover <awgrover@mail.msen.com> writes:
> Could you talk a little bit more about the "select with other stuff"
> pattern? What kind of stuff?
Yes, here are two examples.
1. In gds-server.scm in guile-debugging, I have a process that needs
to accept both TCP connections from Guile client processes, and
protocol instructions on its standard input from Emacs. So I
manage all this by selecting on (i) standard input, (ii) the TCP
server socket, (iii) all the TCP connection sockets.
2. In another project X, I have an instance of X which acts as a
central management point for several other instances of X, and
which can itself be controlled through a web interface. The
central X handles all its possible inputs by selecting on both the
web server socket and the sockets to the other Xs.
Do these help? Please let me know if they're not clear enough.
I might be able to avoid these selects by using threads, but I've
acquired a preference for doing things this way. In my experience
threads are more difficult to debug, and their implementation across
platforms is patchy.
Regards,
Neil
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
prev parent reply other threads:[~2005-12-29 10:18 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-15 17:25 mod_lisp for guile Alan Grover
2005-09-16 18:46 ` Neil Jerram
2005-09-19 14:46 ` Alan Grover
2005-09-19 21:32 ` Neil Jerram
2005-09-20 3:24 ` Alan Grover
2005-09-20 4:44 ` Threads (was: mod_lisp for guile) Tomas Zerolo
2005-09-20 12:12 ` Threads Alan Grover
2005-12-04 10:07 ` mod_lisp for guile Neil Jerram
2005-12-05 17:21 ` Alan Grover
2005-12-15 23:21 ` Neil Jerram
2005-12-16 13:21 ` Alan Grover
2005-12-29 10:18 ` Neil Jerram [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zmmki4ud.fsf@ossau.uklinux.net \
--to=neil@ossau.uklinux.net \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).