[Y-devel] compatibility, gtk+, Qt etc
Shawn core at enodev.com
Fri Feb 20 05:08:47 GMT 2004
(you wrote this in Outlook XP? For shame!) Anyway:
On Thu, 2004-02-19 at 22:05 -0500, Matt Kurjanowicz wrote:
> Also, what about trying from the get-go to get multi-platform compatibility
> - like Mac, Windows etc? I doubt that Mac should be too hard, but what
> about windows?
Well, as far as supporting RDP and other non-native protocols, I
wouldn't know why. Maybe supporting NX compression at the Y protocol
level. To be honest, though, I don't think you'd have to if you upload
widgets and twiddle them remotely. It's the bitmap stuff that could
maybe use compression / transcoding plugin based system to get the
bandwidth minimized I guess. It would be nice to be able to tell Y
"bitmap_compression=jpeg" with a set of compression properties, or,
settings for all Y bitmap operations.
Y cannot be the one-true-windowing system for all platforms, as if it
tried, it would fail. It's a moving target, and it requires you to dumb
down your protocol just to fit within the sum total of all restrictions
placed on windowing by all the protocols you would want to support.
Basically, it's impossible by definition. X does almost as good a job at
cross platform as it gets so far. There is no other network transparent
windowing framework in wide use today with even half of the supported
platforms that X has. Sure, it's pretty much unix type OSes that have X
clients, and servers run everywhere, but other protocols are just not
analogous.
> What about some way to run Y on top of X? This was discussed in an earlier
> post. Would this just require Y wrappers for to Xlib?
I don't know how familiar you are, but in case I'm reading this right,
I'll point out that one of the two "hardwares" Y runs on right now are
SDL, which is basically an X window. I was talking about something just
off kilter from that.
Basically, a Y app loads, and uses some "Y" method to draw a primitive
but there is no Y server running. An X compat mode, if enabled, would
more than likely mean some Y methods would have to then use Xlib in such
a way that things like Y widgets could be rendered with Xlib on the
client side, and simple drawings I suppose may get more directly mapped
to X counterparts.
Seems like a little bit more than wrappers to comparable X functions,
because my impression is that Y and X are not really as analogous as
that. I can kind of see a couple ways to do it:
1. Something like a protocol proxy could be written which would
respond like a fall-back Y server but draw primitives and render widgets
to X using X11 or some abstraction on top of it. This method would I
guess have the advantage of being able to run the fall-back Y protocol
proxy on a remote server, and hence, displaying a Y app, through the
better Y protocol over the network, to a remote X server.
Y app ->
libY sees no Y server and decides on fall-back mode
-> use fall-back Y server (the proxy at Y display spec.)
///network transparency happens inside Y guts///
-> Y protocol proxy uses X11 to display primitive
or renders widget to some buffer if needed, then draws
the buffer using X11
2. Slightly lighter version of Y server widget handling could be
implemented in the client lib which would use X11 to actually display
primitives upon failure to connect to actual Y server. I'd think the
only way to both be compatible with X and have server side widgets would
be to support the widgets client side as well... I think this might
already be part of Y's design... I know it was talked about in Xouvert.
Y app ->
libY sees no Y server and decides on fall-back mode
-> Y fall-back method uses X11 to display primitive
or renders widget to some buffer if needed, then draws
using X11
///network transparency happens inside X guts///
So... Have I shown my ignorance yet? Do I show any insight? Is this all
wheel re-invention?
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved