[Fwd: RE: [Y-devel] compatibility, gtk+, Qt etc]

Thomas spiralman at softhome.net
Fri Feb 20 13:35:24 GMT 2004


here is my vision of how the y->x compatibility would work (again, just a 
suggestion), and further down how the x->y compatibility would work:

We have some module (or set of modules.  from what ive been looking at we 
might need to have a video driver and a widget theme, maybe a wm as well to 
do it this way) that, instead of drawing to a frame buffer, issue X commands 
(ie, in the paintRectangle() function, they just use the XLib call to paint a 
rectangle).

their usage would go something like this:  I'm sitting in the computer lab on 
a unix workstation, and decide i want to run something off the computer in my 
dorm room.  I ssh into my comp, start up a second Y server with the XLib 
compat drivers loaded, and i tell it which X server to point to.  Then i run 
my Y application and point it to that Y server (or, presumably move a running 
Y application over to that server).  This server then translates all the low 
level drawing/event stuff into the X protocol through XLib and sends it out 
over the network, displaying on the unix workstation.

Of course that would remove the nice overhead gain of server side widgets, but 
using the *exact same* implementation and a slightly different usage, we can 
get rid of that too:  Instead of running the Y->X translating server on my 
remote computer, i run it on the computer i want the windows to display on 
(assuming i have permissions of course) and i then ssh into my dorm computer, 
and point all the applications i want to run at the Y server running local on 
the workstation.  They transmit the lower bandwidth Y protocol over the 
network, which is then translated into XLib calls and sent through the XLib 
protocol between two local processes, which should dramatically speed up the 
drawing times from the first usage without actually having to rewrite code.

To me, this seems the most portable, least amount of code to rewrite (we dont 
have to bother rewriting a whole new server when one already exists), and the 
most flexible.

As far as compatibility in the other direction (drawing X windows in the Y 
server), this was discussed in the PDF and i like the idea used there.  that 
method, as i understand it, is to have a module that you load into your Y 
server that acts as an X server, receiving things over the X protocol in the 
standard network-transparent way and then translating them into the 
appropriate low level Y drawing commands (since the low level drawing 
commands are the only thing remotely analogous between the two protocols).

well, that got really long really fast.
anyway, its just an idea, and i need to read more code to see how feasible it 
is, but in my opinion it seems like these are the two best ways to do this 
that have been mentioned so far.

Thomas Stephens
spiralman at softhome.net

On Friday 20 February 2004 02:42, Matthew David Kurjanowicz wrote:
> -------- Original Message --------
> Subject: RE: [Y-devel] compatibility, gtk+, Qt etc
> From: Shawn <core at enodev.com>
> Date: Fri, February 20, 2004 2:28 am
> To: Matt Kurjanowicz <mkurjano at cc.gatech.edu>
>
> On Fri, 2004-02-20 at 00:42 -0500, Matt Kurjanowicz wrote:
> > Also, what happens if we want to run an X program on Y?  Surely not
> > start up a whole instance of X?
>
> Not how I was thinking of it. I think folks have been thinking this
> could be handled in the form of some kind of extension to Y. I really
> didn't address these details, as my impression was that folks have
> talked about it. I just wondered if folks thought of it both ways.
>
> In order for a protocol to be adopted, and that's what we're really
> talking about, both apps and server side need a reason to use or move to
> it without major (or any) pain.
>
> > I'm mostly an ignorant college student who's interested in the
> > project, and looking for places to learn.  I just think that it would
> > be really cool for something like this to happen, and on any system.
> > To be honest, I really didn't understand everything in your earlier
> > email.
>
> You know, I'm big concept guy, and I'm just throwing ideas out there
> knowing they could be bogosity level 10. I'm hoping some coder either
> finds the idea interesting or shreds me. Either will do.
>
> > Basically, I'm not talking about changing the Y-protocol to adapt to
> > "lesser" systems and protocols, but just to see if internal
> > translations could be made to ease the transition.  I mean, Y can't
> > ever get any market share (or the equiv in OSS terms) if every app has
> > to be rewritten to work in Y.  This is why making GTK+, Qt, and so
> > forth would be, IMHO, a good idea, so that programs can be run
> > flawlessly on Y.  Ok, maybe not flawlessly, but pretty good, with it
> > getting better and better.  Maybe eventually GTK, Qt, etc can be
> > rewritten as a wrapper for Y (in an abstract sense, don't jump... ;))
> > so that "legacy" programs could be more easily run on Y.  That's one
> > of the beauties of my Mac, the fact that I can now run programs that
> > were built for X on linux seamlessly - it just makes for a happier
> > existence.
>
> Exactly. Ass whut I'm twalkin about.
>
> > What about desktop managers?  Maybe I'm just really confused, but the
> > standard "startY" with a few apps just won't cut it for desktop use.
> > If a desktop manager could be ported easily and quickly that would be
> > good.  So what if it doesn't run natively at first?  How well can
> > these desktop managers benefit from the unified widget set?  What
> > about one of the nice things in X being that you can make your desktop
> > unique, in a way that's nearly impossible in Windows or OS X.
>
> All this stuff in Y is really a reference to work from. Think of the
> cross-hatch X screen, then imagine it being much more powerful, and
> imagine that Gnome could run on it natively with some effort, but still
> display on X11 as a fall-back, or Gnome could run on it in compat mode
> through a Y server answering X11 client requests.
>
> > All in all, sorry for the stream of consciousness-type writing and the
> > long email, but I hope that my thoughts were at least cleared up a
> > little.
>
> Hey, folks not understanding me is just an opportunity to either explain
> myself, or for me to start explaining myself only to realize I'm full of
> it. I'm not at that point yet, but I may get there.
>
> > And yes, from Office XP, I could just never get into OpenOffice,
> > AbiWord, etc. ;)
>
> For shame... (Kword would suite you maybe nicer than OO or Abi then).
>
>
>
>
> _______________________________________________
> Y-devel mailing list
> Y-devel at www.y-windows.org
> https://www.y-windows.org/mailman/listinfo/y-devel



More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved