comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: new_line in a put_line
Date: 04 Dec 2002 20:21:24 +0000
Date: 2002-12-04T20:21:24+00:00	[thread overview]
Message-ID: <x7vel8x1qnv.fsf@smaug.pushface.org> (raw)
In-Reply-To: gzrH9.232037$QZ.36359@sccrnsc02

tmoran@acm.org writes:

> > The problem as I see it, is of course that one tries to express a
> > CRITICAL SECTION in terms of OBJECTS. This *cannot* be good. The first
> > is about execution flow control the second is about data.
>   Then you should use a task.  Using the lock object is a short, possibly
> faster, idiom to accomplish the purpose.  It's like the "good morning" in
> "Good morning gentlemen.  I have some bad news..."  You are not trying to
> say the morning is a good one, you are trying to say "ok, let's get
> started, I have the floor and want your attention." "Good morning" is
> quicker.
>   It may require some comments to explain what's going on to someone
> unfamiliar with the idiom, but it's a valuable idiom.  A recent thread
> here mentioned using an asm string scan operation in conjunction with
> boolean arrays.  A purist might say that's not what it was intended for,
> but a pragmatist would say it's an excellent idea.

I suppose the tension is between an open protocol, using lock objects,
with the risk that someone forgets to use it, and a closed protocol
which ensures that people do the right thing but requires interfaces
for all the things they need to do.



  reply	other threads:[~2002-12-04 20:21 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-02  5:36 new_line in a put_line Vlad
2002-12-02  9:47 ` Preben Randhol
2002-12-02 17:04   ` Frank J. Lhota
2002-12-05 11:10     ` Preben Randhol
2002-12-02 10:14 ` Dmitry A. Kazakov
2002-12-02 14:57 ` Matthew Heaney
2002-12-03 11:33   ` Fraser Wilson
2002-12-03 15:01     ` Dmitry A. Kazakov
2002-12-04  9:31       ` Fraser Wilson
2002-12-04 14:10         ` Dmitry A. Kazakov
2002-12-04 15:23           ` Robert A Duff
2002-12-04 16:15             ` Dmitry A. Kazakov
2002-12-04 18:11               ` tmoran
2002-12-04 20:21                 ` Simon Wright [this message]
2002-12-05  9:36                 ` Dmitry A. Kazakov
2002-12-05 22:40                   ` tmoran
2002-12-04 15:25           ` Stephen Leake
2002-12-04 16:55             ` Jeffrey Carter
2002-12-04 17:24               ` Stephen Leake
2002-12-04 17:43               ` Warren W. Gay VE3WWG
2002-12-05  1:31                 ` Jeffrey Carter
2002-12-05 18:11                   ` Warren W. Gay VE3WWG
2002-12-02 15:49 ` Robert A Duff
  -- strict thread matches above, loose matches on Subject: below --
2002-12-03 11:52 Grein, Christoph
2002-12-04  9:39 ` Fraser Wilson
2002-12-04 10:03 Grein, Christoph
2002-12-05  6:16 Grein, Christoph
2002-12-05  9:44 ` Dmitry A. Kazakov
2002-12-05  6:28 Grein, Christoph
2002-12-05 14:19 ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox