unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Comments on ‘wip-nio’
@ 2012-03-21 22:39 Ludovic Courtès
  2012-03-22  2:40 ` Nala Ginrut
  2012-03-23  9:58 ` Andy Wingo
  0 siblings, 2 replies; 13+ messages in thread
From: Ludovic Courtès @ 2012-03-21 22:39 UTC (permalink / raw)
  To: guile-devel

Hello,

I had a quick look at ‘wip-nio’, and here are initial comments.

  • epoll is Linux-specific.  Any idea how a more multi-platform API
    could be provided?  I guess libevent could be used, but we don’t
    want to add one more dependency in 2.0.  How much is (ice-9 nio)
    dependent on epoll vs. poll, for instance?

  • ‘nio’ doesn’t seem very descriptive to me; ‘nbio’ maybe?

  • I agree that it’s an important problem to address, and I like the
    use of coroutines, and I like that it actually solves the problem
    for some applications like the web server.

    However, I think the approach has shortcomings: (1) it doesn’t
    accept other sources of events (timers, mouse clicks, etc.), and
    (2) it doesn’t allow you to do something while waiting (of course,
    other threads/waiters get scheduled, but the caller is just
    waiting, so you can’t for instance update your progress bar while
    waiting for your bytevector to arrive.)

    Functional reactive programming à la FrTime [0], and synchronous
    reactive programming à la HipHop [1] seem to be much more generic
    and expressive.  It would be great if Guile would come with such a
    framework eventually.  It’s probably more work, though, so it
    probably makes sense to have an alternative mechanism in the
    meantime.

WDYT?

Thanks,
Ludo’.

[0] http://www.cs.brown.edu/~greg/
[1] http://www-sop.inria.fr/members/Gerard.Berry/Papers/plastic2.pdf





^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-03-27 15:50 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-21 22:39 Comments on ‘wip-nio’ Ludovic Courtès
2012-03-22  2:40 ` Nala Ginrut
2012-03-22 20:40   ` Ludovic Courtès
2012-03-22 21:36     ` Neil Jerram
2012-03-23  1:17       ` Nala Ginrut
2012-03-23  1:47         ` Nala Ginrut
2012-03-23 10:01           ` Andy Wingo
2012-03-23 10:05       ` Andy Wingo
2012-03-25 20:17         ` Neil Jerram
2012-03-25 23:23           ` Andy Wingo
2012-03-25 10:46   ` Andreas Rottmann
2012-03-23  9:58 ` Andy Wingo
2012-03-27 15:50   ` Ludovic Courtès

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).