From James.Dunne at uop.com Thu Jul 1 16:38:48 2004 From: James.Dunne at uop.com (Dunne, James(Summer Hire)) Date: Thu Jul 1 16:39:27 2004 Subject: [Y-devel] New guy Message-ID: <81B0D58436CED1118FB100805F6F602010A84BE5@dplmail3.internal.uop.com> Hey! Well, I'm a C coder with some time to spend coding widgets and whatever else you need. I'd really love to see some hardware acceleration in this puppy. Is anybody a real expert or have any knowledge as to the workings of XFree86 binary display drivers? It would be awesome to be able to load these up as modules (via a glue module, of course) and use the pre-existing X drivers for Y! I would think there would be some low-level blitting, primitive drawing, or RGBA graphics combining code in these X display drivers, right? If my assumptions are correct about this (which they probably aren't - so someone please correct me), I could take on this task as well and we could really get off the ground with Y. Another thing, I've become very proficient in C# and .NET programming over the last couple months and I'd really love to develop a Windows.Forms implementation on Y. This would, of course, be using the Mono libraries, as I find DotGNU to be too slow IMHO. The only problem with this is that I've noticed a few people here complaining about keeping dependencies down, and well, Mono is a big one at that. We could make it independent of the Y server and implement it as a module for users to load, if they wish. Also, I see that this would have to be put off until the 40-some-odd widgets are developed and tested. BTW, I'm not a Microsoft-lover by any means. In fact, I generally despise them. However, they have developed one hell of a nice platform and I really enjoy developing in it. I've also been following the Mono project's development and am very impressed with their progress in implementing nearly all of the namespaces that Microsoft provides! Any thoughts on ideas discussed here? -- James Dunne -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.y-windows.org/pipermail/y-devel/attachments/20040701/4757bd11/attachment.htm From clearm at comcast.net Fri Jul 2 03:42:14 2004 From: clearm at comcast.net (clearm) Date: Fri Jul 2 03:42:49 2004 Subject: [Y-devel] RE: New Guy Message-ID: > I'd really love to see some hardware acceleration in this puppy. Harware acceleration is difficult to get working because card manufacturers have to closely guard their technology these days and can't release specs openly. Likewise, they won't develop binary drivers because there isn't enough of a market for things like GGI, Y, and directFB. It would be great if someone had the expertise and wilingness to port XFree86 drivers to these projects, but if they did then we would have seen accelerated GGI, accelerated DirectFB, and accelerated FBDEV a long time ago. As it stands, accelerated GGI is all but dead and the DirectFB project is still trying to implement acceleration for cards that went obsolete two years ago. I think acceleration is too big a fish for now (the catch 22 is that no one wants to use/develop a new graphics API if it doesn't have acceleration - *sigh*). > Mono... I see that this would have to be put off until the 40-some-odd widgets are developed and tested. Correct. I think porting Mono is about 10 steps ahead of the game at this point. Mack From clearm at comcast.net Fri Jul 2 04:17:11 2004 From: clearm at comcast.net (clearm) Date: Fri Jul 2 04:17:47 2004 Subject: [Y-devel] Spec vs. Implementation Message-ID: I think the best way to develop a window system these days is to develop a specification instead of a single source tree implementation. You'd simply publish the specification (like the X Window spec or Java spec), and let anyone who wants to develop an implementation have at it. The advantage of this is: 1) Everyone can develop their own Y Server on whatever hardware/OS they want. All they have to do is make sure that they interface with the client API properly. So, if Joe Blow knows how to do hardware acceleration on a Xenocorp Model 300X Ultracomputer then by all means he can create his own fully optimized Model 300X Y Server without having to worry about having to target SDL, DirectX, OpenGL, GGI, DirectFB, SVGALIB, iPAQ, Palmpilot, etc. in the same source tree. 2) In the same vane as point #1 above, it simplifies the reference implementation (i.e. the current source tree) because it doesn't have to be portable. We don't need a gazillion abstraction layers in the reference implementation to account for every single possible hardware/OS configuration. 3) They can write the Y server in whatever programming language they want. It can be C, C++, Lisp, even friggin perl if they want. So long as a client can connect to it and send Y messages, it doesn't matter what language the server is programmed in. 4) There can be more developers working/exploring the project. With one source tree, only a few people can submit changes without screwing it up. You don't want everyone and their grandmother dipping into the source and changing things. But if there are multiple small groups implementing their own Y servers they can do as they please. 5) Makes it easier to develop. I guess this is just a rehash, but if everyone can use their own language and coding style; develop and their own pace; and not have to flip through a huge, over-abstracted, single base of code; then it will be easier for them to work on the project. For example, when I look at a function called DrawWindow() I want to see code that puts a grey box on the screen. I don't want to see two or three layers of abstraction, pointers to user-defined functions, structures that hold who-knows-what information, and other garbage. Whaddya think? Mack From rogelio at smsglobal.net Fri Jul 2 04:48:26 2004 From: rogelio at smsglobal.net (Rogelio Serrano) Date: Fri Jul 2 04:48:34 2004 Subject: [Y-devel] Spec vs. Implementation In-Reply-To: Message-ID: <3226e06cd01c86307c19be3497e5035d@debian> On 2004-07-02 11:17:11 +0800 clearm wrote: > I think the best way to develop a window system these days is > to develop a > specification instead of a single source tree implementation. > You'd simply > publish the specification (like the X Window spec or Java > spec), and let > anyone who wants to develop an implementation have at it. The > advantage of > this is: > > 1) Everyone can develop their own Y Server on whatever > hardware/OS they > want. All they have to do is make sure that they interface > with the client > API properly. So, if Joe Blow knows how to do hardware > acceleration on a > Xenocorp Model 300X Ultracomputer then by all means he can > create his own > fully optimized Model 300X Y Server without having to worry > about having to > target SDL, DirectX, OpenGL, GGI, DirectFB, SVGALIB, iPAQ, > Palmpilot, etc. > in the same source tree. > > 2) In the same vane as point #1 above, it simplifies the > reference > implementation (i.e. the current source tree) because it > doesn't have to be > portable. We don't need a gazillion abstraction layers in the > reference > implementation to account for every single possible hardware/OS > configuration. > > 3) They can write the Y server in whatever programming > language they want. > It can be C, C++, Lisp, even friggin perl if they want. So > long as a client > can connect to it and send Y messages, it doesn't matter what > language the > server is programmed in. > > 4) There can be more developers working/exploring the > project. With one > source tree, only a few people can submit changes without > screwing it up. > You don't want everyone and their grandmother dipping into the > source and > changing things. But if there are multiple small groups > implementing their > own Y servers they can do as they please. > > 5) Makes it easier to develop. I guess this is just a > rehash, but if > everyone can use their own language and coding style; develop > and their own > pace; and not have to flip through a huge, over-abstracted, > single base of > code; then it will be easier for them to work on the project. > For example, > when I look at a function called DrawWindow() I want to see > code that puts a > grey box on the screen. I don't want to see two or three > layers of > abstraction, pointers to user-defined functions, structures > that hold > who-knows-what information, and other garbage. > > Whaddya think? > > Mack > > > I like that idea. Then all Mark has to do is make a reference implementation. From rogelio at smsglobal.net Fri Jul 2 05:22:59 2004 From: rogelio at smsglobal.net (Rogelio Serrano) Date: Fri Jul 2 05:23:07 2004 Subject: [Y-devel] opengl Message-ID: <1a2b34dae6d747ed6611c9d023797117@debian> has anybody tried using opengl for drawing widgets? From clearm at comcast.net Fri Jul 2 06:05:28 2004 From: clearm at comcast.net (clearm) Date: Fri Jul 2 06:06:05 2004 Subject: [Y-devel] Generating Interest Message-ID: I don't mean to advertise, but I started a new website which I hope will increase interest and knowledge in Y Windows and other 2D graphics projects. Its at http://www.linux2d.org . Mostly I'm interested in FBDEV programming, which is lower level than GGI, SDL and DirectFB. My goal is to teach people how to roll their own graphics APIs if they want to instead of relying on the canned ones. I'm also interested in developing window systems and GUI API's. I remember a few years ago when DOS mode 13h programming was popular and there were web pages all over dedicated to Mode 13h game programming. Anyone remember Allegro and DJGPP? That is the community that I'm trying to recreate, except I want to do it in the Linux world using the framebuffer device. Hopefully, with enough interest and applications written for FBDEV, we will see more interest in developing accelerated FBDEV drivers. I'm not all that interested in GGI or DirectFB. Both of them have obtuse, over-abstracted API's. I wonder why people keep trying to write portable graphics API's when the portability-inspired abstaction layers make them so complex and over-engineered that nobody wants to use them (let alone port them) in the first place?!?! I also recently discovered how to do mouse programming via the new kernel event interface. So a new mouse tutorial is coming soon in addition to the few tutorials that are already there. Be sure to visit the forum too! No registration required! Send me your libs/links and I'll post them! MC From clearm at comcast.net Fri Jul 2 06:13:55 2004 From: clearm at comcast.net (clearm) Date: Fri Jul 2 06:14:29 2004 Subject: [Y-devel] opengl In-Reply-To: <1a2b34dae6d747ed6611c9d023797117@debian> Message-ID: > has anybody tried using opengl for drawing widgets? Take a look here: http://glow.sourceforge.net/ Its built on GLUT though. -- MC From rogelio at smsglobal.net Fri Jul 2 06:56:52 2004 From: rogelio at smsglobal.net (Rogelio Serrano) Date: Fri Jul 2 06:57:02 2004 Subject: [Y-devel] opengl In-Reply-To: Message-ID: On 2004-07-02 13:13:55 +0800 clearm wrote: >> has anybody tried using opengl for drawing widgets? > > Take a look here: http://glow.sourceforge.net/ > > Its built on GLUT though. > Im going to port Y to opengl using miniglx. I will develop on GLX first then port it to miniglx when it has stabilised. From rogelio at smsglobal.net Fri Jul 2 08:03:37 2004 From: rogelio at smsglobal.net (Rogelio Serrano) Date: Fri Jul 2 08:03:47 2004 Subject: [Y-devel] opengl In-Reply-To: Message-ID: <60faddd9367d8496f3576d7d45faa939@debian> On 2004-07-02 14:54:25 +0800 Rogelio Serrano wrote: > On 2004-07-02 14:41:29 +0800 clearm wrote: > >>> Im going to port Y to opengl using miniglx. I will develop on >>> GLX first then port it to miniglx when it has stabilised. >>> >>> Check out Glitz while you're at it. Its the Quartz Extreme >>> equivalent >> being developed by freedesktop.org. >> >> > > I already did looks ok. Im just a little hesitant to hack > cairo and make it > work on fbdev/dri and miniglx. Maybe i will try that first. > But then that > would mean porting Y to cairo instead. I dont want to use Y+ > its in c++. And > my system is objc only. > It might be easier to develop Y when i can run it in an opengl window in x. From clearm at comcast.net Fri Jul 2 08:37:30 2004 From: clearm at comcast.net (clearm) Date: Fri Jul 2 08:38:07 2004 Subject: [Y-devel] Question about events Message-ID: I have a question about implementing an event system - perhaps someone can answer this... BACKGROUND: Window systems such as X and Y have event systems that notify client apps when certain events occur. Some of these notifications are easy to program, such as key presses and mouse clicks - when the keyboard driver or mouse driver tells the server that a key is pressed or the mouse is moved, then the window system simply sends a "keypressNotify" or "mousemoveNotify" event to the application. But other notifications seem very difficult to implement, for example "enterNotify" and "leaveNotify" events. QUESTION: How does a window system know when the mouse enters/leaves the bounding box of a particular window/widget, especially since these windows/widgets are nested within one another? Does the window system have to test the mouse cursor location against the bounds of each window/widget *every* time the pointer moves?!?! That seems like an awful lot of work if there are a lot of windows/widgets on screen. It also means a lot of if statements, which means it's terribly inefficient on a pipelined processor. How do window systems implement enterNotify and leaveNotify event notifications? -- MC From james at grickle.org Fri Jul 2 13:16:44 2004 From: james at grickle.org (James Harr) Date: Fri Jul 2 13:16:52 2004 Subject: [Y-devel] Question about events In-Reply-To: References: Message-ID: <200407020716.44227.james@grickle.org> > Does the window system have > to test the mouse cursor location against the bounds of each window/widget > *every* time the pointer moves?!?! That seems like an awful lot of work if > there are a lot of windows/widgets on screen. It also means a lot of if > statements, which means it's terribly inefficient on a pipelined processor. Actually it doesn't have to test everything. The only thing it will really have to test is the widget it is currently in, and any of its children widgets. It's hard to put this into an example, but lets say there is a put-stuff-anywhere widget where you could just throw children widgets in at arbitrary locations. Your mouse is inside the put-stuff-anywhere widget. It only has to test for if you exit its borders or if the mouse crosses into a child widget (and non-recursive so it doesn't have to keep track of children of children). Even on a complex widget this is a relatively simple operation. You're comparing integers which is fast. Then take into account that most of the time you will be on a leaf widget (no children). The most calculations will happen in the root widget. Now who ever does these event notifications probably has a better idea. Your mouse doesn't have that fast of a refresh rate either in comparison to the CPU. A quick google search shows that usb mice sample at 135Hz by default (http://www.tweak3d.net/articles/q3strategy/2.shtml). These calculations are rather insignificant in comparison to everything else your cpu does. -- James Harr http://www.grickle.org/ From phil at y-windows.org Sun Jul 18 00:25:00 2004 From: phil at y-windows.org (phil@y-windows.org) Date: Sun Jul 18 00:25:03 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil Message-ID: <1090106700.40f9b54c405e6@www.tastycake.net> Hi all, I've (finally) got the two things I needed to start hacking on Y: a decent Linux box and permission to do it. With any luck I'll be able to contribute something worthwhile to the project. Here are the thing I know I need/should/want to do, in no particular order: Make sure Y is 64-bit clean. Implement a shared memory transport mechanism -- should give local apps a bit of a speed boost. Port gvim. Implement a screen lock. Get a list of every known widget on the face of the earth, and use it to: * work out the simplest set of primitives required to make it possible to build every widget * work out which need to be implemented for v1.0 Come up with a way of doing themes which does not preclude building a hardware Y terminal. Work out the API for video playback. Work out the sound API -- will need to coordinate it with the above. Build all the regular desktop apps (file manager, etc). Remote viewports, input devices etc. XFree86/X.Org driver stealing. Port Gecko (probably as a widget), then firefox+thunderbird. GL support. X protocol emulation. Suspend/resume of entire Y sessions. === Tomorrow (well, later today as it is now), I'll reply to this with my ideas on _how_ to do all these things... Cheers, Phil -- If it's worth doing, than it's worth spending a few minutes thinking which is the best way to do it. From phil at y-windows.org Sun Jul 18 11:59:50 2004 From: phil at y-windows.org (phil@y-windows.org) Date: Sun Jul 18 11:59:53 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <1090106700.40f9b54c405e6@www.tastycake.net> References: <1090106700.40f9b54c405e6@www.tastycake.net> Message-ID: <1090148390.40fa58266e14c@www.tastycake.net> As promised... Quoting meself: > Here are the thing I know I need/should/want to do, in no particular order: > > Make sure Y is 64-bit clean. I should be able to get this done today. It should be a case of looking through the code for "int" and "unsigned" and replacing them with int32_t, uint32_t, size_t, off_t, ptrdiff_t, etc as appropriate. > Implement a shared memory transport mechanism -- should give local apps a bit > of a speed boost. I'm going to do this with shm_open/mmap rather than shmat/shmget. It's just a wee bit easier to manage the namespace if you're working with strings rather than 32-bit ints. I'll extend the network protocol to include a try-and-negotiate-shared-memory phase, so apps shouldn't know which one they're on. > Port gvim. So I can develop Y in Y. > Implement a screen lock. Shouldn't be too hard -- replace the whole desktop with a plane in a cheap colour (black for CRTs white for LCDs), and stick an unlock box in the centre of each viewport. > Get a list of every known widget on the face of the earth, and use it to: > * work out the simplest set of primitives required to make it possible to > build every widget > > * work out which [widgets] need to be implemented for v1.0 These are hard. Getting the list probably involves trawling the docs on msdn, adc, motif, qt, gtk, et al. > Come up with a way of doing themes which does not preclude building a > hardware Y terminal. Something like nvidia's Cg, but for theming (Ct?). Some language which can express everything you might need to express in order to theme something, but is simple enought that we can check it for security. Bytecode compiled from this language could then be JIT compiled and executed within the server at runtime. > Work out the API for video playback. This'll involve a nasty trawl through the xine-lib source to see what would be the easiest API to provide. > Work out the sound API -- will need to coordinate it with the above. As above really. Will probably want a non-video-coordinated version first so we can write yTunes... > Build all the regular desktop apps (file manager, etc). Too obvious to comment on. Some of these will need to be heavily commented so people can use them as crib sheets. > Remote viewports, input devices etc. So we can do desktop forwarding, hotdesking (terminal services style), and remote control big screen demos for trade shows... > XFree86/X.Org driver stealing. So I can use native Y without wasting my GeForce FX. > Port Gecko (probably as a widget), then firefox+thunderbird. Self explanatory. > GL support. Shouldn't be too hard to rig up a pass-through for the SDL hosted versions. Doing it native will be trickier unless we've managed to nick X drivers. > X protocol emulation. So I can emerge -C x11-base/xorg-x11. > Suspend/resume of entire Y sessions. Will be realistically impossible without app support. We're going to need callbacks here. Any comments are of course welcome, Regards, Phil -- Quanti canicula in illa fenestre? From rawler at rsn.bth.se Sun Jul 18 16:42:14 2004 From: rawler at rsn.bth.se (Ulrik Mikaelsson) Date: Sun Jul 18 16:42:28 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <1090148390.40fa58266e14c@www.tastycake.net> References: <1090106700.40f9b54c405e6@www.tastycake.net> <1090148390.40fa58266e14c@www.tastycake.net> Message-ID: <200407181742.20383.rawler@rsn.bth.se> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > Any comments are of course welcome, Ehm, yeah. Sweet work! I'm thrilled to see there is still some activity in the Y project. Y has a huge potential to be something quite revolutionary for Unix desktops, and really should be pushed and pushed and pushed until it's usable and the standard environment on my desktop. ;) I would just like to state that you seem to be focusing on the right things, and in the right order with a sound angle of attack for each issue. Keep the good work up. I'm looking forward to see your progress. Regards / Ulrik - -- If you think the system is working, ask someone who's waiting for a prompt. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA+ppZ069SELtZwIkRAsUKAJ9YD/hZGgjgdW0dvnVAPo6W6OSl7gCeIKCw GrElSAqVto0XNbFr0lnWWSc= =3PXz -----END PGP SIGNATURE----- From phil at y-windows.org Sun Jul 18 18:50:09 2004 From: phil at y-windows.org (phil@y-windows.org) Date: Sun Jul 18 18:50:11 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <1090165279.10608.30.camel@diego.intern.de> References: <1090165279.10608.30.camel@diego.intern.de> Message-ID: <1090173009.40fab8515fa71@www.tastycake.net> I don't usually play the part of Billy-goat Gruff, but anyway... Quoting Jost Boekemeier : > > Implement a shared memory transport mechanism -- should give local apps a > > bit of a speed boost. > > Nonsense. Latency is your enemy, not bandwidth... And where did I mention bandwidth? The latency of a synchronised shared memory system is a lot lower than that of a network protocol (even over local loopback or unix sockets). Shared memory does not involve the kernel _at all_. You avoid 2 syscalls per transaction. > So nuke the current protocol and send a high level description to the > server. Be careful to not make the network split at widget-level but on > component-level. I'll take a look at the current protocol before I think about changing it. Also, as far as there's any distinction between a widget and a component, I understand widget to be the view of a classic gui srchitecture and component to encompass that and some elements of model and controller. For the majority of resources (contents of lists, trees etc) I can see no good reason to mandate that they be on the server (and plenty which make me want to ensure they're not). > > Get a list of every known widget > > Doesn't work (this has already discussed to death, so I wan't explain it > again). The only sane way to implement the "widget server" is to make > the widgets transferable. Not going to implement every known widget, just all the useful ones (viz, those in the other toolkit's core set) and provide a callback proxy widget which will behave as the server-side presence of those we haven't implemented. > > Build all the regular desktop apps (file manager, > > You cannot start designing apps when even the basics are not > implemented. That's a CGSM*. How do you know what you need if you don't have use cases? It's a lot easier to build your apps with stub calls so you know what kind of API is going to be useful *before* you invest a lot of time implementing. > > Suspend/resume of entire Y sessions > > Not possible. Prove it. Mathematically. A truer statement would be "Very Hard". > > XFree86/X.Org driver stealing. > > Huh!? What do you want to steal? (I am starting to think that this is > a fake post, but anyway) If Y can talk enough like X that the accelerated X drivers can't tell the difference, we get a massive amount of hardware coverage, without having to worm the specs of card out of manufacturers. > > Port Gecko (probably as a widget) > > I think I should stop here. You have definitely much to learn. I > suggest to start looking at kdrive, glitz and cairo for the backend and > XUL for the frontend. You should also take a look at DirectX9 instead of > OpenGL, because OpenGL is *not* a good target for hardware 2d > acceleration (see david reeveman's post). A good start would also > probably the design of the Avalon graphics system, especially the MIL. I am always happy to learn, although I prefer it to come from someone with less of a 'tood. It's probably worth noting that I didn't mention OpenGL in the context of providing 2D acceleration. > But first of all it is necessary to understand that X is only a HAL, it > is an abstraction which transforms input events, defines and operates > on shapes. But a widget server is located on top of this HAL, it > accepts huge scene graphs from the users and splits them so that the HAL > can consume them. It is important to not mix the two technologies. I know what X is. I reject your last statement as unjustified. Phil * See "Yes Minister" Series 1. From mtenhagen at quicknet.nl Sun Jul 18 21:28:09 2004 From: mtenhagen at quicknet.nl (Michiel ten Hagen) Date: Sun Jul 18 19:29:26 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <1090148390.40fa58266e14c@www.tastycake.net> References: <1090106700.40f9b54c405e6@www.tastycake.net> <1090148390.40fa58266e14c@www.tastycake.net> Message-ID: <200407182028.09211.mtenhagen@quicknet.nl> On Sunday 18 July 2004 10:59, phil@y-windows.org wrote: > > Build all the regular desktop apps (file manager, etc). I was planning on doing work on a file manager when I get some time (around oktober). But what we do need for that is a stable api (95% stable). Phil, you sound very confident in doing a lot of work could you tell a little about your background and how much work you think you're going to do? Regards, Michiel From phil at y-windows.org Sun Jul 18 20:02:10 2004 From: phil at y-windows.org (phil@y-windows.org) Date: Sun Jul 18 20:02:13 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <200407182028.09211.mtenhagen@quicknet.nl> References: <1090106700.40f9b54c405e6@www.tastycake.net> <1090148390.40fa58266e14c@www.tastycake.net> <200407182028.09211.mtenhagen@quicknet.nl> Message-ID: <1090177330.40fac932505a8@www.tastycake.net> Quoting Michiel ten Hagen : > On Sunday 18 July 2004 10:59, phil@y-windows.org wrote: > > > Build all the regular desktop apps (file manager, etc). > > I was planning on doing work on a file manager when I get some time (around > oktober). Mark and I have had some chats about usability in general and how to apply it to the file manager in particular. I find it relatively difficult to formulate the plan in text only -- I've only ever explained it face-to-face, so I think I'll need to produce some kind of a document with pretty pictures before it will make sense to anyone else. > But what we do need for that is a stable api (95% stable). I don't think we want to do things that way (or at least if we do things the way I think we should, it won't be stable by this October). It's hard to design a good API if you do it in a vacuum. What we need is for someone to build some throwaway prototypes of the essential apps and document what API they would like to have to make the GUI part of their coding a doddle. Ideally we need a few people doing this so we have a reasonable chance of finding something most people will find relatively intuitive. This is mostly design and application-architecture work. > Phil, you sound very confident in doing a lot of work could you tell a little > about your background and how much work you think you're going to do? I was a student at IC when Mark started this up. We (Mark, Dave, Nick and I) had hashed out the outline of the project in fairly vaporous terms a bit before the final-year-project season, but Mark was the first person to actually produce anything worthwhile. At the moment I have a pretty good idea of where we want to get to and where we are. I'm a full-time professional C programmer, hence the need to get permission before I could work on Y. I reckon on being able to spend about half a day per week on Y. In the past, Mark has tended to outstrip me in terms of lines of usable code produced per unit time; but that all seemed to change when he got FF XI... Cheers, Phil From rawler at rsn.bth.se Sun Jul 18 20:46:08 2004 From: rawler at rsn.bth.se (Ulrik Mikaelsson) Date: Sun Jul 18 20:46:31 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <1090177330.40fac932505a8@www.tastycake.net> References: <1090106700.40f9b54c405e6@www.tastycake.net> <200407182028.09211.mtenhagen@quicknet.nl> <1090177330.40fac932505a8@www.tastycake.net> Message-ID: <200407182146.14303.rawler@rsn.bth.se> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sunday 18 July 2004 21.02 skrev phil@y-windows.org: > > But what we do need for that is a stable api (95% stable). > I don't think we want to do things that way (or at least if we do things > the way I think we should, it won't be stable by this October). ?It's hard > to design a good API if you do it in a vacuum. ?What we need is for someone > to build some throwaway prototypes of the essential apps and document what > API they would like to have to make the GUI part of their coding a doddle. > ?Ideally we need a few people doing this so we have a reasonable chance of > finding something most people will find relatively intuitive. I certainly agree. To develop an application, you need an API, but to develop an API, you need to know what requirements it has to fulfill, and the best way of learning this is to develop an application. The two has to go hand in hand. This having been said, I'd suggest that if you haven't done so before, take a look at Qt, and see how they do things. I have tried working with a LOT of various widget toolsets, Qt, Xlib (not a Widget-set, but anyways), WinForms (.NET-gui), MFC, PicoGUI, GTK(version 1 only), Swing, AWT, Borlands GUI-toolkit from Borland C++ Builder (don't know it's name), and from all these toolkits, Qt is IMHO by far the superior one. According to an (I assume completly unbiased ;) ) survey performed by Trolltech, 97% would recommend Qt to others. This is of course completely non-trust-worthy data, but the fact remains that I still haven't spoken to a single developer that have really tried Qt and disliked it. (After this posting I expect that to change, though ;) ) No matter how much you want Y to resemble/differ from Qt, I think we all can agree on one thing: The protocol MUST be flexible enough to create a pure, non-X11 based GTK2 backend, as well as a Qt4 backend. I am unsure about just how Qt4 will work concerning backends, according to Trolltech the modularity of Qt4 drawing have been completely redesigned and improved, but if that modularity extends to the Widget level is something left to see. > > Phil, you sound very confident in doing a lot of work could you tell a > > little about your background and how much work you think you're going to > > do? > *-snip snip-* The simple fact that Phil has a y-windows.org address clearly shows that he has had close contact with Mark, and that Mark trusts him for Y-development. It also indicates that further development of Y will be done in coordination with Mark, ensuring somewhat consistent focus and development. Who's good enough for Mark is good enough for me. ;) Regards / Ulrik - -- Nothing is so firmly believed as that which we least know. -- Michel de Montaigne -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA+tOE069SELtZwIkRAmkOAKCBiszP/o0bcKtIvd1M8Os9PPhNBQCcDgUr h3KBi4dsFQEfbOBIoY90wZU= =kHRH -----END PGP SIGNATURE----- From jpd at dsb.tudelft.nl Sun Jul 18 20:55:43 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Sun Jul 18 20:56:07 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <1090173009.40fab8515fa71@www.tastycake.net> References: <1090165279.10608.30.camel@diego.intern.de> <1090173009.40fab8515fa71@www.tastycake.net> Message-ID: <20040718195543.GA38772@dsb.tudelft.nl> On Sun, Jul 18, 2004 at 06:50:09PM +0100, phil@y-windows.org wrote: > I don't usually play the part of Billy-goat Gruff, but anyway... > > Quoting Jost Boekemeier : [snippety] > > > > Build all the regular desktop apps (file manager, > > > > You cannot start designing apps when even the basics are not > > implemented. > > That's a CGSM*. How do you know what you need if you don't have use cases? > It's a lot easier to build your apps with stub calls so you know what kind of > API is going to be useful *before* you invest a lot of time implementing. One thing is that you need a clear view of the field to know what generic use cases will pop up. But after 20+ years of /clickibunti/ programs there should be /some/ of that available. > > > Suspend/resume of entire Y sessions > > > > Not possible. > > Prove it. Mathematically. > > A truer statement would be "Very Hard". True suspend/resume, probably. Now that I think a bit about it, for starters something like screen does woulnd't be too hard to do. In the most simplistic form all you really need to do is have some stub keep state: when in detached mode, act as /dev/null, otherwise pass on the stream to whoever wants to see it. Oh, and the stub needs to signal a massive repaint-everything at reattach. That or keep a shadow image and send that as primer on reattach. Probably some detail I've missed, but one doesn't have to cross every bridge before reaching the first one. I'd say you get the ability to squeeze in that stub as a freebie with the protocol design (as I understand it, anyway). > > > XFree86/X.Org driver stealing. > > > > Huh!? What do you want to steal? (I am starting to think that this is > > a fake post, but anyway) Oh don't be so negative. Your not-understanding doesn't have much to do with Phil's post being fake or not. (I'm not saying I understand everything, or even anything, but at least I'm not pouting.) > If Y can talk enough like X that the accelerated X drivers can't tell the > difference, we get a massive amount of hardware coverage, without having to > worm the specs of card out of manufacturers. One of the things is that you really need to know how to talk X, and apart from the view that it's baroque, not many people do. I for one don't. If you do, great. How bloated /is/ the accelerated X driver protocol, anyway? Don't answer, I don't really want to know. I can't do a thing with the knowledge ATM anyway. [snip] > * See "Yes Minister" Series 1. One of the great things I yet have to see. I've seen some parts, but not all, so not enough. :-) Anyway, I'd say welcome and well met to you phil, but that doesn't justify the morose silence on the list at large. You sound like you've got at least half a clue and some fresh ideas. Good. Now you'd better grow a very thick hide very quickly or you end up sour and silent like the rest of us. Don't get me wrong, I do appreciate your effort and ideas, but be wary that while the foundations are utterly cool, there does unfortunately not seem to be much of an environment to nurture and grow the ideas in. -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From jpd at dsb.tudelft.nl Sun Jul 18 21:10:28 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Sun Jul 18 21:10:34 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <1090177330.40fac932505a8@www.tastycake.net> References: <1090106700.40f9b54c405e6@www.tastycake.net> <1090148390.40fa58266e14c@www.tastycake.net> <200407182028.09211.mtenhagen@quicknet.nl> <1090177330.40fac932505a8@www.tastycake.net> Message-ID: <20040718201028.GB38772@dsb.tudelft.nl> On Sun, Jul 18, 2004 at 08:02:10PM +0100, phil@y-windows.org wrote: > Mark and I have had some chats about usability in general and how > to apply it to the file manager in particular. I find it relatively > difficult to formulate the plan in text only -- I've only ever > explained it face-to-face, so I think I'll need to produce some kind > of a document with pretty pictures before it will make sense to anyone > else. Right. That at least explains the address. You know there is a school of thought that says that if you can code it, you can write it in english, too. :-) Anyway, we can use the chatter, if nothing else. Explain away. [snip: throwaway programs to flesh out the api] > > This is mostly design and application-architecture work. Basically, ACK. I'm not promising I can write much or anything at all, being a overworked underpaid sysadmin might be a factor in that. But if I had the time the first I'd work on is to stabilize the build environment so I don't have to chase five gnu tools to whatever is the latest version this week just to be able to build the latest development versions of Y. Then having shots at building apis would become easier for me, and I'd imagine for others as well. [snip] > In the past, Mark has tended to outstrip me in terms of lines of > usable code produced per unit time; but that all seemed to change when > he got FF XI... Oh, and we thought he had work or a life or whatever. How disappointing. :-) -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From durin at sbcglobal.net Sun Jul 18 21:34:31 2004 From: durin at sbcglobal.net (Augie Fackler) Date: Sun Jul 18 21:34:56 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <200407182146.14303.rawler@rsn.bth.se> References: <1090106700.40f9b54c405e6@www.tastycake.net> <200407182028.09211.mtenhagen@quicknet.nl> <1090177330.40fac932505a8@www.tastycake.net> <200407182146.14303.rawler@rsn.bth.se> Message-ID: On Jul 18, 2004, at 2:46 PM, Ulrik Mikaelsson wrote: > No matter how much you want Y to resemble/differ from Qt, I think we > all can > agree on one thing: The protocol MUST be flexible enough to create a > pure, > non-X11 based GTK2 backend, as well as a Qt4 backend. I am unsure > about just > how Qt4 will work concerning backends, according to Trolltech the > modularity > of Qt4 drawing have been completely redesigned and improved, but if > that > modularity extends to the Widget level is something left to see. I'd like to interject that working with languages other than C++ would be a good thing too. Objective-C comes to my mind first, but also C# and other weird languages. Obj-C code doesn't mix at all with C++ unless you're on an Apple-modified gcc or you are using disgusting wrapper functions, as an example. I'm biased towards Obj-C over other languages, and hope that a native port of GNUstep will be possible. That's my long-term goal... AF --- main(){char ch[7];ch[1]=(ch[4]=((ch[3]=(ch[2]=103)^14)^12))^16; ch[5]=(ch[6]=(ch[0]=(ch[1]>>1)+7)&42)+10;printf(ch);} From james at grickle.org Sun Jul 18 21:42:29 2004 From: james at grickle.org (James Harr) Date: Sun Jul 18 21:42:43 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <20040718195543.GA38772@dsb.tudelft.nl> References: <1090165279.10608.30.camel@diego.intern.de> <1090173009.40fab8515fa71@www.tastycake.net> <20040718195543.GA38772@dsb.tudelft.nl> Message-ID: <200407181542.29649.james@grickle.org> On Sunday 18 July 2004 2:55 pm, JP Dinger wrote: > True suspend/resume, probably. Now that I think a bit about it, for > starters something like screen does woulnd't be too hard to do. In the > most simplistic form all you really need to do is have some stub keep > state: when in detached mode, act as /dev/null, otherwise pass on the > stream to whoever wants to see it. Oh, and the stub needs to signal a > massive repaint-everything at reattach. That or keep a shadow image and > send that as primer on reattach. Probably some detail I've missed, but > one doesn't have to cross every bridge before reaching the first one. With Y, the application doesn't "draw" anything. The server does. As stated in Mark's Theses (IIRC) the process of reattaching would simply be sending the server what widgets you have among other things. The server does all the drawing as well as buffering. It's easy to forget that. In its most simplistic fassion, Y is this: The application tells Y server to draw a button and notify the application if anyone clicks it. Granted there are much more subtle details to this, all the graphics happen in the server. > I'd say you get the ability to squeeze in that stub as a freebie with > the protocol design (as I understand it, anyway). Yeah, that's in Mark's Thesis too how that will work. > > > > XFree86/X.Org driver stealing. > > > > > > Huh!? What do you want to steal? (I am starting to think that this is > > > a fake post, but anyway) > > Oh don't be so negative. Your not-understanding doesn't have much to > do with Phil's post being fake or not. (I'm not saying I understand > everything, or even anything, but at least I'm not pouting.) Stealing drivers would be as simple as calling the right functions in the drivers and providing the propper methods for drawing everything. With Y's modularness it shouldn't be hard to provide a proxy driver that simply wraps around to other calls, although even a simple wrapper driver might slow things down. > > If Y can talk enough like X that the accelerated X drivers can't tell the > > difference, we get a massive amount of hardware coverage, without having > > to worm the specs of card out of manufacturers. > > One of the things is that you really need to know how to talk X, and > apart from the view that it's baroque, not many people do. I for one > don't. If you do, great. How bloated /is/ the accelerated X driver > protocol, anyway? Don't answer, I don't really want to know. I can't > do a thing with the knowledge ATM anyway. You don't really need to know how to talk X, you need to know how to talk X drivers. The drivers really just draw crap on screens, they don't worry about the protocol at all. Unless the drivers are really that bloated :p > Don't get me wrong, I do appreciate your effort and > ideas, but be wary that while the foundations are utterly cool, there > does unfortunately not seem to be much of an environment to nurture and > grow the ideas in. Haha, you noticed that too :) I think we just need a few people to lead everyone into development than have everyone telling everyone else how bad their idea is. I'm guilty of it too, but I don't have much time for anything. I have a lot of other things to worry about in my life. Y is on the back burner for now... -- James Harr http://www.grickle.org/ From asuffield at debian.org Sun Jul 18 22:14:20 2004 From: asuffield at debian.org (Andrew Suffield) Date: Sun Jul 18 22:14:39 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <1090148390.40fa58266e14c@www.tastycake.net> References: <1090106700.40f9b54c405e6@www.tastycake.net> <1090148390.40fa58266e14c@www.tastycake.net> Message-ID: <20040718211420.GC2524@suffields.me.uk> On Sun, Jul 18, 2004 at 11:59:50AM +0100, phil@y-windows.org wrote: > As promised... > > Quoting meself: > > > Here are the thing I know I need/should/want to do, in no particular order: > > > > Make sure Y is 64-bit clean. > > I should be able to get this done today. It should be a case of looking through > the code for "int" and "unsigned" and replacing them with int32_t, uint32_t, > size_t, off_t, ptrdiff_t, etc as appropriate. I've almost done this already, although a few still remain. > > Implement a shared memory transport mechanism -- should give local apps a bit > > of a speed boost. > > I'm going to do this with shm_open/mmap rather than shmat/shmget. It's just a > wee bit easier to manage the namespace if you're working with strings rather > than 32-bit ints. I'll extend the network protocol to include a > try-and-negotiate-shared-memory phase, so apps shouldn't know which one they're > on. mmap() is the right way to go, and you don't need to play namespace games. I've built the protocol to make this easy to add, even if it's quite evil; I can sketch out how to go about it if you're interested. > > Port gvim. > > So I can develop Y in Y. There are a couple of tricky prerequisites for this. The nastiest one is probably font handling. I think all the others are taken care of now (although you'd have to work from my branch to get current YKB support). > > Work out the API for video playback. > > This'll involve a nasty trawl through the xine-lib source to see what would be > the easiest API to provide. An Xv clone, I'd say. That's closest to what they want to use. > > XFree86/X.Org driver stealing. > > So I can use native Y without wasting my GeForce FX. Their drivers suck. You will regret this. You have been warned. Frankly I'd rather get hold of the hardware documentation and do it from scratch. > > GL support. > > Shouldn't be too hard to rig up a pass-through for the SDL hosted versions. > Doing it native will be trickier unless we've managed to nick X drivers. Excuse me while I vomit. All the existing free GL implementations are vile devilspawn. They're even worse than xfree86 drivers. -- .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | `. `' | `- -><- | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040718/db4bc49c/attachment.bin From jpd at dsb.tudelft.nl Sun Jul 18 22:53:27 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Sun Jul 18 22:53:35 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <200407181542.29649.james@grickle.org> References: <1090165279.10608.30.camel@diego.intern.de> <1090173009.40fab8515fa71@www.tastycake.net> <20040718195543.GA38772@dsb.tudelft.nl> <200407181542.29649.james@grickle.org> Message-ID: <20040718215327.GB38903@dsb.tudelft.nl> On Sun, Jul 18, 2004 at 03:42:29PM -0500, James Harr wrote: > > With Y's modularness it shouldn't be hard to provide a proxy driver that > simply wraps around to other calls, although even a simple wrapper driver > might slow things down. Given that Y is incredibly lightweight (well, it is now), and it's meant as a transitional thing only (even if it takes 20 years to get everybody off X and on Y) I think the cost of wrapping should be affordable. [snippety] > You don't really need to know how to talk X, you need to know how to > talk X drivers. The drivers really just draw crap on screens, they > don't worry about the protocol at all. Unless the drivers are really > that bloated :p No, you're right those are different things. I ment the driver interface, not the, err, X protocol interface. Should have said that. Anyway. [snip] > > Don't get me wrong, I do appreciate your effort and > > ideas, but be wary that while the foundations are utterly cool, there > > does unfortunately not seem to be much of an environment to nurture and > > grow the ideas in. > > Haha, you noticed that too :) Well, it was hard to miss. People publicly left because of it. I've thought of (publicly) unsubscribing because of it too. Then again, I think the project still has a future and I might even be of some help improving the environment now and then. > I think we just need a few people to lead everyone into development > than have everyone telling everyone else how bad their idea is. I'm > guilty of it too, but I don't have much time for anything. I have a > lot of other things to worry about in my life. Y is on the back burner > for now... Well, there's a lot of people interested even if many of them have to put it on the backburner for this or that reason. That doesn't mean we shouldn't have some courtesy for each others ideas. Discussion is what the list is for, but that does demand explanation of why you think ideas are very or maybe not so very brilliant. I want an environment for brainstorming and discussion, and I want an environment to try out the ideas. The first one requires some courtesy, and it means you'll have to back up your points with proof or at least argument. The second requires we agree on a build environment that is simple, works for many and doesn't require daily updates of all the build tools that are so cool to have but don't actually contribute much in terms of time saved, stability, and portability. Anyway, I'll step down from my soapbox now. I've said most of the above before and I'll put in as much effort as I can spare to help get there, but with just me on the soapbox it won't happen. -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From jpd at dsb.tudelft.nl Sun Jul 18 23:01:59 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Sun Jul 18 23:02:08 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <20040718211420.GC2524@suffields.me.uk> References: <1090106700.40f9b54c405e6@www.tastycake.net> <1090148390.40fa58266e14c@www.tastycake.net> <20040718211420.GC2524@suffields.me.uk> Message-ID: <20040718220159.GC38903@dsb.tudelft.nl> On Sun, Jul 18, 2004 at 10:14:20PM +0100, Andrew Suffield wrote: > > > XFree86/X.Org driver stealing. > > > > So I can use native Y without wasting my GeForce FX. > > Their drivers suck. You will regret this. You have been warned. > > Frankly I'd rather get hold of the hardware documentation and do it > from scratch. That'd be cool. Now, where'd that stack of sooper seekrit hardware documentation go. I had it here just a minute ago. I wasn't allowed to read it, NDAs all over, but what the hey. > > > GL support. > > > > Shouldn't be too hard to rig up a pass-through for the SDL hosted versions. > > Doing it native will be trickier unless we've managed to nick X drivers. > > Excuse me while I vomit. All the existing free GL implementations are > vile devilspawn. They're even worse than xfree86 drivers. Please do clean up when you're done. I'm not so much interested in your sentiment as in knowing why you feel that way. That, you are more than welcome to share and explain. Do enlighten us. -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From clearm at comcast.net Sun Jul 18 23:17:51 2004 From: clearm at comcast.net (clearm) Date: Sun Jul 18 23:34:10 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <1090148390.40fa58266e14c@www.tastycake.net> Message-ID: I'll believe it when I see it. Mack From jpd at dsb.tudelft.nl Sun Jul 18 23:43:56 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Sun Jul 18 23:44:03 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <200407190012.21004.rawler@rsn.bth.se> References: <1090106700.40f9b54c405e6@www.tastycake.net> <200407182146.14303.rawler@rsn.bth.se> <20040718212725.GA38903@dsb.tudelft.nl> <200407190012.21004.rawler@rsn.bth.se> Message-ID: <20040718224356.GA39038@dsb.tudelft.nl> On Mon, Jul 19, 2004 at 12:12:15AM +0200, Ulrik Mikaelsson wrote: > Sunday 18 July 2004 23.27 skrev du: > > > [...] I still haven't spoken to a single developer that have really > > > tried Qt and disliked it. (After this posting I expect that to change, > > > though ;) ) > > I'm not a developer, but there are things I really dislike about Qt. > > Most of my objections are in the operational use, not in architecture > > and design, as I know hardly about them. That shouldn't stop anyone from > > looking at how Qt does things. OTOH it won't hurt to keep in mind that > > what you think reasonable someone else might not. So, if it doesn't > > really matter, you might as well not make the assumption. > Of course not. I'm fully aware that different people prefer different things, > for instance there seems to be quite a bunch of people out there who prefers > GTK. Why is way over my head, but nevertheless Y will have to attempt to > satisfy them as well as people who prefer WinForms, PicoGui, pure Y, or Qt. If we find one of those we could ask why, just as I did to you about Qt. :-) > > But that leaves open the question why you like Qt. Oh, I already asked. > > Call me impatient. :-) The answer is of course important to making the > > Y api usable and fun to write for. (this just sounds so.. share and enjoy!) > Why I like Qt? I guess it is much a matter of taste, but I always seem to find > things exactly where I'm looking for them. I find the layouting-system to be > incredibly agreeable to work with, providing both RAD (in C++-terms anyways) > and support for more advanced applications with custom requirements. The Qt > designer is great, providing me with an XML-based GUI template that I can > simply compile along with the rest of my code. Beeing a C++ developer, I find > the signal/slot system to be incredibly useful for various solutions, and I > find the QObject-hierarchy to save me a big bunch memory-leaks. It is > cross-platform, yet fast and able to provide support for local oddities such > as window-embedding on X11. Add the stuff that's in the pipeline for Qt4 and > I think Qt is definitely my preferred toolkit. Fair enough. But, how do we get the best out of Qt in such a way that we don't tie ourselves to C++? Y isn't ment to be language specific, after all. > I'm sure there are a bunch of more benefits to get from Qt, as well as there > are benefits to WinForms, or even GTK. I certainly don't think Y should be > biased to, and especially not limited to, what Qt does, but since I and many > others have found Qt to be an agreeable toolkit, the good things about it (in > terms of layouting, especially) should be available in Y as well. One other > thing that would be wise is to make sure that all the native-widgets of Qt > (as well as GTK) has a counterpart in the native widget-set of Y, to enable > the Qt/GTK compability discussed below. Well, at least Y would do well to look why Qt is so nice and learn from it. That's why I asked in the first place. :-) > > > No matter how much you want Y to resemble/differ from Qt, I think we > > > all can agree on one thing: The protocol MUST be flexible enough to > > > create a pure, non-X11 based GTK2 backend, as well as a Qt4 backend. > > I couldn't care less if GTK2 fell over dead tomorrow. But if it's > > important to you, go ahead. :-) > I agree, unfortunately there are still some GTK-application I would not want > to be without, such as Gimp, Sodipodi, and XChat. So far I haven't found > anything free for Linux that beats them in their respective areas. However, I > would not touch GTK-code myself, unless my life depended on it. I happen to use none of them, but firefox seems to depend on GTK2 so I still have to have it installed. I'm fairly happy that seems to be the most of the gnome infection though. And it doesn't show too much. > On the Qt4, I would be interested to dig myself down for a couple of > weeks and try to create something useful, but I'm afraid I don't have > much time, working two jobs right now, and once the second job is > over, I'll keep working on my masters degree. You do whatever needs doing first. > > We don't have a stable api yet, having a shot at making such a backend > > might give useful insights to a stabler api. OTOH, there's this little > > danger of tailoring the API to be only just and nothing more than a > > $foo backend. Still, with that pitfall in mind, it could be a useful > > excercise. > Absolutely. It's important to keep in mind that even if making Qt/GTK work > under Y is important, the main task is to make Y itself work. -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From asuffield at debian.org Mon Jul 19 01:30:39 2004 From: asuffield at debian.org (Andrew Suffield) Date: Mon Jul 19 01:30:45 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <20040718220159.GC38903@dsb.tudelft.nl> References: <1090106700.40f9b54c405e6@www.tastycake.net> <1090148390.40fa58266e14c@www.tastycake.net> <20040718211420.GC2524@suffields.me.uk> <20040718220159.GC38903@dsb.tudelft.nl> Message-ID: <20040719003039.GB2485@suffields.me.uk> On Mon, Jul 19, 2004 at 12:01:59AM +0200, JP Dinger wrote: > On Sun, Jul 18, 2004 at 10:14:20PM +0100, Andrew Suffield wrote: > > > > XFree86/X.Org driver stealing. > > > > > > So I can use native Y without wasting my GeForce FX. > > > > Their drivers suck. You will regret this. You have been warned. > > > > Frankly I'd rather get hold of the hardware documentation and do it > > from scratch. > > That'd be cool. Now, where'd that stack of sooper seekrit hardware > documentation go. I had it here just a minute ago. I wasn't allowed > to read it, NDAs all over, but what the hey. Your own silly fault for buying the wrong hardware. Reverse-engineer it if you really care. > > > > GL support. > > > > > > Shouldn't be too hard to rig up a pass-through for the SDL hosted versions. > > > Doing it native will be trickier unless we've managed to nick X drivers. > > > > Excuse me while I vomit. All the existing free GL implementations are > > vile devilspawn. They're even worse than xfree86 drivers. > > Please do clean up when you're done. I'm not so much interested in your > sentiment as in knowing why you feel that way. That, you are more than > welcome to share and explain. Do enlighten us. Go read the code for yourself. -- .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | `. `' | `- -><- | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040719/1728165b/attachment-0001.bin From rogelio at smsglobal.net Mon Jul 19 01:54:31 2004 From: rogelio at smsglobal.net (Rogelio M.Serrano Jr.) Date: Mon Jul 19 01:54:37 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <20040719003039.GB2485@suffields.me.uk> Message-ID: <91997396527d306b3703ed42974c3c8b@master> On 2004-07-19 08:30:39 +0800 Andrew Suffield wrote: > On Mon, Jul 19, 2004 at 12:01:59AM +0200, JP Dinger wrote: >> On Sun, Jul 18, 2004 at 10:14:20PM +0100, Andrew Suffield wrote: >>> > > XFree86/X.Org driver stealing. >>> > > > So I can use native Y without wasting my GeForce FX. >>> > Their drivers suck. You will regret this. You have been warned. >>> > Frankly I'd rather get hold of the hardware documentation and do >>> it >>> from scratch. >> >> That'd be cool. Now, where'd that stack of sooper seekrit hardware >> documentation go. I had it here just a minute ago. I wasn't allowed >> to read it, NDAs all over, but what the hey. > > Your own silly fault for buying the wrong > hardware. Reverse-engineer it if you really care. > Nvidia will eventually release the docs dont worry. I will in the meantime focus on those with docs available. Why waste time reverse engineering. >>> > > GL support. >>> > > > Shouldn't be too hard to rig up a pass-through for the SDL >>> hosted >>> versions. >>> > Doing it native will be trickier unless we've managed to nick X >>> drivers. >>> > Excuse me while I vomit. All the existing free GL implementations >>> are >>> vile devilspawn. They're even worse than xfree86 drivers. >> Why bother with all that stuff. Focus on GL. >> Please do clean up when you're done. I'm not so much interested in >> your >> sentiment as in knowing why you feel that way. That, you are more >> than >> welcome to share and explain. Do enlighten us. > > Go read the code for yourself. > Yes. Oh and enlighten others too. Hehe. Im was confused myself but with someone elses help i was able to find my way around. Next time the other guy had a problem i helped him out. Off list of course. From jpd at dsb.tudelft.nl Mon Jul 19 07:22:29 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Mon Jul 19 07:22:38 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <91997396527d306b3703ed42974c3c8b@master> References: <20040719003039.GB2485@suffields.me.uk> <91997396527d306b3703ed42974c3c8b@master> Message-ID: <20040719062229.GC39787@dsb.tudelft.nl> On Mon, Jul 19, 2004 at 08:54:31AM +0800, Rogelio M. Serrano Jr. wrote: > On 2004-07-19 08:30:39 +0800 Andrew Suffield > wrote: > >>>> Excuse me while I vomit. All the existing free GL implementations > >>>are > >>>vile devilspawn. They're even worse than xfree86 drivers. > >> > > Why bother with all that stuff. Focus on GL. Focus on _what works_ instead of _lamenting what crap other people already wrote_. What an _interesting_ idea. Wonder why we see so few _interesting_ ideas around here. Maybe because they slip in vomit all the time. > >>Please do clean up when you're done. I'm not so much interested in > >>your sentiment as in knowing why you feel that way. That, you are > >>more than welcome to share and explain. Do enlighten us. > > > >Go read the code for yourself. > > > > Yes. Oh and enlighten others too. Hehe. Im was confused myself but > with someone elses help i was able to find my way around. Next time > the other guy had a problem i helped him out. Off list of course. Of course off list. We can't have Useful Information in here. People publicly helping each other, the very idea! Would disturb the precious vomit and all that. Can't have that of course. -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From rawler at rsn.bth.se Mon Jul 19 08:07:26 2004 From: rawler at rsn.bth.se (Ulrik Mikaelsson) Date: Mon Jul 19 08:07:41 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <20040718224356.GA39038@dsb.tudelft.nl> References: <1090106700.40f9b54c405e6@www.tastycake.net> <200407190012.21004.rawler@rsn.bth.se> <20040718224356.GA39038@dsb.tudelft.nl> Message-ID: <200407190907.32835.rawler@rsn.bth.se> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Monday 19 July 2004 00.43 skrev JP Dinger: > > Why I like Qt? I guess it is much a matter of taste, but I always seem to > > find things exactly where I'm looking for them. I find the > > layouting-system to be incredibly agreeable to work with, providing both > > RAD (in C++-terms anyways) and support for more advanced applications > > with custom requirements. The Qt designer is great, providing me with an > > XML-based GUI template that I can simply compile along with the rest of > > my code. Beeing a C++ developer, I find the signal/slot system to be > > incredibly useful for various solutions, and I find the QObject-hierarchy > > to save me a big bunch memory-leaks. It is cross-platform, yet fast and > > able to provide support for local oddities such as window-embedding on > > X11. Add the stuff that's in the pipeline for Qt4 and I think Qt is > > definitely my preferred toolkit. > Fair enough. But, how do we get the best out of Qt in such a way that we > don't tie ourselves to C++? Y isn't ment to be language specific, after > all. Well, some aspects of the API is not tied to C++ at all. In fact I have a long time thought that Qt would be even more kickass if it were built around C# instead, but that's just my opinion. Things that is easily generic from Qt and apply to all languages are things like the layouting system. One other thing that might be relevant to consider is how to avoid unintentional memory-leaks in the server, as a result of an application behaving bad. For instance, an application should hopefully not be able to connect to a Y server and create thousands of objects, and then forget it's references to them. I don't think the Y server does garbage collection, and I don't think we can safely do garbage collection in the server, so we'll have to look elsewhere for a decent solution. Perhaps the QObject-solution is something that could be applied? One thing that would be awesome is if Y could have it's own designer-like tool to create user interfaces. The Qt designer works by first just creating all the necessary widgets and laying them out, instructing how to glue them together. This information is then stored in XML, and in the build-process of the application, that XML-file is beeing compiled into the native language. In case of C++, it will become a C++ class, intended to be subclass and have it's behavior defined in the subclass, shielding the developer-contributed code from the code done by the UI-designer. Another good thing about the way Qt designer does it's work, is that it is fully possible to write a simple tool that transforms the XML into some other language, such as Python, C, or C#. This functionality makes Qt a very fast toolkit to write small applications to be used only locally in a medium-sized company, and it should really be taken into account for Y. Regards / Ulrik - -- The universe seems neither benign nor hostile, merely indifferent. -- Sagan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA+3My069SELtZwIkRAmtnAJ4rfCUk9M9ePD6ByC0BDrlsfE22NQCdF77p HEHhfuSSIpDTfKWRMNAb1d8= =OI3C -----END PGP SIGNATURE----- From rawler at rsn.bth.se Mon Jul 19 08:09:36 2004 From: rawler at rsn.bth.se (Ulrik Mikaelsson) Date: Mon Jul 19 08:09:51 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <20040719003039.GB2485@suffields.me.uk> References: <1090106700.40f9b54c405e6@www.tastycake.net> <20040718220159.GC38903@dsb.tudelft.nl> <20040719003039.GB2485@suffields.me.uk> Message-ID: <200407190909.39774.rawler@rsn.bth.se> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Monday 19 July 2004 02.30 skrev Andrew Suffield: > Your own silly fault for buying the wrong > hardware. Reverse-engineer it if you really care. Hmm, pardon me if I'm wrong, but isn't there a rabid manufacturer of graphics chips out there that threatens to sue everyone who tries to make a driver for their chip? - -- You can't evaluate a man by logic alone. -- McCoy, "I, Mudd", stardate 4513.3 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA+3Oz069SELtZwIkRAky7AJ9Li2Kncq+htd6KpMUZPFdNPk7ydwCglHXb p77zq5q0EMJ/u8dz4jYyTSE= =m28d -----END PGP SIGNATURE----- From rogelio at smsglobal.net Mon Jul 19 08:40:55 2004 From: rogelio at smsglobal.net (Rogelio Serrano) Date: Mon Jul 19 08:41:03 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <200407190909.39774.rawler@rsn.bth.se> Message-ID: <049c801c67f1b5bfd881fe9ad4533ba4@debian> On 2004-07-19 15:09:36 +0800 Ulrik Mikaelsson wrote: > Monday 19 July 2004 02.30 skrev Andrew Suffield: >> Your own silly fault for buying the wrong >> hardware. Reverse-engineer it if you really care. > Hmm, pardon me if I'm wrong, but isn't there a rabid > manufacturer of graphics > chips out there that threatens to sue everyone who tries to > make a driver for > their chip? > I wonder which one. Hmmm... Rabies.... From asuffield at debian.org Mon Jul 19 12:23:58 2004 From: asuffield at debian.org (Andrew Suffield) Date: Mon Jul 19 12:24:14 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <200407190909.39774.rawler@rsn.bth.se> References: <1090106700.40f9b54c405e6@www.tastycake.net> <20040718220159.GC38903@dsb.tudelft.nl> <20040719003039.GB2485@suffields.me.uk> <200407190909.39774.rawler@rsn.bth.se> Message-ID: <20040719112358.GB12296@suffields.me.uk> On Mon, Jul 19, 2004 at 09:09:36AM +0200, Ulrik Mikaelsson wrote: > Monday 19 July 2004 02.30 skrev Andrew Suffield: > > Your own silly fault for buying the wrong > > hardware. Reverse-engineer it if you really care. > Hmm, pardon me if I'm wrong, but isn't there a rabid manufacturer of graphics > chips out there that threatens to sue everyone who tries to make a driver for > their chip? They can try, but some of us live in the free world. -- .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | `. `' | `- -><- | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040719/443c8bd7/attachment.bin From rawler at rsn.bth.se Mon Jul 19 17:57:38 2004 From: rawler at rsn.bth.se (Ulrik Mikaelsson) Date: Mon Jul 19 17:57:49 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <049c801c67f1b5bfd881fe9ad4533ba4@debian> References: <049c801c67f1b5bfd881fe9ad4533ba4@debian> Message-ID: <200407191857.42102.rawler@rsn.bth.se> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > wrote: > > Monday 19 July 2004 02.30 skrev Andrew Suffield: > >> Your own silly fault for buying the wrong > >> hardware. Reverse-engineer it if you really care. > > > > Hmm, pardon me if I'm wrong, but isn't there a rabid > > manufacturer of graphics > > chips out there that threatens to sue everyone who tries to > > make a driver for > > their chip? > I wonder which one. Hmmm... Rabies.... Unfortunately I can't seem to find an old news item I read about 1.5 years ago, I think it was on http://www.xig.com. It suggested that Xig once tried to get the hardware specs from nVidia in order to support it in their AX-product but were, as expected, denied access to the specifications. According to the article, Xi Graphics then proceeded by using the specs found in XFree86 as a starting-point, and then reverse-engineered the rest in order to get a decent beta-level support for amongst other cards, the GeForce2. The article suggested that Xi graphics were then contacted by nVidia, warning them not to reverse-engineer their Intellectual Property, threating to file a lawsuit unless the support was dropped. This article, coming from Xi Graphics should of course be considered with a healthy doze of scepticism. But what CAN be seen today is that there are no support whatsoever for GeForce cards in Xig:s X-server. Not even the basic support that could easily be added by the information found in the nv-driver from XFree86, that seems to be ok with nVidia. And if you trust my word and my memory, I know I saw both this article, as well as beta-support for GeForce2, and a note about all this at the page http://www.xig.com/Pages/Atop/HardwareSupportInSummit/NVIDIAsupport.html Somehow it seems to have magically disappeared. :-/ Well, well. I guess we'll all have to stick to the damn binary, proprietary, sucky nvidia.ko kernel module, along with a black-box XFree-driver. Personally, I'm considering to try out the new Radeon cards, and see what ATI have been up to this years. I'm probably in for disappointment, but since I'm used to the nVidia-drivers, I think I can take it. Anyone running a somewhat fresh Radeon-card under Linux (and 2.6) that can tell me how it's working for you? Regards / Ulrik - -- All men have the right to wait in line. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA+/2E069SELtZwIkRArIMAJ9IQlzYl4NnfDGHflOLPF/W4jMVjgCePGlo hFdJAVOuyEJZIOXVXrHO+/4= =UmDg -----END PGP SIGNATURE----- From jpd at dsb.tudelft.nl Mon Jul 19 18:46:44 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Mon Jul 19 18:46:51 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <200407191857.42102.rawler@rsn.bth.se> References: <049c801c67f1b5bfd881fe9ad4533ba4@debian> <200407191857.42102.rawler@rsn.bth.se> Message-ID: <20040719174644.GA40871@dsb.tudelft.nl> On Mon, Jul 19, 2004 at 06:57:38PM +0200, Ulrik Mikaelsson wrote: > Personally, I'm considering to try out the new Radeon cards, and see what ATI > have been up to this years. I'm probably in for disappointment, but since I'm > used to the nVidia-drivers, I think I can take it. Anyone running a somewhat > fresh Radeon-card under Linux (and 2.6) that can tell me how it's working for > you? Actually, I've been through this. I installed an ati 9200SE PCI in a linux box and could not for the life of me get ati's drivers to work. Despite their website claiming that it does do PCI support, the driver has some AGP dependencies hard coded in so if the machine doesn't have AGP hardware, tough luck. Trying to contact techsupport was a disappointment as well. That is not to say that if you have something more akin to what they themselves develop their 'ware on it still won't work. Not everybody has serverworks based no-AGP SMP chipsets in their machine. The card runs fine with OpenGL on freely available drivers, altough it doesn't support everything the card can, it seems. Don't ask me whether or not it looks all right, only needed the damn thing for its GPU and that need stopped well before any RAMDACs. :-) -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From chalucha at centrum.cz Mon Jul 19 19:33:17 2004 From: chalucha at centrum.cz (=?ISO-8859-2?Q?Tom=E1=B9_Chaloupka?=) Date: Mon Jul 19 19:33:32 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <200407191857.42102.rawler@rsn.bth.se> References: <049c801c67f1b5bfd881fe9ad4533ba4@debian> <200407191857.42102.rawler@rsn.bth.se> Message-ID: <40FC13ED.2040606@centrum.cz> Ulrik Mikaelsson wrote: > Personally, I'm considering to try out the new Radeon cards, and see > what ATI > have been up to this years. I'm probably in for disappointment, but > since I'm > used to the nVidia-drivers, I think I can take it. Anyone running a > somewhat > fresh Radeon-card under Linux (and 2.6) that can tell me how it's > working for > you? > > Regards > / Ulrik If u want to be really disappointed, then go and buy the most expensive ATI card :) Trust me, I've got one and ATI's support is really horrible. Just look on the posts at www.rage3d.com in linux section. Mayby it should be better in time, but I thing at least three generations of NV cards past through my desktop computer then I again decide tu put my money for an ATI card :) From phil at y-windows.org Mon Jul 19 22:33:01 2004 From: phil at y-windows.org (phil@y-windows.org) Date: Mon Jul 19 22:33:09 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: References: <1090106700.40f9b54c405e6@www.tastycake.net> <200407182028.09211.mtenhagen@quicknet.nl> <1090177330.40fac932505a8@www.tastycake.net> <200407182146.14303.rawler@rsn.bth.se> Message-ID: <1090272781.40fc3e0ddca82@www.tastycake.net> Quoting Augie Fackler : > > On Jul 18, 2004, at 2:46 PM, Ulrik Mikaelsson wrote: > > > No matter how much you want Y to resemble/differ from Qt, I think we > > all can > > agree on one thing: The protocol MUST be flexible enough to create a > > pure, > > non-X11 based GTK2 backend, as well as a Qt4 backend. I am unsure > > about just > > how Qt4 will work concerning backends, according to Trolltech the > > modularity > > of Qt4 drawing have been completely redesigned and improved, but if > > that > > modularity extends to the Widget level is something left to see. > > I'd like to interject that working with languages other than C++ would > be a good thing too. Objective-C comes to my mind first, but also C# > and other weird languages. Obj-C code doesn't mix at all with C++ > unless you're on an Apple-modified gcc or you are using disgusting > wrapper functions, as an example. > I'm biased towards Obj-C over other languages, and hope that a native > port of GNUstep will be possible. That's my long-term goal... Just to state my viewpoint on this -- we're going to have to write the core library in C. Nothing else has the platform coverage, or interoperability with other languages. At the end of the day, if I can't port the library to every platform I've used in the last year (off the top of my head that's z/OS, AIX, Solaris, HP-UX, OS/400, Windows XP/2k/2k3, about 9 variants of Linux for intel, 3 Linuces for PowerPC, 2 for zSeries, and MacOS X) without needing to rewrite huge tranches of it, then there's something wrong with the design. The server is a different kettle of fish, it has far less need to be immediately portable. But even so, this is low-level code -- we need a language with fine-grained control over what's going on. Again that implies C. Also, I like writing C. It's a simple language -- programming well is hard enough without things like operator overloading ganging up on you... Cheers, Phil From phil at y-windows.org Mon Jul 19 22:58:33 2004 From: phil at y-windows.org (phil@y-windows.org) Date: Mon Jul 19 22:58:36 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <200407190909.39774.rawler@rsn.bth.se> References: <1090106700.40f9b54c405e6@www.tastycake.net> <20040718220159.GC38903@dsb.tudelft.nl> <20040719003039.GB2485@suffields.me.uk> <200407190909.39774.rawler@rsn.bth.se> Message-ID: <1090274313.40fc440989e60@www.tastycake.net> Quoting Ulrik Mikaelsson : > Monday 19 July 2004 02.30 skrev Andrew Suffield: > > Your own silly fault for buying the wrong > > hardware. Reverse-engineer it if you really care. > Hmm, pardon me if I'm wrong, but isn't there a rabid manufacturer of graphics > chips out there that threatens to sue everyone who tries to make a driver for > their chip? Reverse engineering for the purpose of making a compatible product is a protected right in the UK, and I believe also in the rest of the EEC. So they can try suing whoever they want, but no court in europe will ever hear them out. Phil From matthew at wellquite.org Tue Jul 20 00:04:03 2004 From: matthew at wellquite.org (Matthew Sackman) Date: Tue Jul 20 00:04:51 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil Message-ID: <20040719230403.GN5836@smudge.flat> Hi, Apologies for the top posting, but having only just subscribed I've not figured out how to get mailman to mail me archieves to which I can reply so I'm pasting from the web interface, which doesn't give me the Message-id[0]. Quoting Phil who was at the time quoting Phil: > > Get a list of every known widget on the face of the earth, and use it > > to: > > * work out the simplest set of primitives required to make it possible > > to build every widget > > * work out which [widgets] need to be implemented for v1.0 > > These are hard. Getting the list probably involves trawling the docs on > msdn, adc, motif, qt, gtk, et al. This has already been done at least 3 times for Java so whilst you may or may not hate Java, the easiest solution is to look at the widgets they've implemented there. Firstly, AWT roughly has the lowest common subset of widgets supported by all platforms Java runs on. So you don't get Tree widget (and others). This set may be what you want to look at for version 1.0. Or, look at older OS widget sets. AmigaOS, RISC OS etc all have quite simple widget sets which may be adequate for version 1.0. Secondly, Swing (whilst foul in (almost[1]) every possible way) emulates a very rich set of widgets. This probably has more than enough widgets for everything you need. I think the number of widgets Swing has is at least equal to Qt. Thirdly, SWT uses native widgets where possible and only emulates (ala Swing) where necessary, so is fast and native. This has slightly fewer widgets than Swing but basically almost everything in GTK+/Motif/Windows is there in some form. Matthew [0] Though a good mail client will probably fall back to threading on subject line only. [1] It actually implements MVQ very nicely - better than SWT does. -- Matthew Sackman BOFH excuse #45: virus attack, luser responsible From rogelio at smsglobal.net Tue Jul 20 01:38:31 2004 From: rogelio at smsglobal.net (Rogelio M.Serrano Jr.) Date: Tue Jul 20 01:38:38 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <40FC13ED.2040606@centrum.cz> Message-ID: <1b30f7efca7602fab00a069b89b28792@master> On 2004-07-20 02:33:17 +0800 Tom?? Chaloupka wrote: > Ulrik Mikaelsson wrote: > >> Personally, I'm considering to try out the new Radeon cards, and see what >> ATI >> have been up to this years. I'm probably in for disappointment, but since >> I'm >> used to the nVidia-drivers, I think I can take it. Anyone running a somewhat >> fresh Radeon-card under Linux (and 2.6) that can tell me how it's working >> for >> you? >> >> Regards >> / Ulrik > > > If u want to be really disappointed, then go and buy the most expensive ATI > card :) > Trust me, I've got one and ATI's support is really horrible. Just look on the > posts at www.rage3d.com in linux section. Mayby it should be better in time, > but I thing at least three generations of NV cards past through my desktop > computer then I again decide tu put my money for an ATI card :) > > dont go beyond rv280. Im using a 9200se and its ok. I think the best R200 chipset based card you can use is the firegl 8800 if you can find one. most important thing is i can do non-X things with dri driver. Im debugging miniglx and glitz right now so i can do hardware accel compositing. From rawler at rsn.bth.se Tue Jul 20 08:03:36 2004 From: rawler at rsn.bth.se (Ulrik Mikaelsson) Date: Tue Jul 20 08:03:52 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <1090272781.40fc3e0ddca82@www.tastycake.net> References: <1090106700.40f9b54c405e6@www.tastycake.net> <1090272781.40fc3e0ddca82@www.tastycake.net> Message-ID: <200407200903.44124.rawler@rsn.bth.se> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Monday 19 July 2004 23.33 skrev phil@y-windows.org: > Just to state my viewpoint on this -- we're going to have to write the core > library in C. Nothing else has the platform coverage, or interoperability > with other languages. At the end of the day, if I can't port the library > to every platform I've used in the last year (off the top of my head that's > z/OS, AIX, Solaris, HP-UX, OS/400, Windows XP/2k/2k3, about 9 variants of > Linux for intel, 3 Linuces for PowerPC, 2 for zSeries, and MacOS X) without > needing to rewrite huge tranches of it, then there's something wrong with > the design. Sure, there should definitely be support for C in Y. One of the main arguments, as I see it is that C is somewhat the smallest denominator for all languages. All languages can bind to C-api:s, or create C-compatible API:s of their own. However, I would just like to put up a finger of warning: whilst we SHOULD have a C-API, binding to the C-API is not necessarily the best option for other API:s. I have written a C#-binding for current Y, for instance, and after binding to the C-API for a while, I threw that idea out and implemented the protocol directly in native C# instead. IMHO that gave me much cleaner code, more obvious code, code that's consistent all the way out, and I think a somewhat better performance, since I did not have to transform message structs back and forth all the time, to compensate for the programming differences in C# and C. > The server is a different kettle of fish, it has far less need to be > immediately portable. But even so, this is low-level code -- we need a > language with fine-grained control over what's going on. Again that > implies C. Indeed. The server should certainly be C, for performance and control. > Also, I like writing C. It's a simple language -- programming well is hard > enough without things like operator overloading ganging up on you... Well, I'm glad you like it. Personally I have no preference between C, C++, C# or Ruby. They all work fine for different things IMHO. (Still have to try out Obj-C, though). I'm especially happy that you like C, since the server is especially important to have written in C. So you should be well-suited for the job. ;) Regards / Ulrik - -- Worlds are conquered, galaxies destroyed -- but a woman is always a woman. -- Kirk, "The Conscience of the King", stardate 2818.9 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA/MPO069SELtZwIkRAueDAJ9dOw1cfKSjaKzcgDO7ZIfpSTHYCACfaxPX yepQx/g7yHqQDvFGq7JAVFs= =q7Sg -----END PGP SIGNATURE----- From phil at y-windows.org Tue Jul 20 19:35:05 2004 From: phil at y-windows.org (phil@y-windows.org) Date: Tue Jul 20 19:35:08 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <200407200903.44124.rawler@rsn.bth.se> References: <1090106700.40f9b54c405e6@www.tastycake.net> <1090272781.40fc3e0ddca82@www.tastycake.net> <200407200903.44124.rawler@rsn.bth.se> Message-ID: <1090348505.40fd65d951272@www.tastycake.net> Quoting Ulrik Mikaelsson : > we SHOULD have a C-API, binding to the C-API is not necessarily the best > option for other API:s. I have written a C#-binding for current Y, for > instance, and after binding to the C-API for a while, I threw that idea out > and implemented the protocol directly in native C# instead. IMHO that gave me > much cleaner code, more obvious code, code that's consistent all the way out, > and I think a somewhat better performance, since I did not have to transform > message structs back and forth all the time, to compensate for the > programming differences in C# and C. At the moment, when it's a pure network protocol, this is a reasonable approach. When we throw whings like shared memory, video ports, and all that junk into the mix, it might not be so clever. However, that's a decision we should take when we get there. Did you try building the library as a managed C component - then it would have been .netted (to a large extent) without a rewrite. I suspect^W am pretty sure it won't work, but as the library gets larger it will possibly become cheaper to shoehorn the C code into a .net-manageable form rather than duplicate everything. Of course, it might not. That's the joy of predicting the future... Phil From phil at y-windows.org Tue Jul 20 20:02:15 2004 From: phil at y-windows.org (phil@y-windows.org) Date: Tue Jul 20 20:02:17 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <20040719230403.GN5836@smudge.flat> References: <20040719230403.GN5836@smudge.flat> Message-ID: <1090350135.40fd6c3722cd3@www.tastycake.net> Quoting Matthew Sackman : > > These are hard. Getting the list probably involves trawling the docs on > > msdn, adc, motif, qt, gtk, et al. > > This has already been done at least 3 times for Java so whilst you may > or may not hate Java, the easiest solution is to look at the widgets > they've implemented there. I hate it when I'm forced to program in Java. Sometimes I choose to for my own mysterious reasons. The AWT/Swing/SWT lists will give me all the widgets that need to be there before we can call it v1.0, but the harder problem would still remain: We need to determine the optimum set of sub-widget elements which we need to implement as themable things. You need to be able to build every conceivable widget from these blocks. That way you don't write a theme for buttons, but a theme for "surface which you can click to do something" and for "tex which is going to be used to label something". Since a button is composed of these 2 things it's pretty much the same amount of work either way. However, when a new type of widget comes along we won't want to have to go and augment our theme so it knows how to draw that new widget -- since it will be composed of elements we're already familiar with. It may well be that the elements you need in order to draw every swing widget are sufficient for every other conceivable widget, but I'm not convinced... I think the best course of action is to implement enough elements that we can build all the v1.0 widgets, then go looking for widgets we couldn't implement among the less-common sources. Phil From phil at y-windows.org Tue Jul 20 20:24:50 2004 From: phil at y-windows.org (phil@y-windows.org) Date: Tue Jul 20 20:24:53 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <1090350135.40fd6c3722cd3@www.tastycake.net> References: <20040719230403.GN5836@smudge.flat> <1090350135.40fd6c3722cd3@www.tastycake.net> Message-ID: <1090351490.40fd7182c25b9@www.tastycake.net> Quoting phil@y-windows.org: > I think the best course of action is to implement enough elements that we can > build all the v1.0 widgets, then go looking for widgets we couldn't implement > among the less-common sources. Just to clarify -- I don't think we can call it v1.0 unless we're reasonably sure we have all the elements we need. Phil From james at grickle.org Tue Jul 20 20:35:29 2004 From: james at grickle.org (James Harr) Date: Tue Jul 20 20:35:39 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <20040718215327.GB38903@dsb.tudelft.nl> References: <1090165279.10608.30.camel@diego.intern.de> <200407181542.29649.james@grickle.org> <20040718215327.GB38903@dsb.tudelft.nl> Message-ID: <200407201435.29710.james@grickle.org> > > > Don't get me wrong, I do appreciate your effort and > > > ideas, but be wary that while the foundations are utterly cool, there > > > does unfortunately not seem to be much of an environment to nurture and > > > grow the ideas in. > > > > Haha, you noticed that too :) > > Well, it was hard to miss. People publicly left because of it. I've > thought of (publicly) unsubscribing because of it too. Then again, > I think the project still has a future and I might even be of some > help improving the environment now and then. I think everyone is afraid of letting the project have a mistake. So they need to get their opinion in and hope someone else implements it. When in reality the people implementing it probably know what's going on more than the people on this board discussing it. Now what should happen around here is I should lead and everyone should do what I say, because I obviously know better than the people writing the code :) In retrospect, I think I should focus more on the small tasks that are necessary, but too small for them to get noticed. i need sleep. Check in later and maybe I'll code some :p Thanks, James -- James Harr http://www.grickle.org/ From asuffield at debian.org Tue Jul 20 21:27:21 2004 From: asuffield at debian.org (Andrew Suffield) Date: Tue Jul 20 21:27:25 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <200407201435.29710.james@grickle.org> References: <1090165279.10608.30.camel@diego.intern.de> <200407181542.29649.james@grickle.org> <20040718215327.GB38903@dsb.tudelft.nl> <200407201435.29710.james@grickle.org> Message-ID: <20040720202721.GA13486@suffields.me.uk> On Tue, Jul 20, 2004 at 02:35:29PM -0500, James Harr wrote: > > > > > Don't get me wrong, I do appreciate your effort and > > > > ideas, but be wary that while the foundations are utterly cool, there > > > > does unfortunately not seem to be much of an environment to nurture and > > > > grow the ideas in. > > > > > > Haha, you noticed that too :) > > > > Well, it was hard to miss. People publicly left because of it. I've > > thought of (publicly) unsubscribing because of it too. Then again, > > I think the project still has a future and I might even be of some > > help improving the environment now and then. > > I think everyone is afraid of letting the project have a mistake. So they need > to get their opinion in and hope someone else implements it. When in reality > the people implementing it probably know what's going on more than the people > on this board discussing it. By and large, as far as this context is concerned, it's just people who want to use Y to promote their idea, presumably because they can't understand how anybody would use it otherwise. Out of courtesy they get an explanation of why their idea sucks, but in practical terms it won't be merged into Y because it's not a useful building block. X has the right approach, as always. The current division between core and window manager or application functionality is in exactly the right place. The implementation can just be done better. Almost every one of these daft ideas that people keep shooting off about, belongs externally. So they tend to get ignored, modulo an explanation of why they're bad ideas. -- .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | `. `' | `- -><- | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040720/cf77d218/attachment-0001.bin From memphis_pwn at yahoo.com Wed Jul 21 02:39:05 2004 From: memphis_pwn at yahoo.com (Tim Whitbeck) Date: Wed Jul 21 02:39:42 2004 Subject: [Y-devel] Support Message-ID: <20040721013905.19269.qmail@web51409.mail.yahoo.com> I have had absolutely no experience coding in C or any other true language for that matter, so I'm afraid I will not be able to contribute to the Y Windows scene directly, atm. I do have common sense, though. And I understand the need for a cleaner, newer Window System. I just wanted to express my support of Y Windows, and let you know that there are some people in the public who really want this to take off. I'll be attending college in a year, at which I'm going to study Computer Science. Perhaps I'll be able to contribute then. __________________________________ Do you Yahoo!? Vote for the stars of Yahoo!'s next ad campaign! http://advision.webevents.yahoo.com/yahoo/votelifeengine/ From mpruikko at cc.hut.fi Wed Jul 21 06:20:34 2004 From: mpruikko at cc.hut.fi (Mika Pruikkonen) Date: Wed Jul 21 06:21:12 2004 Subject: [Y-devel] [PATCH] Ykb keymaps for evdev Message-ID: <20040721052034.GA447090@cc.hut.fi> Hi all, I finally played around a bit with Y a few weeks ago, and got Andrew's patch-148 working. (As a side note, the devel version build process is quite picky about autotool versions, it took me some time to figure out that a compile error was caused by a wrong version of libtool. Changing to 1.5.2 got things working.) Using patch-148 with fbdev required a few fixes, and I thought that I'd share them before I forgot completely what they were about. You can also find these at the archive mpruikko@cc.hut.fi--2004/Y--asuffield--0.2, which is located at http://www.hut.fi/~mpruikko/arch/2004. It's a branch of asuffield's patch-148, which at the time of writing seems to still be the most recent one. This patch adds support for keymaps for the evdev input module, which uses different keycodes than the sdl module. The evdev keycodes are defined in include/linux/input.h in the linux kernel sources, and the file evdev_basic.ykb in this patch is made by looking at that header file and using basic.ykb as a template. It's not perfect, and I'm not expecting this to be a long-term solution, but something like this is needed at the moment to get keyboard input working properly with fbdev. To use this, you need to make a copy of your ykb layout file, for example gb.ykb. Make a copy of it, say gb_evdev.ykb, and make two changes to the copy: 'include "basic.ykb";' -> 'include "evdev_basic.ykb";', and 'keymap gb' -> 'keymap gb_evdev' (near the end of the file). This is done for gb, us and jp106 in the patch-1 patchset of my archive, but the patch below contains only the file evdev_basic.ykb. After the above, make and install the *.ykm files and change your layout in server.conf to gb_evdev, and it should work. Before ykb (i.e. even in Mark's latest tree) the keycodes were converted internally to ones which Y would understand in evdev.c, and things worked automagically. My current solution to make copies of the top-level .ykb files is really, really ugly, so probably something neater should be thought out. Should ykb support using different keycodes depending on the loaded input module? Does it already? Or shouldn't evdev be used at all? --- orig/config/keymaps/evdev_basic.ykb +++ mod/config/keymaps/evdev_basic.ykb @@ -0,0 +1,290 @@ +# Generated manually from basic.ykb by finding corresponding +# evdev defines in + +keycode basic +{ + TLDE = 41; + AE01 = 2; + AE02 = 3; + AE03 = 4; + AE04 = 5; + AE05 = 6; + AE06 = 7; + AE07 = 8; + AE08 = 9; + AE09 = 10; + AE10 = 11; + AE11 = 12; + AE12 = 13; + backspace = 14; + + BKSL = 43; + LSGT = 86; + + tab = 15; + AD01 = 16; + AD02 = 17; + AD03 = 18; + AD04 = 19; + AD05 = 20; + AD06 = 21; + AD07 = 22; + AD08 = 23; + AD09 = 24; + AD10 = 25; + AD11 = 26; + AD12 = 27; + return = 28; + + caps_lock = 58; + AC01 = 30; + AC02 = 31; + AC03 = 32; + AC04 = 33; + AC05 = 34; + AC06 = 35; + AC07 = 36; + AC08 = 37; + AC09 = 38; + AC10 = 39; + AC11 = 40; + + left_shift = 42; + AB01 = 44; + AB02 = 45; + AB03 = 46; + AB04 = 47; + AB05 = 48; + AB06 = 49; + AB07 = 50; + AB08 = 51; + AB09 = 52; + AB10 = 53; + right_shift = 54; + + left_alt = 56; + left_ctrl = 29; + space = 57; + right_ctrl = 97; + right_alt = 100; + alt_gr = right_alt; + left_windows = 125; + right_windows = 126; + menu = 127; + + escape = 1; + FK01 = 59; + FK02 = 60; + FK03 = 61; + FK04 = 62; + FK05 = 63; + FK06 = 64; + FK07 = 65; + FK08 = 66; + FK09 = 67; + FK10 = 68; + FK11 = 87; + FK12 = 88; + + sysrq = 99; + print_screen = sysrq; + scroll_lock = 70; + pause = 119; + break = pause; + + insert = 110; + home = 102; + page_up = 104; + delete = 111; + end = 107; + page_down = 109; + + up = 103; + left = 105; + down = 108; + right = 106; + + numlock = 69; + keypad_divide = 98; + keypad_multiply = 55; + keypad_subtract = 74; + + keypad_7 = 71; + keyapd_8 = 72; + keypad_9 = 73; + keypad_add = 78; + + keypad_4 = 75; + keypad_5 = 76; + keypad_6 = 77; + + keypad_1 = 79; + keypad_2 = 80; + keypad_3 = 81; + keypad_enter = 96; + + keypad_0 = 82; + keypad_delete = 83; + + FK13 = 183; + FK14 = 184; + FK15 = 185; + FK16 = 186; + FK17 = 187; +# KPDC = 123; + + # Keys that are generated on Japanese keyboards + + # Hankaku_Zenkaku toggle + hankaku_zenkaku = 85; + # Hiragana_Katakana toggle + hiragana_katakana = 93; + # backslash/underscore +# AB11 = KPDC; + # Henkan + XFER = 92; + # Muhenkan + NFER = 94; + # Yen + AE13 = 124; + + # Keys that are generated on Japanese keyboards and the + # ABNT2 Brazillian keyboards + AC12 = BKSL; +} + +keycode name basic +{ + backspace[*] = "backspace"; + tab[*] = "tab"; + return[*] = "return"; + + caps_lock[*] = "caps_lock"; + left_shift[*] = "left_shift"; + right_shift[*] = "right_shift"; + left_alt[*] = "left_alt"; + left_ctrl[*] = "left_ctrl"; + space[*] = "space"; + right_ctrl[*] = "right_ctrl"; + right_alt[*] = "right_alt"; + left_windows[*] = "left_win"; + right_windows[*] = "right_win"; + + menu[*] = "menu"; + escape[*] = "escape"; + + FK01[*] = "F1"; + FK02[*] = "F2"; + FK03[*] = "F3"; + FK04[*] = "F4"; + FK05[*] = "F5"; + FK06[*] = "F6"; + FK07[*] = "F7"; + FK08[*] = "F8"; + FK09[*] = "F9"; + FK10[*] = "F10"; + FK11[*] = "F11"; + FK12[*] = "F12"; + FK13[*] = "F13"; + FK14[*] = "F14"; + FK15[*] = "F15"; + FK16[*] = "F16"; + FK17[*] = "F17"; + + print_screen[*] = "print_screen"; + sysrq[*] = "sysrq"; + scroll_lock[*] = "scroll_lock"; + pause[*] = "pause"; + break[*] = "break"; + + insert[*] = "insert"; + home[*] = "home"; + page_up[*] = "page_up"; + delete[*] = "delete"; + end[*] = "end"; + page_down[*] = "page_down"; + + up[*] = "up"; + left[*] = "left"; + down[*] = "down"; + right[*] = "right"; + + numlock[*] = "numlock"; + keypad_divide[*] = "keypad_divide"; + keypad_multiply[*] = "keypad_multiply"; + keypad_subtract[*] = "keypad_subtract"; + + keypad_7[*] = "keypad_7"; + keyapd_8[*] = "keypad_8"; + keypad_9[*] = "keypad_9"; + keypad_add[*] = "keypad_add"; + + keypad_4[*] = "keypad_4"; + keypad_5[*] = "keypad_5"; + keypad_6[*] = "keypad_6"; + + keypad_1[*] = "keypad_1"; + keypad_2[*] = "keypad_2"; + keypad_3[*] = "keypad_3"; + keypad_enter[*] = "keypad_enter"; + + keypad_0[*] = "keypad_0"; + keypad_delete[*] = "keypad_delete"; +} + +modifier basic +{ + shift = 0; + ctrl = 1; + alt = 2; + meta = 3; + super = 4; + hyper = 5; + # X calls this Mode_switch + altgr = 6; +} + +modifier name basic +{ + ctrl = "C"; + alt = "A"; + meta = "M"; + super = "S"; + hyper = "H"; + altgr = "Ag"; +} + +seq basic_modifiers +{ + left_shift[*] setModifiers(shift) restoreState(); + ^left_shift[*] maskModifiers(!shift) restoreState(); + right_shift[*] setModifiers(shift) restoreState(); + ^right_shift[*] maskModifiers(!shift) restoreState(); + + caps_lock[/shift] setStickyModifiers(shift); + caps_lock[shift] maskStickyModifiers(!shift); + + left_ctrl[*] setModifiers(ctrl) restoreState(); + ^left_ctrl[*] maskModifiers(!ctrl) restoreState(); + right_ctrl[*] setModifiers(ctrl) restoreState(); + ^right_ctrl[*] maskModifiers(!ctrl) restoreState(); + + left_alt[*] setModifiers(meta) restoreState(); + ^left_alt[*] maskModifiers(!meta) restoreState(); + alt_gr[*] setModifiers(altgr) restoreState(); + ^alt_gr[*] maskModifiers(!altgr) restoreState(); + + left_windows[*] setModifiers(super) restoreState(); + ^left_windows[*] maskModifiers(!super) restoreState(); + right_windows[*] setModifiers(super) restoreState(); + ^right_windows[*] maskModifiers(!super) restoreState(); +} + +abstract keymap basic +{ + include keycode basic; + include keycode name basic; + include modifier basic; + include modifier name basic; + include seq basic_modifiers; +} From mpruikko at cc.hut.fi Wed Jul 21 06:49:05 2004 From: mpruikko at cc.hut.fi (Mika Pruikkonen) Date: Wed Jul 21 06:49:40 2004 Subject: [Y-devel] [PATCH] uint32_t -> int32_t in rectangle functions Message-ID: <20040721054904.GB447090@cc.hut.fi> Y slowed down dramatically when I moved a window out of the left or top border of the screen when using fbdev. I remember that there was a change from unsigned to signed coordinates a few months back (I think it was discussed in irc), but I found some unsigned coordinates remaining in Y/util/rectangle.[ch]. I think that the whole screen was invalidated during window movement if one of the window's coordinates became negative. The coordinates and dimensions were already saved as signed integers in struct Rectangle, there were just a few arguments and internal variables which still used unsigned values. This patch changes them and fixes the problem. It can also be found as patch-2 in the same archive as the previous patch I posted. --- orig/Y/util/rectangle.c +++ mod/Y/util/rectangle.c @@ -20,7 +20,7 @@ #include struct Rectangle * -rectangleCreate (uint32_t x, uint32_t y, uint32_t w, uint32_t h) +rectangleCreate (int32_t x, int32_t y, int32_t w, int32_t h) { struct Rectangle *rect = ymalloc (sizeof (struct Rectangle)); rect -> x = x; @@ -46,7 +46,7 @@ rectangleUnion (struct Rectangle *dest, const struct Rectangle *src1, const struct Rectangle *src2) { - uint32_t x0, y0, x1, y1, w, h, area0, area1; + int32_t x0, y0, x1, y1, w, h, area0, area1; x0 = MIN (src1 -> x, src2 -> x); y0 = MIN (src1 -> y, src2 -> y); x1 = MAX (src1 -> x + src1 -> w, src2 -> x + src2 -> w); @@ -69,10 +69,10 @@ rectangleIntersect (struct Rectangle *dest, const struct Rectangle *src1, const struct Rectangle *src2) { - uint32_t x = MAX (src1 -> x, src2 -> x); - uint32_t y = MAX (src1 -> y, src2 -> y); - uint32_t mw = MIN (src1 -> x + src1 -> w, src2 -> x + src2 -> w); - uint32_t mh = MIN (src1 -> y + src1 -> h, src2 -> y + src2 -> h); + int32_t x = MAX (src1 -> x, src2 -> x); + int32_t y = MAX (src1 -> y, src2 -> y); + int32_t mw = MIN (src1 -> x + src1 -> w, src2 -> x + src2 -> w); + int32_t mh = MIN (src1 -> y + src1 -> h, src2 -> y + src2 -> h); if (dest) { dest -> x = x; --- orig/Y/util/rectangle.h +++ mod/Y/util/rectangle.h @@ -32,7 +32,7 @@ #include -struct Rectangle *rectangleCreate (uint32_t x, uint32_t y, uint32_t w, uint32_t h); +struct Rectangle *rectangleCreate (int32_t x, int32_t y, int32_t w, int32_t h); struct Rectangle *rectangleDuplicate (const struct Rectangle *); void rectangleDestroy (struct Rectangle *); From jpd at dsb.tudelft.nl Wed Jul 21 11:59:06 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Wed Jul 21 11:59:15 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <20040720202721.GA13486@suffields.me.uk> References: <1090165279.10608.30.camel@diego.intern.de> <200407181542.29649.james@grickle.org> <20040718215327.GB38903@dsb.tudelft.nl> <200407201435.29710.james@grickle.org> <20040720202721.GA13486@suffields.me.uk> Message-ID: <20040721105906.GA44277@dsb.tudelft.nl> On Tue, Jul 20, 2004 at 09:27:21PM +0100, Andrew Suffield wrote: > On Tue, Jul 20, 2004 at 02:35:29PM -0500, James Harr wrote: > > > > > > > Don't get me wrong, I do appreciate your effort and ideas, but > > > > > be wary that while the foundations are utterly cool, there > > > > > does unfortunately not seem to be much of an environment to > > > > > nurture and grow the ideas in. > > > > > > > > Haha, you noticed that too :) > > > > > > Well, it was hard to miss. People publicly left because of it. > > > I've thought of (publicly) unsubscribing because of it too. Then > > > again, I think the project still has a future and I might even be > > > of some help improving the environment now and then. > > > > I think everyone is afraid of letting the project have a mistake. So > > they need to get their opinion in and hope someone else implements > > it. When in reality the people implementing it probably know what's > > going on more than the people on this board discussing it. Oh, I don't think we should be affraid to make mistakes. As long as we spot them in time and fix them. We're only human, we have wildly different skillsets (not even all into programming, nor should all be!) and Y is a higly experimental vehicle. We can choose to use those as our strong points. My arrogant opinion is we should. I like Y because it is a) lightweight or at least isn't bogged down by decades of backward compatability, b) has fresh new ideas and c) does already partly do and where not will be usable as a platform for some of my own ideas on decoupling user interface and program interface. I'm not saying my own ideas should supersede others'. I want to use and build on a platform like Y. I expect others to want to do so, too. There is no such platform yet, so I am willing to put in time and effort to help make it come into existence. > By and large, as far as this context is concerned, it's just people > who want to use Y to promote their idea, I don't see much wrong with wanting to use Y to build and try out more wild ideas on. In fact, it is one of the major cool features of it. An experimental vehicle should be used for exactly that; experimenting. Doesn't mean that all ideas will survive their being tried out, but it is not useful to try and quell everything before the ideas fall flat on their faces thereby proving they're not fit to stay. How ideas fall flat on their face is something else. Code, using, discussion, it doesn't matter. The point is that they be tried out. > presumably because they can't > understand how anybody would use it otherwise. If people insist on finding out the hard way their idea doesn't fly, let them. We all learned by falling and getting up again. As long as it doesn't interfere with the main agreed upon concensus and codebase it would in fact be a very sorry way to not use a perfectly good vehicle to not try out the idea. > Out of courtesy they > get an explanation of why their idea sucks, but in practical terms it > won't be merged into Y because it's not a useful building block. Since this is a discussion list, after all, it's good you mention the courtesy. Besides, not all brainstorming should count as trying to abuse Y for someone's pet ideas. Y is a pet idea in itself. It can't grow without more ideas. Better to accept a lot of those for consideration and trow out the bad ones. But, indeed, the courtesy is important. > X has the right approach, as always. The current division between core > and window manager or application functionality is in exactly the > right place. The implementation can just be done better. >From my reading of /The Thesis[tm]/, or even from various opinions on this list, I didn't get the idea that Y was to be a copy remake of what X did right 20 years ago. Sure we should use what was done right, but I don't think that's all we can do. Far from it, even. > Almost every one of these daft ideas that people keep shooting off > about, belongs externally. So they tend to get ignored, modulo an > explanation of why they're bad ideas. Well if it was explanation it'd be welcomed as such. Sentiment I've seen a lot of, but explanation or even just elaborated opinion lacked. Points to work on. -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From jpd at dsb.tudelft.nl Wed Jul 21 12:54:15 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Wed Jul 21 12:54:23 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <200407190907.32835.rawler@rsn.bth.se> References: <1090106700.40f9b54c405e6@www.tastycake.net> <200407190012.21004.rawler@rsn.bth.se> <20040718224356.GA39038@dsb.tudelft.nl> <200407190907.32835.rawler@rsn.bth.se> Message-ID: <20040721115415.GB44319@dsb.tudelft.nl> On Mon, Jul 19, 2004 at 09:07:26AM +0200, Ulrik Mikaelsson wrote: > Monday 19 July 2004 00.43 skrev JP Dinger: [snippety! liking Qt in detail] > > Fair enough. But, how do we get the best out of Qt in such a way that we > > don't tie ourselves to C++? Y isn't ment to be language specific, after > > all. > Well, some aspects of the API is not tied to C++ at all. In fact I > have a long time thought that Qt would be even more kickass if it were > built around C# instead, but that's just my opinion. Err, indeed. I am not a fan of C#, but then I'm not about to say you can't be. :-) > Things that is easily generic from Qt and apply to all languages > are things like the layouting system. I feel that it'd be great if we could automate most of that, but I fully agree that such is a wish for some far future Y. And in the meantime a layouter is an incredibly useful tool to have. > One other thing that might be > relevant to consider is how to avoid unintentional memory-leaks in the > server, as a result of an application behaving bad. For instance, an > application should hopefully not be able to connect to a Y server and > create thousands of objects, and then forget it's references to them. > I don't think the Y server does garbage collection, and I don't think > we can safely do garbage collection in the server, so we'll have to > look elsewhere for a decent solution. Perhaps the QObject-solution is > something that could be applied? While C doesn't natively sport a GC, it has been shown that you can in fact use a GC with C. So if there is a way to elegantly put one in the Y server, we could consider that. I'd prefer it so that it's an option along with a CG without the coverup but with a noisemaker instead: a memory leak detector. In an ideal world we'd never need either, but hey. I don't know about QObject to comment, but I'm sure there's other people on the list that can elaborate in detail about the pros and cons of the QObject model. On a more general note, a well-thought out model is good to have. I'd say this is a perfect excercise for someone wanting to try out writing software that's mathematically provable correct. On another thought, I always wanted to try out a model checker like spin. The network protocol came to mind first, but I think it can be applied with success to the memory allocator, too. Provided you can work out how to use the thing at all, that is. Spin seems a powerful tool, but with some learning curve attached. As soon as I get the book and some quality time with it I'll try and get started with it. That'll take time though. > One thing that would be awesome is if Y could have it's own > designer-like tool to create user interfaces. The Qt designer works > by first just creating all the necessary widgets and laying them out, > instructing how to glue them together. This information is then stored > in XML, and in the build-process of the application, that XML-file > is beeing compiled into the native language. How does the Qt designer store what it knows about widgets? I mean, couldn't we just kick out the Qt specifics and put in Y ones instead? Don't know about the Qt legalese here, but as a first shot it's probably worth the effort. At least for some quick returns. :-) > In case of C++, it will > become a C++ class, intended to be subclass and have it's behavior > defined in the subclass, shielding the developer-contributed code > from the code done by the UI-designer. That is a fairly common method with OO designers. IME that is. (Are there other methods that are at least as elegant?) > Another good thing about the > way Qt designer does it's work, is that it is fully possible to write > a simple tool that transforms the XML into some other language, such > as Python, C, or C#. This functionality makes Qt a very fast toolkit > to write small applications to be used only locally in a medium-sized > company, and it should really be taken into account for Y. ACK. Sounds useful. -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From asuffield at debian.org Wed Jul 21 13:00:53 2004 From: asuffield at debian.org (Andrew Suffield) Date: Wed Jul 21 13:01:01 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <20040721105906.GA44277@dsb.tudelft.nl> References: <1090165279.10608.30.camel@diego.intern.de> <200407181542.29649.james@grickle.org> <20040718215327.GB38903@dsb.tudelft.nl> <200407201435.29710.james@grickle.org> <20040720202721.GA13486@suffields.me.uk> <20040721105906.GA44277@dsb.tudelft.nl> Message-ID: <20040721120053.GB4067@suffields.me.uk> On Wed, Jul 21, 2004 at 12:59:06PM +0200, JP Dinger wrote: > > presumably because they can't > > understand how anybody would use it otherwise. > > If people insist on finding out the hard way their idea doesn't fly, > let them. Do you see anybody stopping them? No? Anybody can write code, if they want to try out their idea. It just probably won't be merged, and is likely to be ignored. It is significant that none of these people have done so. > > X has the right approach, as always. The current division between core > > and window manager or application functionality is in exactly the > > right place. The implementation can just be done better. > > >From my reading of /The Thesis[tm]/, or even from various opinions on > this list, I didn't get the idea that Y was to be a copy remake of what > X did right 20 years ago. Sure we should use what was done right, but I > don't think that's all we can do. Far from it, even. Nobody, including Mark, who is significantly involved in Y has given *any* particularly deep opinions on the design and direction of the project on this list. Mark's project report (which is *not* a thesis; anybody who calls it that has no clue what they are talking about) is a fairly unique sort of document and does not encapsulate the project in any fashion. Primarily because it's not a thesis. > > Almost every one of these daft ideas that people keep shooting off > > about, belongs externally. So they tend to get ignored, modulo an > > explanation of why they're bad ideas. > > Well if it was explanation it'd be welcomed as such. Sentiment I've > seen a lot of, but explanation or even just elaborated opinion lacked. > > Points to work on. Yes, you could certainly use work on comprehending this. Y is doing just fine. -- .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | `. `' | `- -><- | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040721/24b39a2f/attachment-0001.bin From asuffield at debian.org Wed Jul 21 13:27:51 2004 From: asuffield at debian.org (Andrew Suffield) Date: Wed Jul 21 13:28:24 2004 Subject: [Y-devel] [PATCH] Ykb keymaps for evdev In-Reply-To: <20040721052034.GA447090@cc.hut.fi> References: <20040721052034.GA447090@cc.hut.fi> Message-ID: <20040721122751.GC4067@suffields.me.uk> On Wed, Jul 21, 2004 at 08:20:34AM +0300, Mika Pruikkonen wrote: > This patch adds support for keymaps for the evdev input module, > which uses different keycodes than the sdl module. Oh, damn and blast it. They just couldn't leave well enough alone. The extant keycodes are the ones used by X, to make it simple to import XKB maps. It looks like evdev "helpfully" does something different. Worse, it looks like what evdev does is broken. I also note that you're missing a couple of keys. I'll have to fish out my jp106 keyboard and see what it generates for them. > Before ykb (i.e. even in Mark's latest tree) the keycodes were > converted internally to ones which Y would understand in evdev.c, > and things worked automagically. My current solution to make copies > of the top-level .ykb files is really, really ugly, so probably > something neater should be thought out. Should ykb support using > different keycodes depending on the loaded input module? Does it > already? Or shouldn't evdev be used at all? Different intersection of options, we'll work something out later to select them automatically. I've included this list of keycodes as an option. Use something like 'layout gb DEVICE=EVDEV' in server.conf for now; it'll use X11 mappings by default. I don't have a kernel with evdev on hand to test it. -- .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | `. `' | `- -><- | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040721/1155bd37/attachment.bin From rawler at rsn.bth.se Wed Jul 21 17:35:21 2004 From: rawler at rsn.bth.se (Ulrik Mikaelsson) Date: Wed Jul 21 17:35:35 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <20040721115415.GB44319@dsb.tudelft.nl> References: <1090106700.40f9b54c405e6@www.tastycake.net> <200407190907.32835.rawler@rsn.bth.se> <20040721115415.GB44319@dsb.tudelft.nl> Message-ID: <200407211835.27294.rawler@rsn.bth.se> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > > Things that is easily generic from Qt and apply to all languages > > are things like the layouting system. > I feel that it'd be great if we could automate most of that, but I fully > agree that such is a wish for some far future Y. And in the meantime a > layouter is an incredibly useful tool to have. What exactly do you mean by automatic layouting? The Qt system of layouting is as automatic as I can imagine it'll get in a pinch. Using Qt-layouts, especially if working from the designer through the XML-UI framework, you don't do any layouting yourself. You simply specify parameters on how widgets should be grouped, and what their size-constraints are. The rest is automagic. > > One other thing that might be > > relevant to consider is how to avoid unintentional memory-leaks in the > > server, as a result of an application behaving bad. For instance, an > > application should hopefully not be able to connect to a Y server and > > create thousands of objects, and then forget it's references to them. > > I don't think the Y server does garbage collection, and I don't think > > we can safely do garbage collection in the server, so we'll have to > > look elsewhere for a decent solution. Perhaps the QObject-solution is > > something that could be applied? > While C doesn't natively sport a GC, it has been shown that you can in > fact use a GC with C. So if there is a way to elegantly put one in the > Y server, we could consider that. I'd prefer it so that it's an option > along with a CG without the coverup but with a noisemaker instead: a > memory leak detector. In an ideal world we'd never need either, but hey. Hmm, is it possible to do useful GC:ing on a network-protocol with different client-implementations? For instance, how would the server know if a client is REALLY still using it's reference to an object? Is it possible to garbage-collect memory, or even detect memory leaks from a misbehaving client? > > One thing that would be awesome is if Y could have it's own > > designer-like tool to create user interfaces. The Qt designer works > > by first just creating all the necessary widgets and laying them out, > > instructing how to glue them together. This information is then stored > > in XML, and in the build-process of the application, that XML-file > > is beeing compiled into the native language. > How does the Qt designer store what it knows about widgets? I mean, > couldn't we just kick out the Qt specifics and put in Y ones instead? > Don't know about the Qt legalese here, but as a first shot it's probably > worth the effort. At least for some quick returns. :-) Qt designer stores all information about a UI-dialog in an XML-file. So this of course could apply to Y. I don't know if altering the Qt designer to become a Y designer is a viable idea, though. There are a number of issues with it, such as the fact that Qt Designer uses the Qt widgets to preview and edit the GUI. It's a graphical tool closely tied to Qt, and I think it's less work creating a usable equivalent for Y, then to attempt to modify Qt Designer. > > In case of C++, it will > > become a C++ class, intended to be subclass and have it's behavior > > defined in the subclass, shielding the developer-contributed code > > from the code done by the UI-designer. > That is a fairly common method with OO designers. IME that is. > (Are there other methods that are at least as elegant?) Well, all the 5 UI-design tools I've worked with before (C++, C# and Java) does edit the source-code directly, with a serious overhead on subclassing for editing. (Double-click a button and a new non-virtual method will be added to the UI-class itself to handle OnClick etc.) As long as it works, it's fine, but as soon as you hand-edit something in the source-file, the designer may go wild and go berseker on your code. Regards / Ulrik - -- Breadth-first search is the bulldozer of science. -- Randy Goebel -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA/ptM069SELtZwIkRAhbcAJ46Pt78IwGBsq6n1UE6x9t7uzb7OQCgpLJc KGBxrgsY08Pzp4S+DZDk3c0= =Efo2 -----END PGP SIGNATURE----- From spiralman at softhome.net Wed Jul 21 19:28:47 2004 From: spiralman at softhome.net (Thomas) Date: Wed Jul 21 19:36:22 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <200407211835.27294.rawler@rsn.bth.se> References: <1090106700.40f9b54c405e6@www.tastycake.net> <20040721115415.GB44319@dsb.tudelft.nl> <200407211835.27294.rawler@rsn.bth.se> Message-ID: <200407211328.48103.spiralman@softhome.net> On Wednesday 21 July 2004 11:35, Ulrik Mikaelsson wrote: > > > One other thing that might be > > > relevant to consider is how to avoid unintentional memory-leaks in the > > > server, as a result of an application behaving bad. For instance, an > > > application should hopefully not be able to connect to a Y server and > > > create thousands of objects, and then forget it's references to them. > > > I don't think the Y server does garbage collection, and I don't think > > > we can safely do garbage collection in the server, so we'll have to > > > look elsewhere for a decent solution. Perhaps the QObject-solution is > > > something that could be applied? > > > > While C doesn't natively sport a GC, it has been shown that you can in > > fact use a GC with C. So if there is a way to elegantly put one in the > > Y server, we could consider that. I'd prefer it so that it's an option > > along with a CG without the coverup but with a noisemaker instead: a > > memory leak detector. In an ideal world we'd never need either, but hey. > > Hmm, is it possible to do useful GC:ing on a network-protocol with > different client-implementations? For instance, how would the server know > if a client is REALLY still using it's reference to an object? Is it > possible to garbage-collect memory, or even detect memory leaks from a > misbehaving client? > One simple way to tell is to keep a client reference count for each object, which would only keep track of how many clients hold references to an object. When that count reaches zero (and you might have a server flag which would keep this from being garbage collected), the resource could be freed. This way, the GC would only need to be run each time a client disconnects, reducing overhead. Of course, clients could still leak while they are running, but at least this will only last as long as the client is running, instead of the whole time the server is running. Thomas Stephens spiralman@softhome.net From phil at y-windows.org Thu Jul 22 00:38:21 2004 From: phil at y-windows.org (Phil) Date: Thu Jul 22 00:25:22 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <200407211328.48103.spiralman@softhome.net> References: <1090106700.40f9b54c405e6@www.tastycake.net> <20040721115415.GB44319@dsb.tudelft.nl> <200407211835.27294.rawler@rsn.bth.se> <200407211328.48103.spiralman@softhome.net> Message-ID: <40FEFE6D.40107@y-windows.org> Thomas wrote: > On Wednesday 21 July 2004 11:35, Ulrik Mikaelsson wrote: >>Hmm, is it possible to do useful GC:ing on a network-protocol with >>different client-implementations? For instance, how would the server know >>if a client is REALLY still using it's reference to an object? Is it >>possible to garbage-collect memory, or even detect memory leaks from a >>misbehaving client? It can never be safe to destroy a valid object owned by a connected client (an object should become invalid when the client notifies the server that it is finished with it), since there is no way to guarantee it has really forgotten it. We might need an assassin function to kill those clients which have too many apparently unused server objects, but this should only be used when there are insufficient resources on the server (like the Linux OOM killer). Allowing for the server to unilaterally delete objects which may still be valid is too risky. Side note: Since the client and server are separated by the protocol, a memory leak in the client can never be detected by the server. It's also pretty much impossible to detect a memory leak in a running program when this is not the case. > One simple way to tell is to keep a client reference count for each object, > which would only keep track of how many clients hold references to an object. > When that count reaches zero (and you might have a server flag which would > keep this from being garbage collected), the resource could be freed. This > way, the GC would only need to be run each time a client disconnects, > reducing overhead. I am reasonably sure that for those objects which can be destroyed it will only be possible for one client to have a reference to that object anyway. Of course, it may be that that client has multiple references to the same thing, but I would imagine it will be cleaner to have the client end of things handle mapping multiple refernces onto a single server object. This removes a lot of complexity. Phil From spiralman at softhome.net Thu Jul 22 06:41:06 2004 From: spiralman at softhome.net (Thomas) Date: Thu Jul 22 06:41:50 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <40FEFE6D.40107@y-windows.org> References: <1090106700.40f9b54c405e6@www.tastycake.net> <200407211328.48103.spiralman@softhome.net> <40FEFE6D.40107@y-windows.org> Message-ID: <200407220041.06258.spiralman@softhome.net> On Wednesday 21 July 2004 06:38, Phil wrote: > > One simple way to tell is to keep a client reference count for each > > object, which would only keep track of how many clients hold references > > to an object. When that count reaches zero (and you might have a server > > flag which would keep this from being garbage collected), the resource > > could be freed. This way, the GC would only need to be run each time a > > client disconnects, reducing overhead. > > I am reasonably sure that for those objects which can be destroyed it > will only be possible for one client to have a reference to that object > anyway. Of course, it may be that that client has multiple references > to the same thing, but I would imagine it will be cleaner to have the > client end of things handle mapping multiple refernces onto a single > server object. > > This removes a lot of complexity. Actually, i was mucking around in this bit of code a while ago, and at the time (and, as far as i know, even now) only one client was allowed access to each object. However, this was causing some problems for some things I was trying to implement (related to the desktop). Basically, more than one client may need access to certain objects which need to be publicly available, the desktop, for instance, and it was an unreasonable limitation, even at that early stage of development, for each object to only be referenced by a single client. Mark mentioned changing this, and I even posted to the mailing list, saying I was willing to work on it, and asking people for ideas on implementation, but nobody responded and school work and other projects, not to mention lack of feedback on some of my patches and semi-secretive modifications to some integral parts of the code, took me away from my Y development. Anyway, I certainly agree that each client should handle its own references however it sees fit, but I also believe that multiple clients will need access to the same object at the same time, and that my proposal could help in that situation. Thomas Stephens spiralman@softhome.net From jpd at dsb.tudelft.nl Thu Jul 22 06:45:02 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Thu Jul 22 06:58:01 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <20040721120053.GB4067@suffields.me.uk> References: <1090165279.10608.30.camel@diego.intern.de> <200407181542.29649.james@grickle.org> <20040718215327.GB38903@dsb.tudelft.nl> <200407201435.29710.james@grickle.org> <20040720202721.GA13486@suffields.me.uk> <20040721105906.GA44277@dsb.tudelft.nl> <20040721120053.GB4067@suffields.me.uk> Message-ID: <20040722054502.GA45617@dsb.tudelft.nl> On Wed, Jul 21, 2004 at 01:00:53PM +0100, Andrew Suffield wrote: > On Wed, Jul 21, 2004 at 12:59:06PM +0200, JP Dinger wrote: > > > presumably because they can't > > > understand how anybody would use it otherwise. > > > > If people insist on finding out the hard way their idea doesn't fly, > > let them. > > Do you see anybody stopping them? No? > > Anybody can write code, if they want to try out their idea. It just > probably won't be merged, and is likely to be ignored. Merging means stamping it fit for general tryout, something you don't usually do until after some testing at least. Ignoring means not even trying out new code, defeating the purpose of an experimental platform. Ignoring also means discouraging people from contributing code for their ideas, which is even more damaging. > It is > significant that none of these people have done so. If you insist on measuring merit by lines of code alone, then yes. OTOH if you first ignore all contributed code then complain nobody contributes code anymore, is nobody to blame for not doing so? > > > X has the right approach, as always. The current division between core > > > and window manager or application functionality is in exactly the > > > right place. The implementation can just be done better. > > > > >From my reading of /The Thesis[tm]/, or even from various opinions on > > this list, I didn't get the idea that Y was to be a copy remake of what > > X did right 20 years ago. Sure we should use what was done right, but I > > don't think that's all we can do. Far from it, even. > > Nobody, including Mark, who is significantly involved in Y has given > *any* particularly deep opinions on the design and direction of the > project on this list. So you're saying that Y-devel is not a list for what you consider the clueful but more of what you think of as a courtesy to people you don't really deem worthy to talk with. Something like a pacifier for the wannabees to be ignored. Glad to clear that up then. I'd encourage you to put your money where your mouth is and indeed do just that. But as some others on the list have assured me, you should be a quite clueful and capable coder. I'm sure there's many a person eager to learn and improve with help from a master. Calling them insane or other names doesn't really help them getting clued in. > Mark's project report (which is *not* a thesis; anybody who calls it > that has no clue what they are talking about) is a fairly unique sort > of document and does not encapsulate the project in any > fashion. Primarily because it's not a thesis. Someone called it that and it stuck. I do not particularly care what it is called. If nothing else it was a nice excuse to try out the colour laser. It turned out a good read and I happened to agree with a lot of ideas. Turns out a lot of people thought them good ideas. Hence the list. But I see that details are more important to you, so I'll leave it up to you to judge people by them. You seem to be good at it. > > > Almost every one of these daft ideas that people keep shooting off > > > about, belongs externally. So they tend to get ignored, modulo an > > > explanation of why they're bad ideas. > > > > Well if it was explanation it'd be welcomed as such. Sentiment I've > > seen a lot of, but explanation or even just elaborated opinion lacked. > > > > Points to work on. > > Yes, you could certainly use work on comprehending this. Y is doing > just fine. If you say so. I'm glad you at least wrote more than ``read the source'' when asked for your opinion. That does seem to be an improvement to me. -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From asuffield at debian.org Thu Jul 22 12:27:14 2004 From: asuffield at debian.org (Andrew Suffield) Date: Thu Jul 22 12:27:26 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <20040722054502.GA45617@dsb.tudelft.nl> References: <1090165279.10608.30.camel@diego.intern.de> <200407181542.29649.james@grickle.org> <20040718215327.GB38903@dsb.tudelft.nl> <200407201435.29710.james@grickle.org> <20040720202721.GA13486@suffields.me.uk> <20040721105906.GA44277@dsb.tudelft.nl> <20040721120053.GB4067@suffields.me.uk> <20040722054502.GA45617@dsb.tudelft.nl> Message-ID: <20040722112714.GB3809@suffields.me.uk> On Thu, Jul 22, 2004 at 07:45:02AM +0200, JP Dinger wrote: > On Wed, Jul 21, 2004 at 01:00:53PM +0100, Andrew Suffield wrote: > > On Wed, Jul 21, 2004 at 12:59:06PM +0200, JP Dinger wrote: > > > > presumably because they can't > > > > understand how anybody would use it otherwise. > > > > > > If people insist on finding out the hard way their idea doesn't fly, > > > let them. > > > > Do you see anybody stopping them? No? > > > > Anybody can write code, if they want to try out their idea. It just > > probably won't be merged, and is likely to be ignored. > > Merging means stamping it fit for general tryout, something you don't > usually do until after some testing at least. Ignoring means not even > trying out new code, defeating the purpose of an experimental platform. > Ignoring also means discouraging people from contributing code for their > ideas, which is even more damaging. Now you're back to the "You people must help me build something that you don't want" idea. That's not how it works. If *you* want something, then *you* must do the work. You cannot expect anybody else to do it for you, especially when they can see out of hand why it's a dumb idea. > > It is > > significant that none of these people have done so. > > If you insist on measuring merit by lines of code alone, then yes. > OTOH if you first ignore all contributed code then complain nobody > contributes code anymore, is nobody to blame for not doing so? Congratulations, you've managed to miss the point quite stunningly. They *didn't* write any code. That means they didn't care. > > > > X has the right approach, as always. The current division between core > > > > and window manager or application functionality is in exactly the > > > > right place. The implementation can just be done better. > > > > > > >From my reading of /The Thesis[tm]/, or even from various opinions on > > > this list, I didn't get the idea that Y was to be a copy remake of what > > > X did right 20 years ago. Sure we should use what was done right, but I > > > don't think that's all we can do. Far from it, even. > > > > Nobody, including Mark, who is significantly involved in Y has given > > *any* particularly deep opinions on the design and direction of the > > project on this list. > > So you're saying that Y-devel is not a list for what you consider the > clueful but more of what you think of as a courtesy to people you don't > really deem worthy to talk with. Something like a pacifier for the > wannabees to be ignored. You said that. And you pulled it out of thin air, it appears apropos of nothing. > Glad to clear that up then. I'd encourage you to put your money where > your mouth is and indeed do just that. But as some others on the list > have assured me, you should be a quite clueful and capable coder. I'm > sure there's many a person eager to learn and improve with help from > a master. Calling them insane or other names doesn't really help them > getting clued in. You're not going to get it. > > Mark's project report (which is *not* a thesis; anybody who calls it > > that has no clue what they are talking about) is a fairly unique sort > > of document and does not encapsulate the project in any > > fashion. Primarily because it's not a thesis. > > Someone called it that and it stuck. Just because people act like sheep does not make them right. -- .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | `. `' | `- -><- | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040722/a288225a/attachment-0001.bin From spiralman at softhome.net Thu Jul 22 14:23:37 2004 From: spiralman at softhome.net (Thomas) Date: Thu Jul 22 14:24:22 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <20040722112714.GB3809@suffields.me.uk> References: <1090165279.10608.30.camel@diego.intern.de> <20040722054502.GA45617@dsb.tudelft.nl> <20040722112714.GB3809@suffields.me.uk> Message-ID: <200407220823.37965.spiralman@softhome.net> On Thursday 22 July 2004 06:27, Andrew Suffield wrote: > > > It is > > > significant that none of these people have done so. > > > > If you insist on measuring merit by lines of code alone, then yes. > > OTOH if you first ignore all contributed code then complain nobody > > contributes code anymore, is nobody to blame for not doing so? > > Congratulations, you've managed to miss the point quite > stunningly. They *didn't* write any code. That means they didn't care. *I* wrote code, i submitted patches, i tried to start and promote discussions, but i was completely ignored. There was no explanation given, or even a "we saw this and didnt like," it was just like talking into the ether. And I wasnt the only person: plenty of people wrote in willing to submit code, or do other things (some ran binary package repositories, took in 3rd party patches that were getting ignored or lost on the list, or just alleviated the slashdotting by helping answer the deluge of questions that were completely off-topic to this list). And then *you* used the fact that you knew the head developer to merge in a complete reworking of the network protocol without a sentence of discussion on the mailing list until *after* you had merged the code in. At which point you called anybody who thought there was a better or different way "stupid" and "insane" and refused to listen to anybody else's opinion. Now i *dont* contribute code, and its mostly because i assumed that this list was for people to discuss changes to the project, and that there would be some sort of review process for getting code put into the main tree, not just "people who know mark in real life get in automatically, people who dont, good luck". You have probably lost many smart and talented contributers to the project because you a) ignored them completely, or b) called them idiots as soon as you see what *might* be a better way to do something, or just didnt feel like looking at their code. In order for such a large project to succeed, there needs to be a large and receptive group of core developers who can lead intelligent discussions and make fair decisions about what to put into the code, or provide good explanations as to why something *doesnt* end up in. What I see is one person who doesnt have time to lead the project due to work (certainly not his fault, and i dont blame him for it, but it still seems to be the reality of the situation) and another person who is completely unwilling to look at anybody else's code or listen to anybody else's opinion. Thomas Stephens spiralman@softhome.net From rawler at rsn.bth.se Thu Jul 22 14:51:12 2004 From: rawler at rsn.bth.se (Ulrik Mikaelsson) Date: Thu Jul 22 14:51:27 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <20040722112714.GB3809@suffields.me.uk> References: <1090165279.10608.30.camel@diego.intern.de> <20040722054502.GA45617@dsb.tudelft.nl> <20040722112714.GB3809@suffields.me.uk> Message-ID: <200407221551.19905.rawler@rsn.bth.se> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > Just because people act like sheep does not make them right. No but it may make people suspect they are just sheep, just like someone acting like a cow might be mistaken for actually beeing a cow. No fingers pointed in any particular direction. - -- You are taking yourself far too seriously. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA/8ZU069SELtZwIkRAvgaAJ49ZaovlH7oCqJuN6C+nO6eawR78wCbBJAs KXrjjT6ryfJoAZ2F0WKvxwU= =dEqv -----END PGP SIGNATURE----- From casey at cwinans.com Thu Jul 22 15:54:52 2004 From: casey at cwinans.com (Casey Winans) Date: Thu Jul 22 15:48:58 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <200407221551.19905.rawler@rsn.bth.se> References: <1090165279.10608.30.camel@diego.intern.de> <20040722054502.GA45617@dsb.tudelft.nl> <20040722112714.GB3809@suffields.me.uk> <200407221551.19905.rawler@rsn.bth.se> Message-ID: <40FFD53C.8080906@cwinans.com> This isn't getting anywhere. Andrew has social issues and "I'm smart/right and you're not" syndrome. This has been stated before and any attempts to make him understand are a waste of time. I'd love to see this project succeed but with people like Andrew (although he is very smart and competent) single handedly snowballing the project and mailing list discussions it is destined to fail. I could see this project go somewhere if a muzzle was put on Andrew (so proper discussion could resume) and he was given a particular task or piece of the project (rather than letting him toss code in where and when he so chooses). Mark Thomas obviously doesn't really care about this project or he'd at least try to stamp out this little fire by reining Andrew in. I also know Mark is very busy but those excuses only go so far; if he wants the project to succeed then appoint someone or better yet a few people to foster development and discussion. Casey Winans From James.Dunne at uop.com Thu Jul 22 16:26:05 2004 From: James.Dunne at uop.com (Dunne, James(Summer Hire)) Date: Thu Jul 22 16:26:58 2004 Subject: [Y-devel] Re: about your concept Message-ID: <81B0D58436CED1118FB100805F6F602010A84BFF@dplmail3.internal.uop.com> I agree. 100%. Thank you for stating what we're all thinking. Y-Devel is not for pissing wars, it's to *discuss* the project and possible implementation details. A separate archived mailing list for future project ideas should be created and all ideas should be discussed there, instead of wasting everyone's time arguing over them here. In a selfish, probably na?ve, attempt to get things back up again, I'd like to re-iterate what I've said a week or two ago: I'd love to do some development work for this project. Are we still going ahead with the idea of server-side widgets? It seems like a waste to discuss any other option since the groundwork for it is there in the code and it sounds like a very plausible solution to me. Others say "it's been discussed to death," but I don't care. Enough talk. Let's try it and see how far we get. As far as transferable widgets go, why bother using an existing general-purpose bytecode (e.g. ECMA MSIL) to render them? That just wastes resources JITting it and calling managed wrapper functions to the painter. Shouldn't we get right down to the root and develop some kind of minimal "painter" bytecode that is only capable of drawing? That way, the server can recompile the bytecode into a trampoline function containing direct painter calls for speed and efficiency in rendering custom widgets. Of course, for an initial implementation a pure interpreter would suffice. Comments an discussion welcome. James Dunne James.Dunne@uop.com -----Original Message----- From: Casey Winans Sent: Thursday, July 22, 2004 9:55 AM To: y-devel@y-windows.org Subject: Re: [Y-devel] Re: about your concept This isn't getting anywhere. Andrew has social issues and "I'm smart/right and you're not" syndrome. This has been stated before and any attempts to make him understand are a waste of time. I'd love to see this project succeed but with people like Andrew (although he is very smart and competent) single handedly snowballing the project and mailing list discussions it is destined to fail. I could see this project go somewhere if a muzzle was put on Andrew (so proper discussion could resume) and he was given a particular task or piece of the project (rather than letting him toss code in where and when he so chooses). Mark Thomas obviously doesn't really care about this project or he'd at least try to stamp out this little fire by reining Andrew in. I also know Mark is very busy but those excuses only go so far; if he wants the project to succeed then appoint someone or better yet a few people to foster development and discussion. Casey Winans From rawler at rsn.bth.se Thu Jul 22 16:54:41 2004 From: rawler at rsn.bth.se (Ulrik Mikaelsson) Date: Thu Jul 22 16:54:54 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <81B0D58436CED1118FB100805F6F602010A84BFF@dplmail3.internal.uop.com> References: <81B0D58436CED1118FB100805F6F602010A84BFF@dplmail3.internal.uop.com> Message-ID: <200407221754.46386.rawler@rsn.bth.se> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thursday 22 July 2004 17.26 skrev Dunne, James(Summer Hire): > As far as transferable widgets go, why bother using an existing > general-purpose bytecode (e.g. ECMA MSIL) to render them? ?That just wastes > resources JITting it and calling managed wrapper functions to the painter. > Shouldn't we get right down to the root and develop some kind of minimal > "painter" bytecode that is only capable of drawing? ?That way, the server > can recompile the bytecode into a trampoline function containing direct > painter calls for speed and efficiency in rendering custom widgets. ?Of > course, for an initial implementation a pure interpreter would suffice. Hmm, there's one little issue about attempting a simple "painter" bytecode. The widgets must not only render themselves, but they must probably also be capable of autonomous reaction to input events. For instance, when you click a button, I don't think we want a server-client-server roundtrip to react and render the pushdown-release animation, do we? Isn't the widgets supposed to be able to deal with something a bit more complex situations, like scrolling a list autonomously without supportting client-side code and such? Or is it possible to simply split the widgets into a bunch of common categories, and not specify alternate behavior from client-submitted code? Like, "This is a regular button, but I will simply provide my own drawing-routines, thank you very much" ? I think that would be making it a little bit too simple, though. :-/ Regards / Ulrik - -- Pardon this fortune. Database under reconstruction. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA/+NE069SELtZwIkRAjLPAJ9QrBWiVM49gG/OscQbDG7ZYLEtfQCfVcLS kzxGMocOT/M6kLpO0fPOp68= =G4iG -----END PGP SIGNATURE----- From James.Dunne at uop.com Thu Jul 22 17:48:05 2004 From: James.Dunne at uop.com (Dunne, James(Summer Hire)) Date: Thu Jul 22 17:48:58 2004 Subject: [Y-devel] Re: about your concept Message-ID: <81B0D58436CED1118FB100805F6F602010A84C00@dplmail3.internal.uop.com> I probably didn't cover the scope of my idea far enough, so I apologize. I meant for all our "standard toolbox" widgets to have server-side painter bytecode for rendering the widgets in all their states. Then, when a client comes along to connect, he informs the server of a few custom widgets he's got, and upon initialization would send the painter bytecode for each defined state of the widget to the server. The server would then cache it and recompile it into native code for later use. Then there comes the problem of the server-client-server roundtrip you stated. That could be alleviated by defining custom widgets based on the server-side widgets available, like you suggested. Server-side widgets would consist of simple things like scrollable lists, grid layouts, textboxes, buttons, labels, scrollbars, tab controls, etc. You could compound all these together to define a custom widget. Following that idea, a nice way of uniformly defining custom widgets should be drawn up, for example an XML-like structure (transmitted minimally over network). And, as a fallback mechanism for custom widgets that can't be defined in terms of the basic server-side widgets, the client could send the painter bytecode on the fly for the current state of the widget that is completely client-controlled. Also, these bytecodes could also be cached and assigned a server-generated unique identifier (sent to the client obviously, or have client+server assume an incremental identifier). Then the client would only have to inform the server that "rendering bytecode ID# XXXX" should be used now. I'll think about this some more later. Thanks for your input, Ulrik! James Dunne James.Dunne@uop.com -----Original Message----- From: Ulrik Mikaelsson Sent: Thursday, July 22, 2004 10:55 AM To: y-devel@y-windows.org Subject: Re: [Y-devel] Re: about your concept -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thursday 22 July 2004 17.26 skrev Dunne, James(Summer Hire): > As far as transferable widgets go, why bother using an existing > general-purpose bytecode (e.g. ECMA MSIL) to render them? ?That just wastes > resources JITting it and calling managed wrapper functions to the painter. > Shouldn't we get right down to the root and develop some kind of minimal > "painter" bytecode that is only capable of drawing? ?That way, the server > can recompile the bytecode into a trampoline function containing direct > painter calls for speed and efficiency in rendering custom widgets. ?Of > course, for an initial implementation a pure interpreter would suffice. Hmm, there's one little issue about attempting a simple "painter" bytecode. The widgets must not only render themselves, but they must probably also be capable of autonomous reaction to input events. For instance, when you click a button, I don't think we want a server-client-server roundtrip to react and render the pushdown-release animation, do we? Isn't the widgets supposed to be able to deal with something a bit more complex situations, like scrolling a list autonomously without supportting client-side code and such? Or is it possible to simply split the widgets into a bunch of common categories, and not specify alternate behavior from client-submitted code? Like, "This is a regular button, but I will simply provide my own drawing-routines, thank you very much" ? I think that would be making it a little bit too simple, though. :-/ Regards / Ulrik - -- Pardon this fortune. Database under reconstruction. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA/+NE069SELtZwIkRAjLPAJ9QrBWiVM49gG/OscQbDG7ZYLEtfQCfVcLS kzxGMocOT/M6kLpO0fPOp68= =G4iG -----END PGP SIGNATURE----- From mark at y-windows.org Thu Jul 22 18:04:58 2004 From: mark at y-windows.org (Mark Thomas) Date: Thu Jul 22 18:05:36 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <40FEFE6D.40107@y-windows.org> References: <1090106700.40f9b54c405e6@www.tastycake.net> <20040721115415.GB44319@dsb.tudelft.nl> <200407211835.27294.rawler@rsn.bth.se> <200407211328.48103.spiralman@softhome.net> <40FEFE6D.40107@y-windows.org> Message-ID: On Thu, 22 Jul 2004, Phil wrote: > > On Wednesday 21 July 2004 11:35, Ulrik Mikaelsson wrote: > >>Hmm, is it possible to do useful GC:ing on a network-protocol with > >>different client-implementations? For instance, how would the server know > >>if a client is REALLY still using it's reference to an object? Is it > >>possible to garbage-collect memory, or even detect memory leaks from a > >>misbehaving client? We can't GC and we can't detect memory leaks (incidentally, garbage collectors won't stop you from leaking memory, I have seen plenty of leaky java programs.) > It can never be safe to destroy a valid object owned by a connected > client (an object should become invalid when the client notifies the > server that it is finished with it), Currently, the server knows of all the objects that "belong" to a client (they're stored in a struct Index called "objects" in the struct Client [src/Y/message/client_p.h:12]). It uses these to automatically destroy all the objects when a client exits. This will need to be enhanced when we start allowing cilents to pass object references between each other, but I think simple reference counting will suffice. ISTR there isn't a way for clients to manually destroy an object they created (unless Andy wrote a "destroy" method when he fixed up the object system). An exercise for someone wanting something to do to poke around the tree? > since there is no way to guarantee > it has really forgotten it. We might need an assassin function to kill > those clients which have too many apparently unused server objects, but > this should only be used when there are insufficient resources on the > server (like the Linux OOM killer). Allowing for the server to > unilaterally delete objects which may still be valid is too risky. I think this is our only choice. It's currently what X does. There was a bug in mozilla firebird (back when it was called firebird) that meant they had a pixmap leak. Every few days my browser (which I never close) would implode. After a bit of poking around, I noticed that before the implosion, X was coming up to using nearly all my RAM, afterwards, it was back to its usual self. Since we have widgets in the server, we can display a nice message: "This program is using too many system resources and will be terminated. Please bitch and moan at the developers to fix their code. Have a nice day." (Wording subject to negotiation) > Side note: Since the client and server are separated by the protocol, a > memory leak in the client can never be detected by the server. It's > also pretty much impossible to detect a memory leak in a running program > when this is not the case. Actually, I wouldn't be surprised if detecting true memory leaks was halting-problem equivalent. > > One simple way to tell is to keep a client reference count for each object, > > which would only keep track of how many clients hold references to an object. > > When that count reaches zero (and you might have a server flag which would > > keep this from being garbage collected), the resource could be freed. This > > way, the GC would only need to be run each time a client disconnects, > > reducing overhead. > > I am reasonably sure that for those objects which can be destroyed it > will only be possible for one client to have a reference to that object > anyway. Not entirely. We need a way to implement what Gtk calls Plug and Socket widgets. The easiest way is to allow a client to make a whole bunch o' widgets and pass the oid of the topmost widget safely to another client, which can then pack it inside its own widgets wherever. This opens a whole can of worms regarding what to do when each client exits (at the very least, they need to be told about it). > Of course, it may be that that client has multiple references > to the same thing, but I would imagine it will be cleaner to have the > client end of things handle mapping multiple refernces onto a single > server object. Yes, each client can only have one reference to an object since that is its oid, an integer which is server-unique. For now at least, we don't need to worry about wayward clients allocating too much. Long term, the using-too-much-resources-killer is probably our only defence from being targeted by the linux OOM killer, or whatever the equivalent is on whichever platform. Regards, Mark. -- || Mark Thomas || efaref.net || || The trouble with life is the lack of cool background music. From mark at y-windows.org Thu Jul 22 18:06:59 2004 From: mark at y-windows.org (Mark Thomas) Date: Thu Jul 22 18:07:29 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <20040722054502.GA45617@dsb.tudelft.nl> References: <1090165279.10608.30.camel@diego.intern.de> <200407181542.29649.james@grickle.org> <20040718215327.GB38903@dsb.tudelft.nl> <200407201435.29710.james@grickle.org> <20040720202721.GA13486@suffields.me.uk> <20040721105906.GA44277@dsb.tudelft.nl> <20040721120053.GB4067@suffields.me.uk> <20040722054502.GA45617@dsb.tudelft.nl> Message-ID: On Thu, 22 Jul 2004, JP Dinger wrote: > > Anybody can write code, if they want to try out their idea. It just > > probably won't be merged, and is likely to be ignored. > > Merging means stamping it fit for general tryout, something you don't > usually do until after some testing at least. Ignoring means not even > trying out new code, defeating the purpose of an experimental platform. > Ignoring also means discouraging people from contributing code for their > ideas, which is even more damaging. Merging also takes a significant amount of time, which you have probably noticed I don't have a lot of. Nearly all of the time I have spent on Y in the last couple of months has been reading and replying to the mailing list, and looking at peoples' patches. > > It is > > significant that none of these people have done so. > > If you insist on measuring merit by lines of code alone, then yes. > OTOH if you first ignore all contributed code then complain nobody > contributes code anymore, is nobody to blame for not doing so? I've already said that I won't merge new widgets or widget features until the theming engine is in a state I am happy with. All the patches I have in my patch queue are for new widgets (Andy's patches which I am merging tonight notwithstanding). Regards, Mark. -- || Mark Thomas || efaref.net || || Always use tasteful words. You may have to eat them. From mark at y-windows.org Thu Jul 22 18:09:06 2004 From: mark at y-windows.org (Mark Thomas) Date: Thu Jul 22 18:09:32 2004 Subject: [Y-devel] Server-side widgets Message-ID: Hi all, Last week, I read some posts on the X.org mailing list about server-side widgets, and there seems to be some confusion out there about what they actually mean, and how they provide any performance advantage over client-side widgets. Since I'm not subscribed to that list, and since it's probably more relevent here since I don't imagine X will ever get any type of server-side widgets, I thought I'd answer some of the points here. I think part of the confusion maybe in the terminology. "Server-side widgets" makes people think all of the widgets are entirely server-side. Perhaps "widget-aware server" would be a better way of putting it. Y will be a "widget-aware" server, as opposed to X which is "widget-unaware". The main point is that the server divides the screen into regions of nested and overlapping "widgets", and recognises that there are different kinds of widgets that must be treated differently. This is slightly more advanced than a "widget-unaware" server, which divides the screen into regions of nested and overlapping "windows" that are all treated essentially the same. Firstly, there are kinds of widgets (Buttons, Labels, Checkboxes...) that given a small amount of data (i.e. a few strings or integers), the server can deal with entirely. This is a fairly common scenario, and it is also the scenario in which we win big. Moving, resizing, and to a certain extent interacting with windows which consist solely of these kinds of widgets will have zero client-server interaction, zero context switches and thus near-zero latency. Secondly, there are kinds of widgets that depend on a large amount of client-side data. It doesn't make sense to transfer all of this data across the connection, and I've never suggested that we do. However, just because the server doesn't know what data appears in a TreeView doesn't mean the server can't know that there is a TreeView, and just because the server is slightly more intelligent doesn't mean the client has to be completely dumb. Instead, we make the server and client speak to each other in terms of the widget, rather than in terms of pixels. For example, the user moves the scrollbar on a TreeView so that the entire contents must be redrawn, compare: "widget-unaware", server, e.g. X: --> MouseMove (window, dx, dy) (client determines what happened is the scrollbar was moved in a way which means the entire contents of the widget must be redrawn) <-- SetGC (window, backgroundGC) <-- ClearRect (window, x, y, w, h) <-- SetGC (window, treeviewLinesGC) <-- DrawLines (window, ...) <-- SetGC (window, treeviewPartsGC) <-- DrawLines (window, ...) <-- DrawPixmap (window, icon, ...) <-- DrawText (window, text, ...) (these last steps repeated for each object in the treeview) "widget-aware" server, e.g. Y: (server determines scrollbar was moved and entire contents pane must be redrawn) --> treeview.Redraw (startElementSpec, endElementSpec) <-- treeview.DrawElement (elementSpec, icon, text) (this last step repeated for each object in the treeview) If you think of it in MVC terms, only the View is on the server. Now, I think you'll agree that the "widget-aware" server will perform in the worst-case exactly the same as the "widget-unaware" server. More likely it will be better since the amount of data transferred is lower and the amount of work to do is slightly less, but let's call it a draw for now. So that's a "win" in the low-data, high-count widgets, and a "draw" (maybe "win") in the high-data, low-count widgets. I'm not sure about the rest of you, but for me, ("win", "draw") counts as an overall "win". Finally, there are custom widgets. I'm not talking about custom buttons which look completely different from normal buttons and go "ding" when you hover your mouse over them, they're bad and should be discouraged. The useful kind of custom widgets are specialised views of custom data. In both widget-aware servers and widget-unaware servers with client library toolkits, they are implemented exactly the same way: canvasses. The performance difference here will be negligible. I hope this helps to clear up any misunderstandings and misgivings people had about server-side widgets. If you have any more questions, ask them. Regards, Mark. -- || Mark Thomas || efaref.net || || Don't anthropomorphize computers, they don't like it. From mark at y-windows.org Thu Jul 22 18:12:25 2004 From: mark at y-windows.org (Mark Thomas) Date: Thu Jul 22 18:12:27 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <81B0D58436CED1118FB100805F6F602010A84C00@dplmail3.internal.uop.com> References: <81B0D58436CED1118FB100805F6F602010A84C00@dplmail3.internal.uop.com> Message-ID: The server will not run any kind of client-provided code. See my post with the subject "Server-side widgets" as to how it will work. Regards, Mark. -- || Mark Thomas || efaref.net || || Things you never hear people say; "Hand me that piano." From mark at y-windows.org Thu Jul 22 18:31:20 2004 From: mark at y-windows.org (Mark Thomas) Date: Thu Jul 22 18:31:22 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <40FFD53C.8080906@cwinans.com> References: <1090165279.10608.30.camel@diego.intern.de> <20040722054502.GA45617@dsb.tudelft.nl> <20040722112714.GB3809@suffields.me.uk> <200407221551.19905.rawler@rsn.bth.se> <40FFD53C.8080906@cwinans.com> Message-ID: On Thu, 22 Jul 2004, Casey Winans wrote: > This isn't getting anywhere. Andrew has social issues and "I'm > smart/right and you're not" syndrome. So far, he _has_ been right every time. > I could see this project go somewhere if a muzzle was put on Andrew (so > proper discussion could resume) and he was given a particular task or > piece of the project (rather than letting him toss code in where and > when he so chooses). I don't think anyone has the power to "muzzle" Andrew, and I wouldn't want to even if I could. Andrew is free to work on whatever part of Y he chooses, as is everyone else. I will merge what I want, when I want. > I also know Mark is very busy but those excuses only go so far; if he > wants the project to succeed then appoint someone or better yet a few > people to foster development and discussion. What I do with my free time is, quite frankly, none of your damn business. There's actually very little to discuss at the moment. There is enough in the code to see how everything fits together. It's mostly a case of ripping out the bodged code that I wrote in a rush to meet the tight deadline and replacing it with something that is robust. Andrew's already done that to the network protocol, object system and keyboard handling. I've made some improvements to the buffers though I'm stil not happy with it. Still remaining to be fixed are font handling, module loading/unloading/reloading, and themes. And please, everyone, read http://www.catb.org/~esr/faqs/smart-questions.html before you post questions. Regards, Mark. -- || Mark Thomas || efaref.net || || Pun: the lowest form of humor, unless you thought of it first. From rawler at rsn.bth.se Thu Jul 22 18:39:26 2004 From: rawler at rsn.bth.se (Ulrik Mikaelsson) Date: Thu Jul 22 18:39:51 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <81B0D58436CED1118FB100805F6F602010A84C00@dplmail3.internal.uop.com> References: <81B0D58436CED1118FB100805F6F602010A84C00@dplmail3.internal.uop.com> Message-ID: <200407221939.30127.rawler@rsn.bth.se> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thursday 22 July 2004 18.48 skrev Dunne, James(Summer Hire): > Then there comes the problem of the server-client-server roundtrip you > stated. ?That could be alleviated by defining custom widgets based on the > server-side widgets available, like you suggested. ?Server-side widgets > would consist of simple things like scrollable lists, grid layouts, > textboxes, buttons, labels, scrollbars, tab controls, etc. ?You could > compound all these together to define a custom widget. ?Following that > idea, a nice way of uniformly defining custom widgets should be drawn up, > for example an XML-like structure (transmitted minimally over network). Maybe it would be possible to abstract server-side behaviors, such as "scrollable", or "clickable" and provide template-based reactions to those events, as well as a "custom" behavior which would pass on events to the client? XML is a great language for many purposes, but perhaps we should also consider a format like EBML, or some own proprietary protocol to keep bandwidth-usage down to a minimum. > And, as a fallback mechanism for custom widgets that can't be defined in > terms of the basic server-side widgets, the client could send the painter > bytecode on the fly for the current state of the widget that is completely > client-controlled. ?Also, these bytecodes could also be cached and assigned > a server-generated unique identifier (sent to the client obviously, or have > client+server assume an incremental identifier). ?Then the client would > only have to inform the server that "rendering bytecode ID# XXXX" should be > used now. This sounds EXACTLY like OpenGL displays-lists. And they have proven to work quite well over the years. Except for the time when my Nvidia-card refused to store anything, including the damn lists, in video memory and just puked all over my screen. ;) Just add a LITTLE more flexibility to the display list-concept and we've got something that works. ;) I'm afraid there might be one slight problem more, though. Widgets may contain other widgets. (At least I think they should?) How do we solve layouting of widgets embedded in a custom widget? Behaviour? Client-feedback? That will probably require some thinking. ;) > I'll think about this some more later. ?Thanks for your input, Ulrik! Hehe, your welcome. Thanks for your interest and input to the Y project. ;) - -- "I've seen it. It's rubbish." - -- Marvin the Paranoid Android -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA//vR069SELtZwIkRAgESAJ9kg8vvNr6158e4AfgLHukLyW+5GACdFPYI yvvJBcQd+HTGwiu+ui8yJUs= =XGBD -----END PGP SIGNATURE----- From rawler at rsn.bth.se Thu Jul 22 18:52:48 2004 From: rawler at rsn.bth.se (Ulrik Mikaelsson) Date: Thu Jul 22 18:52:53 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: References: <1090165279.10608.30.camel@diego.intern.de> <20040722054502.GA45617@dsb.tudelft.nl> Message-ID: <200407221952.51051.rawler@rsn.bth.se> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thursday 22 July 2004 19.06 skrev Mark Thomas: > Merging also takes a significant amount of time, which you have probably > noticed I don't have a lot of. ?Nearly all of the time I have spent on Y > in the last couple of months has been reading and replying to the mailing > list, and looking at peoples' patches. Indeed. Merging is a time-consuming process and having pressure to both produce some software of your own, while maintaining input and contributions from a dozen of people that writes things a lot faster than you have time do is a nightmare. Add in the responsibility of having multiple projects at once, some as a hobby, some for school and some for work and the situation quickly becomes impossible to sort out. What I would like to know is, how are these things solved in other large Open-Source projects, like KDE or the kernel? Linus sure have a lot more time to spend on kernel-maintenance than you seem to have, but the very pressure and amount of patches submitted to the Linux kernel is also a LOT larger than Y. How is the kernel development organized so that Linus doesn't have to work 28 hours/day reviewing patches? Regards / Ulrik - -- Whether you can hear it or not, The Universe is laughing behind your back. -- National Lampoon, "Deteriorata" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA//7y069SELtZwIkRAuI1AKCVrdHTAM75CRSUJ7ik/IA1aBdFqACgoW/V cWp9AAa2TbwkrzKr8KNYHf4= =dLar -----END PGP SIGNATURE----- From rogelio at smsglobal.net Thu Jul 22 19:07:41 2004 From: rogelio at smsglobal.net (Rogelio M.Serrano Jr.) Date: Thu Jul 22 19:07:49 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <200407221939.30127.rawler@rsn.bth.se> Message-ID: <50885cac8263b2721fa43a14768d6188@master> On 2004-07-23 01:39:26 +0800 Ulrik Mikaelsson wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Thursday 22 July 2004 18.48 skrev Dunne, James(Summer Hire): >> Then there comes the problem of the server-client-server roundtrip you >> stated. ?That could be alleviated by defining custom widgets based on the >> server-side widgets available, like you suggested. ?Server-side widgets >> would consist of simple things like scrollable lists, grid layouts, >> textboxes, buttons, labels, scrollbars, tab controls, etc. ?You could >> compound all these together to define a custom widget. ?Following that >> idea, a nice way of uniformly defining custom widgets should be drawn up, >> for example an XML-like structure (transmitted minimally over network). > Maybe it would be possible to abstract server-side behaviors, such as > "scrollable", or "clickable" and provide template-based reactions to those > events, as well as a "custom" behavior which would pass on events to the > client? > > XML is a great language for many purposes, but perhaps we should also > consider a format like EBML, or some own proprietary protocol to keep > bandwidth-usage down to a minimum. > >> And, as a fallback mechanism for custom widgets that can't be defined in >> terms of the basic server-side widgets, the client could send the painter >> bytecode on the fly for the current state of the widget that is completely >> client-controlled. ?Also, these bytecodes could also be cached and assigned >> a server-generated unique identifier (sent to the client obviously, or have >> client+server assume an incremental identifier). ?Then the client would >> only have to inform the server that "rendering bytecode ID# XXXX" should be >> used now. > This sounds EXACTLY like OpenGL displays-lists. And they have proven to work > quite well over the years. Except for the time when my Nvidia-card refused to > store anything, including the damn lists, in video memory and just puked all > over my screen. ;) Just add a LITTLE more flexibility to the display > list-concept and we've got something that works. ;) > > I'm afraid there might be one slight problem more, though. Widgets may > contain other widgets. (At least I think they should?) How do we solve > layouting of widgets embedded in a custom widget? Behaviour? Client-feedback? > That will probably require some thinking. ;) > >> I'll think about this some more later. ?Thanks for your input, Ulrik! > Hehe, your welcome. Thanks for your interest and input to the Y project. ;) > maybe a pdf rendering model would be good idea? That looks like a generic widget drawing facility to me. From mark at y-windows.org Thu Jul 22 19:07:48 2004 From: mark at y-windows.org (Mark Thomas) Date: Thu Jul 22 19:07:52 2004 Subject: [Y-devel] [PATCH] uint32_t -> int32_t in rectangle functions In-Reply-To: <20040721054904.GB447090@cc.hut.fi> References: <20040721054904.GB447090@cc.hut.fi> Message-ID: Thanks. Applied in Y--devel--0.2--patch-54. There's probably some [unsigned] ints that need changing to [u]int32_ts somewhere in the code. I expect Phil will find them when he tries to compile on his Athlon64 system, though :) Regards, Mark. -- || Mark Thomas || efaref.net || || If you pull the wings off a fly, does it become a walk? From mark at y-windows.org Thu Jul 22 19:28:53 2004 From: mark at y-windows.org (Mark Thomas) Date: Thu Jul 22 19:29:02 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <200407221939.30127.rawler@rsn.bth.se> References: <81B0D58436CED1118FB100805F6F602010A84C00@dplmail3.internal.uop.com> <200407221939.30127.rawler@rsn.bth.se> Message-ID: On Thu, 22 Jul 2004, Ulrik Mikaelsson wrote: > Maybe it would be possible to abstract server-side behaviors, such as > "scrollable", or "clickable" and provide template-based reactions to those > events, as well as a "custom" behavior which would pass on events to the > client? Interesting idea. It would tie in quite well with the theme engine having a concept of "clickable thing", "labelling thing", and so on. > XML is a great language for many purposes, but perhaps we should also consider > a format like EBML, or some own proprietary protocol to keep bandwidth-usage > down to a minimum. The "proprietary" protocol could be as simple as Y remote object method calls in the right sequence. > This sounds EXACTLY like OpenGL displays-lists. And they have proven to work > quite well over the years. Except for the time when my Nvidia-card refused to > store anything, including the damn lists, in video memory and just puked all > over my screen. ;) Just add a LITTLE more flexibility to the display > list-concept and we've got something that works. ;) I'm not sure display-lists buy us anything useful. Display lists work for gfx cards because the rendering pipeline is usually a lot faster than the cpu can send polys over the agp bus. I don't think we'll have the same problem for custom widgets (or, indeed, canvases in general). It might be an idea to throw together a prototype to see what happens. > I'm afraid there might be one slight problem more, though. Widgets may contain > other widgets. (At least I think they should?) How do we solve layouting of > widgets embedded in a custom widget? Behaviour? Client-feedback? That will > probably require some thinking. ;) It has to be client feedback, since anything else can be obtained with the correct layout widget layered over the top of your canvas. In fact, I'm tempted to say canvases can't have widgets inside them, but you can arrange: +-- LayerLayout +-- FixedLayout | +-- Widget A | +-- Widget B +-- Canvas Which means you can draw on the canvas, and place widgets anywhere over it. Regards, Mark. -- || Mark Thomas || efaref.net || || My favorite mythical creature? The honest politician. From asuffield at debian.org Thu Jul 22 19:52:27 2004 From: asuffield at debian.org (Andrew Suffield) Date: Thu Jul 22 19:52:35 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: References: <1090106700.40f9b54c405e6@www.tastycake.net> <20040721115415.GB44319@dsb.tudelft.nl> <200407211835.27294.rawler@rsn.bth.se> <200407211328.48103.spiralman@softhome.net> <40FEFE6D.40107@y-windows.org> Message-ID: <20040722185227.GB13822@suffields.me.uk> On Thu, Jul 22, 2004 at 06:04:58PM +0100, Mark Thomas wrote: > ISTR there isn't a way for clients to manually destroy an object they > created (unless Andy wrote a "destroy" method when he fixed up the object > system). An exercise for someone wanting something to do to poke around > the tree? Never got around to it. Implementing a wrapper to objectDestroy in the server is trivial (I'm inclined to move the code from objectDestroy into the Object::DESTROY method, and make objectDestroy itself just a method call to DESTROY; estimated time, two minutes). Teaching libYc++ when to send the message is hard; the interface is tricky. > > since there is no way to guarantee > > it has really forgotten it. We might need an assassin function to kill > > those clients which have too many apparently unused server objects, but > > this should only be used when there are insufficient resources on the > > server (like the Linux OOM killer). Allowing for the server to > > unilaterally delete objects which may still be valid is too risky. > > I think this is our only choice. It's currently what X does. There was a > bug in mozilla firebird (back when it was called firebird) that meant they > had a pixmap leak. Every few days my browser (which I never close) would > implode. After a bit of poking around, I noticed that before the > implosion, X was coming up to using nearly all my RAM, afterwards, it was > back to its usual self. Around the time of gtk 1.2, there were a lot of gtk pixmap themes being written that would leak like anything, because theme authors can't code. Since they leaked enthusiastically into every gtk application's pixmap space, the server's memory space would get full of holes and most of it could never be reclaimed (there's no sliding heap on glibc systems). > > Side note: Since the client and server are separated by the protocol, a > > memory leak in the client can never be detected by the server. It's > > also pretty much impossible to detect a memory leak in a running program > > when this is not the case. > > Actually, I wouldn't be surprised if detecting true memory leaks was > halting-problem equivalent. I think it's actually worse. You need to know which allocation objects will not be referenced again in the future, along all possible code paths - you have to solve the halting problem an infinite number of times. > > > One simple way to tell is to keep a client reference count for each object, > > > which would only keep track of how many clients hold references to an object. > > > When that count reaches zero (and you might have a server flag which would > > > keep this from being garbage collected), the resource could be freed. This > > > way, the GC would only need to be run each time a client disconnects, > > > reducing overhead. > > > > I am reasonably sure that for those objects which can be destroyed it > > will only be possible for one client to have a reference to that object > > anyway. > > Not entirely. We need a way to implement what Gtk calls Plug and Socket > widgets. The easiest way is to allow a client to make a whole bunch o' > widgets and pass the oid of the topmost widget safely to another client, > which can then pack it inside its own widgets wherever. This opens a > whole can of worms regarding what to do when each client exits (at the > very least, they need to be told about it). Bweh. I'm not at all sure that's a sensible approach. It would be easier to have seamless embedded windows. > For now at least, we don't need to worry about wayward clients allocating > too much. Long term, the using-too-much-resources-killer is probably our > only defence from being targeted by the linux OOM killer, or whatever the > equivalent is on whichever platform. I'm not sure this problem is worth solving. If the user is going to use up too much memory, let them. It's their own damn fault. We can provide a system of ulimits for those users who want to control unruly applications (developers, mostly) and stop there. -- .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | `. `' | `- -><- | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040722/9840e588/attachment-0001.bin From rawler at rsn.bth.se Thu Jul 22 20:53:33 2004 From: rawler at rsn.bth.se (Ulrik Mikaelsson) Date: Thu Jul 22 20:53:50 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <50885cac8263b2721fa43a14768d6188@master> References: <50885cac8263b2721fa43a14768d6188@master> Message-ID: <200407222153.39803.rawler@rsn.bth.se> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > maybe a pdf rendering model would be good idea? That looks like a generic > widget drawing facility to me. Well, it's basically a good idea in my oppinion. The issues I can see regarding PDF are speed, legal issues, and dynamic content. To explain what I mean with dynamic content, take simple scaling as the first example. Imagine we would like to use a simple drawing primitive and store that code on the server. Let's assume we'd like to store vector instructions to draw a flower. (Can anyone say ICQ-client?) It is easy to see that this flower have two important parameters required to draw it. Height and width. I think PDF could support scaling, even without keeping aspect excellent. So let's move on to another example. Imagine we'd like to use a progress-meter. (Stupid idea, since Y hopefully will include it's own progress-meter, but I could for instance imagine that webpages might require custom-themed widgets that fits into the theme of the webpage. HTML certainly allows it.) The primitive would then require 4 parameters: length, thickness, orientation and progress. As I see it, Y could greatly benefit from supporting these kinds of parametric drawing primitives. To get back to the ICQ-example, most ICQ-applications do display status by the color of the flower. As I see it, colour could just be another parameter. When I think about it, I think this might be something that should be considered for implementation throughout the entire graphics-drawing system. I've got a feeling it might be something like this Phil had in mind when talking about identifying common primitives for the widgets. Am I close, Phil? Imagine it would be possible to provide a bunch of primitives in the server. Let the primitives with an id below 32k or something be reserved for core primitives, primitives that are replaced when switching themes. These primitives could then be used to build core widgets like buttons, menus etc. Exchange these primitives with primitives from a different theme and you've got yourself a completely different-looking widgetset. Then let the primitives above 64k be contributed by client-applications as they connect, to increase their performance and latency when redrawing their custom widgets. Let the primitives take parameters, and hopefully not as many primitives will be required, at the same time as flexibility for the theme-writer increases. One other nice side-effect of this setup would be that custom widgets still could use themed primitives and thereby get a themed look. Yet another bonus of letting the primitives take parameters would be that applications such as a webbrowser that might have to override the system-global theme can quite easily build a quite cheap set of own primitives and send to the server, and then simply passing them the parameters it parsed from the HTML. (Color, border thickness etc.) Perhaps it could even be extended to make some of the parameters of the core primitives optional, defaulting to the current color-scheme etc, but allowing special applications such as our webbrowser to still use them. I'm not sure we want to allow this though, for UI consistency-reasons as well performance. Well, this was quite a heavy chunk of ideas. I'll shut up for tonight, but please come with constructive feedback. And Phil, please let me know if I'm somewhat on track with what you had in mind for themeing/primitives. Regards / Ulrik - -- QOTD: "I may not be able to walk, but I drive from the sitting posistion." -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBABs/069SELtZwIkRAg0LAJwPSOO9XfItXZxRmnqmY4S2XJedKwCeJJoM BJgN/mMLOO+cv0JlmiCTb+Q= =cMht -----END PGP SIGNATURE----- From asuffield at debian.org Thu Jul 22 20:53:42 2004 From: asuffield at debian.org (Andrew Suffield) Date: Thu Jul 22 20:53:53 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <200407220823.37965.spiralman@softhome.net> References: <1090165279.10608.30.camel@diego.intern.de> <20040722054502.GA45617@dsb.tudelft.nl> <20040722112714.GB3809@suffields.me.uk> <200407220823.37965.spiralman@softhome.net> Message-ID: <20040722195341.GC13822@suffields.me.uk> On Thu, Jul 22, 2004 at 08:23:37AM -0500, Thomas wrote: > On Thursday 22 July 2004 06:27, Andrew Suffield wrote: > > > > It is > > > > significant that none of these people have done so. > > > > > > If you insist on measuring merit by lines of code alone, then yes. > > > OTOH if you first ignore all contributed code then complain nobody > > > contributes code anymore, is nobody to blame for not doing so? > > > > Congratulations, you've managed to miss the point quite > > stunningly. They *didn't* write any code. That means they didn't care. > *I* wrote code, i submitted patches, i tried to start and promote discussions, > but i was completely ignored. There was no explanation given, or even a "we > saw this and didnt like," it was just like talking into the ether. I see a few odd patches sent to the mailing list and not followed up. None of them interested me, so I ignored them. Mark doesn't habitually keep a list of patches, rather assuming that people will remind him if it's important. > And then *you* used the fact that you knew the head developer to merge in a > complete reworking of the network protocol without a sentence of discussion > on the mailing list until *after* you had merged the code in. I very much doubt that it was significantly affected by the fact that I've known Mark for a while, and rather more by the fact that I provided an arch archive and something Mark was interested in. I don't see why you think the mailing list had anything to do with it. It is a discussion forum, nothing more. I can talk to people without using it quite easily. Not that there was much to discuss; we both knew more or less what needed to be done. > At which point > you called anybody who thought there was a better or different way "stupid" > and "insane" and refused to listen to anybody else's opinion. Fiction. > Now i *dont* contribute code, and its mostly because i assumed that this list > was for people to discuss changes to the project, and that there would be > some sort of review process for getting code put into the main tree All of those things are accurate, but it seems like you have little experience with free software development. The review process is Mark (and occasionally me) looking at the code, and not every discussion about the project happens on this list. Not least because of all the people who chime in with ill-educated opinions. > You have probably lost many smart and talented contributers to > the project because you a) ignored them completely, or b) called them idiots > as soon as you see what *might* be a better way to do something, or just > didnt feel like looking at their code. I rather doubt that. We've lost a fair amount of dead weight though. > In order for such a large project to succeed, there needs to be a large and > receptive group of core developers who can lead intelligent discussions and > make fair decisions about what to put into the code, or provide good > explanations as to why something *doesnt* end up in. No. I don't know where you got that idea. Quite the opposite really - for a large project to succeed, you need a (small) group of gatekeepers whose primary task is to say "no". That's the hallmark of every successful large free software project (Larry Wall gives a rather good talk on the subject). This isn't a large project anyway. -- .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | `. `' | `- -><- | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040722/7f4497e2/attachment.bin From asuffield at debian.org Thu Jul 22 20:56:03 2004 From: asuffield at debian.org (Andrew Suffield) Date: Thu Jul 22 20:56:06 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <200407221952.51051.rawler@rsn.bth.se> References: <1090165279.10608.30.camel@diego.intern.de> <20040722054502.GA45617@dsb.tudelft.nl> <200407221952.51051.rawler@rsn.bth.se> Message-ID: <20040722195603.GD13822@suffields.me.uk> On Thu, Jul 22, 2004 at 07:52:48PM +0200, Ulrik Mikaelsson wrote: > What I would like to know is, how are these things solved in other large > Open-Source projects, like KDE or the kernel? Linus sure have a lot more time > to spend on kernel-maintenance than you seem to have, but the very pressure > and amount of patches submitted to the Linux kernel is also a LOT larger than > Y. How is the kernel development organized so that Linus doesn't have to work > 28 hours/day reviewing patches? The thread's called "Linus doesn't scale", from about two years ago (from shortly after the point where Linus no longer had enough non-sleeping hours in the day to review the number of patches revceived in a day). They use bitkeeper. We use arch. -- .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | `. `' | `- -><- | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040722/67259916/attachment.bin From asuffield at debian.org Thu Jul 22 20:58:58 2004 From: asuffield at debian.org (Andrew Suffield) Date: Thu Jul 22 20:59:07 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <81B0D58436CED1118FB100805F6F602010A84BFF@dplmail3.internal.uop.com> References: <81B0D58436CED1118FB100805F6F602010A84BFF@dplmail3.internal.uop.com> Message-ID: <20040722195858.GE13822@suffields.me.uk> On Thu, Jul 22, 2004 at 10:26:05AM -0500, Dunne, James(Summer Hire) wrote: > Are we still going ahead with the idea of server-side widgets? That says it all really. It's just so typical of the reality disconnect people keep demonstrating. -- .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | `. `' | `- -><- | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040722/b81ed6a0/attachment.bin From phil at y-windows.org Thu Jul 22 22:23:56 2004 From: phil at y-windows.org (Phil) Date: Thu Jul 22 21:10:53 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <41002ED7.8040202@willerz.org> References: <81B0D58436CED1118FB100805F6F602010A84C00@dplmail3.internal.uop.com> <41002ED7.8040202@willerz.org> Message-ID: <4100306C.5040205@y-windows.org> Phil wrote: > > Phil > Yes, it was the same Phil. Haven't quite got thunderbird trained yet, sorry. Phil From mira at cc.jyu.fi Thu Jul 22 22:00:24 2004 From: mira at cc.jyu.fi (Mikko Rantalainen) Date: Thu Jul 22 22:00:23 2004 Subject: [Y-devel] Re: Abstract server-side behaviors In-Reply-To: References: Message-ID: <41002AE8.1040203@cc.jyu.fi> Mark Thomas wrote: > On Thu, 22 Jul 2004, Ulrik Mikaelsson wrote: >>> Maybe it would be possible to abstract server-side behaviors, such as >>> "scrollable", or "clickable" and provide template-based reactions to those >>> events, as well as a "custom" behavior which would pass on events to the >>> client? > > Interesting idea. It would tie in quite well with the theme engine having > a concept of "clickable thing", "labelling thing", and so on. There was just discussion in the WHATWG mailing list about labels. If you go with server-side widget support (which I think is a good idea) make sure that server *understands* labels; a label is surely a piece of text but in addition to that, it has *behavior* and *semantics*. Semantics is easy, a label is a "title" for a control or a group of controls (e.g. title for a text input or a title for an array of radio buttons). Every label should be bound with at least one control. Also, make fieldset legends (simply descriptive) different from control labels. The behavior of a label could be pretty much anything. If I could decide, I'd make hover effect to draw "outline" (in W3C CSS terms) around the label and related control. For example, if label is for text input hovering label text *or* input itself *or* focusing the input should draw a line around both the label and the control. Simple implementation could just change the border of those visual elements but a more advanced one could draw something like MSIE/MacOS does for labels (a crude ascii figure follows). In addition to hovering/control focus effect that makes it absolutely clear for the user which label is for which control I'd also copy the click-to-forward-focus behavior of current HTML browsers. Clicking in the label should activate the control (e.g. toggle checkbox or set focus to text input). For special case, I'd like if the following would Just Work (UI described as HTML code): Label for radiobutton that contains a Label for textinput The behavior for this would be to activate radiobutton (that is, to select this item from an array of radiobuttons) when anything inside the radiobutton element is clicked, including the textinput. If the textinput or its label is clicked then the radiobutton should be activated *and* the textinput should be focused. Why would someone would want to contruct UI elements like this? For example, if I were to create a query like: My Favorite Color: o Blue o Red o Other: [______] I wouldn't need to code anything special to automatically select the radiobutton that matches the "Other" selection -- it would be automatically selected if user clicked in the textinput in that item. /------------------\ | Message subject: +--------------------------\ | +------------------------------------------+ | | | Some message title here | | <-- outline | +------------------------------------------+ | \----------------------------------------------/ An ascii image of outlining a text input and it's label. Notice that outline is concave to better follow the size of label and text input. MacOS draws rounded corners for the outline to further improve its looks. -- Mikko From mark at y-windows.org Thu Jul 22 22:52:47 2004 From: mark at y-windows.org (Mark Thomas) Date: Thu Jul 22 22:52:49 2004 Subject: [Y-devel] Phil meet y-devel; y-devel meet Phil In-Reply-To: <20040722185227.GB13822@suffields.me.uk> References: <1090106700.40f9b54c405e6@www.tastycake.net> <20040721115415.GB44319@dsb.tudelft.nl> <200407211835.27294.rawler@rsn.bth.se> <200407211328.48103.spiralman@softhome.net> <40FEFE6D.40107@y-windows.org> <20040722185227.GB13822@suffields.me.uk> Message-ID: On Thu, 22 Jul 2004, Andrew Suffield wrote: > > Actually, I wouldn't be surprised if detecting true memory leaks was > > halting-problem equivalent. > > I think it's actually worse. You need to know which allocation objects > will not be referenced again in the future, along all possible code > paths - you have to solve the halting problem an infinite number of > times. True, we don't know the future input yet, and the HP assumes that we do. I was basing my conjecture on the basis that "Will line X of the code be run" is known to be HP-equiv, extrapolating that for all the lines where the allocation object in question is touched. Regardless, it can't be done. > > Not entirely. We need a way to implement what Gtk calls Plug and Socket > > widgets. The easiest way is to allow a client to make a whole bunch o' > > widgets and pass the oid of the topmost widget safely to another client, > > which can then pack it inside its own widgets wherever. This opens a > > whole can of worms regarding what to do when each client exits (at the > > very least, they need to be told about it). > > Bweh. I'm not at all sure that's a sensible approach. It would be > easier to have seamless embedded windows. I think that's going to amount to the same thing. The two applications will need to know when each other vanishes (presumably they're going to want to do something about it), and they might also interact in other ways (though in that case they'll have some other notification mechanism anyway). ... Maybe you're right. I shall dwell on this subject some more. > > For now at least, we don't need to worry about wayward clients allocating > > too much. Long term, the using-too-much-resources-killer is probably our > > only defence from being targeted by the linux OOM killer, or whatever the > > equivalent is on whichever platform. > > I'm not sure this problem is worth solving. If the user is going to > use up too much memory, let them. It's their own damn fault. We can > provide a system of ulimits for those users who want to control unruly > applications (developers, mostly) and stop there. Well, given the choice between Y killing the wayward app and the OOM killer killing Y, I think I'd prefer the former, even if it's slightly harder. For now at least we can be lazy. Regards, Mark. -- || Mark Thomas || efaref.net || || What do you mean my birth certificate expired? From spiralman at softhome.net Fri Jul 23 02:50:02 2004 From: spiralman at softhome.net (Thomas) Date: Fri Jul 23 02:51:01 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <20040722195341.GC13822@suffields.me.uk> References: <1090165279.10608.30.camel@diego.intern.de> <200407220823.37965.spiralman@softhome.net> <20040722195341.GC13822@suffields.me.uk> Message-ID: <200407222050.02295.spiralman@softhome.net> Before I get into my reply, I would like to apologize for the length of this post (I know i certainly wouldn't read it carefully, or at all, if I were not already involved in the discussion, and don't expect many of you to do so) and also for fanning the flamewar. I realize that this is generally off topic, but I have tried to avoid personal attacks as much as possible, and I believe I have a good reason to post it. Y seems to be a promising project: I would love to see it succeed, and I would also love to contribute to it. However, it seems to me that the way things are currently being done is clearly not working. This is not to say that I think Mark is doing a bad job, it simply means that I believe there is a better way to do things. While I clearly think that my way is a good way, it is obviously not necessarily the best way, and my main goal is to promote discussion on this topic, instead of having anybody who would like to see things improve labeled trolls and flamebaters. On Thursday 22 July 2004 02:53, Andrew Suffield wrote: > > And then *you* used the fact that you knew the head developer to merge in > > a complete reworking of the network protocol without a sentence of > > discussion on the mailing list until *after* you had merged the code in. > > I very much doubt that it was significantly affected by the fact that > I've known Mark for a while, and rather more by the fact that I > provided an arch archive and something Mark was interested in. With absolutely no review outside of the two of you. Certainly, it is possible for Mark to be the sole gatekeeper of all Y development, but that doesn't mean that is best for the project. And certainly, while he is sole maintainer of the project, developers may make large, fundamental changes to the code base, submit them to him, and have them accepted. This is not my point. My point is that doing things this way does not attract developers, and will even detract current or potential developers. At the very least, it is nice to announce that you are making those changes to the developer mailing list, so that other developers won't spend time doing what you are doing, or writing code that would be affected by your changes. I would also like to note that this isn't just some rule I made up, but seems to be a common suggestion/guideline/rule for most open source projects that have or are looking to attract developers outside the core developer base. > I don't see why you think the mailing list had anything to do with > it. It is a discussion forum, nothing more. I can talk to people > without using it quite easily. Not that there was much to discuss; we > both knew more or less what needed to be done. The mailing list has everything to do with it exactly because it is a place for discussion. The problem is you are assuming that what you and Mark both "knew more or less" was correct. Unfortunately, this isn't true (or even if it has been in the past, it won't be for the life of the project). As far as off mailing list discussion, it has been my experience that this leads to a lot of problems and headaches, from a development perspective, and can lead to a rift in project goals. As an example, I worked on a large open source project which had high concentrations of developers in the US and Germany, all of whom preferred holding discussions on IRC. Of course, this meant that if a German developer had an idea, only the other German developers would be around to discuss it, and vice-versa for the US developers. There where a lot of instances where one group of developers would bring up an issue, discuss it, come to a resolution, and implement their ideas, only to have the other group wake up the next day and say "Well, what about this better way of doing things?" or "Well, that has a problem when you do this." or "You just broke everything I did last night." This gets even worse when you move the discussions to IM, private emails or in-person discussions. Note that just because a person does not belong to the core group of developers does not mean that they don't have anything to contribute, don't have good ideas, or won't have their code severely impacted by changes to the core system. > > At which point > > you called anybody who thought there was a better or different way > > "stupid" and "insane" and refused to listen to anybody else's opinion. > > Fiction. Not true at all, here are some choice quotes. I have taken them from a thread titled "Proposal for a minor change in the Y-protocol", specifically discussing whether commands between the client and server should be passed as strings or as integers, one of the major changes you made to the code without any formal announcement or design discussion on the list. "And this is insane. The protocol would change depending on hardware architecture", "What are you smoking? Alignment is as hardware-dependent as endianness.", " You have to be really stupid to write socket code with alignment issues." You might have had some good points, but the fact is, you were rude and responded to criticism in a way that stifled discussion and discouraged people from participating. After all, who would want to point out a flaw in your argument when they know they are going to be called "stupid" and "insane." This does not just affect the people you are replying to directly, but anybody who is reading the discussion and considering contributing. Also, and I am only writing this because I am assuming you are going to attack the validity of their argument, and claim that your rudeness was justified and that no important talent will be missed, as you have done in the past. First, it is not up to you to decide who is too stupid to contribute code, especially when you have not seen their code. And second, I think that any on-topic comments in a discussion are perfectly reasonable, even if their premise is incorrect, as it lets people see things from a different perspective, and can still point out flaws in whatever was thought to be "correct" at the time. In the above case, the suggestion which you claimed would flat out not work clearly would work, as it has worked in X for around 20 years or so, even between hosts of different endianness. (I am not trying to resurrect that argument, merely pointing out that what, to you, seems completely implausible is not, and that you are not the be all and end all of developers, completely incapable of making a mistake, a bad design, or an incorrect judgement call.) > > Now i *dont* contribute code, and its mostly because i assumed that this > > list was for people to discuss changes to the project, and that there > > would be some sort of review process for getting code put into the main > > tree > > All of those things are accurate, but it seems like you have little > experience with free software development. The review process is Mark > (and occasionally me) looking at the code, and not every discussion > about the project happens on this list. Not least because of all the > people who chime in with ill-educated opinions. First, I don't see how my experience with other projects relates to my understanding of how this project is structured. Second, you have missed my point completely, which is not entirely your fault, as I did not express myself clearly above. What I meant by "some sort of review process" was actually: "some sort of open review process". In my opinion, it is necessary, especially for a new project still trying to attract developers, that they make their goals and guidelines clear and open, and not rely on a single developer to review and comment on all code submitted, plus one person who "occasionally" reviews code, and who's influence over the acceptance process is completely unknown. Regardless, I am not commenting on how the project is run, but how it should be run. Restating the current form of project management is simply a waste of our time, as I understand and have stated what is currently happening (as far as I can tell from this discussion, we do not disagree on what is currently happening, but the appropriateness of what is currently happening). > > You have probably lost many smart and talented contributers to > > the project because you a) ignored them completely, or b) called them > > idiots as soon as you see what *might* be a better way to do something, > > or just didnt feel like looking at their code. > > I rather doubt that. We've lost a fair amount of dead weight though. Certainly we have lost a lot of dead weight, that much is obvious from the lack of "Y crashes on startup" and "Y wont compile" posts. However, there were also a lot of people discussing and doing development who seem to have dissapeared from the discussion and development. > > In order for such a large project to succeed, there needs to be a large > > and receptive group of core developers who can lead intelligent > > discussions and make fair decisions about what to put into the code, or > > provide good explanations as to why something *doesnt* end up in. > > No. I don't know where you got that idea. Quite the opposite really - > for a large project to succeed, you need a (small) group of > gatekeepers whose primary task is to say "no". That's the hallmark of > every successful large free software project (Larry Wall gives a > rather good talk on the subject). Perhaps saying that there needs to be a "large" group was an overstatement. Certainly there needs to be more than one or two people controlling access to the repository. In another thread where somebody wondered how Linus managed the Linux kernel development, you said "they use bitkeeper, we use arch". That only matters if more than one person has write access to the repository. If only one person can write to it, it doesn't matter that it exists, as far as code submission goes, because there is still only one person who can use it. Generally, when a large project (see below) succeeds with only one or two core developers, as Linux did for so long, it is because that core was able to commit a lot of time to the project, was receptive to suggestions about where the project should go, design, etc, and was willing to promote discussion and admit they were wrong. Even in the case of the Linux kernel while Linus was the sole maintainer, there was a relatively large (for the size of the codebase, etc) group of developers who actively participated in discussions and the code review process, and whom Linus was wiling to concede to if they were able to convince him of his errors or misjudgements. This is not to say that the size of the core development team is the only problem here. The openness (or lack thereof) is another issue I believe needs to be addressed. As we saw with the XFree86 project, even though there was a reasonably sized (in my opinion) core group of developers, the fact that they were unwilling to listen to outside opinions or participate in discussions led to the forking of the project. > This isn't a large project anyway. Perhaps at this moment there are not many developers and there is a small code base, but this is an incredibly ambitious project, and at some point, if the project is to succeed and be developed at a reasonable pace, it will have a large number of developers and a large codebase. The project management structure needs to be in place before that happens, and it needs to be designed to permit and accommodate the growth of the project, not to stifle it. Thomas Stephens spiralman@softhome.net From jpd at dsb.tudelft.nl Fri Jul 23 07:07:26 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Fri Jul 23 07:07:34 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <20040722112714.GB3809@suffields.me.uk> References: <1090165279.10608.30.camel@diego.intern.de> <200407181542.29649.james@grickle.org> <20040718215327.GB38903@dsb.tudelft.nl> <200407201435.29710.james@grickle.org> <20040720202721.GA13486@suffields.me.uk> <20040721105906.GA44277@dsb.tudelft.nl> <20040721120053.GB4067@suffields.me.uk> <20040722054502.GA45617@dsb.tudelft.nl> <20040722112714.GB3809@suffields.me.uk> Message-ID: <20040723060726.GA47463@dsb.tudelft.nl> On Thu, Jul 22, 2004 at 12:27:14PM +0100, Andrew Suffield wrote: > Now you're back to the "You people must help me build something that > you don't want" idea. Not quite. Discussing is not quite the same as writing code. It is also not the same as asking people to write code for you. > That's not how it works. If *you* want > something, then *you* must do the work. Of course. It is still good to bounce ideas off like-minded and -interested people before writing lots of code that may not even work in theory. Which is why a discussion list is useful. Which, in turn, is why being rude on it is not helping anybody except with getting frustrated. > You cannot expect anybody else > to do it for you, especially when they can see out of hand why it's a > dumb idea. If they can see that out of hand they can also explain it out of hand. That'd be useful, and welcomed. Calling people names does not quite convey as much useful information. > > So you're saying that Y-devel is not a list for what you consider the > > clueful but more of what you think of as a courtesy to people you don't > > really deem worthy to talk with. Something like a pacifier for the > > wannabees to be ignored. > > You said that. And you pulled it out of thin air, it appears apropos > of nothing. If ``it all but was literally in your last post'' is your definition of ``out of thin air'', then yes. The odd hyperbole is inconsequential to the point I tried to drive home. > > Glad to clear that up then. I'd encourage you to put your money where > > your mouth is and indeed do just that. But as some others on the list > > have assured me, you should be a quite clueful and capable coder. I'm > > sure there's many a person eager to learn and improve with help from > > a master. Calling them insane or other names doesn't really help them > > getting clued in. > > You're not going to get it. Well, you're not going to tell anyone why you think or know something is not a good idea just because of spite to one person, that'd be just sad. It is just amazing how you can disappoint people that express interest by telling them they're pigshit. Even, or maybe especially, if they already know and are trying to actively do something about it. It'd be only courteous to point them in the right direction. At least it'd beat farting in their general direction and refusing to say what way the right direction would be. To you it may be obvious, apparently it is not to others. It'd be useful and social to spread that knowledge. A lot of answering can be covered by FAQs and such, but those things tend to get written along the way. As we're trying to go a rather untrodden path there isn't much yet written. So material is needed. Answers on mailinglists are great material for someone to pick up and condense into a FAQ or technical primer, but I don't count profanity as answer. > > > Mark's project report (which is *not* a thesis; > > > > Someone called it that and it stuck. > > Just because people act like sheep does not make them right. A sheep is a sheep by any other name. That some are easily deluded by details and get all warm and fuzzy when they're now called ``four-legged woolly mammals'' is something frequently exploited by marketing and politicians. A different name doesn't change the nature of the beast, though. I took whatever name was at hand for the thing and got the point across. Despite you not liking the name used. You seem to have missed ample opportunity to explain people the wrongness of their ways, until now. I'm open to suggestions for a new and improved name for what is, if not design document, at least great marketing material for the Y project. Any takers? -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From jpd at dsb.tudelft.nl Fri Jul 23 07:19:45 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Fri Jul 23 07:19:48 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: References: <1090165279.10608.30.camel@diego.intern.de> <200407181542.29649.james@grickle.org> <20040718215327.GB38903@dsb.tudelft.nl> <200407201435.29710.james@grickle.org> <20040720202721.GA13486@suffields.me.uk> <20040721105906.GA44277@dsb.tudelft.nl> <20040721120053.GB4067@suffields.me.uk> <20040722054502.GA45617@dsb.tudelft.nl> Message-ID: <20040723061945.GB47463@dsb.tudelft.nl> On Thu, Jul 22, 2004 at 06:06:59PM +0100, Mark Thomas wrote: > Merging also takes a significant amount of time, which you have probably > noticed I don't have a lot of. Nearly all of the time I have spent on Y > in the last couple of months has been reading and replying to the mailing > list, and looking at peoples' patches. Which I am grateful for. Even if it isn't all that visible. The last bit is in fact important, in that a lot of work goes on in the background or at least is not very visible, and it is easy to forget it happens and what'll (not) happen if it doesn't get done. What my main gripe is about is about some details that are higly visible and very clearly not productive or even glaringly contra-productive. Especially when all it takes is small effort for very big returns. [snip] > I've already said that I won't merge new widgets or widget features until > the theming engine is in a state I am happy with. All the patches I have > in my patch queue are for new widgets (Andy's patches which I am merging > tonight notwithstanding). Time to work on the theming engine then. Thanks for the heads up. -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From jpd at dsb.tudelft.nl Fri Jul 23 07:36:31 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Fri Jul 23 07:36:35 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: References: <1090165279.10608.30.camel@diego.intern.de> <20040722054502.GA45617@dsb.tudelft.nl> <20040722112714.GB3809@suffields.me.uk> <200407221551.19905.rawler@rsn.bth.se> <40FFD53C.8080906@cwinans.com> Message-ID: <20040723063631.GC47463@dsb.tudelft.nl> On Thu, Jul 22, 2004 at 06:31:20PM +0100, Mark Thomas wrote: > On Thu, 22 Jul 2004, Casey Winans wrote: > > This isn't getting anywhere. Andrew has social issues and "I'm > > smart/right and you're not" syndrome. > > So far, he _has_ been right every time. What, he's a certified psychiatrist that's legally entitled to declare people insane? Interesting, never'd thought he was. And even then, calling people names, no matter how correct, is not done in sociable circles. There are much better ways to go about. > > I could see this project go somewhere if a muzzle was put on Andrew (so > > proper discussion could resume) and he was given a particular task or > > piece of the project (rather than letting him toss code in where and > > when he so chooses). > > I don't think anyone has the power to "muzzle" Andrew, and I wouldn't want > to even if I could. Andrew is free to work on whatever part of Y he > chooses, as is everyone else. If that freedom is to be excercised to the point that it effectively forces others to killfile and put big ``beware of dog, update twitlist'' near the list subscription interface, I'd say something is wrong. I'm not about to muzzle anybody. I'd rather we all could get along. (insert cheesy song and dance here) No, I'm not serious about singing and dancing, but I am serious about excercising a bit of maturity and deciding it is wiser to not call someone whatever names are on your mind, but to explain the technicalities. If that is what it takes to enlighten people, then it's a small price to pay. Indicentally, every time you explain something to someone else you're forced to think about it again. Meaning you could actually learn something from explaining things you know already. Which is, in fact, one of the major reasons to hang around on mailing lists and usenet: you just might learn something new yourself, even if you think you know it all. If that's too much, then just declining to call names is a start. -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From jpd at dsb.tudelft.nl Fri Jul 23 08:19:43 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Fri Jul 23 08:19:50 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <20040722195858.GE13822@suffields.me.uk> References: <81B0D58436CED1118FB100805F6F602010A84BFF@dplmail3.internal.uop.com> <20040722195858.GE13822@suffields.me.uk> Message-ID: <20040723071943.GD47463@dsb.tudelft.nl> On Thu, Jul 22, 2004 at 08:58:58PM +0100, Andrew Suffield wrote: > On Thu, Jul 22, 2004 at 10:26:05AM -0500, Dunne, James(Summer Hire) wrote: > > Are we still going ahead with the idea of server-side widgets? > > That says it all really. It's just so typical of the reality > disconnect people keep demonstrating. Yes, Andrew. Welcome to the real world. I'm not disagreeing this is a silly question[1], merely pointing out that somehow not everybody gets the point or maybe thought he had reason to doubt. Whatever. It is not unique to here. I, as a sysadmin, get to deal dayly with more crap than I've seen you have kittens about on this list. Management ASS-U-MEing no end and I get to mop up. Users doing incredibly and obviously stupid things. While they *know* they're doing the wrong thing. Including developers that are paid *more than twice* what I make that seem to not be able to lace their own shoes at times. *two milimeters* out of their field of expertise[2] and they're like fish in an oven. This was possibly even worse when I did a volunteer gig[3] dealing with students of an internationally famed *technical* university, tomorrow's builders of the smart world. I'm not even mentioning the staff there. Aggravating it is when you can't say they're wrong, or they don't want to listen. Here there's a bunch of *eager* and *interested* people. People that don't mind being told they're wrong, as long as you tell them why, and what direction to go to improve. people *willing* to learn. Think about it, 400-something people on the list and one really bad question in a week. Nothing to worry about, easily dealt with. When done right the problem will even solve itself in time, by word of mouth. But it needs sowing. Don't be sowing wind. [1] This idea is, as I think we all know, one of the most fundamental to the project, so the question is a *very* silly one. [2] Writing software as opposed to keeping the darn stuff running. [3] The bandwidth was nice. 100Mbit switched to a GigE backbone straight to 10GigE netherlight to several gigabits over-the-pond. *sigh* -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From brandon at tryplec.com Fri Jul 23 12:25:01 2004 From: brandon at tryplec.com (Brandon Black) Date: Fri Jul 23 12:26:37 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <20040723063631.GC47463@dsb.tudelft.nl> References: <1090165279.10608.30.camel@diego.intern.de> <20040722054502.GA45617@dsb.tudelft.nl> <20040722112714.GB3809@suffields.me.uk> <200407221551.19905.rawler@rsn.bth.se> <40FFD53C.8080906@cwinans.com> <20040723063631.GC47463@dsb.tudelft.nl> Message-ID: <4100F58D.6090009@tryplec.com> JP Dinger wrote: [.... all that recent stuff ....] Not to detract from your points, which do have merit, I'd like to make a case for how I've felt about this little affair as it affected me on this list. At first I didn't realize what was going on in terms of how Y was being developed and by whom. It kinda seemed like Mark Thomas had dropped Y 0.2 on the list and left it at that, and the rest of us were expected to dream up what might happen next here on the list haphazardly and await his approval of patches. Eventually I caught on to the fact that Andrew was going in and make significant progress redo-ing a lot of core things, getting them all architected right as a foundation to build this project on as it gets bigger down the road. I had a lot of little ideas I wanted to contribute to Y, mostly not core things, just ideas I wanted to try and implement around Y. I was getting ready to start contributing code (I already had some rought-cut ideas in the works for GTK/GDK compatibility, which I believe will be important transitionally if Y is to make headway against the current crop of X stuff), but then I realized this wasn't the right time. I think for this project, right now really has been a good time for a guy like Andrew to step in and do improvements to the core stuff in the unilateral fashion that he's been doing it. So I've held off on whatever I wanted to work on for now, biding my time and watching the list. When the core stuff settles down a little more, I expect it will become the kind of time where I can start contributing my fringeware into Y and seeing what feedback I get from there. Certainly I think Mark and Andrew could have communicated their intentions a little better for the benefit of some of us out here that, while perhaps able to contribute, are not stellar development badasses that automatically know the right way (and time) to do everything - but in the overall I don't have a problem with how things have gone so far, I think this stage of rapid core development, replete with any neccesary breakage of interface to other code, is probably neccesary before a next stage of broader development by a larger group of people. (Oh yeah, and you think you have annoying users? I had a database administrator complain to me a few days back that her Sunray desktop was beeping at her randomly and must be broken - turns out she was just fat-fingering commands in vi left and right and that was the terminal bell trying to give her a clue :) ) --Brandon From asuffield at debian.org Fri Jul 23 14:29:39 2004 From: asuffield at debian.org (Andrew Suffield) Date: Fri Jul 23 14:29:45 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <20040723060726.GA47463@dsb.tudelft.nl> References: <1090165279.10608.30.camel@diego.intern.de> <200407181542.29649.james@grickle.org> <20040718215327.GB38903@dsb.tudelft.nl> <200407201435.29710.james@grickle.org> <20040720202721.GA13486@suffields.me.uk> <20040721105906.GA44277@dsb.tudelft.nl> <20040721120053.GB4067@suffields.me.uk> <20040722054502.GA45617@dsb.tudelft.nl> <20040722112714.GB3809@suffields.me.uk> <20040723060726.GA47463@dsb.tudelft.nl> Message-ID: <20040723132939.GA25945@suffields.me.uk> On Fri, Jul 23, 2004 at 08:07:26AM +0200, JP Dinger wrote: > > That's not how it works. If *you* want > > something, then *you* must do the work. > > Of course. It is still good to bounce ideas off like-minded and > -interested people before writing lots of code that may not even work in > theory. Which is why a discussion list is useful. Which, in turn, is why > being rude on it is not helping anybody except with getting frustrated. Impressive form of selective myopia you have there. > > > So you're saying that Y-devel is not a list for what you consider the > > > clueful but more of what you think of as a courtesy to people you don't > > > really deem worthy to talk with. Something like a pacifier for the > > > wannabees to be ignored. > > > > You said that. And you pulled it out of thin air, it appears apropos > > of nothing. > > If ``it all but was literally in your last post'' is your definition of > ``out of thin air'', then yes. The odd hyperbole is inconsequential to > the point I tried to drive home. More fiction. Are you actually reading anything I write? > It'd be useful and social to spread that knowledge. That's what it comes down to really. You think that my purpose in life should be to improve your lot. I have absolutely no interest in you, and it will not be useful to me to educate you. I am not a fucking hippie, or some sort of charity worker. > > > > Mark's project report (which is *not* a thesis; > > > > > > Someone called it that and it stuck. > > > > Just because people act like sheep does not make them right. > I took whatever name was at hand for the thing and got the point across. > Despite you not liking the name used. You seem to have missed ample > opportunity to explain people the wrongness of their ways, until now. No, I don't believe I've ever missed one. Unfortunately some people insist on putting daft things like that on websites where there's no easy way to correct them. > I'm open to suggestions for a new and improved name for what is, if not > design document, at least great marketing material for the Y project. > Any takers? The one used on both Mark's and DoC's websites, and by me just a few lines above. Notice how these are universally consistent in how they refer to it, and yet some people don't seem to be reading the words on the screen. And it's not marketing material and I shudder to think of it being used that way. This document was written for precisely one purpose: to get Mark a good grade. First and foremost it has to sound convincing and impressive. It does *not* have to be in touch with reality; the targets are university professors. Trying to read it as anything else, especially as a thesis (which is quite the opposite), is quite fatally wrong. -- .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | `. `' | `- -><- | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040723/e4bb84b8/attachment.bin From asuffield at debian.org Fri Jul 23 14:37:59 2004 From: asuffield at debian.org (Andrew Suffield) Date: Fri Jul 23 14:38:33 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <200407222050.02295.spiralman@softhome.net> References: <1090165279.10608.30.camel@diego.intern.de> <200407220823.37965.spiralman@softhome.net> <20040722195341.GC13822@suffields.me.uk> <200407222050.02295.spiralman@softhome.net> Message-ID: <20040723133759.GB25945@suffields.me.uk> On Thu, Jul 22, 2004 at 08:50:02PM -0500, Thomas wrote: > On Thursday 22 July 2004 02:53, Andrew Suffield wrote: > > > And then *you* used the fact that you knew the head developer to merge in > > > a complete reworking of the network protocol without a sentence of > > > discussion on the mailing list until *after* you had merged the code in. > > > > I very much doubt that it was significantly affected by the fact that > > I've known Mark for a while, and rather more by the fact that I > > provided an arch archive and something Mark was interested in. > With absolutely no review outside of the two of you. And absolutely no reason why there should be. > At the very least, it is nice > to announce that you are making those changes to the developer mailing list, > so that other developers won't spend time doing what you are doing, or > writing code that would be affected by your changes. I would also like to > note that this isn't just some rule I made up, but seems to be a common > suggestion/guideline/rule for most open source projects that have or are > looking to attract developers outside the core developer base. I've never seen a serious project that did that. You're misunderstanding how they operate. But that's beside the point anyway. There aren't any serious developers other than me and Mark (and possibly Phil in the near future). Deal with it. Our primary focus has been on cleaning up the mess and getting the tree into a fit shape for real development. There won't be many serious developers until this is complete, and probably not afterwards either. > > I don't see why you think the mailing list had anything to do with > > it. It is a discussion forum, nothing more. I can talk to people > > without using it quite easily. Not that there was much to discuss; we > > both knew more or less what needed to be done. > The mailing list has everything to do with it exactly because it is a place > for discussion. The problem is you are assuming that what you and Mark both > "knew more or less" was correct. Because we know what we're doing and most if not all of the people on the list do not. > > > At which point > > > you called anybody who thought there was a better or different way > > > "stupid" and "insane" and refused to listen to anybody else's opinion. > > > > Fiction. > Not true at all, here are some choice quotes. I have taken them from a thread > titled "Proposal for a minor change in the Y-protocol", specifically > discussing whether commands between the client and server should be passed as > strings or as integers, No, that is not what it was discussing. > one of the major changes you made to the code without > any formal announcement or design discussion on the list. And a very good example of why discussing it on the list would have been a waste of time. > "And this is insane. The protocol would change depending on hardware > architecture", "What are you smoking? Alignment is as hardware-dependent as > endianness.", " You have to be really stupid to write socket code with > alignment issues." Yet strangely you can't see how this is not what you said above (especially with the context deleted). That says it all really. > You might have had some good points, but the fact is, you were rude and > responded to criticism in a way that stifled discussion and discouraged > people from participating. Good, that person was supposed to be discouraged from participating. Their participation was not useful or welcome; they demonstrated a complete and profound lack of understanding of the subject. > After all, who would want to point out a flaw in > your argument when they know they are going to be called "stupid" and > "insane." When the "flaw" they were pointing out took roughly the form of "This is wrong because the moon is made from green cheese", then that would seem appropriate to me. It *was* both stupid and insane. > This does not just affect the people you are replying to directly, > but anybody who is reading the discussion and considering contributing. No, that's quite wrong. > First, it is not up to you to decide who is too stupid to contribute code, > especially when you have not seen their code. Don't be silly. It is always up to me to determine my actions. Appeals to authority are fallacious. > In the above case, the suggestion which you claimed would flat out not work > clearly would work, as it has worked in X for around 20 years or so, even > between hosts of different endianness. And that's the sort of total reality disconnect they demonstrated too. This simply isn't true. It's vaguely the same sort of colour as something that is true, but that doesn't buy you anything. The proposal was to align all integers on 4-byte boundaries, presumably from the start of the stream (which makes no sense in a stream protocol). It's an insane proposal. X11 most assuredly does not do this. > > The review process is Mark > > (and occasionally me) looking at the code, and not every discussion > > about the project happens on this list. Not least because of all the > > people who chime in with ill-educated opinions. > What I meant by "some sort of review process" was > actually: "some sort of open review process". In my opinion, it is > necessary, especially for a new project still trying to attract developers, > that they make their goals and guidelines clear and open, and not rely on a > single developer to review and comment on all code submitted, plus one person > who "occasionally" reviews code, and who's influence over the acceptance > process is completely unknown. Your opinion is wrong. Reality belies it. Pretty much no serious projects do this. > > > You have probably lost many smart and talented contributers to > > > the project because you a) ignored them completely, or b) called them > > > idiots as soon as you see what *might* be a better way to do something, > > > or just didnt feel like looking at their code. > > > > I rather doubt that. We've lost a fair amount of dead weight though. > Certainly we have lost a lot of dead weight, that much is obvious from the > lack of "Y crashes on startup" and "Y wont compile" posts. However, there > were also a lot of people discussing and doing development who seem to have > dissapeared from the discussion and development. No, nothing that reasonably qualifies as "development" has disappeared. > > > In order for such a large project to succeed, there needs to be a large > > > and receptive group of core developers who can lead intelligent > > > discussions and make fair decisions about what to put into the code, or > > > provide good explanations as to why something *doesnt* end up in. > > > > No. I don't know where you got that idea. Quite the opposite really - > > for a large project to succeed, you need a (small) group of > > gatekeepers whose primary task is to say "no". That's the hallmark of > > every successful large free software project (Larry Wall gives a > > rather good talk on the subject). > Perhaps saying that there needs to be a "large" group was an overstatement. > Certainly there needs to be more than one or two people controlling access to > the repository. In another thread where somebody wondered how Linus managed > the Linux kernel development, you said "they use bitkeeper, we use arch". > That only matters if more than one person has write access to the repository. > If only one person can write to it, it doesn't matter that it exists, as far > as code submission goes, because there is still only one person who can use > it. You have stunningly failed to understand bitkeeper, arch, and the development model used by Linux. We're doing it the right way, and we're also coincidentally fairly close to how Linux does it (and there is precisely one person controlling access to each significant branch for Linux). It is possible to scale up to more than one or two people (this is in the process of being built for arch, for the development of tla itself), but it is certainly not necessary. > Generally, when a large project (see below) succeeds with only one or two core > developers, as Linux did for so long, it is because that core was able to > commit a lot of time to the project, was receptive to suggestions about where > the project should go, design, etc, and was willing to promote discussion and > admit they were wrong. That's quite entertaining, given how several of us here recall the old debate over microkernels. Linux is where it is today precisely because Linus is not "receptive to suggestions", and has a firm idea of where the project should go and won't let people distract from that. > This is not to say that the size of the core development team is the only > problem here. The openness (or lack thereof) is another issue I believe > needs to be addressed. As we saw with the XFree86 project, even though there > was a reasonably sized (in my opinion) core group of developers, the fact > that they were unwilling to listen to outside opinions or participate in > discussions led to the forking of the project. That's an impressive misunderstanding of what happened to xfree86. It's wrong. > > This isn't a large project anyway. > Perhaps at this moment there are not many developers and there is a small code > base, but this is an incredibly ambitious project, and at some point, if the > project is to succeed and be developed at a reasonable pace, it will have a > large number of developers and a large codebase. No. -- .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | `. `' | `- -><- | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040723/e4fcd11d/attachment-0001.bin From jpd at dsb.tudelft.nl Fri Jul 23 14:42:10 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Fri Jul 23 14:42:22 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: References: <81B0D58436CED1118FB100805F6F602010A84C00@dplmail3.internal.uop.com> <200407221939.30127.rawler@rsn.bth.se> Message-ID: <20040723134209.GA48124@dsb.tudelft.nl> On Thu, Jul 22, 2004 at 07:28:53PM +0100, Mark Thomas wrote: > On Thu, 22 Jul 2004, Ulrik Mikaelsson wrote: > > > Maybe it would be possible to abstract server-side behaviors, such as > > "scrollable", or "clickable" and provide template-based reactions to those > > events, as well as a "custom" behavior which would pass on events to the > > client? > > Interesting idea. It would tie in quite well with the theme engine having > a concept of "clickable thing", "labelling thing", and so on. Together they help pave the way for further abstraction. Me like. > > XML is a great language for many purposes, but perhaps we should > > also consider a format like EBML, or some own proprietary protocol > > to keep bandwidth-usage down to a minimum. > > The "proprietary" protocol could be as simple as Y remote object method > calls in the right sequence. I'm thinking something like QNX' ``canned message'' built out of those remote object method calls. For those not familiar, QNX is a message passing microkernel OS, and canned messages are a pre-built message pending in the kernel, to be delivered on a fast path to the recipient on the sender's signal. Repeatedly if necessairy. This allows for very quick passing of messages for which the sender already knows what it is supposed to say. If it wasn't for the single destination it'd be a great way for spamming. For Y the mechanism makes for nice server-side macro sequences. Tell me if I'm stating the obvious. Could very well be this is the same as the GL display lists principle on a different layer, I'm not that familiar with GL. The principle seems useful, just what layer we're on is different. If we can make both cut short, so much the better. -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From asuffield at debian.org Fri Jul 23 14:44:51 2004 From: asuffield at debian.org (Andrew Suffield) Date: Fri Jul 23 14:45:15 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <20040723071943.GD47463@dsb.tudelft.nl> References: <81B0D58436CED1118FB100805F6F602010A84BFF@dplmail3.internal.uop.com> <20040722195858.GE13822@suffields.me.uk> <20040723071943.GD47463@dsb.tudelft.nl> Message-ID: <20040723134451.GC25945@suffields.me.uk> I am not impressed by the "I have a worse job than you" form of argument. Never have been. On Fri, Jul 23, 2004 at 09:19:43AM +0200, JP Dinger wrote: > It is not unique to here. I, as a sysadmin, get to deal dayly with more > crap than I've seen you have kittens about on this list. And that's just it. You deal with it repeatedly from the same people. I don't. I'd say my approach works rather better. > Think about it, 400-something people on the list and one really bad > question in a week. Nothing to worry about, easily dealt with. When done > right the problem will even solve itself in time, by word of mouth. But > it needs sowing. Not yet. When we're ready for more serious people, I'll put the word out in various groups and we'll get them. As it stands, I've been asked several times and told them "not yet". Two or three is quite enough for now. Groupies are never useful. -- .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | `. `' | `- -><- | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040723/0c2f0181/attachment.bin From durin at sbcglobal.net Fri Jul 23 15:26:07 2004 From: durin at sbcglobal.net (Augie Fackler) Date: Fri Jul 23 15:26:10 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <20040723132939.GA25945@suffields.me.uk> References: <1090165279.10608.30.camel@diego.intern.de> <200407181542.29649.james@grickle.org> <20040718215327.GB38903@dsb.tudelft.nl> <200407201435.29710.james@grickle.org> <20040720202721.GA13486@suffields.me.uk> <20040721105906.GA44277@dsb.tudelft.nl> <20040721120053.GB4067@suffields.me.uk> <20040722054502.GA45617@dsb.tudelft.nl> <20040722112714.GB3809@suffields.me.uk> <20040723060726.GA47463@dsb.tudelft.nl> <20040723132939.GA25945@suffields.me.uk> Message-ID: <3C4BEE26-DCB4-11D8-9B48-000D93676FC4@sbcglobal.net> On Jul 23, 2004, at 8:29 AM, Andrew Suffield wrote: >>>> So you're saying that Y-devel is not a list for what you consider >>>> the >>>> clueful but more of what you think of as a courtesy to people you >>>> don't >>>> really deem worthy to talk with. Something like a pacifier for the >>>> wannabees to be ignored. >>> >>> You said that. And you pulled it out of thin air, it appears apropos >>> of nothing. >> >> If ``it all but was literally in your last post'' is your definition >> of >> ``out of thin air'', then yes. The odd hyperbole is inconsequential to >> the point I tried to drive home. > > More fiction. Are you actually reading anything I write? I would say he is. Every time someone shows up that *you* don't feel has a clue, you show up and whack him upside the forehead with a 2x4 cluestick. It usually shuts them up permanently, because their idea "has no merit" or "is insane". Frequently, you don't give much explanation after that. A while ago, it was suggested that the protocol be padded out to 4-byte boundaries for the benefit of certain RISC platforms. The thread: http://www.y-windows.org/pipermail/y-devel/2004-April/thread.html#1317 Contains this gem: http://www.y-windows.org/pipermail/y-devel/2004-April/001335.html From the linked message: > Let's break the protocol on platforms without 4-byte memory alignment > to work around the possibility of code being written by morons in the > future"? That's not a very compelling argument. You have to be really > stupid to write socket code with alignment issues. Now, it doesn't break the protocol any more than it already is to have alignments present. It would make life easier on some CPUs and to my understanding have no real effect on others since they already have to find the boundaries. Yes, he's reading what you're saying. I've been seriously considering dropping off the list because of this, even though I'm now at a point where I have a little time to spend on this. I'll go crawl back into my ignoramus's cave and beat on autotools some more before the flames get too hot. AF --- main(){char ch[7];ch[1]=(ch[4]=((ch[3]=(ch[2]=103)^14)^12))^16; ch[5]=(ch[6]=(ch[0]=(ch[1]>>1)+7)&42)+10;printf(ch);} From rogelio at smsglobal.net Fri Jul 23 15:44:03 2004 From: rogelio at smsglobal.net (Rogelio M.Serrano Jr.) Date: Fri Jul 23 15:44:10 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <20040723133759.GB25945@suffields.me.uk> Message-ID: <5a5a0c78bed14e2633a0cef32ab8e210@master> > There aren't any serious developers other than me and Mark (and > possibly Phil in the near future). Deal with it. Our primary focus has > been on cleaning up the mess and getting the tree into a fit shape for > real development. There won't be many serious developers until this is > complete, and probably not afterwards either. Thats why im going back to reinventing X. In the spirit of doing hard work without asking anybody I now have something that is not Y. I just rewrote some parts i dont like like. SDL is gone. I used integers in the protocol. UCS4 for the characters. No autotools. From mtenhagen at quicknet.nl Fri Jul 23 18:30:44 2004 From: mtenhagen at quicknet.nl (Michiel ten Hagen) Date: Fri Jul 23 16:31:06 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <20040723133759.GB25945@suffields.me.uk> References: <1090165279.10608.30.camel@diego.intern.de> <200407222050.02295.spiralman@softhome.net> <20040723133759.GB25945@suffields.me.uk> Message-ID: <200407231730.44053.mtenhagen@quicknet.nl> On Friday 23 July 2004 13:37, Andrew Suffield wrote: > There aren't any serious developers other than me and Mark (and > possibly Phil in the near future). Deal with it. Our primary focus has > been on cleaning up the mess and getting the tree into a fit shape for > real development. There won't be many serious developers until this is > complete, and probably not afterwards either. Releasing a project under gpl and creating an open discussion forum creates the impression you're interrested in people contributing to Y. If you think its the best to keep the main group limited to an already defined group of persons it would be smart to make that clear from the start. > Because we know what we're doing and most if not all of the people on > the list do not. You are probarblyright, but if you would like other people to aid in the development of Y such arrogance isnt helpfull. What are you expecting/wanting from the general audience on the developers list?? Regards, Michiel From asuffield at debian.org Fri Jul 23 17:28:08 2004 From: asuffield at debian.org (Andrew Suffield) Date: Fri Jul 23 17:28:12 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <3C4BEE26-DCB4-11D8-9B48-000D93676FC4@sbcglobal.net> References: <20040718215327.GB38903@dsb.tudelft.nl> <200407201435.29710.james@grickle.org> <20040720202721.GA13486@suffields.me.uk> <20040721105906.GA44277@dsb.tudelft.nl> <20040721120053.GB4067@suffields.me.uk> <20040722054502.GA45617@dsb.tudelft.nl> <20040722112714.GB3809@suffields.me.uk> <20040723060726.GA47463@dsb.tudelft.nl> <20040723132939.GA25945@suffields.me.uk> <3C4BEE26-DCB4-11D8-9B48-000D93676FC4@sbcglobal.net> Message-ID: <20040723162808.GD31386@suffields.me.uk> On Fri, Jul 23, 2004 at 09:26:07AM -0500, Augie Fackler wrote: > A while ago, it was suggested that the protocol be padded out to 4-byte > boundaries for the benefit of certain RISC platforms. > The thread: > http://www.y-windows.org/pipermail/y-devel/2004-April/thread.html#1317 > Contains this gem: > http://www.y-windows.org/pipermail/y-devel/2004-April/001335.html > From the linked message: > >Let's break the protocol on platforms without 4-byte memory alignment > >to work around the possibility of code being written by morons in the > >future"? That's not a very compelling argument. You have to be really > >stupid to write socket code with alignment issues. > > Now, it doesn't break the protocol any more than it already is to have > alignments present. It would make life easier on some CPUs and to my > understanding have no real effect on others since they already have to > find the boundaries. It would not make life easier on anything. Either it would do nothing but waste bytes, by design, or it would break the protocol, depending on how it was specified. The only reasonable interpretation is the latter. -- .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | `. `' | `- -><- | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040723/4bfa62bc/attachment.bin From asuffield at debian.org Fri Jul 23 17:36:41 2004 From: asuffield at debian.org (Andrew Suffield) Date: Fri Jul 23 17:36:45 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <200407231730.44053.mtenhagen@quicknet.nl> References: <1090165279.10608.30.camel@diego.intern.de> <200407222050.02295.spiralman@softhome.net> <20040723133759.GB25945@suffields.me.uk> <200407231730.44053.mtenhagen@quicknet.nl> Message-ID: <20040723163641.GE31386@suffields.me.uk> On Fri, Jul 23, 2004 at 05:30:44PM +0000, Michiel ten Hagen wrote: > On Friday 23 July 2004 13:37, Andrew Suffield wrote: > > There aren't any serious developers other than me and Mark (and > > possibly Phil in the near future). Deal with it. Our primary focus has > > been on cleaning up the mess and getting the tree into a fit shape for > > real development. There won't be many serious developers until this is > > complete, and probably not afterwards either. > > Releasing a project under gpl and creating an open discussion forum creates > the impression you're interrested in people contributing to Y. If you think > its the best to keep the main group limited to an already defined group of > persons it would be smart to make that clear from the start. The slashdot moron flood was unanticipated. Normally you accumulate developers very slowly, from the elite on down, until the point when you actually have something halfway usable. It's way too early for more than that. > > Because we know what we're doing and most if not all of the people on > > the list do not. > > You are probarblyright, but if you would like other people to aid in the > development of Y such arrogance isnt helpfull. The difference between "arrogance" and "humility" is merely one of perspective. People who are going to be useful would know what we're doing and understand why we're doing it. They would also know how to either (a) do things that won't conflict, or (b) go away and do something else for six months. > What are you expecting/wanting from the general audience on the developers > list?? Right now? Nothing. -- .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | `. `' | `- -><- | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040723/aec5f21c/attachment.bin From rawler at rsn.bth.se Fri Jul 23 19:11:37 2004 From: rawler at rsn.bth.se (Ulrik Mikaelsson) Date: Fri Jul 23 19:11:48 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <20040723162808.GD31386@suffields.me.uk> References: <20040718215327.GB38903@dsb.tudelft.nl> <3C4BEE26-DCB4-11D8-9B48-000D93676FC4@sbcglobal.net> <20040723162808.GD31386@suffields.me.uk> Message-ID: <200407232011.42377.rawler@rsn.bth.se> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Friday 23 July 2004 18.28 skrev Andrew Suffield: > > Now, it doesn't break the protocol any more than it already is to have > > alignments present. It would make life easier on some CPUs and to my > > understanding have no real effect on others since they already have to > > find the boundaries. > It would not make life easier on anything. Either it would do nothing > but waste bytes, by design, or it would break the protocol, depending > on how it was specified. The only reasonable interpretation is the > latter. Isn't it possible that your interpretation are incorrect? Or do yoy doubt the effect non-aligned memory has on some architectures? If I understand it correctly, accessing integers on RISC-architectures is a LOT faster if the integer is aligned properly to an even 4-byte address. This is consistent from what I've learned during the few courses I've taken on non-x86 architectures. (in fact I think ALL memory-access on some RISC-architectures are faster if 4-byte aligned, even strings, but I'm not certain) I think we can belive that it is correct, or simply look up proof that it is NOT the case on any architectures. We can also assume that the message-retrieval from socket should be as one big chunk + one small chunk first to know the length. (This improves the performance of parsing the message, since fewer syscalls are required, compared to read():ing the data 1 field at a time. Please prove me wrong if you'd like, but make sure it's valid for most platforms.) Now the good thing is that the last time I cared to look at the protocol, right after Andrew:s rewrite, most of the integers used in the protocol were actually 4-byte aligned. The only case I can see, where breaking alignment is possible, is if there is a string parameter that is not exactly 4 bytes in length. So if we added an explicit rule, that each parameter should always start at 4 bytes aligned offset from message start, the entire problem would be solved, allowing better performance on RISC architectures. To implement this in the server and client is really simple, and if autotools had allowed me to compile Y at the moment, I would have attached a patch as well. Then of course there is the problem of wasting bytes on non-RISC architectures, but as someone said, I don't think network bandwidth is our greatest enemy. Besides, the protocol from the last time I looked at it wasn't exactly bandwidth-conservative. Quite the opposite, actually. If saving bandwidth without care for 4-byte alignment was the goal, 14 bytes could easily be cut of the message-header (43.75% of the message-header), as well as reduce the overhead of string parameters from 8 bytes to 5 bytes, and reduce the overhead on 32-bit integers from 8 bytes to 1 single byte. So please, don't say message size is a priority. I have not looked at the protocol since Andrew did the big swap from string-encoded parameters to binary, so if the protocol have changed again since then, my argumentation is slightly or completely wrong, in which case I apologize for having you read all this. Regards / Ulrik - -- BOFH Excuse #437: crop circles in the corn shell -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBAVTc069SELtZwIkRAgrhAJ0Q1kRq5yIlkTn8UVtXEyMiD2wQKQCffFwI oodqqZYFr9qDp+WKU9eBgcc= =6ILS -----END PGP SIGNATURE----- From brandon at tryplec.com Fri Jul 23 21:34:10 2004 From: brandon at tryplec.com (Brandon Black) Date: Fri Jul 23 21:34:25 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <200407232011.42377.rawler@rsn.bth.se> References: <20040718215327.GB38903@dsb.tudelft.nl> <3C4BEE26-DCB4-11D8-9B48-000D93676FC4@sbcglobal.net> <20040723162808.GD31386@suffields.me.uk> <200407232011.42377.rawler@rsn.bth.se> Message-ID: <41017642.7080102@tryplec.com> Ulrik Mikaelsson wrote: > Friday 23 July 2004 18.28 skrev Andrew Suffield: > > >>Now, it doesn't break the protocol any more than it already is to have > >>alignments present. It would make life easier on some CPUs and to my > >>understanding have no real effect on others since they already have to > >>find the boundaries. > > >It would not make life easier on anything. Either it would do nothing > >but waste bytes, by design, or it would break the protocol, depending > >on how it was specified. The only reasonable interpretation is the > >latter. > > Isn't it possible that your interpretation are incorrect? Or do yoy > doubt the > effect non-aligned memory has on some architectures? If I understand it > correctly, accessing integers on RISC-architectures is a LOT faster if > the > integer is aligned properly to an even 4-byte address. This is consistent > from what I've learned during the few courses I've taken on non-x86 > architectures. (in fact I think ALL memory-access on some > RISC-architectures > are faster if 4-byte aligned, even strings, but I'm not certain) > > I think we can belive that it is correct, or simply look up proof that > it is > NOT the case on any architectures. We can also assume that the > message-retrieval from socket should be as one big chunk + one small > chunk > first to know the length. (This improves the performance of parsing the > message, since fewer syscalls are required, compared to read():ing the > data 1 > field at a time. Please prove me wrong if you'd like, but make sure it's > valid for most platforms.) > > Now the good thing is that the last time I cared to look at the protocol, > right after Andrew:s rewrite, most of the integers used in the > protocol were > actually 4-byte aligned. The only case I can see, where breaking > alignment is > possible, is if there is a string parameter that is not exactly 4 > bytes in > length. So if we added an explicit rule, that each parameter should > always > start at 4 bytes aligned offset from message start, the entire problem > would > be solved, allowing better performance on RISC architectures. To > implement > this in the server and client is really simple, and if autotools had > allowed > me to compile Y at the moment, I would have attached a patch as well. > > Then of course there is the problem of wasting bytes on non-RISC > architectures, but as someone said, I don't think network bandwidth is > our > greatest enemy. Besides, the protocol from the last time I looked at it > wasn't exactly bandwidth-conservative. Quite the opposite, actually. If > saving bandwidth without care for 4-byte alignment was the goal, 14 bytes > could easily be cut of the message-header (43.75% of the > message-header), as > well as reduce the overhead of string parameters from 8 bytes to 5 > bytes, and > reduce the overhead on 32-bit integers from 8 bytes to 1 single byte. So > please, don't say message size is a priority. > > I have not looked at the protocol since Andrew did the big swap from > string-encoded parameters to binary, so if the protocol have changed > again > since then, my argumentation is slightly or completely wrong, in which > case I > apologize for having you read all this. > > Regards > / Ulrik > However, I think what he was trying to say (well, what I'm saying, I won't put words in his mouth), is that these considerations of alignment are in fact processor/machine/architecture-specific, and therefore don't belong in a platform-agnostic network protocol that is to be widely used for a long, long time (I'm thinking in terms of the X protocol and how widely it was implemented and how long it has lasted here). When one tallies older processors still in active use from various manufacturers, the current models all aruond, the known upcomnig future ones, and especially the unknown ones, there are myriad possibilities in terms of what alignment (if any) is ideal for any given processor. Therefore it shouldn't be a design consideration that we happen to know that a certain alignment helps out on certain current processors today. Brandon From asuffield at debian.org Fri Jul 23 21:47:10 2004 From: asuffield at debian.org (Andrew Suffield) Date: Fri Jul 23 21:47:14 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <200407232011.42377.rawler@rsn.bth.se> References: <20040718215327.GB38903@dsb.tudelft.nl> <3C4BEE26-DCB4-11D8-9B48-000D93676FC4@sbcglobal.net> <20040723162808.GD31386@suffields.me.uk> <200407232011.42377.rawler@rsn.bth.se> Message-ID: <20040723204710.GA2463@suffields.me.uk> On Fri, Jul 23, 2004 at 08:11:37PM +0200, Ulrik Mikaelsson wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Friday 23 July 2004 18.28 skrev Andrew Suffield: > > > Now, it doesn't break the protocol any more than it already is to have > > > alignments present. It would make life easier on some CPUs and to my > > > understanding have no real effect on others since they already have to > > > find the boundaries. > > It would not make life easier on anything. Either it would do nothing > > but waste bytes, by design, or it would break the protocol, depending > > on how it was specified. The only reasonable interpretation is the > > latter. > Isn't it possible that your interpretation are incorrect? Or do yoy doubt the > effect non-aligned memory has on some architectures? If I understand it > correctly, accessing integers on RISC-architectures is a LOT faster if the > integer is aligned properly to an even 4-byte address. See, that's the sort of stuff we had last time around. It's *irrelevant* (it's also wrong; there is nothing magic about the number 4). This is a *stream*. There is *no* alignment. This is not a datagram protocol. There are *no* performance problems related to alignment, nor is it easy to rewrite the code in a fashion that would introduce any, let alone make it work afterwards. > We can also assume that the > message-retrieval from socket should be as one big chunk + one small chunk > first to know the length. No, that's (a) a performance disaster, (b) not possible on unix, and (c) not how the code works. > The only case I can see, where breaking alignment is > possible, is if there is a string parameter that is not exactly 4 bytes in > length. ...or when you are on a system with 8-byte alignment. The whole thing is stupid and pointless, it's an exercise in targetting one specific piece of hardware at the expense of all others. > So if we added an explicit rule, that each parameter should always > start at 4 bytes aligned offset from message start, the entire problem would > be solved, allowing better performance on RISC architectures. Only it would really just slow them down a little some of the time, and otherwise have no effect. You don't have any clue how the code works, do you? > To implement > this in the server and client is really simple s/simple/hard/, you'd have to completely rewrite the socket code and break it in the process. > Then of course there is the problem of wasting bytes on non-RISC > architectures, but as someone said, I don't think network bandwidth is our > greatest enemy. Besides, the protocol from the last time I looked at it > wasn't exactly bandwidth-conservative. Right, it's designed to maximise encoding and decoding speed. This is a spectacularly good example of a useless contribution. It demonstrates a singular lack of understanding of what currently exists, or how to go about writing sane wire protocols and code to handle them. It's a form of cargo-cult programming. -- .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | `. `' | `- -><- | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040723/1d00fe63/attachment.bin From asuffield at debian.org Fri Jul 23 21:47:43 2004 From: asuffield at debian.org (Andrew Suffield) Date: Fri Jul 23 21:47:45 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <41017642.7080102@tryplec.com> References: <200407232011.42377.rawler@rsn.bth.se> <41017642.7080102@tryplec.com> Message-ID: <20040723204743.GB2463@suffields.me.uk> On Fri, Jul 23, 2004 at 03:34:10PM -0500, Brandon Black wrote: > Therefore it > shouldn't be a design consideration that we happen to know that a > certain alignment helps out on certain current processors today. Essentially accurate, but with a rider that it doesn't help them anyway. -- .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | `. `' | `- -><- | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040723/2f641d9e/attachment.bin From rawler at rsn.bth.se Fri Jul 23 22:44:20 2004 From: rawler at rsn.bth.se (Ulrik Mikaelsson) Date: Fri Jul 23 22:44:35 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <20040723204710.GA2463@suffields.me.uk> References: <20040718215327.GB38903@dsb.tudelft.nl> <200407232011.42377.rawler@rsn.bth.se> <20040723204710.GA2463@suffields.me.uk> Message-ID: <200407232344.27043.rawler@rsn.bth.se> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Friday 23 July 2004 22.47 skrev Andrew Suffield: > > We can also assume that the > > message-retrieval from socket should be as one big chunk + one small > > chunk first to know the length. > No, that's (a) a performance disaster, (b) not possible on unix, and > (c) not how the code works. (a) Are you saying exceuting unnecessary syscalls (such as read) is not performance impact (b) Why not possible on unix? (c) No, I see you've got a better solution, buffering data to read the entire message from socket in 1 big chunk (unless the message is fragmented on socket-level with big timeout, which could not have been avoided anyways). > > The only case I can see, where breaking alignment is > > possible, is if there is a string parameter that is not exactly 4 bytes > > in length. > ...or when you are on a system with 8-byte alignment. The whole thing > is stupid and pointless, it's an exercise in targetting one specific > piece of hardware at the expense of all others. That part is true. I don't know if there today is any 8-byte aligned architectures, but as Brandon pointed out, there might be, or might be in the future. > > So if we added an explicit rule, that each parameter should always > > start at 4 bytes aligned offset from message start, the entire problem > > would be solved, allowing better performance on RISC architectures. > Only it would really just slow them down a little some of the time, > and otherwise have no effect. You don't have any clue how the code > works, do you? Actually, on a pentium-class x86 or above, or on any other pipelined architecture, I don't think there would be any performance-hit at all, and if we did agree on the 4-byte alignment on some RISC, and it's performance impact of addressing int:s, there would be a few systems that would benefit from it. However, as pointed out above, 4-byte alignment isn't certain to be the only preferred alignment in the vast amount of architectures that Y has to support. > > To implement > > this in the server and client is really simple > s/simple/hard/, you'd have to completely rewrite the socket code and > break it in the process. Are you so afraid of touching your own code? Actually the only thing you'd have to touch is messageFromString and it's equivalent in the client-libs. However, due to Brandons comment about adjusting the protocol to one type of alignment, where there might be other preferred alignments today or in the future, I'd say it's a waste of time. You go ahead with your business. Regards / Ulrik - -- When you are about to die, a wombat is better than no company at all. -- Roger Zelazny, "Doorways in the Sand" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBAYa4069SELtZwIkRArnXAKCO8utCculh0veeABBOxJypvNAZowCfUIAa 5vCAQ9+MJwkYQ+DDInBSAIA= =TigZ -----END PGP SIGNATURE----- From asuffield at debian.org Fri Jul 23 23:00:05 2004 From: asuffield at debian.org (Andrew Suffield) Date: Fri Jul 23 23:00:14 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <200407232344.27043.rawler@rsn.bth.se> References: <20040718215327.GB38903@dsb.tudelft.nl> <200407232011.42377.rawler@rsn.bth.se> <20040723204710.GA2463@suffields.me.uk> <200407232344.27043.rawler@rsn.bth.se> Message-ID: <20040723220005.GA5102@suffields.me.uk> On Fri, Jul 23, 2004 at 11:44:20PM +0200, Ulrik Mikaelsson wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Friday 23 July 2004 22.47 skrev Andrew Suffield: > > > We can also assume that the > > > message-retrieval from socket should be as one big chunk + one small > > > chunk first to know the length. > > No, that's (a) a performance disaster, (b) not possible on unix, and > > (c) not how the code works. > (a) Are you saying exceuting unnecessary syscalls (such as read) is not > performance impact Invalid assumption. They're not unnecessary. > (b) Why not possible on unix? man 2 read > (c) No, I see you've got a better solution, buffering data to read the entire > message from socket in 1 big chunk (unless the message is fragmented on > socket-level with big timeout, which could not have been avoided anyways). Parse error. > > > The only case I can see, where breaking alignment is > > > possible, is if there is a string parameter that is not exactly 4 bytes > > > in length. > > ...or when you are on a system with 8-byte alignment. The whole thing > > is stupid and pointless, it's an exercise in targetting one specific > > piece of hardware at the expense of all others. > That part is true. I don't know if there today is any 8-byte aligned > architectures, but as Brandon pointed out, there might be, or might be in the > future. There are. > > > So if we added an explicit rule, that each parameter should always > > > start at 4 bytes aligned offset from message start, the entire problem > > > would be solved, allowing better performance on RISC architectures. > > Only it would really just slow them down a little some of the time, > > and otherwise have no effect. You don't have any clue how the code > > works, do you? > Actually, on a pentium-class x86 or above, or on any other pipelined > architecture, I don't think there would be any performance-hit at all, and if > we did agree on the 4-byte alignment on some RISC, and it's performance > impact of addressing int:s, there would be a few systems that would benefit > from it. No. One more time, more clearly: THERE ARE NO ALIGNMENT BUGS IN THE Y PROTOCOL PARSER. ADJUSTING THE ALIGNMENT WOULD NOT IMPROVE PERFORMANCE. > > > To implement > > > this in the server and client is really simple > > s/simple/hard/, you'd have to completely rewrite the socket code and > > break it in the process. > Are you so afraid of touching your own code? Actually the only thing you'd > have to touch is messageFromString and it's equivalent in the client-libs. This would not do what you described. It would merely transmit some useless bytes, and have no other effect. -- .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | `. `' | `- -><- | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040723/13eab8f2/attachment.bin From jpd at dsb.tudelft.nl Sat Jul 24 09:33:25 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Sat Jul 24 09:33:32 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <20040723134451.GC25945@suffields.me.uk> References: <81B0D58436CED1118FB100805F6F602010A84BFF@dplmail3.internal.uop.com> <20040722195858.GE13822@suffields.me.uk> <20040723071943.GD47463@dsb.tudelft.nl> <20040723134451.GC25945@suffields.me.uk> Message-ID: <20040724083325.GA52190@dsb.tudelft.nl> On Fri, Jul 23, 2004 at 02:44:51PM +0100, Andrew Suffield wrote: > I am not impressed by the "I have a worse job than you" form of > argument. Never have been. Wasn't meant to impress. I have no need to impress you. There is quite a different point in there. Can you deal with it? > And that's just it. You deal with it repeatedly from the same > people. Now, yes. Previously, hardly. I'd explain but you'd think I was trying to impress you. Suffice to say that foreign exchange students don't stay all that long and most of them only spoke some form of chinese. > I don't. I'd say my approach works rather better. If you'd change your approach the people wouldn't move away in disgust, so you'd actually get to deal with the same people more often. And that does have its advantages. Might even get rid of some of your prejudices. > > Think about it, 400-something people on the list and one really bad > > question in a week. Nothing to worry about, easily dealt with. When done > > right the problem will even solve itself in time, by word of mouth. But > > it needs sowing. Don't be sowing wind. > > Not yet. When we're ready for more serious people, Wasn't talking about that. Was talking about the amount of bad questions you seem so affraid of you want to scare them away. I am saying it's not that bad, and if you deal with it properly it'll get even much less. One good way of doing that is to keep a FAQl: answer a question, distill and publish. Next time the same question or something similar comes up you point to the FAQl, saving you from answering the same again. And the questioner got an actual answer for once. Much easier on the people with the knowledge, much easier on the people with the questions to browse and get answers without bothering people doing other stuff. -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From asuffield at debian.org Sat Jul 24 13:06:58 2004 From: asuffield at debian.org (Andrew Suffield) Date: Sat Jul 24 13:07:05 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <20040724083325.GA52190@dsb.tudelft.nl> References: <81B0D58436CED1118FB100805F6F602010A84BFF@dplmail3.internal.uop.com> <20040722195858.GE13822@suffields.me.uk> <20040723071943.GD47463@dsb.tudelft.nl> <20040723134451.GC25945@suffields.me.uk> <20040724083325.GA52190@dsb.tudelft.nl> Message-ID: <20040724120658.GB27922@suffields.me.uk> On Sat, Jul 24, 2004 at 10:33:25AM +0200, JP Dinger wrote: > > I don't. I'd say my approach works rather better. > > If you'd change your approach the people wouldn't move away in disgust, > so you'd actually get to deal with the same people more often. And that > does have its advantages. No, in no sense is encouraging idiocy an advantage. -- .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | `. `' | `- -><- | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040724/f88d3376/attachment-0001.bin From jpd at dsb.tudelft.nl Sun Jul 25 08:39:57 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Sun Jul 25 08:40:05 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <20040724120658.GB27922@suffields.me.uk> References: <81B0D58436CED1118FB100805F6F602010A84BFF@dplmail3.internal.uop.com> <20040722195858.GE13822@suffields.me.uk> <20040723071943.GD47463@dsb.tudelft.nl> <20040723134451.GC25945@suffields.me.uk> <20040724083325.GA52190@dsb.tudelft.nl> <20040724120658.GB27922@suffields.me.uk> Message-ID: <20040725073957.GA53986@dsb.tudelft.nl> On Sat, Jul 24, 2004 at 01:06:58PM +0100, Andrew Suffield wrote: > On Sat, Jul 24, 2004 at 10:33:25AM +0200, JP Dinger wrote: > > > I don't. I'd say my approach works rather better. > > > > If you'd change your approach the people wouldn't move away in disgust, > > so you'd actually get to deal with the same people more often. And that > > does have its advantages. Might even get rid of some of your prejudices. > > No, in no sense is encouraging idiocy an advantage. Such prejudice. Tut tut. But then again, that was abundantly clear before. An one-track mind can be a powerful tool, but like any useful tool it can be abused to do needless harm. I wish you'd stop doing that. > Hmm salient.. not sticking out, as in.. no handle on. Ah, I get it. You really don't know how to counter this. Ah well, not everybody can stand up to their own faillures. Can't blame you for that I guess. It really is hard on you if it isn't Turing complete, isn't it? But seriously, if I wasn't sure you didn't want to know, I'd explain that for someone smart enough learn how to program well in various computer languages, it is doable to learn how to get this right. It is indeed possible to make clear to people they're on the wrong track or that their idea won't fly without resorting to insult. With about the same effort as looking up a creative ailment in your dictionary. -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From kimmo.sundqvist at mbnet.fi Sun Jul 25 11:45:59 2004 From: kimmo.sundqvist at mbnet.fi (Kimmo Sundqvist) Date: Sun Jul 25 12:03:43 2004 Subject: [Y-devel] Fontsize vs. layouts and windowsizes Message-ID: <200407251345.59559.kimmo.sundqvist@mbnet.fi> Hello This is just a reminder, but I'm completely totally sure these things must be thought out at some point of Y development. In the distant past, I used for many years an old System 6 and System 7 Apple Macintosh. There, when windows and dialog boxes appeared, the widgets were always all visible and nicely arranged. Because those old systems had only three default fonts (Chicago, Geneva, Monaco) and only one, at only one size, was used for the widgets, this must have been easy, and the programmer and designer could do the arranging once and for all. Micro$oft Windows has also done fine with this. I don't know how they do it, because they have a variable dpi setting. But in old BeOS this was a disaster. All widget sizes used fixed arrangement, and their sizes were chosen for size 9 font. This was painful with a big screen and large resolution, so I changed the text size to 12, because BeOS had a control panel for that. This resulted in the text being too large for the widgets, and it simply got clipped where it didn't fit. Tried Gnome, and version 2.4.4 gtk does fine. I could even change widget fonts on-the-fly, and it made no mistakes resizing everyting. Only one label didn't get repainted in the "font preferences" window. I don't remember where I have seen this, but I know for sure that I have. Imagine a "You are about to do something dangerous, do you wanna proceed or cancel?" modal dialog, where the toolkit uses a default size for the window that is provided by the programmer. Now, the user has changed the font size, the text doesn't fit and the window has a horizontal scrollbar. I find this totally lame. Two possible solutions include, first, creating the window with enough size to have the whole label visible, not of course exceeding screen boundaries. Another is to have the label wrapped to multiple lines. Maybe a flag to indicate if wrapping is allowed. Then, do these windows have a minimum size? Should it be provided by the programmer or by the toolkit? Should the default size be provided by the programmer, or calculated on-the-fly by the toolkit? Default size is how the window first appears. Third, should the maximum size be the screen resolution, or provided by the programmer, or calculated by the toolkit to see that everything fits nicely? Or a combination of these? It was not long ago that I opened the KDE image viewing application, and the window appeared some 20 pixels wide, and the height was 10 pixels plus the titlebar. The image I had opened was 1280x1024, and was there after I resized the window. -Kimmo S. PS. Which versions of autotools do you use? From nsteinberg at gmail.com Wed Jul 21 00:49:18 2004 From: nsteinberg at gmail.com (Nicholas Steinberg) Date: Sun Jul 25 18:36:01 2004 Subject: [Y-devel] New widget: Dialog, Tooltip? WxWidgets support? In-Reply-To: <903db9040407011114c765598@mail.gmail.com> References: <903db9040407011114c765598@mail.gmail.com> Message-ID: <903db9040407201649168c90a8@mail.gmail.com> Hello, there. I am rather new to Y-Windows, but I'd like to do whatever I can to help (or to help others help, or to demand useless features [get ready for the Emacs of alternative GUIs]). Perhaps a widget that might be useful in some applications is a tooltip. Similar to any other dialog, but it may disappear after a certain amount of time, it appears where the cursor is (and moves with the cursor?), it doesn't take focus away from the main window, and it may have reduced controls (who needs to iconify a tooltip?). WxWidgets (formerly WxWindows), http://www.wxwidgets.org/ , seems to be gaining in popularity. WxWidgets is basically a cross-platform GUI toolkit that uses native elements whenever possible. I think that, once Y-windows develops some more, it might be useful to have native support of WxWidgets, because, if more and more applications are being written in WxWidgets (but /for/ X, Aqua, Win32, etc.), it would mean little or no porting to be used in Y. - Nicholas. -- MOUNT TAPE U1439 ON B3, NO RING From radek at podgorny.cz Sun Jul 25 23:53:14 2004 From: radek at podgorny.cz (Radek Podgorny) Date: Sun Jul 25 23:54:00 2004 Subject: [Y-devel] New widget: Dialog, Tooltip? WxWidgets support? In-Reply-To: <903db9040407201649168c90a8@mail.gmail.com> References: <903db9040407011114c765598@mail.gmail.com> <903db9040407201649168c90a8@mail.gmail.com> Message-ID: <200407260053.19563.radek@podgorny.cz> Yeah! wxWidgets is also my personal favourite! Count my vote on that one... :-) Radek Podgorny > Hello, there. I am rather new to Y-Windows, but I'd like to do > whatever I can to help (or to help others help, or to demand useless > features [get ready for the Emacs of alternative GUIs]). > > Perhaps a widget that might be useful in some applications is a > tooltip. Similar to any other dialog, but it may disappear after a > certain amount of time, it appears where the cursor is (and moves with > the cursor?), it doesn't take focus away from the main window, and it > may have reduced controls (who needs to iconify a tooltip?). > > WxWidgets (formerly WxWindows), http://www.wxwidgets.org/ , seems to > be gaining in popularity. WxWidgets is basically a cross-platform GUI > toolkit that uses native elements whenever possible. I think that, > once Y-windows develops some more, it might be useful to have native > support of WxWidgets, because, if more and more applications are being > written in WxWidgets (but /for/ X, Aqua, Win32, etc.), it would mean > little or no porting to be used in Y. > > - Nicholas. -- GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x98E56D84 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: signature Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040726/d3991ce0/attachment.bin From mark at y-windows.org Mon Jul 26 00:25:19 2004 From: mark at y-windows.org (Mark Thomas) Date: Mon Jul 26 00:25:21 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: <20040725073957.GA53986@dsb.tudelft.nl> References: <81B0D58436CED1118FB100805F6F602010A84BFF@dplmail3.internal.uop.com> <20040722195858.GE13822@suffields.me.uk> <20040723071943.GD47463@dsb.tudelft.nl> <20040723134451.GC25945@suffields.me.uk> <20040724083325.GA52190@dsb.tudelft.nl> <20040724120658.GB27922@suffields.me.uk> <20040725073957.GA53986@dsb.tudelft.nl> Message-ID: Mmmm.. marshmallows toasted on an open flamewar... I think this thread is due for death about now. You aren't going to convince Andrew: trust me, he knows what he's talking about. If you care that much about helping novice developers, then help them yourselves. I don't have the time and Andrew doesn't have the inclination. Don't blame us for that. No more replies to this thread, please. Don't make me learn how to get mailman to kill threads :) Kind Regards, Mark. -- || Mark Thomas || efaref.net || || Lottery: a tax on people who are bad at math. From richard at playford.net Mon Jul 26 00:25:41 2004 From: richard at playford.net (richard) Date: Mon Jul 26 00:27:55 2004 Subject: [Y-devel] New widget: Dialog, Tooltip? WxWidgets support? In-Reply-To: <903db9040407201649168c90a8@mail.gmail.com> References: <903db9040407011114c765598@mail.gmail.com> <903db9040407201649168c90a8@mail.gmail.com> Message-ID: <1090797941.16281.17.camel@localhost.localdomain> On Wed, 2004-07-21 at 00:49, Nicholas Steinberg wrote: > WxWidgets (formerly WxWindows), http://www.wxwidgets.org/ , seems to > be gaining in popularity. WxWidgets is basically a cross-platform GUI > toolkit that uses native elements whenever possible. I think that, > once Y-windows develops some more, it might be useful to have native > support of WxWidgets, because, if more and more applications are being > written in WxWidgets (but /for/ X, Aqua, Win32, etc.), it would mean > little or no porting to be used in Y. I started on a WxWidgets port for Y some time ago, it is still available under wxYWin at: https://sourceforge.net/projects/ywin-extralib/ I stopped working on it due to a lack of time, and there was only limited interest. However, if you are interested in writing patches for it I'll add them and make new releases. Hopefully the large number of WxApps might encourage people to develop Y so it is capable of running them. Richard Hills From james at grickle.org Mon Jul 26 03:56:05 2004 From: james at grickle.org (James Harr) Date: Mon Jul 26 03:56:13 2004 Subject: [Y-devel] New widget: Dialog, Tooltip? WxWidgets support? In-Reply-To: <903db9040407201649168c90a8@mail.gmail.com> References: <903db9040407011114c765598@mail.gmail.com> <903db9040407201649168c90a8@mail.gmail.com> Message-ID: <200407252156.06002.james@grickle.org> On Tuesday 20 July 2004 6:49 pm, Nicholas Steinberg wrote: > Perhaps a widget that might be useful in some applications is a > tooltip. Similar to any other dialog, but it may disappear after a > certain amount of time, it appears where the cursor is (and moves with > the cursor?), it doesn't take focus away from the main window, and it > may have reduced controls (who needs to iconify a tooltip?). This is a great feature that will probably be implemented after the server architecture more complete. As stated in a previous email, Mark said right now most of what's happening is internal changes replacing all of Mark's hastily written code for the deadline with some decent thought out code. This will take a while, but will be worth having better code. > WxWidgets (formerly WxWindows), http://www.wxwidgets.org/ , seems to > be gaining in popularity. WxWidgets is basically a cross-platform GUI > toolkit that uses native elements whenever possible. I think that, > once Y-windows develops some more, it might be useful to have native > support of WxWidgets, because, if more and more applications are being > written in WxWidgets (but /for/ X, Aqua, Win32, etc.), it would mean > little or no porting to be used in Y. WxWidgets is a great idea, but it's going to have to wait until Y has more widgets and is more usable by itself. If by native WxWindows support you mean writing another backend for wx (which isn't exactly native, but I think it's what you're getting at), great. And things like this will come in due time. I'm all for it, but again like I said, I think it's going to be some time before development can take off on the client side. A lot of the server core is still being written. -- James Harr http://www.grickle.org/ From o-ywindows at delver.org Mon Jul 26 09:05:56 2004 From: o-ywindows at delver.org (Dave Peck) Date: Mon Jul 26 09:06:05 2004 Subject: [Y-devel] struct ucred + macosx? Message-ID: <9F51A576-DEDA-11D8-84BB-000A9578BFD6@delver.org> I tried to build Y--devel--0.2 (patch 54) on my macosx box. After working through some minor issues, I ran into Y/main/unix.c's use of 'struct ucred'. IIRC, Linux's 'struct ucred' is different than that of the BSD variants. (They don't have a pid field, the field names are different, so forth.) Anyone dealt with this yet? Thanks, Dave From xfurious at gmail.com Mon Jul 26 11:50:59 2004 From: xfurious at gmail.com (William Lahti) Date: Mon Jul 26 11:51:04 2004 Subject: [Y-devel] New widget: Dialog, Tooltip? WxWidgets support? In-Reply-To: <200407252156.06002.james@grickle.org> References: <903db9040407011114c765598@mail.gmail.com> <903db9040407201649168c90a8@mail.gmail.com> <200407252156.06002.james@grickle.org> Message-ID: <925b3e0004072603505896f179@mail.gmail.com> tooltips should be properties, not widgets. you should set like "tooltipText" for your button and Y handles it automagically. On Sun, 25 Jul 2004 21:56:05 -0500, James Harr wrote: > On Tuesday 20 July 2004 6:49 pm, Nicholas Steinberg wrote: > > Perhaps a widget that might be useful in some applications is a > > tooltip. Similar to any other dialog, but it may disappear after a > > certain amount of time, it appears where the cursor is (and moves with > > the cursor?), it doesn't take focus away from the main window, and it > > may have reduced controls (who needs to iconify a tooltip?). > > This is a great feature that will probably be implemented after the server > architecture more complete. As stated in a previous email, Mark said right > now most of what's happening is internal changes replacing all of Mark's > hastily written code for the deadline with some decent thought out code. This > will take a while, but will be worth having better code. > > > WxWidgets (formerly WxWindows), http://www.wxwidgets.org/ , seems to > > be gaining in popularity. WxWidgets is basically a cross-platform GUI > > toolkit that uses native elements whenever possible. I think that, > > once Y-windows develops some more, it might be useful to have native > > support of WxWidgets, because, if more and more applications are being > > written in WxWidgets (but /for/ X, Aqua, Win32, etc.), it would mean > > little or no porting to be used in Y. > > WxWidgets is a great idea, but it's going to have to wait until Y has more > widgets and is more usable by itself. If by native WxWindows support you mean > writing another backend for wx (which isn't exactly native, but I think it's > what you're getting at), great. And things like this will come in due time. > I'm all for it, but again like I said, I think it's going to be some time > before development can take off on the client side. A lot of the server core > is still being written. > > -- > James Harr > http://www.grickle.org/ > > From asuffield at debian.org Mon Jul 26 14:17:54 2004 From: asuffield at debian.org (Andrew Suffield) Date: Mon Jul 26 14:18:11 2004 Subject: [Y-devel] struct ucred + macosx? In-Reply-To: <9F51A576-DEDA-11D8-84BB-000A9578BFD6@delver.org> References: <9F51A576-DEDA-11D8-84BB-000A9578BFD6@delver.org> Message-ID: <20040726131754.GB6130@suffields.me.uk> On Mon, Jul 26, 2004 at 01:05:56AM -0700, Dave Peck wrote: > I tried to build Y--devel--0.2 (patch 54) on my macosx box. After > working through some minor issues, I ran into Y/main/unix.c's use of > 'struct ucred'. > > IIRC, Linux's 'struct ucred' is different than that of the BSD > variants. (They don't have a pid field, the field names are different, > so forth.) Modern BSDs should match features. I'm not so sure about field names, and figure that somebody will come up with a patch if necessary. Porting to the old BSDs is probably not worth the trouble. You'd have to effectively duplicate the kernel socket code in userspace. It's easier to add unix domain magic to the old BSDs than to add this to Y. -- .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | `. `' | `- -><- | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040726/bd14759b/attachment-0001.bin From james at grickle.org Mon Jul 26 16:41:51 2004 From: james at grickle.org (James Harr) Date: Mon Jul 26 16:41:57 2004 Subject: [Y-devel] New widget: Dialog, Tooltip? WxWidgets support? In-Reply-To: <925b3e0004072603505896f179@mail.gmail.com> References: <903db9040407011114c765598@mail.gmail.com> <200407252156.06002.james@grickle.org> <925b3e0004072603505896f179@mail.gmail.com> Message-ID: <200407261041.51211.james@grickle.org> This is true, but again, we'll worry about this later :) On Monday 26 July 2004 5:50 am, William Lahti wrote: > tooltips should be properties, not widgets. you should set like > "tooltipText" for your button and Y handles it automagically. -- James Harr http://www.grickle.org/ From mark at y-windows.org Mon Jul 26 18:47:26 2004 From: mark at y-windows.org (Mark Thomas) Date: Mon Jul 26 18:47:37 2004 Subject: [Y-devel] New widget: Dialog, Tooltip? WxWidgets support? In-Reply-To: <925b3e0004072603505896f179@mail.gmail.com> References: <903db9040407011114c765598@mail.gmail.com> <903db9040407201649168c90a8@mail.gmail.com> <200407252156.06002.james@grickle.org> <925b3e0004072603505896f179@mail.gmail.com> Message-ID: On Mon, 26 Jul 2004, William Lahti wrote: > tooltips should be properties, not widgets. you should set like > "tooltipText" for your button and Y handles it automagically. Almost. You have the tooltip text property for basic tooltips, but you'll also want a way of associating any widget as the tooltop for any other widget (so you can have pretty tooltips with pictures, or graphs). So you have a list of things to try: if (widget->tooltipWidget != NULL) use widget->tooltipWidget else if (getProperty (widget, "TooltipText") != NULL) make tooltip from text else no tooltip Bear in mind we want tooltips to be tied into accessibility features, too. Regards, Mark. -- || Mark Thomas || efaref.net || || Pun: the lowest form of humor, unless you thought of it first. From xfurious at gmail.com Tue Jul 27 09:17:39 2004 From: xfurious at gmail.com (William Lahti) Date: Tue Jul 27 09:17:43 2004 Subject: [Y-devel] Fontsize vs. layouts and windowsizes In-Reply-To: <200407251345.59559.kimmo.sundqvist@mbnet.fi> References: <200407251345.59559.kimmo.sundqvist@mbnet.fi> Message-ID: <925b3e00040727011711443a9b@mail.gmail.com> doesnt need to be so complex. KISS things need to be simple. for instance when a label is in a layout it has a "minimum" size. This size is usually the size it takes to fit all the text in it. The layout manager automatically sets the minimum width of the window to accomodate everything. On Sun, 25 Jul 2004 13:45:59 +0300, Kimmo Sundqvist wrote: > Hello > > This is just a reminder, but I'm completely totally sure these things must be > thought out at some point of Y development. > > In the distant past, I used for many years an old System 6 and System 7 Apple > Macintosh. There, when windows and dialog boxes appeared, the widgets were > always all visible and nicely arranged. Because those old systems had only > three default fonts (Chicago, Geneva, Monaco) and only one, at only one size, > was used for the widgets, this must have been easy, and the programmer and > designer could do the arranging once and for all. > > Micro$oft Windows has also done fine with this. I don't know how they do it, > because they have a variable dpi setting. But in old BeOS this was a > disaster. All widget sizes used fixed arrangement, and their sizes were > chosen for size 9 font. This was painful with a big screen and large > resolution, so I changed the text size to 12, because BeOS had a control > panel for that. This resulted in the text being too large for the widgets, > and it simply got clipped where it didn't fit. > > Tried Gnome, and version 2.4.4 gtk does fine. I could even change widget > fonts on-the-fly, and it made no mistakes resizing everyting. Only one label > didn't get repainted in the "font preferences" window. > > I don't remember where I have seen this, but I know for sure that I have. > Imagine a "You are about to do something dangerous, do you wanna proceed or > cancel?" modal dialog, where the toolkit uses a default size for the window > that is provided by the programmer. Now, the user has changed the font size, > the text doesn't fit and the window has a horizontal scrollbar. I find this > totally lame. > > Two possible solutions include, first, creating the window with enough size to > have the whole label visible, not of course exceeding screen boundaries. > Another is to have the label wrapped to multiple lines. Maybe a flag to > indicate if wrapping is allowed. > > Then, do these windows have a minimum size? Should it be provided by the > programmer or by the toolkit? Should the default size be provided by the > programmer, or calculated on-the-fly by the toolkit? Default size is how the > window first appears. Third, should the maximum size be the screen > resolution, or provided by the programmer, or calculated by the toolkit to > see that everything fits nicely? Or a combination of these? > > It was not long ago that I opened the KDE image viewing application, and the > window appeared some 20 pixels wide, and the height was 10 pixels plus the > titlebar. The image I had opened was 1280x1024, and was there after I > resized the window. > > -Kimmo S. > > PS. Which versions of autotools do you use? > > From james at grickle.org Tue Jul 27 13:47:09 2004 From: james at grickle.org (James Harr) Date: Tue Jul 27 13:47:16 2004 Subject: [Y-devel] Fontsize vs. layouts and windowsizes In-Reply-To: <200407251345.59559.kimmo.sundqvist@mbnet.fi> References: <200407251345.59559.kimmo.sundqvist@mbnet.fi> Message-ID: <200407270747.09028.james@grickle.org> On Sunday 25 July 2004 5:45 am, Kimmo Sundqvist wrote: > Two possible solutions include, first, creating the window with enough size > to have the whole label visible, not of course exceeding screen boundaries. > Another is to have the label wrapped to multiple lines. ?Maybe a flag to > indicate if wrapping is allowed. Y has this feature built in in a sense. It's not one of the options you're talking about, but it should work. When Y's windows resize, a request goes down the widget tree to request the minimum size. Each widget adds up all the child widgets minimum sizes (or if this widget has some sort of border, it's the widgets responsibility for adding the propper amount for borders/whatnot. So if you increase the font in a label, the minimum size will go up for the label, the gridlayout widget it happens to be in will detect this and add it into the minimum size accordingly. IIRC Y also does this going down the tree when it gets the final size. The window tells the widget it has the size it's being given (which will of course be over the minimum size), and its that widgets responsibility to split it up and send sizes down to its cildren. At least that's how I understand it. As far as a wrapping flag, this should be implemented into any modern widget set anyway. -- James Harr http://www.grickle.org/ From jonathan.harper at softhome.net Wed Jul 28 04:05:18 2004 From: jonathan.harper at softhome.net (Jonathan Harper) Date: Wed Jul 28 05:03:40 2004 Subject: [Y-devel] Re: about your concept In-Reply-To: References: <81B0D58436CED1118FB100805F6F602010A84BFF@dplmail3.internal.uop.com> <20040725073957.GA53986@dsb.tudelft.nl> Message-ID: <200407272305.35358.jonathan.harper@softhome.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > No more replies to this thread, please. Don't make me learn how to get > mailman to kill threads :) And thus ends the latest edition of everyone's favorite soap opera: "alt.programming.andrewsuffield.penis.measuringcontest". Stay tuned to the Y-Devel mailing list for the next fascinating episode where Andrew takes advantage of another opportunity to show his knowledge while lighting fire to anything not him! Mark, I know you said not to reply to this, but I think there is one pertinent issue that can be pulled from this (relentless) flamewar: the website needs updating with a "Don't ask these stupid questions" FAQ. For one, we /do/ get a lot of newbie questions, and two, it might keep Andrew's mirth out of the picture some. Andrew is key to this project, and anything that will keep him coding instead of flaming is beneficial. ;) - - Jonathan Harper - -- - --------- Jonathan Harper jonathan(dot)harper(at)softhome(dot)net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iQCVAwUBQQcX/aot2VYJ2ffdAQL6iAP9HNPPC666Z/i5wYcMQNCl1Igua4UyV4Wk ZAYRSxYcKykQ1QM/gs3PY4NPYvJOYEoMncXP63McIUM0Btrh6s8zV0yf16S3P++0 xkHB3q5VQaMrTGwG9eCzDgzuKFGNdN+fqn/v47oeUvAN7aU1oz0uAblinDYQukSH ATpohdllaIU= =O8p/ -----END PGP SIGNATURE----- From jonathan.harper at softhome.net Wed Jul 28 04:09:08 2004 From: jonathan.harper at softhome.net (Jonathan Harper) Date: Wed Jul 28 05:07:22 2004 Subject: [Y-devel] Fontsize vs. layouts and windowsizes In-Reply-To: <200407270747.09028.james@grickle.org> References: <200407251345.59559.kimmo.sundqvist@mbnet.fi> <200407270747.09028.james@grickle.org> Message-ID: <200407272309.18817.jonathan.harper@softhome.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > When Y's windows resize, a request goes down the widget tree to request the > minimum size. Each widget adds up all the child widgets minimum sizes (or > if this widget has some sort of border, it's the widgets responsibility for > adding the propper amount for borders/whatnot. So if you increase the font > in a label, the minimum size will go up for the label, the gridlayout > widget it happens to be in will detect this and add it into the minimum > size accordingly. Yup. The tree-branch nature of Y means that the each branch takes care of the padding and such for the branch above it. When a widget button needs drawing, it doesn't have to know how big the window widget it resides in is because it does not draw itself. It simply passes the pertinent information down the line and the drawing occurs later. - - Jonathan Harper - -- - --------- Jonathan Harper jonathan(dot)harper(at)softhome(dot)net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iQCVAwUBQQcY16ot2VYJ2ffdAQICwwP+MiZPV8X7OqXOtElMcZ6XtezZfAMwpQLP DwZazbOSHdPO3vPemSjdEz9HMdMvg/SiA79Bp2jUuYhh7M3I/WoIE9bl+9iK6wKD CB0abIOWI8TcEOiw3LgqbmO84b9hSbafrj2bYJ54Ddsb+1sIozUKKY0eBGKfAUvJ OBRMsJWrfag= =QsFN -----END PGP SIGNATURE----- From matthew at matt-land.com Fri Jul 30 08:34:10 2004 From: matthew at matt-land.com (Matthew A. Nicholson) Date: Fri Jul 30 08:34:20 2004 Subject: [Y-devel] SCons Message-ID: <4109F9F2.5020205@matt-land.com> I was wondering if you all ever considered SCons (www.scons.org) as a build system. I am willing to conver y-windows over. From nsteinberg at gmail.com Fri Jul 30 09:03:48 2004 From: nsteinberg at gmail.com (Nicholas Steinberg) Date: Fri Jul 30 09:03:55 2004 Subject: [Y-devel] SCons In-Reply-To: <4109F9F2.5020205@matt-land.com> References: <4109F9F2.5020205@matt-land.com> Message-ID: <903db90404073001035ba0ecaf@mail.gmail.com> On Fri, 30 Jul 2004 02:34:10 -0500, Matthew A. Nicholson wrote: > I was wondering if you all ever considered SCons (www.scons.org) as a build > system. I am willing to conver y-windows over. > > If Y becomes popular, this could be a good oportunity to get a Make alternative's foot in the door. Another idea might be Apache's Ant ( http://ant.apache.org/ ). I guess this could be seen as a fight between Python (SCons) and Java (Ant). We should go with whatever is most practical (even Make, if necessary), but, in the fight between Python and Java, ignoring all other factors, a) it's possible more Linux users have Python installed than Java, and b) Python is OSS/FS, and Java isn't. -- MOUNT TAPE U1439 ON B3, NO RING From jpd at dsb.tudelft.nl Fri Jul 30 10:33:48 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Fri Jul 30 10:34:00 2004 Subject: [Y-devel] SCons In-Reply-To: <903db90404073001035ba0ecaf@mail.gmail.com> References: <4109F9F2.5020205@matt-land.com> <903db90404073001035ba0ecaf@mail.gmail.com> Message-ID: <20040730093348.GB65819@dsb.tudelft.nl> On Fri, Jul 30, 2004 at 02:03:48AM -0600, Nicholas Steinberg wrote: > On Fri, 30 Jul 2004 02:34:10 -0500, Matthew A. Nicholson > wrote: > > I was wondering if you all ever considered SCons (www.scons.org) as > > a build system. I am willing to conver y-windows over. > > If Y becomes popular, this could be a good oportunity to get a Make > alternative's foot in the door. Another idea might be Apache's Ant ( > http://ant.apache.org/ ). It could be. But consider that it also could be very negative on Y. The point is that make is almost ubiquitous and scons and ant are not. And even if the ``local make'' doesn't support all features the build system uses (those needs can generally be reduced so that various makes, such as sysv's make, pmake and gmake, can all use the same makefiles), gmake is by now portable enough to be installable if a local make doesn't do. You want Y to be easily made everywhere, not confined to whatever environment the developers like to install. So you want to _reduce_ dependencies to the minimum possible without impeding development. If gmake fills the need, there is no reason to put something else in, even if that is theoretically better. > I guess this could be seen as a fight > between Python (SCons) and Java (Ant). We should go with whatever is > most practical (even Make, if necessary), but, in the fight between > Python and Java, ignoring all other factors, a) it's possible more > Linux users have Python installed than Java, and b) Python is OSS/FS, > and Java isn't. And Y is built with neither java nor python. Shall we stick to make? This is not to put anyone off toying with whatever toys they like to play with. This is merely to keep this toy from depending on other toys that may or may not be installed everywhere. There is practically no gcc installation without a gmake, whereas gcc bears no relation to java or python. Even if you happen to run $distro_that_installs_python_by_default. Same goes for java. -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From asuffield at debian.org Fri Jul 30 12:29:45 2004 From: asuffield at debian.org (Andrew Suffield) Date: Fri Jul 30 12:29:49 2004 Subject: [Y-devel] SCons In-Reply-To: <4109F9F2.5020205@matt-land.com> References: <4109F9F2.5020205@matt-land.com> Message-ID: <20040730112945.GA6139@suffields.me.uk> On Fri, Jul 30, 2004 at 02:34:10AM -0500, Matthew A. Nicholson wrote: > I was wondering if you all ever considered SCons (www.scons.org) as a build > system. I am willing to conver y-windows over. Nasty python goo, immature and unimpressive. It doesn't do anything that automake doesn't, but it does do it slower, with more dependencies, and with less features. Besides which we already have a perfectly functional build system. -- .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | `. `' | `- -><- | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040730/cbe56434/attachment-0001.bin From matt at matt-land.com Fri Jul 30 20:36:46 2004 From: matt at matt-land.com (Matthew A. Nicholson) Date: Fri Jul 30 20:36:51 2004 Subject: [Y-devel] SCons In-Reply-To: <20040730112945.GA6139@suffields.me.uk> References: <4109F9F2.5020205@matt-land.com> <20040730112945.GA6139@suffields.me.uk> Message-ID: <410AA34E.5000507@matt-land.com> Andrew Suffield wrote: > On Fri, Jul 30, 2004 at 02:34:10AM -0500, Matthew A. Nicholson wrote: > >>I was wondering if you all ever considered SCons (www.scons.org) as a build >>system. I am willing to conver y-windows over. > > > Nasty python goo, immature and unimpressive. It doesn't do anything > that automake doesn't, but it does do it slower, with more > dependencies, and with less features. > > Besides which we already have a perfectly functional build system. > You old hat's should have a more open mind, I don't mean to come here and make a big issue of this (even thought it looks like I have), but don't knock it until you try it. Scons does plenty make and automake and autoconf can't do, precicly why Id used it for the linux bulid of Doom 3. And many will admin autotools is not a perfectly functional build system. In addition, I could write SConscrips for y-windows and build with scons, and you could still keep your autotools stuff and build with that. The two can co-exist. -- Matthew A. Nicholson Matt-land.com From matt at matt-land.com Fri Jul 30 20:37:57 2004 From: matt at matt-land.com (Matthew A. Nicholson) Date: Fri Jul 30 20:38:05 2004 Subject: [Y-devel] SCons In-Reply-To: <20040730093348.GB65819@dsb.tudelft.nl> References: <4109F9F2.5020205@matt-land.com> <903db90404073001035ba0ecaf@mail.gmail.com> <20040730093348.GB65819@dsb.tudelft.nl> Message-ID: <410AA395.5030607@matt-land.com> JP Dinger wrote: > On Fri, Jul 30, 2004 at 02:03:48AM -0600, Nicholas Steinberg wrote: > >>On Fri, 30 Jul 2004 02:34:10 -0500, Matthew A. Nicholson >> wrote: >> >>>I was wondering if you all ever considered SCons (www.scons.org) as >>>a build system. I am willing to conver y-windows over. >> >>If Y becomes popular, this could be a good oportunity to get a Make >>alternative's foot in the door. Another idea might be Apache's Ant ( >>http://ant.apache.org/ ). > > > It could be. But consider that it also could be very negative on Y. The > point is that make is almost ubiquitous and scons and ant are not. And > even if the ``local make'' doesn't support all features the build system > uses (those needs can generally be reduced so that various makes, such as > sysv's make, pmake and gmake, can all use the same makefiles), gmake is > by now portable enough to be installable if a local make doesn't do. > > You want Y to be easily made everywhere, not confined to whatever > environment the developers like to install. So you want to _reduce_ > dependencies to the minimum possible without impeding development. If > gmake fills the need, there is no reason to put something else in, even > if that is theoretically better. > > > >>I guess this could be seen as a fight >>between Python (SCons) and Java (Ant). We should go with whatever is >>most practical (even Make, if necessary), but, in the fight between >>Python and Java, ignoring all other factors, a) it's possible more >>Linux users have Python installed than Java, and b) Python is OSS/FS, >>and Java isn't. > > > And Y is built with neither java nor python. Shall we stick to make? > > This is not to put anyone off toying with whatever toys they like > to play with. This is merely to keep this toy from depending on > other toys that may or may not be installed everywhere. There > is practically no gcc installation without a gmake, whereas gcc > bears no relation to java or python. Even if you happen to run > $distro_that_installs_python_by_default. Same goes for java. > > Every major distro has python by default. Python is the only extra dependancy scons would require. -- Matthew A. Nicholson Matt-land.com From dale at andersondesigns.co.nz Fri Jul 30 21:05:28 2004 From: dale at andersondesigns.co.nz (Dale Anderson) Date: Fri Jul 30 21:06:14 2004 Subject: [Y-devel] SCons In-Reply-To: <410AA395.5030607@matt-land.com> References: <4109F9F2.5020205@matt-land.com> <903db90404073001035ba0ecaf@mail.gmail.com> <20040730093348.GB65819@dsb.tudelft.nl> <410AA395.5030607@matt-land.com> Message-ID: <410AAA08.9060300@andersondesigns.co.nz> > > Every major distro has python by default. huh ? not unless your stuck in the MS users mold of install_everything_by_default_install Dale. From asuffield at debian.org Fri Jul 30 22:29:44 2004 From: asuffield at debian.org (Andrew Suffield) Date: Fri Jul 30 22:29:47 2004 Subject: [Y-devel] SCons In-Reply-To: <410AA395.5030607@matt-land.com> References: <4109F9F2.5020205@matt-land.com> <903db90404073001035ba0ecaf@mail.gmail.com> <20040730093348.GB65819@dsb.tudelft.nl> <410AA395.5030607@matt-land.com> Message-ID: <20040730212944.GA2722@suffields.me.uk> On Fri, Jul 30, 2004 at 02:37:57PM -0500, Matthew A. Nicholson wrote: > Every major distro has python by default. Python is the only extra > dependancy scons would require. Speaking as a developer of one of the major distros, I can tell you that they do not. -- .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | `. `' | `- -><- | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040730/16869974/attachment.bin From asuffield at debian.org Fri Jul 30 22:35:46 2004 From: asuffield at debian.org (Andrew Suffield) Date: Fri Jul 30 22:35:50 2004 Subject: [Y-devel] SCons In-Reply-To: <410AA34E.5000507@matt-land.com> References: <4109F9F2.5020205@matt-land.com> <20040730112945.GA6139@suffields.me.uk> <410AA34E.5000507@matt-land.com> Message-ID: <20040730213546.GB2722@suffields.me.uk> On Fri, Jul 30, 2004 at 02:36:46PM -0500, Matthew A. Nicholson wrote: > Scons does plenty make and automake and > autoconf can't do, precicly why Id used it for the linux bulid of Doom 3. Handwaving. And trivially false. Which is why almost everybody else uses make. > And many will admin autotools is not a perfectly functional build system. Most of whom are idiots, and the rest are people who have never read the manual. I deal with such people on a daily basis; I have not yet found one who had read the manual before trying to use these complex tools. Every failure of autoconf and automake users is invariably the result of cargo-cult programming. > In addition, I could write SConscrips for y-windows and build with scons, > and you could still keep your autotools stuff and build with that. The two > can co-exist. This is tautologically true for any possible changeset. You could rewrite Y in a mixture of BBC BASIC and Prolog, and it would be able to exist in the same world - but it would be stunningly pointless. -- .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | `. `' | `- -><- | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040730/bab62baa/attachment.bin From brandon at tryplec.com Sat Jul 31 00:45:01 2004 From: brandon at tryplec.com (Brandon Black) Date: Sat Jul 31 00:46:48 2004 Subject: [Y-devel] SCons In-Reply-To: <20040730212944.GA2722@suffields.me.uk> References: <4109F9F2.5020205@matt-land.com> <903db90404073001035ba0ecaf@mail.gmail.com> <20040730093348.GB65819@dsb.tudelft.nl> <410AA395.5030607@matt-land.com> <20040730212944.GA2722@suffields.me.uk> Message-ID: <410ADD7D.7030107@tryplec.com> Andrew Suffield wrote: >On Fri, Jul 30, 2004 at 02:37:57PM -0500, Matthew A. Nicholson wrote: > > >>Every major distro has python by default. Python is the only extra >>dependancy scons would require. >> >> > >Speaking as a developer of one of the major distros, I can tell you >that they do not. > > > My distro (Gentoo) relies heavily on Python, and I can't stand it. Why oh why did they choose Python of all languages? :) Brandon From mark at y-windows.org Sat Jul 31 01:29:48 2004 From: mark at y-windows.org (Mark Thomas) Date: Sat Jul 31 01:29:50 2004 Subject: [Y-devel] SCons In-Reply-To: <410AA34E.5000507@matt-land.com> References: <4109F9F2.5020205@matt-land.com> <20040730112945.GA6139@suffields.me.uk> <410AA34E.5000507@matt-land.com> Message-ID: On Fri, 30 Jul 2004, Matthew A. Nicholson wrote: > > Nasty python goo, immature and unimpressive. It doesn't do anything > > that automake doesn't, but it does do it slower, with more > > dependencies, and with less features. > > > > Besides which we already have a perfectly functional build system. > > > > You old hat's should have a more open mind, I don't mean to come here and make a > big issue of this (even thought it looks like I have), but don't knock it until > you try it. Don't think we're dismissing this off hand. We do have open minds, but an open mind doesn't mean you accept everything that comes your way ;) One of the fantastic abilities that experience gives you is the ability to objectively evaluate a tool's worth without actually trying to use it for something important. > Scons does plenty make and automake and autoconf can't do, precicly > why Id used it for the linux bulid of Doom 3. And many will admin autotools is > not a perfectly functional build system. Generally when people say "X can't do Y" they really mean "I don't know how to make X do Y", and usually that's because they haven't read the documentation. Reminds me of a song... "My boomerang won't come back." / "Well first you gotta throw it..." > In addition, I could write SConscrips for y-windows and build with scons, and > you could still keep your autotools stuff and build with that. The two can > co-exist. What would this achieve? Regards, Mark. -- || Mark Thomas || efaref.net || || Meddle not in the affairs of wizards, for <>...ribbit. From matt at matt-land.com Sat Jul 31 01:36:52 2004 From: matt at matt-land.com (Matthew A. Nicholson) Date: Sat Jul 31 01:36:58 2004 Subject: [Y-devel] SCons In-Reply-To: <410ADD7D.7030107@tryplec.com> References: <4109F9F2.5020205@matt-land.com> <903db90404073001035ba0ecaf@mail.gmail.com> <20040730093348.GB65819@dsb.tudelft.nl> <410AA395.5030607@matt-land.com> <20040730212944.GA2722@suffields.me.uk> <410ADD7D.7030107@tryplec.com> Message-ID: <410AE9A4.5050907@matt-land.com> Brandon Black wrote: > Andrew Suffield wrote: > >> On Fri, Jul 30, 2004 at 02:37:57PM -0500, Matthew A. Nicholson wrote: >> >> >>> Every major distro has python by default. Python is the only extra >>> dependancy scons would require. >>> >> >> >> Speaking as a developer of one of the major distros, I can tell you >> that they do not. >> >> >> > My distro (Gentoo) relies heavily on Python, and I can't stand it. Why > oh why did they choose Python of all languages? :) > > Brandon > Well I'll put the scons thing to rest for now, but the reason they used python is because it's powerful and simple and easy to use. -- Matthew A. Nicholson Matt-land.com From matt at matt-land.com Sat Jul 31 01:38:32 2004 From: matt at matt-land.com (Matthew A. Nicholson) Date: Sat Jul 31 01:38:38 2004 Subject: [Y-devel] SCons In-Reply-To: <20040730213546.GB2722@suffields.me.uk> References: <4109F9F2.5020205@matt-land.com> <20040730112945.GA6139@suffields.me.uk> <410AA34E.5000507@matt-land.com> <20040730213546.GB2722@suffields.me.uk> Message-ID: <410AEA08.1090503@matt-land.com> Andrew Suffield wrote: > On Fri, Jul 30, 2004 at 02:36:46PM -0500, Matthew A. Nicholson wrote: > >>Scons does plenty make and automake and >>autoconf can't do, precicly why Id used it for the linux bulid of Doom 3. > > > Handwaving. And trivially false. Which is why almost everybody else > uses make. Almost everybody else uses Windows... -- Matthew A. Nicholson Matt-land.com From becker at lug-amberg.de Sat Jul 31 05:27:17 2004 From: becker at lug-amberg.de (Florian Becker) Date: Sat Jul 31 05:24:55 2004 Subject: [Y-devel] SCons In-Reply-To: <4109F9F2.5020205@matt-land.com> References: <4109F9F2.5020205@matt-land.com> Message-ID: <200407310627.26515.becker@lug-amberg.de> Am Freitag 30 Juli 2004 09:34 schrieb Matthew A. Nicholson: > I was wondering if you all ever considered SCons (www.scons.org) as a build > system. I am willing to conver y-windows over. Sorry, but now i must say something to alternate build systems and Y itself. Y+ will become Dust Buffy as build system in the next month. That is not published for whole world. But thats not the point. The point is, we not only want something new. We want something special, that can handle multible things we need. Like doxygen, dependencies, build dependencies, include dependencies and so on. (Dust Buffy will become Open Source and OSL Licensed) Also i must say, hey Y Windows world, please do what you want to do, that is a good thing. But "maybe" not the wolrd want to have thing. The thesis from Mark goes the right way. The development way goes another. So far. -- -------------------------------------------------------- Florian Becker PlaaSoft Technologies becker@plaasoft.de Falkenstr. 4 D - 92245 K?mmersbruck Tel: 09621 782970 Mobil: 0170 7280640 Y+ Window System Y Desktop Environment http://www.yplus.org becker@yplus.org irc.freenode.de #yplus #yplus.de Linux User Group Amberg becker@lug-amberg.de http://www.lug-amberg.de -------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040731/a0c3cf55/attachment-0001.bin From brandon at tryplec.com Sat Jul 31 08:08:56 2004 From: brandon at tryplec.com (Brandon Black) Date: Sat Jul 31 08:10:38 2004 Subject: [Y-devel] SCons In-Reply-To: <410AE9A4.5050907@matt-land.com> References: <4109F9F2.5020205@matt-land.com> <903db90404073001035ba0ecaf@mail.gmail.com> <20040730093348.GB65819@dsb.tudelft.nl> <410AA395.5030607@matt-land.com> <20040730212944.GA2722@suffields.me.uk> <410ADD7D.7030107@tryplec.com> <410AE9A4.5050907@matt-land.com> Message-ID: <410B4588.4070100@tryplec.com> Matthew A. Nicholson wrote: > Brandon Black wrote: > >> Andrew Suffield wrote: >> >>> On Fri, Jul 30, 2004 at 02:37:57PM -0500, Matthew A. Nicholson wrote: >>> >>> >>>> Every major distro has python by default. Python is the only extra >>>> dependancy scons would require. >>>> >>> >>> >>> >>> Speaking as a developer of one of the major distros, I can tell you >>> that they do not. >>> >>> >>> >> My distro (Gentoo) relies heavily on Python, and I can't stand it. >> Why oh why did they choose Python of all languages? :) >> >> Brandon >> > > Well I'll put the scons thing to rest for now, but the reason they > used python is because it's powerful and simple and easy to use. > That could be said of many languages. After all, why write a language if it isn't powerful and easy to use. What gets me about python is the whitespace thing. I just can't stand it. In my mind, any language syntax (or configfile syntax, or any structured text like that) should be pretty much agnostic to what whitespaces and indenting look like, and even newlines where it's reasonable to do so. I much prefer parentheses and braces for building nested things. Brandon From mlatiolais at sbcglobal.net Sat Jul 31 18:04:42 2004 From: mlatiolais at sbcglobal.net (Michael Latiolais) Date: Sat Jul 31 18:01:30 2004 Subject: [Y-devel] SCons In-Reply-To: <410B4588.4070100@tryplec.com> References: <4109F9F2.5020205@matt-land.com> <903db90404073001035ba0ecaf@mail.gmail.com> <20040730093348.GB65819@dsb.tudelft.nl> <410AA395.5030607@matt-land.com> <20040730212944.GA2722@suffields.me.uk> <410ADD7D.7030107@tryplec.com> <410AE9A4.5050907@matt-land.com> <410B4588.4070100@tryplec.com> Message-ID: <410BD12A.2020900@sbcglobal.net> Brandon Black wrote: > That could be said of many languages. After all, why write a language > if it isn't powerful and easy to use. *Cough* COBOL *Cough*