[Y-devel] Fw: Somethoughts about Y)
claude M c.mench at free.fr
Sun Mar 7 23:39:55 GMT 2004
I think there is no provocation in this post. Just a analysis that I
had diffusely in my brain also for a long time now [november 2003 :) ]
It leverage exactly what hurts me the most in Y. Having a server that
does more than top level windows compositing is not usefull for me.
I already asked how the Y protocol would handle new widgets
inserted trough modules into the server. The client who wishes to
use this new widget should link againts a special version of libYc++
(at leat it is so in the current implementation).
Client side widget means that whould be no protocol change
when new widget are introduced. Which for me is the right thing.
The argument opposed to this is GUI consistence. But I think
there will ever be a widget missing in the server... And an
application can need a special widget without wanting to be
inconsistent with the rest of the desktop.
For me the ideal windows server whould be the same as quartz
compositor, but having the drawing client library (Quartz 2d) also
making usage of accelerated hardware by using a Cairo+Libglx like
approach.
----- Original Message -----
From: "Niko Iivari" <eviliivari at saunalahti.fi>
To: <y-devel at www.y-windows.org>
Sent: Sunday, March 07, 2004 9:41 PM
Subject: Re: [Y-devel] Fw: Somethoughts about Y)
> On Sun, 7 Mar 2004 12:39:23 -0500
> "Nurul Choudhury" <nurulc at yahoo.com> wrote:
>
> [ Thanks again for this excellent post. ]
> >
> > Nurul
> >
> >
> > > ----- Original Message -----
> > > From: "Jost Boekemeier" <jost2345 at yahoo.de>
> > > To: <nurulc at yahoo.com>
> > > Sent: Saturday, March 06, 2004 1:14 PM
> > > Subject: [inbox] [Y-devel] About server-side widgets (was: Re:
> > > [Y-devel]
> > > Somethoughts about Y)
>
> [ snip snip snip ]
>
> > > > There are 5 possibilities to implement the network protocol:
> > > >
> > > > 1. all widgets on the client side, server receives compressed delta
> > > > images. Example: VNC
> > > >
> > > > 2. one widget prototype on the server, client libraries extend from
> > > > this
> > > > widget prototype to implement widgets on the client-side. Example:
> > > > current X11 implementation.
> > > >
> > > > 3. only top-level windows on the server, client libraries implement
> > > > all
> > > > widgets on the client and send vector drawing requests to the server
> > > > window. Example X11+Cairo.
> > > >
> > > > 4. all widgets on the server side, non-standard server widgets must
> > > > extend from one of the standard widgets an implement the missing
> > > > logic
> > > > on the client side. Example: Y.
> > > >
> > > > 5. all widgets on the server side, server widgets must be uploaded
to
> > > > the server prior to program execution. Example: NeWS (not exactly, I
> > > > think there were some pre-defined widgets).
>
> #5 sounds kind of like OpenGL displaylists.
>
> > > > I think it's clear that #1, #5 are useful only in local networks.
>
> I don't see why #5 would be only useful in local networks. It should use
> less bandwidth since the widgets are only transferred once per
> started program.
>
> > > >#2 has
> > > > the problem that each and every client-widget must be accompanied by
> > > > a
> > > > server-side window. This client-server mixture makes the programming
> > > > difficult and may introduce unwanted latency.
> > > >
> > > > So it might be a good idea to compare the remaining extremes: #3:
all
> > > > widgets on the client side compose a vector image of the application
> > > > on
> > > > the client and then send the required drawing requests to the server
> > > > vs.
> > > > #4: all widgets on the server side but clients extend the
> > > > #functionality
> > > > on the client-side (note: this may degenerate to #2):
>
> So if the app developer can't live with the standard widgets his/her app
> may eat more banwidth. I'd worry more about the custom widget looking like
> a fish out of water next to the standard widgets.
>
> > > > So I have taken the current swing/cairo implementation, created a
> > > > window
> > > > with 1000 push buttons nested inside another and rendered this onto
a
> > > > X11 display on a P100. The same test with Y.
> > > > Neither X11 nor Y were hardware-accellerated.
>
> Huh? I wasn't aware you could nest buttons inside each other in Y yet.
>
> > > >
> > > > The result was exactly what I've expected, Y spent most of the time
> > > > composing the widget hierarchy on the server-side while Cairo send
> > > > only
> > > > a few hundred vector drawing requests to the server.
>
> So, was the machine hosting the client a Pentium VII at 8GHz?
>
> > > >
> > > > I think Y should drop this strange idea of composing a widget
> > > > hierarchy
> > > > on the server-side and introduce only one server-side construct: a
> > > > top-level window. All clients then implement the complete widget
> > > > hierarchy on the client side.
>
> [snip ...details]
>
> > > >
> > > > I think this is a more reasonable approach than "all widgets on the
> > > > display-server side", because compute servers running applications
> > > > usually have more cpu power to compute the resulting surface of a
> > > > widget
> > > > hierarchy into a vector picture than laptops or palmtops on which
> > > > the
> > > > display server runs. BTW: How do you handle out of memory conditions
>
> I tought modern palmtops had the processing power to run X and
applications
> all locally.
>
> > > > if
> > > > the render process on the display server consumes too much memory?
> > > >
> > > > It's just that the graphics hardware chips can very well accelerate
> > > > the
> > > > drawing of vector pictures (some may even accelerate 3d), but I
> > > > haven't
> > > > yet seen a graphics CPU that can render a widget hierarchy into a
> > > > plain
> > > > picture (or image). So it's better to flatten the hierarchy on the
> > > > machine that has the CPU power and then send a series of drawing
> > > > requests to the output window managed by the display server. Unlike
> > > > the
> > > > rendering of the widget hierarchy this _can_ and should be hardware
> > > > accelerated.
>
> The Y approach distributes the widget hierarhy rendering to the thin
> clients - so that the Cray XVII in your garage can use its CPU cycles to
do
> something more important.
>
> > > > So I suggest to replace the various widgets on the server with a
> > > > top-level window construct, define a vector-based communication
> > > > protocol
> > > > so that the server- and client-side can be developed in parallel.
>
> This was at least thought provoking.
>
>
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved