9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: rog@vitanuova.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] writing code
Date: Fri, 18 Feb 2005 18:52:51 +0000	[thread overview]
Message-ID: <764e15834dcf9dbddc927eade3f6b8c5@vitanuova.com> (raw)
In-Reply-To: <ee9e417a050217202118f6c3fb@mail.gmail.com>

> it should be straightforward to adapt the line drawing algorithm
> to put down alpha-blended grey.  that would be nice.

given that a pixel with alpha notionally represents a partially filled
area, might it would make sense to change the interface so that you
can specify lengths smaller than integer pixels?  if you're using
alpha blending, a line that's half a pixel in radius is quite a
reasonable thing, for example.

> you don't need to accelerate everything, just the common stuff.
> the obscured window case you describe is an important one
> that should be handled better.  i'd love to see that happen.
> it's not so much the lack of acceleration as the copying to
> backing store and back.

i think it has to copy to backing store.  i think maybe the underlying
problem is that the backing store is in main memory, not video memory.

given that video cards these days tend to have lots of memory, maybe
it would be possible to allocate some off-screen images in video
memory, thus making them accessible to current acceleration routines.
i know virtually nothing about vid cards, so this might easily be
impossible; just a thought.

from a plan 9 point of view, maybe one could make the unused portion
of the vid memory another memory pool from which memdraw could choose
to allocate?

> there have been at least two attempts to do this.  the early
> brazil kernels maintained state in the Chans and tried to reestablish
> them, but my understanding is that the code never really worked
> right, and eventually it got taken out.  i wrote a user-level file
> server for 9P1 that redialed as necessary to keep the connection
> running without any help from the kernel.  it worked very well
> but i never updated it for 9P2000.  it's not a big program.

i've got an inferno program that does something similar.  the problem
i have with it is to do with non-idempotent 9p requests.  e.g.  i send
a Tcreate and the server goes down.  has the file been created or not?
should the intermediate agent resend the request or not after it has
connected.

as far as i can see, you can't do this in general without some kind of
application knowledge.  but maybe there's a cunning way of doing it.

the first classic example i encountered of this was when i sent a
"reboot" message through such a connection.  the kernel rebooted
immediately (not sending the reply), and as soon as the server came
back up again, it resent the request, causing another reboot, and on
and on...


oh yes, here's another one for the pot:
change screen resolution dynamically.



  parent reply	other threads:[~2005-02-18 18:52 UTC|newest]

Thread overview: 178+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-16 17:45 [9fans] Evolving rio / GUI development g01495
2005-02-16 17:56 ` Russ Cox
2005-02-16 19:15   ` Sergey Reva
2005-02-16 19:44     ` McLone
2005-02-17  5:50       ` Sergey Reva
2005-02-17  7:07         ` Kenji Okamoto
2005-02-17 17:15           ` Sergey Reva
2005-02-17 17:30             ` Tiit Lankots
2005-02-17 17:36               ` Ronald G. Minnich
2005-02-17 17:42                 ` boyd, rounin
2005-02-17 17:47                 ` Tiit Lankots
2005-02-17 17:53                   ` Russ Cox
2005-02-17 22:21                     ` [9fans] writing code rog
2005-02-17 22:29                       ` Ronald G. Minnich
2005-02-18  1:27                         ` Russ Cox
2005-02-18  4:48                           ` Ronald G. Minnich
2005-02-18  4:51                             ` lucio
2005-02-18 18:22                               ` rog
2005-02-18 19:05                                 ` Paul Lalonde
2005-02-18 19:21                                   ` rog
2005-02-20 18:14                                 ` [9fans] Second class citizenship (Was: writing code) Lucio De Re
2005-02-20 18:24                                   ` boyd, rounin
2005-02-20 18:33                                     ` Lucio De Re
2005-02-20 18:37                                       ` boyd, rounin
2005-02-20 20:36                                         ` Joel Salomon
2005-02-21  4:30                                         ` lucio
2005-02-21  7:03                                           ` Bruce Ellis
2005-02-21 16:59                                   ` rog
2005-02-22  3:59                                   ` Ronald G. Minnich
2005-02-22  4:34                                     ` lucio
2005-02-22  5:09                                       ` Ronald G. Minnich
2005-02-21  7:10                                 ` [9fans] writing code Kenji Okamoto
2005-02-21  7:26                                   ` Tiit Lankots
2005-02-21  7:48                                     ` Kenji Okamoto
2005-02-21  8:00                                       ` Tiit Lankots
2005-02-21 23:49                                       ` rog
2005-03-01  1:30                                         ` Kenji Okamoto
2005-02-21 10:08                                     ` Richard Miller
2005-02-21 10:09                                     ` Steve Simon
2005-02-18 21:09                               ` Ronald G. Minnich
2005-02-18  4:58                             ` Paul Lalonde
2005-02-18  5:12                               ` andrey mirtchovski
2005-02-18 14:57                                 ` Ronald G. Minnich
2005-02-18  5:01                           ` Ronald G. Minnich
2005-02-18 19:34                           ` Tim Newsham
2005-02-18 19:49                             ` David Leimbach
2005-02-18 19:59                               ` Christopher Nielsen
2005-02-18 21:36                                 ` rog
2005-02-18 22:14                                   ` Christopher Nielsen
2005-02-19  9:15                                 ` David Leimbach
2005-02-19 20:20                                   ` Bruce Ellis
2005-05-08 16:15                             ` Ralph Corderoy
2005-02-17 22:52                       ` Charles Forsyth
2005-02-17 23:12                         ` rog
2005-02-17 22:52                       ` Christopher Nielsen
2005-02-17 23:02                         ` boyd, rounin
2005-02-18  0:20                           ` jmk
2005-02-18  0:54                             ` boyd, rounin
2005-02-17 23:04                         ` Ronald G. Minnich
2005-02-17 23:07                           ` rog
2005-02-17 23:17                             ` Christopher Nielsen
2005-02-17 23:33                               ` rog
2005-02-17 23:42                                 ` Russ Cox
2005-02-18  0:07                       ` Steve Simon
2005-02-18  1:20                       ` Russ Cox
2005-02-18  9:53                         ` C H Forsyth
2005-02-18 12:17                           ` boyd, rounin
2005-02-18  4:21                       ` Russ Cox
2005-02-18 16:03                         ` rog
2005-02-18 16:04                         ` rog
2005-02-18 18:52                         ` rog [this message]
2005-02-18 19:01                           ` Russ Cox
     [not found]                             ` <53b78d28ce9ff18f6dc22cc280fc92ef@quintile.net>
2005-02-21 15:54                               ` Russ Cox
2005-02-18 19:50                           ` Charles Forsyth
2005-02-18 20:42                             ` rog
2005-02-18 20:32                               ` Charles Forsyth
2005-02-18 21:06                                 ` rog
2005-02-18 21:49                           ` McLone
2005-02-18 11:04                   ` [9fans] Evolving rio / GUI development Fco. J. Ballesteros
2005-02-18 12:29                     ` Tiit Lankots
2005-02-21  2:54                     ` Kenji Okamoto
2005-02-21  8:04                       ` Bruce Ellis
2005-02-21  8:24                         ` Tiit Lankots
2005-02-21 14:01                           ` Sergey Reva
2005-02-21 14:35                             ` Fco. J. Ballesteros
2005-02-22  1:16                               ` Kenji Okamoto
2005-02-22  2:04                                 ` Kenji Okamoto
2005-02-22  8:21                                 ` Matthias Teege
2005-02-21 14:36                             ` Gorka Guardiola
2005-02-21 15:52                               ` lucio
2005-02-22  0:37                                 ` Skip Tavakkolian
2005-02-21 23:52                                   ` Chesky Salomon
2005-02-22  2:27                                     ` Skip Tavakkolian
2005-02-22  4:12                               ` Ronald G. Minnich
2005-02-21 15:20                             ` Tiit Lankots
2005-02-21 16:01                             ` lucio
2005-02-22  8:07                               ` Matthias Teege
2005-02-22 13:52                                 ` Sergey Reva
2005-02-22 14:00                                   ` boyd, rounin
2005-02-22 14:10                                     ` David Tolpin
2005-02-22 14:15                                       ` Tiit Lankots
2005-02-22 15:25                                         ` David Tolpin
2005-02-22 17:47                                     ` lucio
2005-02-22 14:09                                   ` Charles Forsyth
2005-02-23  5:55                                     ` Martin C.Atkins
2005-02-22 10:26                               ` Gorka Guardiola
2005-02-22 17:33                                 ` lucio
2005-02-22 19:40                                   ` Skip Tavakkolian
2005-02-22 19:56                                     ` Bruce Ellis
2005-02-23  0:17                                     ` C H Forsyth
2005-02-23 10:29                                       ` fgergo
2005-02-23 11:22                                         ` Bruce Ellis
2005-02-23  3:47                                     ` lucio
2005-02-23 13:17                                       ` Rob Pike
2005-02-23 13:19                                         ` Gorka Guardiola
2005-02-23 13:39                                           ` Bruce Ellis
2005-02-23 13:43                                             ` Brantley Coile
2005-02-23 15:31                                             ` Ronald G. Minnich
2005-02-23 15:37                                               ` Rob Pike
2005-02-23 15:53                                                 ` Bruce Ellis
2005-02-23 16:06                                                   ` Ronald G. Minnich
2005-02-23 16:18                                                     ` Bruce Ellis
2005-02-23 17:37                                                 ` Skip Tavakkolian
2005-02-23 16:19                                             ` David Leimbach
2005-02-23 16:50                                               ` Richard Miller
2005-02-24  0:11                                           ` Dave Lukes
2005-02-22 23:47                                   ` Steve Simon
2005-02-23  0:21                                     ` Andrew Simmons
2005-02-23  3:59                                     ` lucio
2005-02-23  6:03                                     ` Martin C.Atkins
2005-02-21 10:37                       ` Fco. J. Ballesteros
2005-02-18  3:50                 ` Kenji Okamoto
2005-02-18  7:10                   ` Kenji Okamoto
2005-02-18  7:17                     ` Bruce Ellis
2005-02-18 13:07                     ` Rob Pike
2005-02-18 21:23                   ` McLone
2005-03-03  3:47                 ` rog
2005-03-03  5:43                   ` arisawa
2005-03-03 17:12                     ` Sam
2005-03-03 18:11                       ` rog
2005-03-03 18:27                         ` Russ Cox
2005-03-03 18:54                           ` g01495
2005-03-03 19:43                             ` Charles Forsyth
2005-03-04 15:25                           ` arisawa
2005-03-04 16:19                           ` rog
2005-03-07  2:22                             ` Kenji Okamoto
2005-03-04  4:39                         ` Scott Schwartz
2005-02-17 20:00               ` Sergey Reva
2005-02-17 20:17                 ` boyd, rounin
2005-02-17 20:43                   ` McLone
2005-02-17 20:19                 ` andrey mirtchovski
2005-02-17 20:56                 ` g01495
2005-02-17 21:02                   ` Rob Pike
2005-02-17 22:35                     ` McLone
2005-02-17 22:39                       ` Russ Cox
2005-02-17 22:00                   ` Ronald G. Minnich
2005-02-17 22:08                     ` rog
2005-02-20 21:04                     ` geoff
2005-02-18 12:15                 ` Tiit Lankots
2005-02-18 13:04                   ` Sergey Reva
2005-02-18 13:18                     ` Tiit Lankots
2005-02-18 15:50                       ` Sergey Reva
2005-02-18 16:01                         ` Tiit Lankots
2005-02-17 17:41         ` McLone
2005-02-17 17:58           ` andrey mirtchovski
2005-02-16 18:31 ` Steve Simon
2005-02-16 18:37   ` andrey mirtchovski
2005-02-16 19:04     ` McLone
2005-02-16 18:59 ` McLone the Great
2005-02-17  2:24 ` Kenji Okamoto
2005-02-18  7:45 [9fans] writing code Skip Tavakkolian
2005-02-18 18:27 andrey mirtchovski
2005-02-18 18:35 ` rog
2005-02-18 18:53   ` andrey mirtchovski
2005-02-18 20:57     ` rog
2005-02-18 20:39       ` Charles Forsyth
2005-02-18 21:05       ` andrey mirtchovski
2005-03-01 16:29 Roland Dowdeswell

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=764e15834dcf9dbddc927eade3f6b8c5@vitanuova.com \
    --to=rog@vitanuova.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).