9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: David Rubin <dlrubin@hotmail.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] X on Plan 9
Date: Tue, 24 Apr 2001 15:02:43 +0000	[thread overview]
Message-ID: <3AE55C5E.AF41512F@hotmail.com> (raw)
In-Reply-To: <20010423112013.6119519A2E@mail.cse.psu.edu>

forsyth@vitanuova.com wrote:
>
> >>What do you mean by "non event-driven?"
>
> i supposed he meant `not using callbacks' (ie, quasi-interrupts on each
> event) to drive the computation, but instead using communicating
> sequential processes to express the interaction of computer and
> events in the environment, allowing the use
> of a more reasonable programming style (in the sense that you can
> reason about them and the effects on data structures and values).
> i've found callback-based programs typically shrink when converted, but i
> suppose that's not necessarily true.

So basically the claim is that reading a ctl or data channel for "events" or
commands is better than reading events from an event queue because in the "non
event-driven" method the OS does is not as involved since it does not have to
generate and post events?

I am confused on this issue. Plan9 generally makes claims along the lines of
"easier to reason about..." and "[cleaner/simpler] programming style" to support
its approach to distributed communication. Can you give a little more detail
about why this is so?

For example, I am programming in a VxWorks environment now, and we have
communicating tasks which post events to each other. The events might signal
various timeouts or "enqueued data" events. In the case of an "enqueued data"
event, the receiving task then reads a message from a queue. This is basically
my impression of how an event-driven gui would work as well. How would a
non-event driven model of inter-task communication make such programs simpler to
write and easier to reason about?

Please correct me if I am mixing terms...Thanks.

	david

--
If 91 were prime, it would be a counterexample to your conjecture.
    -- Bruce Wheeler


  reply	other threads:[~2001-04-24 15:02 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-23 11:20 forsyth
2001-04-24 15:02 ` David Rubin [this message]
2001-04-25  2:17   ` Boyd Roberts
  -- strict thread matches above, loose matches on Subject: below --
2001-04-25 10:41 rob pike
2001-04-25  2:04 okamoto
2001-04-25  2:49 ` Scott Schwartz
2001-04-26 16:40 ` Douglas A. Gwyn
2001-04-21  7:48 geoff.9fans
2001-04-20  8:04 forsyth
2001-04-20  6:59 nemo
2001-04-20  3:39 anothy
2001-04-20  3:32 anothy
2001-04-20  3:02 Russ Cox
2001-04-20  0:56 okamoto
2001-04-19 21:58 anothy
2001-04-19 22:14 ` Scott Schwartz
2001-04-19 22:32   ` Boyd Roberts
2001-04-19 22:35   ` Boyd Roberts
2001-04-19 23:06   ` Dan Cross
2001-04-23  9:55 ` David Rubin
2001-04-23 10:19   ` Boyd Roberts
2001-04-19 19:33 forsyth
2001-04-19 19:03 anothy
2001-04-19 21:27 ` Boyd Roberts
2001-04-19 22:26 ` Ronald G Minnich
2001-04-23  9:55   ` Douglas A. Gwyn
2001-04-23 11:12     ` Boyd Roberts
2001-04-19  7:41 forsyth
2001-04-19  4:00 okamoto
2001-04-23  9:54 ` David Rubin
2001-04-23 11:10   ` Boyd Roberts
2001-04-19  3:03 anothy
2001-04-18 23:50 Russ Cox
2001-04-19  0:11 ` Alexander Viro
2001-04-19  0:14   ` Boyd Roberts
2001-04-18 22:56 anothy
2001-04-18 23:12 ` Andrey A Mirtchovski
2001-04-19  0:15   ` Andrey A Mirtchovski
2001-04-18 23:41 ` Alexander Viro
2001-04-24  9:00 ` bob

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3AE55C5E.AF41512F@hotmail.com \
    --to=dlrubin@hotmail.com \
    --cc=9fans@cse.psu.edu \
    /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 NNTP newsgroup(s).