[Y-devel] Quick project roll-call

Michael Farnsworth mike at xsdev.net
Thu May 13 20:43:28 BST 2004


On Thu, 2004-05-13 at 12:24, Mattia Belletti wrote:

> Michael Farnsworth wrote:
> > - I'm participating in a GDK/GTK port to Y, with Michael Latiolais at 
> > the head.  This item is stalled, at the moment. 
> 
> Really little 2c: I think this point is _really_ important. If such a 
> thing is accomplished, it would allow a mass application move on Y. What 
> I want to ask is: apart from the missing widgets on Y (!! :P), once the 
> whole buffer thing is ported on the main branch, is everthing in the 
> right place to allow this port?
> 

I'm not sure if this got posted to the list properly, so I apologize in
advance if you get two copies of this.

What has been on my mind about the GDK port (I'd like more input from
Michael Latiolais on this, of course) is how to correctly follow Mark's
low-latency model for network communications while still retaining the
benefits of GDK.  There are two areas to consider:  the client side and
the server side.

The server side probably would simply be a module that uses GDK to do
the widget drawing into Y buffers, and there could be some integration
work with Y's theme engine and GTK's theme engine.  This could also be
extended to intercept all widget drawing calls so that most of the
server-side drawing is done using GDK, but that's just a thought (I'm
not advocating this at this point, as I don't want to subvert the
excellent work of others doing pure Y widgets and drawing code).

The client side is where it gets more messy.  If we just had GDK send
the drawn result as a Y canvas widget, that would fly in the face of the
low-latency/low-bandwidth principle, sending all of those pixels over
the network.  I'm not sure of the most elegant way to solve this.  I was
going to work on something to the effect of packaging up the drawing of
whatever widgets are present in Y and just sending the Y message (e.g.
buttons, textboxes, etc.), but doing the drawing into a Y canvas widget
and sending that (using more bandwidth) when Y doesn't offer the
appropriate widget (tree widgets, etc.).  Like I said, this might not be
pretty, and injecting this stuff all over the place in GDK/GTK probably
won't be accepted by the GTK team.  I'd be interested to see what ideas
anyone else has.  Maybe just digging into the GDK code and trying a few
things out is more productive than talking a lot about it at this point,
though.

As for readiness of Y for this, we can certainly begin writing some
proof-of-concept parts of a GDK port at this point, but with the idea in
mind that there will be some changes.  The widget set is not mature
enough to attempt using them yet from GDK, but we could easily start
just using all canvas widgets (simpler port) and slowly change that to
increase network speed.  Additionally, the expected massage Mark wants
to give to the module code might affect the server-side GDK module, but
that work could likely begin.  Now, just to find the time to do it... =D

I think that this sort of thought about other widget APIs and how to
integrate them properly with Y's model of doing things is probably
pretty constructive, as these other APIs are probably the quickest/best
way to gain applications, developers, and interest, not to mention it
can increase compatibility with large amounts of code and programs
quickly.  All of these issues likely apply equally to Qt, wxWindows (or
whatever it's called now), etc.

Regards,
Mike Farnsworth

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.y-windows.org/pipermail/y-devel/attachments/20040513/96a45c8c/attachment.htm


More information about the Y-devel mailing list









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