From alexthegrand at yahoo.com Wed Feb 4 14:47:20 2004 From: alexthegrand at yahoo.com (Alex) Date: Wed Feb 4 14:47:55 2004 Subject: [Y-devel] Still figuring out the code Message-ID: <20040204144720.8863.qmail@web40408.mail.yahoo.com> As I'm still waiting for a mainboard I ordered so that I can have a decently powered *nix box, I'm obviously not currently developing on this yet. However, I have been pouring over the source code figuring out where everything is. Exactly where are the various object properties set up and defined on the display server side? What I'm looking to do (if it's not being already done by the time my *nix box is up & running) is have unicode support on server-side, and all messages setting and getting text widget properties are either in a locale (ascii or other depending on locale setting), or unicode directly. I found that there is some support already in for wchar_t for the font drawing, but it also is doing things straight from the 8-bit ascii as well. My thoughts are to have all properties involving text on serverside to be just in unicode. I would love to see Y used in *nix userland (and as my main interface on a *nix box), and I'd like to do my little part to help it happen. - Alex Milne __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ From mark at y-windows.org Sun Feb 8 23:10:53 2004 From: mark at y-windows.org (Mark Thomas) Date: Sun Feb 8 23:10:55 2004 Subject: [Y-devel] Still figuring out the code In-Reply-To: <20040204144720.8863.qmail@web40408.mail.yahoo.com> References: <20040204144720.8863.qmail@web40408.mail.yahoo.com> Message-ID: Hi Alex, Sorry for the slightly delayed reply. I'm hoping to have Y be fully internationalised, using unicode throughout. My current thoughts are for the in-server strings to be stored in machine-endian UCS-4 (i.e. each codepoint stored in a 32-bit integer, no encoding at all), and have the client<->server communication and stored data in UTF-8 (as it is endian independent and a simple encoding). Clients, of course, can use whatever encoding they like internally, as long as they communicate to the server in UTF8 or vanilla ASCII. The current implementation uses 8-bit chars everywhere and pretends they are UTF-8 in most situations (this was me being under pressure to finish my final-year project on time). Perhaps a good early step would be to convert all in-server char strings to wchar_t strings and put a UTF8<->UCS4 conversion algorithm in there somewhere. (Volunteers?). Regards, Mark. -- || Mark Thomas || efaref.net || || Gotta run, the cat's caught in the printer. From durin at sbcglobal.net Thu Feb 19 01:52:30 2004 From: durin at sbcglobal.net (Augie Fackler) Date: Thu Feb 19 01:52:36 2004 Subject: [Y-devel] Porting to other OSes? Message-ID: <473D5F54-627E-11D8-B15F-000502673BF6@sbcglobal.net> How hard will Y be to port to a non-Linux system, say FreeBSD? I am willing to give it a try, but I won't make any promises. 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 fret at memecode.com Thu Feb 19 05:05:36 2004 From: fret at memecode.com (Matthew Allen) Date: Thu Feb 19 05:06:14 2004 Subject: [Y-devel] Various things... Message-ID: <6W2OQR111E5W3.2095663717DEKL7N@cisra.canon.com.au> Hi ppl, I've been tying to get the function 'desktopRender' to do something other than a flat colour rectangle and I can't seem to get a canvas or painter to do some text or bitmaps. Is this possible with the current code base? Also as a widget set developer I think it's highly important to either support popup (ie menus) directly as a style on windows or support watching all mouse events regardless of which window (or application) the mouse is currently over. Some sort of mouse hook function. X doesn't support this (that I know of) and it makes writing popups a real pain. I'm quite keep to port my widget set to Y sometime, and it's got a bunch of applications written for it. Ie an email client, ftp client, IDE, text editor, screen magnifier and a file manager. The file manager would be the real win to get running on Y, because it's a core desktop app. I'm also interested in writing some desktop engine code, ie desktop icons + right click menu, taskbar etc. I guess this should be another user space app, not something sitting in the Y server address space. I don't really know where to start with that, ideas and thoughts are welcome. regards -- Matthew Allen From c.mench at adilinstruments.com Thu Feb 19 09:54:32 2004 From: c.mench at adilinstruments.com (Claude Mench) Date: Thu Feb 19 09:55:10 2004 Subject: [Y-devel] Y Win32+OpengGL Port Message-ID: <002801c3f6ce$5f9daa50$9c02a8c0@mandoline> Hello All, I was the one, that made a Win32 port + OpenGL of Y (the about page of the new Y site talks about it, but did miss the fact it was primarly done on win32) the archive is available here http://c.mench.free.fr This is an binary archive, it is a bit old, and the bug you will see on the Clock sample is corrected now. I don't diffuse source code, because I don't know what Mark would think about having such a branch of his sources. But he is free to integrate my modifications to the mainstream server. I know he whant to change the way I implemented the link beetween Y buffers and OpenGL textures. Best regards, Claude Mench -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS d- s+:- a C++ UL++ P+ L+ E---- W+ N++ o-- K- w++ O-- M-- V+ PS+ PE+ Y PGP- t 5 X++ R- tv b+ DI++ D+ G e+++ h-- r+++ y+++ ------END GEEK CODE BLOCK------ From shadowjack at mail.ru Thu Feb 19 19:52:43 2004 From: shadowjack at mail.ru (Dmitry Platonov) Date: Thu Feb 19 11:37:11 2004 Subject: [Y-devel] Failed to build Y--devel--0.2--patch-1 Message-ID: <20040219195243.GB6551@hawk.stan.net> Here is ./configure output: checking whether stripping libraries is possible... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for freetype-config... /usr/bin/freetype-config checking for freetype - version >= 9.1.3... yes checking for sdl-config... /usr/bin/sdl-config checking for libSDL - version >= 1.2.0... yes checking for sigc-config... no checking for libSigC++ - version >= 1.0.0... no *** The sigc-config program installed by libSigC++ could not be found *** If libSigC++ was installed in PREFIX, make sure PREFIX/bin is in *** your path, or set the LIBSIGC_CONFIG environment variable to the *** full path to sigc-config. configure: error: Y needs libSigC++ to compile. I have libSigC++ 1.2.5 installed, but i see no sigc-config program. My OS is Gentoo Linux. From s.faubel at web.de Thu Feb 19 14:06:03 2004 From: s.faubel at web.de (Sebastian Faubel) Date: Thu Feb 19 13:07:16 2004 Subject: [Y-devel] Pixelbuffer / Kernel Module Message-ID: <1077199325.3924.45.camel@localhost> Hi everybody, if i got everything i've seen right, Y implements a rgbabuffer wich is capable of handling images in RGBA format only. We're currently implementing a pixelbuffer which is abled to store images with n-number of channels/bpp to also support images in various data formats in a more memory efficient way, while implementing basic image management. Our aim is to port librsvg to Y so that it nativly supports SVG images, and other image formats of course ;) Has anyone ideas/plans of how to implement the graphics/video codec system? * Another thing i was thinking of for quite a while now, was to implement the server core of Y as a kernel module, which in my opinion would enable really a lot of nice things along with the direct connection to the Framebuffer/DRI/Input core in privileged mode. What do you guys think of this? have fun, sebastian PS. Yippiayeaah, you finally managed to put the mailing list up :D From c.mench at adilinstruments.com Thu Feb 19 13:27:54 2004 From: c.mench at adilinstruments.com (Claude Mench) Date: Thu Feb 19 13:28:37 2004 Subject: [Y-devel] Pixelbuffer / KernelModule Message-ID: <00af01c3f6ec$2e364850$9c02a8c0@mandoline> Hello, > Our aim is to port librsvg to Y so that it nativly supports SVG images, > and other image formats of course ;) You are right at wanting to work on a 2d drawing library as the one in Y in rather skeletal. I don't know if librsvg is really the best choice for an immediate mode drawing library. Have you looked at Cairo ? It is more immediate mode minded. http://www.cairographics.org I follow a bit this developement and also libglc, which is the OpenGl compositing library that it uses to do hardware assisted rendering. http://www.cs.umu.se/~c99pnn/twiki/bin/view/Main/Screenshots The test I was able to make where really impressive (speedup was almost always >10 versus the software rendering). In any case having a 2d library which is spline based is really a cute thing. PS: Concerning OpenGL hardware assisted SVG document rendering there is also Smoke, which was my previous linux to win32 port: http://www.chem.pwf.cam.ac.uk/%7ejdh30/programming/opengl/smoke/ From t.knopp at gmx.net Thu Feb 19 14:23:35 2004 From: t.knopp at gmx.net (Tobias Knopp) Date: Thu Feb 19 14:20:54 2004 Subject: [Y-devel] Build-Problems Message-ID: <200402191523.35325.t.knopp@gmx.net> I wanted to build but had following Problem: checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... gcc3 checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking dependency style of gcc... gcc3 checking whether gcc and cc understand -c and -o together... yes checking for strerror in -lcposix... no configure: error: cannot run /bin/sh autoconf/config.sub can anybody help me? From mlatiolais at carrollsweb.com Thu Feb 19 14:35:55 2004 From: mlatiolais at carrollsweb.com (Michael Latiolais) Date: Thu Feb 19 14:35:06 2004 Subject: [Y-devel] Y hang Message-ID: <4034C9CB.20707@carrollsweb.com> I pulled down the original tarball, fixed the compile errors, and tried to run it. The server would start, and create a file socket, to which the yiterm would connect, but the server would never open a window. I forced the server to start at tty7, with the swrenderer. Under 2.4, I got a grey background, with a large mouse "ghost", for lack of a better term, which was unresponsive. Under kernel 2.6, I get a kernel panic. I grabbed the new file, compiled it, and had the same problem. When I use the sdl driver, I likewise get no response. I am using a laptop with the ATI Mobile M7(basically a repackaged 7500 Radeon). Has anyone else seen this problem? Also, I get a few compile errors in terminal.cc, regarding VTK_HOME and a few others. This doesn't appear to be implemented in my version of libiterm. Any clues there? From vsh at centras.lt Thu Feb 19 15:09:38 2004 From: vsh at centras.lt (Vytautas Shaltenis) Date: Thu Feb 19 15:10:15 2004 Subject: Fwd: Re: [Y-devel] Build-Problems Message-ID: <20040219150938.7DBB3170FA@wind.delfi.lt> Oops, I accidentally replied personally to Tobias... Resending. >>I wanted to build but had following Problem: >I see many of us are having problems building Y. I had too. >I didn't try the new version yet, only the one that was available >after initial announcement on slashdot, but still... Is there >something we're doing wrong, or is the build procedure broken? >In both cases something must be done about it. No one will want to >contribute (or, actually, will be unable to :-)) if the build process >of Y is so cumbersome. > >-- >Vytautas Shaltenis >On the Web: http://www.mif.vu.lt/~vysa1570 -- Vytautas Shaltenis On the Web: http://www.mif.vu.lt/~vysa1570 -------------- next part -------------- An embedded message was scrubbed... From: Vytautas Shaltenis Subject: Re: [Y-devel] Build-Problems Date: Thu, 19 Feb 2004 17:04:50 +0200 Size: 917 Url: http://www.y-windows.org/pipermail/y-devel/attachments/20040219/66813b4b/attachment-0001.eml From dwm at y-windows.org Thu Feb 19 16:41:49 2004 From: dwm at y-windows.org (David McBride) Date: Thu Feb 19 16:42:39 2004 Subject: [Y-devel] Failed to build Y--devel--0.2--patch-1 In-Reply-To: <20040219195243.GB6551@hawk.stan.net> References: <20040219195243.GB6551@hawk.stan.net> Message-ID: <1077208909.3750.7.camel@angel> On Thu, 2004-02-19 at 19:52, Dmitry Platonov wrote: > Here is ./configure output: > > checking for sigc-config... no > checking for libSigC++ - version >= 1.0.0... no > *** The sigc-config program installed by libSigC++ could not be found > *** If libSigC++ was installed in PREFIX, make sure PREFIX/bin is in > *** your path, or set the LIBSIGC_CONFIG environment variable to the > *** full path to sigc-config. > configure: error: Y needs libSigC++ to compile. > > I have libSigC++ 1.2.5 installed, but i see no sigc-config program. > My OS is Gentoo Linux. Hi Dimitry, That suggests that although you have the library installed you are missing the development headers and related programs. I'm not familiar with the Gentoo package management process, so I don't know what precise steps you will need to take to compile and install these additional components. On other distributions, you would usually install the '-dev' or '-devel' package for the libsigc++ library. If you work out what you need to do, post the details to the list so that anyone else with the same problem can see the solution. Cheers, David -- David McBride "If you feel strongly about graffiti, sign a partition." -- "Graffiti II" by Nigel Rees -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040219/0eae694d/attachment.bin From shadowjack at mail.ru Fri Feb 20 00:59:19 2004 From: shadowjack at mail.ru (Dmitry Platonov) Date: Thu Feb 19 16:43:45 2004 Subject: [Y-devel] Success report Message-ID: <20040220005919.GA6911@hawk.stan.net> Yeah, it works! I'm writing this message from mutt (in yterm) Here is one nasty bug: all shared libraries have no .so suffix, thus i had to rename them manually. And, an other (minor) bug: in clients/tools/yctl.c string if (argc==0) should be written like if (argc<=1) Or would a patch be more next time? Maybe, with [PATCH] in subject as in LKML? From dwm at y-windows.org Thu Feb 19 16:47:36 2004 From: dwm at y-windows.org (David McBride) Date: Thu Feb 19 16:48:23 2004 Subject: Fwd: Re: [Y-devel] Build-Problems In-Reply-To: <20040219150938.7DBB3170FA@wind.delfi.lt> References: <20040219150938.7DBB3170FA@wind.delfi.lt> Message-ID: <1077209256.3748.14.camel@angel> On Thu, 2004-02-19 at 15:09, Vytautas Shaltenis wrote: > >I wanted to build but had following Problem: > I see many of us are having problems building Y. I had too. > I didn't try the new version yet, only the one that was available > after initial announcement on slashdot, but still... Is there > something we're doing wrong, or is the build procedure broken? Guys, Use the updated release. The original 0.1 from months ago is known to have compilation bugs which have been long since been fixed. If you have problems with the new release, post your symptoms to the list. Oh, and one last thing -- please don't top post your emails -- it makes following an involved discussion much more difficult. Cheers, David -- David McBride Subtlety is the art of saying what you think and getting out of the way before it is understood. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040219/49cfe9f8/attachment.bin From shadowjack at mail.ru Fri Feb 20 01:09:04 2004 From: shadowjack at mail.ru (Dmitry Platonov) Date: Thu Feb 19 16:53:29 2004 Subject: [Y-devel] Failed to build Y--devel--0.2--patch-1 In-Reply-To: <1077208909.3750.7.camel@angel> References: <20040219195243.GB6551@hawk.stan.net> <1077208909.3750.7.camel@angel> Message-ID: <20040220010904.GB6911@hawk.stan.net> On Thu, Feb 19, 2004 at 04:41:49PM +0000, David McBride wrote: > On Thu, 2004-02-19 at 19:52, Dmitry Platonov wrote: > > *** your path, or set the LIBSIGC_CONFIG environment variable to the > > *** full path to sigc-config. > > configure: error: Y needs libSigC++ to compile. > > > > I have libSigC++ 1.2.5 installed, but i see no sigc-config program. > > My OS is Gentoo Linux. > > Hi Dimitry, > > That suggests that although you have the library installed you are > missing the development headers and related programs. > > I'm not familiar with the Gentoo package management process, so I don't > know what precise steps you will need to take to compile and install > these additional components. On other distributions, you would usually > install the '-dev' or '-devel' package for the libsigc++ library. > > If you work out what you need to do, post the details to the list so > that anyone else with the same problem can see the solution. As noted in private message i received, downgrading to version 1.0.4 solved the problem. Packages in Gentoo are not splitted to "deved" and "non-devel" parts, so this is not an issue. Either sigc-config is gone in new version, or package(ebuild) in gentoo is broken. The first is more likely, because i tried to build 1.2.5 ver. myself, and saw no trace of sigc-config. From rawler at rsn.bth.se Thu Feb 19 17:41:49 2004 From: rawler at rsn.bth.se (Ulrik Mikaelsson) Date: Thu Feb 19 17:42:26 2004 Subject: [Y-devel] Success report In-Reply-To: <20040220005919.GA6911@hawk.stan.net> References: <20040220005919.GA6911@hawk.stan.net> Message-ID: <200402191841.53591.rawler@rsn.bth.se> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dear Dmitry, When just running ./configure, I had the same problem as you had, namely the lack of .so extensions under Linux.. However, when running ./autogen (probably more specifically when running autoconf/aclocal) the problem solved itself, and the build nicely produced .so files. Regards // Ulrik Friday 20 February 2004 01.59 skrev Dmitry Platonov: > Yeah, it works! > > I'm writing this message from mutt (in yterm) > Here is one nasty bug: > all shared libraries have no .so suffix, thus i had to rename them > manually. > > And, an other (minor) bug: > in clients/tools/yctl.c string > if (argc==0) > should be written like > if (argc<=1) > > Or would a patch be more next time? > Maybe, with [PATCH] in subject as in LKML? > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel - -- All I kin say is when you finds yo'self wanderin' in a peach orchard, ya don't go lookin' for rutabagas. -- Kingfish -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFANPVg069SELtZwIkRAngxAJ0UdTFBRHYeGeHtNoR7nYmAqr2LaACfYzZe 5xwt3wfdXcLwwBjA/upM6B4= =f06m -----END PGP SIGNATURE----- From d.jacobfeuerborn at conversis.de Thu Feb 19 17:44:23 2004 From: d.jacobfeuerborn at conversis.de (Dennis Jacobfeuerborn) Date: Thu Feb 19 17:44:25 2004 Subject: [Y-devel] Re: Failed to build Y--devel--0.2--patch-1 Message-ID: <4034F5F7.7000501@conversis.de> > As noted in private message i received, downgrading to version 1.0.4 > solved the problem. Packages in Gentoo are not splitted to "deved" and > "non-devel" parts, so this is not an issue. Either sigc-config is gone > in new version, or package(ebuild) in gentoo is broken. The first is > more likely, because i tried to build 1.2.5 ver. myself, and saw no > trace of sigc-config. It seems the project has switched to the much better pkgconfig. The file-list of the package libsigc++-devel on Fedora contain this: /usr/lib/pkgconfig/sigc++-1.2.pc I haven't built Y myself yet but I will do so in a minute by compiling a downgraded version of sigc++ myself and installing it under /usr/local. Regards, Dennis From richard at playford.net Thu Feb 19 17:48:47 2004 From: richard at playford.net (Richard Hills) Date: Thu Feb 19 17:49:20 2004 Subject: [Y-devel] yiterm build problems Message-ID: <1077212926.10578.86.camel@localhost> When compiling yiterm I get the following: terminal.cc:142: error: `VTK_HOME' undeclared (first use this function) Followed by lots of other "'VTK_*' undeclared" errors. It compiles if you simply comment out all the "case" statements where this appears; my version of libiterm-dev (0.5-2 in debian) only mentions up to VTK_RIGHT in the header files. Also, once Y has compiled I have problems running the server. It doesn't appear to create the socket in /tmp/.Y, getting stuck at: ... else if (pid != 0) { /* wait for child to finish initialising... */ int returns[2]; if (read (pipedes[0], returns, sizeof (int) * 2) > 0) { if (returns[1] > 0) { char buffer[returns[1]+1]; ... on the "if (read" line. Does this mean for certain the "child" process never finishes, or is there another possibility? I don't know a lot about unix sockets, but does anyone have any ideas what line of debugging I could try and fix this? Thanks, Richard From listreader at rambler.ru Thu Feb 19 17:55:34 2004 From: listreader at rambler.ru (Alexander Vlasov) Date: Thu Feb 19 17:50:52 2004 Subject: [Y-devel] checkbox drawing Message-ID: <20040219175534.GA16619@mumidol> Hi. I have a small proposal about source code reorganization: what aout moving checkbox drawer from Y/widget/checkbox.c (lines 91-93) to some place in modules/themes/*/draw.c to make checkbox look theme-dependent? Are patches welcome? -- WBR, Alexander A. Vlasov From listreader at rambler.ru Thu Feb 19 18:07:17 2004 From: listreader at rambler.ru (Alexander Vlasov) Date: Thu Feb 19 18:02:36 2004 Subject: [Y-devel] yiterm build problems In-Reply-To: <1077212926.10578.86.camel@localhost> References: <1077212926.10578.86.camel@localhost> Message-ID: <20040219180717.GA16737@mumidol> Hi. On Thu, Feb 19, 2004 at 05:48:47PM +0000, Richard Hills wrote: > When compiling yiterm I get the following: > > terminal.cc:142: error: `VTK_HOME' undeclared (first use this function) > > Followed by lots of other "'VTK_*' undeclared" errors. It compiles if > you simply comment out all the "case" statements where this appears; my > version of libiterm-dev (0.5-2 in debian) only mentions up to VTK_RIGHT > in the header files. Debian has libiterm, not libiterm-mbt, so header file /usr/include/iterm/core.h misses some key definitions. Add this to your header file: VTK_HOME = 0xFF55, /**< home key */ VTK_END = 0xFF56, /**< end key */ VTK_PAGE_UP = 0xFF57, /**< page up key */ VTK_PAGE_DOWN = 0xFF58, /**< page down key */ VTK_INSERT = 0xFF59, /**< insert key */ VTK_DELETE = 0xFF5A, /**< delete key */ -- WBR, Alexander A. Vlasov Debian GNU/Linux user JID: zulu@jabber.ru nic-hdl: ZULU-UANIC From shadowjack at mail.ru Fri Feb 20 02:19:19 2004 From: shadowjack at mail.ru (Dmitry Platonov) Date: Thu Feb 19 18:03:45 2004 Subject: [Y-devel] Re: Success report In-Reply-To: <200402191841.53591.rawler@rsn.bth.se> References: <20040220005919.GA6911@hawk.stan.net> <200402191841.53591.rawler@rsn.bth.se> Message-ID: <20040220021919.GA7133@hawk.stan.net> On Thu, Feb 19, 2004 at 06:41:49PM +0100, Ulrik Mikaelsson wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Dear Dmitry, > > When just running ./configure, I had the same problem as you had, namely the > lack of .so extensions under Linux.. However, when running ./autogen > (probably more specifically when running autoconf/aclocal) the problem solved > itself, and the build nicely produced .so files. Thanks, this solved the problem. > Regards > // Ulrik > > Friday 20 February 2004 01.59 skrev Dmitry Platonov: > > Yeah, it works! > > > > I'm writing this message from mutt (in yterm) > > Here is one nasty bug: > > all shared libraries have no .so suffix, thus i had to rename them > > manually. > > - -- > All I kin say is when you finds yo'self wanderin' in a peach orchard, > ya don't go lookin' for rutabagas. > -- Kingfish > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.3 (GNU/Linux) > > iD8DBQFANPVg069SELtZwIkRAngxAJ0UdTFBRHYeGeHtNoR7nYmAqr2LaACfYzZe > 5xwt3wfdXcLwwBjA/upM6B4= > =f06m > -----END PGP SIGNATURE----- > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel > From d.jacobfeuerborn at conversis.de Thu Feb 19 18:11:10 2004 From: d.jacobfeuerborn at conversis.de (Dennis Jacobfeuerborn) Date: Thu Feb 19 18:11:14 2004 Subject: [Y-devel] Re: Failed to build Y--devel--0.2--patch-1 In-Reply-To: <4034F5F7.7000501@conversis.de> References: <4034F5F7.7000501@conversis.de> Message-ID: <4034FC3E.2080905@conversis.de> Dennis Jacobfeuerborn wrote: > > As noted in private message i received, downgrading to version 1.0.4 > > solved the problem. Packages in Gentoo are not splitted to "deved" and > > "non-devel" parts, so this is not an issue. Either sigc-config is gone > > in new version, or package(ebuild) in gentoo is broken. The first is > > more likely, because i tried to build 1.2.5 ver. myself, and saw no > > trace of sigc-config. > > It seems the project has switched to the much better pkgconfig. The > file-list of the package libsigc++-devel on Fedora contain this: > > /usr/lib/pkgconfig/sigc++-1.2.pc > > I haven't built Y myself yet but I will do so in a minute by compiling a > downgraded version of sigc++ myself and installing it under /usr/local. > > Regards, > Dennis I managed to build Y but ran into two problems: 1) configure doesn't check for the iterm library so you get an error during compilation and no warning during configure that the library is neede. 2) configure doesn't pick up the library path sigc-config provides. I had to set LD_LIBRARY_PATH to /usr/local/libsigc/lib manually for configure to work. When I call "startY" a window opens and then disappears right away. On the console I get this: Reading (header) from Y Socket: Success Aborted When I run "Y" I get a window with a pointer and it stays open but as soon as I run "yclock" Y terminates with the same message as above. These are my first observations and I haven't had the time to look deeper into this yet but I hope I will be able to soon :) Regards, Dennis From cupycake_jay at yahoo.com Thu Feb 19 18:38:12 2004 From: cupycake_jay at yahoo.com (Jay Sprenkle) Date: Thu Feb 19 18:38:49 2004 Subject: [Y-devel] screensaver In-Reply-To: Message-ID: <20040219183812.91403.qmail@web41505.mail.yahoo.com> Hello all: I'm glad to see someone has taken the initiative and started a project like this. I was never thrilled with X. Is there a page that outlines what's been developed and what has not? If this is to successful I think there will have to be a compatibility layer or port of gnome and/or kde. Is it in the works? If the widgets are part of Y is there a model for extending it? Has anyone worked up the screen saver code for it yet? Thanks, Take care! __________________________________ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools From kempa at kwic.com Thu Feb 19 18:53:36 2004 From: kempa at kwic.com (Aaron Kemp) Date: Thu Feb 19 18:52:50 2004 Subject: [Y-devel] Toolkits? Message-ID: <1077216816.12796.7.camel@localhost.localdomain> Sorry if this is a stupid question or has already been answered, but... The documentation says that Y will have server side widgets (some 40 common widgets, ie buttons, labels, etc). However, you can't seriously expect that these widgets are going to supersede efforts like GTK. They just won't (and shouldn't) So, my question is, how does G[TD]K/Qt/wxWindows/whatever fit into the big picture? My understanding of X is that GDK has a back-end for X11 which turns a cute round image button into a series of Xlib calls to paint it. Will Y end up being another back-end in GDK? If so, will having the server side widgets actually prove anything, or will G[TD]K still have to send a series of simple canvas operations to draw its controls? Thanks Aaron -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040219/e1e5487a/attachment.bin From jab at radiofreeomaha.net Thu Feb 19 18:53:18 2004 From: jab at radiofreeomaha.net (Jason Borgmann) Date: Thu Feb 19 18:53:28 2004 Subject: [Y-devel] Success/Failure report. Message-ID: <1077216797.18335.8.camel@envy.radiofreeomaha.net> Content-Transfer-Encoding: quoted-printable Well, I must say I was surprised when the build/install went flawless.=20 Although everything seemed to go well I can't for the life of me get it to work. Excuse the ignorance if this should be obvious to me but here is what I get in /var/log/messages: [With LoadModule "driver/video/sdl" in default.conf] Feb 19 12:30:22 envy Y[17517]: configLoad:90: Opening config file: /usr/local/etc/Y/default.conf Feb 19 12:30:22 envy Y[17517]: Error: initialise: sdl: Unable to init: No available video device Feb 19 12:30:22 envy Y[17517]: clientRegister:48: Registering client with ID: 1 Feb 19 12:30:22 envy Y[17517]: clientAddObject:92: Adding object 2 [Window] to client 1 Feb 19 12:30:22 envy Y[17517]: clientAddObject:92: Adding object 3 [Console] to client 1 At this point it just hangs. Nothing. [With: LoadModule "driver/video/fbdev" in default.conf] Feb 19 12:37:52 envy Y[17729]: configLoad:90: Opening config file: /usr/local/etc/Y/default.conf Feb 19 12:37:52 envy Y[17729]: initialise:600: Using fb:/dev/fb0 tty:/dev/tty (0) Feb 19 12:37:52 envy Y[17729]: Error: initialise: Couldn't open /dev/tty: No such device or address Feb 19 12:37:52 envy Y[17729]: clientRegister:48: Registering client with ID: 1 Feb 19 12:37:52 envy Y[17729]: clientAddObject:92: Adding object 2 [Window] to client 1 Feb 19 12:37:52 envy Y[17729]: clientAddObject:92: Adding object 3 [Console] to client 1 Again, it just hangs at this point. Am I missing something obvious? The above was with 'startY', I have also tried just 'Y' and the result is identical with the exception that with just 'Y' I get my prompt back. I have also tried as root with the same results. Any ideas? [NOTE: I checked and /dev/tty does exist.] -jb --=20 I would gladly use OS X if it weren't for the $1999.00 dongle. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040219/48aaa8a3/attachment.bin From shadowjack at mail.ru Fri Feb 20 03:21:39 2004 From: shadowjack at mail.ru (Dmitry Platonov) Date: Thu Feb 19 19:06:04 2004 Subject: [Y-devel] i18n Message-ID: <20040220032139.GB7133@hawk.stan.net> I'd like to discuss i18n support. So, if all in-server strings are wchar_t (i think it is implementation-dependen), we must put conversions it this places: 1. server->client 2. client->server 3. server->glyph 4. input system->server Client encoding is UTF8, server is wchar_t. Input-system is device-specific, and what about font rendering system? 1 and 2 can be done (i think) using glibc functions, and there must be generic (and configurable) mechanism to do 3 and 4. From djarvis at invoqsystems.com Thu Feb 19 19:21:35 2004 From: djarvis at invoqsystems.com (Dave Jarvis) Date: Thu Feb 19 19:21:53 2004 Subject: [Y-devel] Technical Notes Message-ID: <40350CBF.9000509@invoqsystems.com> Hi, I haven't had a chance to give an in-depth overview of the code, but since the project is still young, I would like to make the following suggestions, and comments: 1. Make a consistent source style. Document it. Don't mix tabs and spaces (I usually suggest 2 or 4 spaces, 8 is unwieldy). This can be automated by getting CVS to launch a code formatter before entering the code into the repository. 2. Keep function calls commented. This is extremely important, and even though it is time consuming, and nobody likes to do it (except me ;-), I suggest even a minimal standard (in keeping with either JavaDoc or some C-based documentation standard). An example template: /** * DESCRIPTION * At least a one-line description of what the function handles. (Don't * simply repeat the name of the function, that adds no information.) * * PRECONDITIONS * What values must be set (could be combined with contracts), what * assumptions are made, etc. * * POSTCONDITIONS * What values were set (could be combined with contracts), what effects * could happen, etc. * * PARAMETERS * parameter - What's its function, what are valid values? * * RETURN SUCCESS * What values are returned if successful * * RETURN FAILURE * What values are returned if unsuccessful */ 3. Way back when I was taught that for every line of code you should have a comment that states WHY the line of code is written. This is completely different from WHAT the line of code does. As a programmer, I should know that "x = 4" means "assign the value of 4 to x"; what I don't know is that 4 indicates the number of sides to a rectangle (in this case). 4. Use constants. Already I see things like "text", "Button", "clicked", creeping into the code (button.c). This is best avoided from the get-go. Numbers like 0, -1, 1, and 2 don't generally need constant values. However, numbers like 10, 12, and such do. Better is to make them parameterized (using defaults when not available). If they truly are constant values and will never change (regardless of screen resolution, or if a person wants round buttons by default), then comment what the 10 and 12 mean. This is especially important for words. We speak English. Not everyone else in the world does. 5. Think about compiler independence. I've written a socket-based application that compiles (without changes, or configuration scripts) on: HP-UX, Solaris, Linux, AIX, and Windows. There are a couple if #ifdefs lying around, but they are usually unobtrusive and hidden in header files. This might mean making the code stricter to old ANSI-C standards. 6. typedefs in C are the handiest things. I can't stand pointers, and hate trying to read code full of 'em. Consider: typedef struct Socket { int descriptor; struct socket_addr_in host; } *SocketPtr; Now all your references to sockets can be done via the SocketPtr type, and you will rarely see the dreaded *. This is a fairly standard mechanism that I didn't see adopted. 7. You've kept function length down to a very good size. Keep this up! As a general rule, if I find a function longer than 25 lines, it is time to split it up (helps for reusing code, too). Enforce this guideline. 8. I haven't noticed much code duplication (likely because of small functions). Great work! 9. You are avoiding direct calls to standard APIs, creating your own wrapper functions instead. This is an incredibly good thing to do. It helps for future items like: o debugging (since all calls to "malloc" are via ymalloc) o porting to other platforms o optimizations In "console.c", I noticed many calls to strtol giving NULL, 0. Consider writing a wrapper function "ystrtol" which provides NULL, 0 by default. 10. Limit the number of parameters per function call -- anything more than 5 and it you should look at creating a structure (e.g., x, y, dx, dy -- could be a MotionPointPtr structure which could contain two internal structures PointPtr point, PointPtr delta). 11. Try to limit the number of values that are passed by reference. In other words, fewer "out" parameters are better. I normally return a structure. Although this means the calling function must clear the memory when finished, it also means that you can never accidentally modify existing data in strange ways (always modifying new data in strange ways, instead). 12. Looping backwards to 0 is often faster than looping from 0 to a specific value. Thanks for reading! Dave -- Invoq Systems Inc. t. 250.380.0304 e. djarvis@invoqsystems.com w. http://www.invoqsystems.com From s.mehlhase at id-team.com Thu Feb 19 19:31:34 2004 From: s.mehlhase at id-team.com (Stephan Mehlhase) Date: Thu Feb 19 19:30:44 2004 Subject: [Y-devel] Y Segfaults In-Reply-To: References: Message-ID: <40350F16.9010703@id-team.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, Today, I downloaded Y, compiled it on my Debian Sid machine. While compiling I had to install the packages libiterm-dev and libfribidi-dev which was not tested by the configure script. Now I compiled it and tried to start it using bin/startY - when I'm under X a nice new window pops up with the title "Y on SDL" and a nice blue background and a nice mouse cursor. Nothing more. (Looking through the startY Script an yiterm should be started I think) When tried to manually starting bin/yiterm I'm only seeing "Segmentation Fault" and nothing happens. Trying to start bin/yclock breaks the popped up window and this messages appear on my console: Reading (header) from Y Socket: Success Aborted You see my english is not the best - I hope you understand what I mean. If you need more informations ask me... Regards - -- Stephan Mehlhase |-----------------------|---------------------------| | id Team GbR | http://www.id-team.com | | Tel: 0700 77 33 99 11 | Inh. J?rgen M?ller | | Fax: 0700 77 33 99 11 | & Christoph Koch | |-----------------------|---------------------------| | GPG: http://stephan-mehlhase.name/gpg/mykey.asc | | Private: http://stephan-mehlhase.name/ | |---------------------------------------------------| | "Do you pine for the nice days of minix-1.1, | | when men were men and wrote their own | | device drivers?" - Linus Torvalds | |---------------------------------------------------| -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFANQ8WnZoc5kp35wsRAjSgAJ975aNjd8WmgPXeugSaYP7PWsoVFgCg2V/R vm/jEoXH2jL/x21Zgz+CcWs= =rZoX -----END PGP SIGNATURE----- From drizzt321 at phpfreaks.com Thu Feb 19 19:55:26 2004 From: drizzt321 at phpfreaks.com (drizzt321@phpfreaks.com) Date: Thu Feb 19 19:56:05 2004 Subject: [Y-devel] libiterm-mbt .debs Message-ID: <1077220526.403514ae53068@freaksmail.com> I built .debs for the libiterm-mbt since the default libiterm package for debian does not contain all of the constants expected. http://www.darkobjects.net/~drizzt/libiterm You also need to install unifont package from the archives first. I built on testing targets, so you may need to do some fiddling. Aaron ---------------------------------------------------------------------- This mail sent through Toaster-Horde (http://qmailtoaster.clikka.com/) From griffon26 at kfk4ever.com Thu Feb 19 20:02:20 2004 From: griffon26 at kfk4ever.com (Maurice van der Pot) Date: Thu Feb 19 20:02:24 2004 Subject: [Y-devel] Technical Notes In-Reply-To: <40350CBF.9000509@invoqsystems.com> References: <40350CBF.9000509@invoqsystems.com> Message-ID: <20040219200220.GA8891@kfk4ever.com> I'm not involved in this project (yet) and I also wouldn't want to help create a big discussion about something that in most cases is simply a matter of taste. Having said that, I would like to add some comments to a few of your remarks. If I don't comment on something I either don't have a preference or I agree with you ;) If anyone thinks I'm stating the obvious, please ignore me. On Thu, Feb 19, 2004 at 11:21:35AM -0800, Dave Jarvis wrote: > > 3. Way back when I was taught that for every line of code you should > have a comment that states WHY the line of code is written. Usually most short pieces of code can be understood by programmers without the help of comments, but to facilitate easy reading of large pieces of code I often comment blocks of code (like loops) with a single sentence explaining what they do. Only if it is not immediately obvious why I would want it to do that, I add a few lines describing that. If you have a piece of code that isn't readable by itself, don't fix it by adding a comment, try to fix it by making it simpler (divide and conquer usually works). > 4. ... Numbers like 0, -1, 1, and 2 don't generally need constant > values. However, numbers like 10, 12, and such do. ... > If they truly > are constant values and will never change (regardless of screen > resolution, or if a person wants round buttons by default), then comment > what the 10 and 12 mean. I suppose it is a personal preference of mine, but I make it a point not to have _ANY_ magic numbers in the code. Of course everybody who reads 3600 immediately thinks of it as 60*60 or the number of seconds in an hour, but still defining SECONDS_PER_HOUR or something similar somewhere doesn't hurt. Using meaningful names also helps increase the speed with which one can read the code. > 5. Think about compiler independence. I've written a socket-based > application that compiles (without changes, or configuration scripts) > on: HP-UX, Solaris, Linux, AIX, and Windows. There are a couple if > #ifdefs lying around, but they are usually unobtrusive and hidden in > header files. This might mean making the code stricter to old ANSI-C > standards. In my experience using an OSA (Operating Abstraction Layer) that gathers all #ifdefs together in a few source/header files can really help keep the code clean. The smaller the code affected by definitions of preprocessor definitions, the easier it is to test it in isolation with all possible combinations of definitions. > 6. typedefs in C are the handiest things. I can't stand pointers, and > hate trying to read code full of 'em. Consider: > > typedef struct Socket { > int descriptor; > struct socket_addr_in host; > } *SocketPtr; > > Now all your references to sockets can be done via the SocketPtr type, > and you will rarely see the dreaded *. This is a fairly standard > mechanism that I didn't see adopted. You are only hiding a * in the name of a type. It also means you'd have to define one extra type for each level of indirection you use for any type. I don't mind the * at all, I'd just define Socket and if a variable is a pointer to something, I prefix it with a p. For pointers to pointers, I prefix with pp, etc. While on the subject of prefixes, I never prefix any variables with the letter of their type. The fact that a variable contains a pointer actually helps when reading the code while it does not bother the programmer when things have to change types or names. Prefixing boolean variables with b for example is in my opinion a convention that has no advantages as far as reading the code is concerned and the disadvantage of having to rename your variables if the boolean suddenly needs to be an enum. > 7. You've kept function length down to a very good size. Keep this up! > As a general rule, if I find a function longer than 25 lines, it is > time to split it up (helps for reusing code, too). Enforce this guideline. I don't think you can say that a function needs to be split up just because it happens to be, say, 50 lines. If the code does nothing complex, doesn't contain loops and walks through a large number of pretty simple steps, why would you want to split it up? As long as the function can be thought of as performing one logical function, the reader can browse the function once to see it really does what it is supposed to and from then on just think of the logical function whenever he sees a call. > 9. ... > In "console.c", I noticed many calls to strtol giving NULL, 0. Consider > writing a wrapper function "ystrtol" which provides NULL, 0 by default. Why? > 11. Try to limit the number of values that are passed by reference. In > other words, fewer "out" parameters are better. I normally return a > structure. Although this means the calling function must clear the > memory when finished, it also means that you can never accidentally > modify existing data in strange ways (always modifying new data in > strange ways, instead). Although limiting the number of "out" parameters is a good thing, putting unrelated items together in a struct just to return them as one piece of data is a Bad Thing. > 12. Looping backwards to 0 is often faster than looping from 0 to a > specific value. I think the difference is negligible comparing it to the stuff in the loop. Also, optimisations like that can easily be done later on. If looping up from 0 is easier to understand, it decreases the chance of introducing bugs. Best regards, Maurice van der Pot From jared.hanson at helixent.com Thu Feb 19 20:27:41 2004 From: jared.hanson at helixent.com (jared.hanson@helixent.com) Date: Thu Feb 19 20:41:42 2004 Subject: [Y-devel] Toolkits? In-Reply-To: <1077216816.12796.7.camel@localhost.localdomain> References: <1077216816.12796.7.camel@localhost.localdomain> Message-ID: <22780.24.220.19.13.1077222461.squirrel@webmail1.hrnoc.net> > Sorry if this is a stupid question or has already been answered, but... > > The documentation says that Y will have server side widgets (some 40 > common widgets, ie buttons, labels, etc). However, you can't seriously > expect that these widgets are going to supersede efforts like GTK. They > just won't (and shouldn't) > > So, my question is, how does G[TD]K/Qt/wxWindows/whatever fit into the > big picture? My understanding of X is that GDK has a back-end for X11 > which turns a cute round image button into a series of Xlib calls to > paint it. Will Y end up being another back-end in GDK? If so, will > having the server side widgets actually prove anything, or will G[TD]K > still have to send a series of simple canvas operations to draw its > controls? > > Thanks > Aaron I'll address this from my (probably small) understanding of the situation. First, when you look at a more "desktop-oriented" OS, you will always find a common widget set, such as those in Mac OS X or Windows. This helps from a testing and deployment point of view, because end users are guaranteed to have a certain widget set, and the developer does not need to be as concerned about compatibility. Linux, depending on your viewpoint, can be seen as hindered in the desktop apps category because of the proliferation of widget sets. Assuming 2 have popularity (Qt and GTK) your app is only goign to appear native in half your target customer base. This can be quite discouraging from a development standpoint. Its also discouraging from a users view because it detracts from consistency. Second, even with a "standard" widget set, nothing precludes developers from writing their own. Apple's pro-level audio and video tools have a unique look-and-feel to them. That suggests to me that they are likely using a custom widget set. If you wanted to maintain source compatibility with a GTK or Qt code base, a layer could be written that uses Y's canvas drawing to draw other widgets. A standard, capable widget set is, in my opinion, a very good thing. So, in short, if you used GTK or Qt with a Y backend, you are not gaining anything by the included widget set. However, if Y becomes widely used, you will likely see nice looking apps that work out-of-the box on Y, regardless of desktop environment or custom widget sets. Both GTK and Qt address the lack of a quality "standard" X widget library. Y is meant to avoid the pitfalls of the X window system, so I believe it is a good decision to include a high quality widget library. From mpaque at mac.com Thu Feb 19 21:07:19 2004 From: mpaque at mac.com (Mike Paquette) Date: Thu Feb 19 21:07:17 2004 Subject: [Y-devel] Toolkits? In-Reply-To: <22780.24.220.19.13.1077222461.squirrel@webmail1.hrnoc.net> References: <1077216816.12796.7.camel@localhost.localdomain> <22780.24.220.19.13.1077222461.squirrel@webmail1.hrnoc.net> Message-ID: <9A44453E-631F-11D8-A893-003065FC262A@mac.com> On Feb 19, 2004, at 12:27 PM, jared.hanson@helixent.com wrote: > First, when you look at a more "desktop-oriented" OS, you will always > find > a common widget set, such as those in Mac OS X or Windows. This helps > from a testing and deployment point of view, because end users are > guaranteed to have a certain widget set, and the developer does not > need > to be as concerned about compatibility. One of the interesting things in the design of the Mac OS X window system is that the window system itself contains no widget sets, and is even graphics-model agnostic. Drawing is done by client-side frameworks, such as Quartz (PDF-like vectors and images) and QuickDraw (Xlib-like raster oriented primitives). Widget sets are built on top of the client-side drawing primitives in a higher layer, such as the Cocoa AppKit or Carbon ToolBox. > Second, even with a "standard" widget set, nothing precludes developers > from writing their own. Apple's pro-level audio and video tools have a > unique look-and-feel to them. That suggests to me that they are likely > using a custom widget set. Apple's custom widget sets are built on top of the same client side graphics routines as the standard tool sets. In the Cocoa environment, customized subclasses of standard UI elements (NSView, NSControl) are typically used to gain custom appearance and behavior on top of common functionality. From matt at mattsscripts.co.uk Thu Feb 19 21:12:17 2004 From: matt at mattsscripts.co.uk (Matt Wilson) Date: Thu Feb 19 21:12:17 2004 Subject: [Y-devel] startY?... Message-ID: <1077225137.9201.110.camel@aragorn.pissedup.com> Hi folks, * waves to the list I just downloaded Y--devel--0.2--patch-1.tar.gz and compiled it up (after installing libiterm-mbt, which configure didn't notice was missing btw), then 'make install'ed it. Upon running 'startY' nothing happens ... not a thing. I wasn't entirely sure if anything really *should* happen so I tried to run ycalculator (and yiterm) to no avail, it appears that the socket /tmp/.Y-0 isn't being created... Suggestions? :) Matt -- http://www.mattsscripts.co.uk/ - A great source for free CGI and stuff No hardware designer should be allowed to produce any piece of hardware until three software guys have signed off for it. -- Andy Tanenbaum From iain_thekillermunchkin at yahoo.co.uk Thu Feb 19 21:17:12 2004 From: iain_thekillermunchkin at yahoo.co.uk (Iain Jackson) Date: Thu Feb 19 21:17:27 2004 Subject: [Y-devel] Media Streaming Message-ID: <403527D8.4050406@yahoo.co.uk> After having a look through the documentation, some ideas have popped into my head - so I thought I'd share. With the Y Server handling the Window and Widget drawing it would be not to be too much of a leap to allow remote media streaming across the network connection. A Media Widget could be running on the server, created by the client on another computer and media could be remotely streamed and played back using the client's resources - themed as well depending on the implementation. A bit like running XMMS on your friends music collection half way across the internet transparently via SSH, which could be useful in thin clients and some distributed applications. I doubt this kind of thing would be good for the initial release, but could be an idea for future releases. And yeah, hi to everyone else on the list. Iain From popiel at wolfskeep.com Thu Feb 19 21:20:49 2004 From: popiel at wolfskeep.com (T. Alexander Popiel) Date: Thu Feb 19 21:20:54 2004 Subject: [Y-devel] Periodic exec* to reduce memory fragmentation Message-ID: <20040219212049.E9F742DF1A@cashew.wolfskeep.com> I skimmed through the mailing list archives, but didn't see anything related to this, so here goes: The single largest complaint that I have with X server implementations is that over their (long) execution lifespans, they end up severely fragmenting memory and thus degrading performance of the entire machine that they're running on (not to mention any applications actually being displayed). I was wondering if you had any plans for incorporating the ability to periodically re-image the server process via execl or one of its brethren, without losing state or disconnecting clients. In order to accomplish this, you'd likely have to serialize any widget/client state stored in the server, mark all your sockets for retention, then execl(), re-read all the state info, and resume. Going through this process would have significant benefits: it would defragment any memory you were using (by reallocating it all in neighboring blocks), lower the memory break known to the OS (so that the OS can actually reclaim any memory that was no longer being used), and generally reduce the amount of paging needed to manipulate related objects. Also, as a fringe benefit, you'd get the ability to load a new server binary (with fixes, new features, whatever) without disturbing your desktop (as long as the temporary file format for the saved state info remained the same). I've done this sort of thing with other long-running server processes (PennMUSH, in particular), and it really is a boon to usability and upgradability. I have not yet had a chance to poke around in the Y source, so I don't know how easy it would be to do for this project... but I do know that the sooner you think about this sort of thing, the less painful it is to implement. - Alex, putting in his two cents before jumping in headlong From djarvis at invoqsystems.com Thu Feb 19 21:31:52 2004 From: djarvis at invoqsystems.com (Dave Jarvis) Date: Thu Feb 19 21:31:56 2004 Subject: [Y-devel] Technical Notes In-Reply-To: <20040219200220.GA8891@kfk4ever.com> References: <40350CBF.9000509@invoqsystems.com> <20040219200220.GA8891@kfk4ever.com> Message-ID: <40352B48.9030306@invoqsystems.com> Hi, I guess the main point I was trying to make, which got mired in mucky details, was that it is better to step in at the start of a project with a list of guidelines and styles, rather than trying to get everyone to adopt it later. This includes technical aspects like: o Notation. o Source formatting. Automate this. o Line length. What is an unacceptable length? Although this is very much a personal preference, I've seen object methods over 500 lines long. I certainly don't want to be the newbie on the project responsible for maintaining THAT code. If you don't set an upper boundary, people will do absurd things (this is a fact, not a slippery slope). Personally, I find 50 lines too long -- chances are good there is room for refactoring, then reusing the smaller functions elsewhere. The point: set a "best fit" limit (i.e., try not to exceed 35 lines, or what have you). o Comments. Function comments are a must, internal comments are good. It's nice to know what role the functions play in the grand scheme of development. o Constants. Code with magic numbers either needs a comment or a constant. o Avoid duplicate (and redundant) code. There are other details, of course, like source layout, which compilers it must compile against (gcc v2.95, gcc v3.3, TP 6.0, etc.), how many warnings are acceptable (none, right? ;-), and so forth. With respect to wrapping API calls: strtol( vA, NULL, 0 ); strtol( vB, NULL, 0 ); strtol( vC, NULL, 0 ); strtol( vD, NULL, 0 ); Correct me if I'm wrong, but the NULL, 0 value is actually loaded into the code segment of memory each time it is written. This increases the size of the binary, and thus the memory requirements of the system -- unless compilers these days are smart enough to find ALL calls to strtol in ALL files and reduce the code. Whereas: ystrtol( vA ); ystrtol( vB ); ystrtol( vC ); ystrtol( vD ); Ensures (regardless of compiler) that the NULL, 0 values are only in there once. This gives the compiler the opportunity to inline as it sees fit (speed/memory tradeoffs). First way, calling strtol 30 times: $ gcc -O2 test.c $ ll a.out 12115 Feb 19 13:02 a.out* $ strip a.out $ ll a.out 3580 Feb 19 13:02 a.out* Second way, calling strtol 30 times via ystrtol function: $ gcc -O2 test.c $ ll a.out 11907 Feb 19 13:03 a.out* $ strip a.out $ ll a.out 3372 Feb 19 13:03 a.out* Call me a miser, but if I can save an average of 6 bytes per call, without adversely affecting readability, I'll do it. Especially when the exact same call, with nearly the exact same parameters, is being executed hundreds of times. In my opinion, the difference between ystrtol and strtol does not require a large number of neural connections to figure out what's going on (especially when other wrappers, like ymalloc, already exist), nor does it add an excessive amount of complexity. In fact, I actually prefer ystrtol for the following reasons: 1. Less typing (typo-prone), or copy/pasting of parameters 2. Less reading (keeps lines shorter) 3. Faster to compile (albeit not noticeable except over time) 4. Saves (albeit cheap) disk space (in CVS) 5. Allows debugging (read: assertions) of all calls to "strtol" 6. Generates smaller bytecode 7. Allows substituting better algorithms. (I used an open_memory and close_memory paradigm in a project [indirect calls to malloc/free], noticed poor performance from malloc, so simply changed open_memory and close_memory to use someone else's open-source memory allocation scheme. By changing two lines of code, I was able to eliminate a substantial amount of memory fragmentation that I didn't even realize would occur in the first place. This is a Good Thing.) "better" could mean faster, less memory, more portable, etc. Like I said, it's easy to get mired in a myriad of details -- the main point I'm trying to make is be consistent. This can be done by establishing a living programming guidelines document for the project. Make it required reading for developers, that stipulates the desire for a consistent codebase. Sincerely, Dave Jarvis -- Invoq Systems Inc. t. 250.380.0304 e. djarvis@invoqsystems.com w. http://www.invoqsystems.com From iain_thekillermunchkin at yahoo.co.uk Thu Feb 19 21:32:38 2004 From: iain_thekillermunchkin at yahoo.co.uk (Iain Jackson) Date: Thu Feb 19 21:32:41 2004 Subject: [Y-devel] Media Streaming In-Reply-To: <403527D8.4050406@yahoo.co.uk> References: <403527D8.4050406@yahoo.co.uk> Message-ID: <40352B76.4060206@yahoo.co.uk> Maybe I should finished reading the PDF, with it in Chapter 10. Iain Jackson wrote: > After having a look through the documentation, some ideas have popped > into my head - so I thought I'd share. > > With the Y Server handling the Window and Widget drawing it would be > not to be too much of a leap to allow remote media streaming across > the network connection. A Media Widget could be running on the server, > created by the client on another computer and media could be remotely > streamed and played back using the client's resources - themed as well > depending on the implementation. A bit like running XMMS on your > friends music collection half way across the internet transparently > via SSH, which could be useful in thin clients and some distributed > applications. I doubt this kind of thing would be good for the initial > release, but could be an idea for future releases. > > And yeah, hi to everyone else on the list. > > Iain > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel > From smartly at gala.net Thu Feb 19 19:58:22 2004 From: smartly at gala.net (Alexey Boyko) Date: Thu Feb 19 21:50:24 2004 Subject: [Y-devel] i18n In-Reply-To: <20040220032139.GB7133@hawk.stan.net> References: <20040220032139.GB7133@hawk.stan.net> Message-ID: <200402192158.22151.smartly@gala.net> > I'd like to discuss i18n support. > So, if all in-server strings are wchar_t (i think it is > implementation-dependen), we must put conversions it this places: 1. > server->client > 2. client->server Why convert? Client also may work in wchar_t, and it is client problem how to convert from local encoding to UCS4 (mbstowcs/wcstombs). I think protocol also must pass strings in UCS4. > 3. server->glyph Fonts in unicode? From cupycake_jay at yahoo.com Thu Feb 19 21:54:11 2004 From: cupycake_jay at yahoo.com (Jay Sprenkle) Date: Thu Feb 19 21:54:47 2004 Subject: [Y-devel] Technical Notes In-Reply-To: <40352B48.9030306@invoqsystems.com> Message-ID: <20040219215411.17844.qmail@web41502.mail.yahoo.com> --- Dave Jarvis wrote: > > I guess the main point I was trying to make, which > got mired in mucky > details, was that it is better to step in at the > start of a project with > a list of guidelines and styles, rather than trying > to get everyone to adopt it later. snip > > Like I said, it's easy to get mired in a myriad of > details -- the main > point I'm trying to make is be consistent. I've had something similar on everything I've been on. I don't agree with you on one or two small details but IMHO a good idea. Since you can't compel agreement why don't you make up a document with your exact proposed standards and put it up for comments and adopt what the concensus agrees on? Your first email sounds like a good start. __________________________________ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools From nitinskumar at yahoo.com Thu Feb 19 22:02:03 2004 From: nitinskumar at yahoo.com (Nitin S Kumar) Date: Thu Feb 19 22:02:16 2004 Subject: [Y-devel] Technical Notes In-Reply-To: <20040219215411.17844.qmail@web41502.mail.yahoo.com> Message-ID: <20040219220203.55802.qmail@web10702.mail.yahoo.com> Hi --- Jay Sprenkle wrote: > > --- Dave Jarvis wrote: > > > > I guess the main point I was trying to make, which > > got mired in mucky > > details, was that it is better to step in at the > > start of a project with > > a list of guidelines and styles, rather than > trying > > to get everyone to adopt it later. > > snip > > > > > Like I said, it's easy to get mired in a myriad of > > details -- the main > > point I'm trying to make is be consistent. > > I've had something similar on everything I've been > on. > I don't agree with you on one or two small details > but IMHO a good idea. Since you can't compel > agreement why don't you make up a document with your > exact proposed standards and put it up for comments > and adopt what the concensus agrees on? Your first > email sounds like a good start. > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > http://antispam.yahoo.com/tools > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel __________________________________ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools From nitinskumar at yahoo.com Thu Feb 19 22:04:12 2004 From: nitinskumar at yahoo.com (Nitin S Kumar) Date: Thu Feb 19 22:04:22 2004 Subject: [Y-devel] Technical Notes Message-ID: <20040219220412.88971.qmail@web10703.mail.yahoo.com> Hi You should probably use the Linux kernel coding style guidelines as a start (linux/Documentation/CodingStyle). Nitin > --- Jay Sprenkle wrote: > > > > --- Dave Jarvis wrote: > > > > > > I guess the main point I was trying to make, > which > > > got mired in mucky > > > details, was that it is better to step in at the > > > start of a project with > > > a list of guidelines and styles, rather than > > trying > > > to get everyone to adopt it later. > > > > snip > > > > > > > > Like I said, it's easy to get mired in a myriad > of > > > details -- the main > > > point I'm trying to make is be consistent. > > > > I've had something similar on everything I've been > > on. > > I don't agree with you on one or two small details > > but IMHO a good idea. Since you can't compel > > agreement why don't you make up a document with > your > > exact proposed standards and put it up for > comments > > and adopt what the concensus agrees on? Your first > > email sounds like a good start. > > > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Mail SpamGuard - Read only the mail you > want. > > http://antispam.yahoo.com/tools > > > > _______________________________________________ > > Y-devel mailing list > > Y-devel@y-windows.org > > http://www.y-windows.org/mailman/listinfo/y-devel > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > http://antispam.yahoo.com/tools > __________________________________ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools From core at enodev.com Thu Feb 19 22:09:13 2004 From: core at enodev.com (Shawn) Date: Thu Feb 19 22:09:18 2004 Subject: [Y-devel] compatibility, gtk+, Qt etc Message-ID: <1077228553.24773.20.camel@localhost> Besides porting gtk+ and/or Qt, one thing I see as a major help to wide adoption is compatibility. By that I mean forward and backward. I know everyone is going to say "Sure, as soon as you write it!", but I only want to put some ideas out there to see if someone likes them. When I say forward and backward compatibility, I mean the following: 1. fallbacks in libY (or whatever) that display Y programs' primitives using X11's $DISPLAY via Xlib (or whatever) via some translation framework. This would ensure a Y program can display wherever. 2. Y server able to answer X requests. An example might be an X server written on top of Y, making it not much more than a translation proxy server. This would ensure that Y could replace X w/out crippling users of X programs that have not been ported. So, what do you folks think? Have these ideas been explored? From jpd at dsb.tudelft.nl Thu Feb 19 22:18:26 2004 From: jpd at dsb.tudelft.nl (jpd@dsb.tudelft.nl) Date: Thu Feb 19 22:18:30 2004 Subject: [Y-devel] hello list, bootstrap problem, addenda to the requirements list Message-ID: <20040219221826.GC63497@dsb.tudelft.nl> Ok, so it's late and I really should be going more useful stuff. Ah well. Thanks, Mark, for the heads-up. Hello list. So, got the patch and tried it, but after 15 minutes haven't found it to even configure yet. After installing autoconf-2.5.7 and automake-1.7.5: $ ACLOCAL=aclocal17 ./autogen.sh aclocal: configure.ac: 29: macro `AM_PROG_LIBTOOL' not found in library I'm not very good at the gnu toolchainchainchain, so can anyone lend a hand? Good to see the /bin/sh==bash assumption gone, but now I'm asking to add bash, autoconf, and automake to the list of requirements. As of yet, they are real requirements and not every system has them, at least not by default. Anyway, good to see there's some life in Y after all. :-) -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From p_robin at freemail.hu Thu Feb 19 22:22:16 2004 From: p_robin at freemail.hu (Palotai Robin) Date: Thu Feb 19 22:22:49 2004 Subject: [Y-devel] libY.0 not found Message-ID: <20040220022234.4f37b64d.p_robin@freemail.hu> Hi there, I have some problem getting Y compiled, here are the last lines of error. Where and how should exactly the libY.0 be generated? --- Making all in libY make[1]: Entering directory `/tmp/Y--devel--0.2--patch-1/libY' make[2]: Entering directory `/tmp/Y--devel--0.2--patch-1/libY' /bin/sh ../libtool --mode=link gcc -g -O3 -pipe -fexpensive-optimizations -Wall -Werror -Wl,-rpath,`gcc -print-file-name=libgcc_s.so | sed -e 's/[^/]*$//'` -o libY.la -rpath /usr/local/lib Y/libY.lo Y/unix.lo Y/tcp.lo Y/select.lo rm -fr .libs/libY.la .libs/libY.* .libs/libY.* gcc -shared Y/libY.lo Y/unix.lo Y/tcp.lo Y/select.lo -Wl,-rpath -Wl,-soname -Wl,libY.0 -o .libs/libY.0.0.0 /usr/bin/ld: cannot open libY.0: No such file or directory ... --- Robin ---------------------- | System ---------------------- | Debian Woody 2.4.23 | gcc 2.95.4 | glibc 2.2.5-11.5 ---------------------- From jared.hanson at helixent.com Thu Feb 19 22:11:38 2004 From: jared.hanson at helixent.com (jared.hanson@helixent.com) Date: Thu Feb 19 22:25:17 2004 Subject: [Y-devel] Toolkits? In-Reply-To: <9A44453E-631F-11D8-A893-003065FC262A@mac.com> References: <1077216816.12796.7.camel@localhost.localdomain><22780.24.220.19.13.1077222461.squirrel@webmail1.hrnoc.net> <9A44453E-631F-11D8-A893-003065FC262A@mac.com> Message-ID: <36073.24.220.19.13.1077228698.squirrel@webmail1.hrnoc.net> > One of the interesting things in the design of the Mac OS X window > system is that the window system itself contains no widget sets, and is > even graphics-model agnostic. Drawing is done by client-side > frameworks, such as Quartz (PDF-like vectors and images) and QuickDraw > (Xlib-like raster oriented primitives). Widget sets are built on top > of the client-side drawing primitives in a higher layer, such as the > Cocoa AppKit or Carbon ToolBox. > > ... > > Apple's custom widget sets are built on top of the same client side > graphics routines as the standard tool sets. In the Cocoa environment, > customized subclasses of standard UI elements (NSView, NSControl) are > typically used to gain custom appearance and behavior on top of common > functionality. > After sending in my reply, I got to thinking about various widget related items. You are correct in that most applications end up subclassing a standard widget and overriding its drawing routines and whatever other custom behaviour it might need. As an example, take a look at the source list in iTunes. The background of the selected row is rendered with a gradient as opposed to a solid color. Now, I'm planning on looking more into the Y code later tonight, so forgive me if this question sounds ignorant. Is it feasable to override certain methods of a base widget with custom ones when the base widget resides in the server and the custom widget resides in the client? If not, that could be a big downfall of server side widgets. It is not reasonable to assume that the server will provide all the little widget variations that will be used in the "real world." Anyone who has ever done any GUI work knows that even the provided widgets usually end up as base classes to what is actually used. That being said, some mechanism would be nice to let applications override standard widgets with custom routines. I could be way off on this, and what I am concerned about is already possible. If so, I would appreciate it if someone could offer up an explanation as to how this works. If not, does anyone have any ideas as to how it could/should work? From andreas.bierfert at lowlatency.de Thu Feb 19 22:29:04 2004 From: andreas.bierfert at lowlatency.de (Andreas Bierfert) Date: Thu Feb 19 22:28:28 2004 Subject: [Y-devel] sigc++ problems Message-ID: <20040219232904.36fb8fb1@alkaid> Hi, after reading through the archives I found a thread concerning build problems on gentoo. I do use fedora on my workstation and gentoo on spare fileserver so I decided to take a deeper look into the situation. Fedora (to be exact Fedora Extras) currently ships libsigc++-1.2.5 whereas gentoo does ship a 1.0.x version and a 1.2.x version. Building on gentoo with 1.2.x does not work as found out earlier (same on fedora) but with 1.0.x the build works. Indeed sigc-config is gone in 1.2.x version an stuff now is added to pkg-config. After I build a little wrapper script on fedora I ran in to different problems: It seems that some of the header files are gone now (or seem to be renamed) eg. signal_system.h vs signal.h. So --disable-libsigctest does not do any good... Would be great if somebody with more insight ;) could fix that ... Andreas -- Andreas Bierfert | http://awbsworld.de | GPG: C58CF1CB andreas.bierfert@lowlatency.de | http://lowlatency.de | signed/encrypted phone: +49 2402 102373 | () ASCII ribbon campaign | mail preferred cell: +49 172 9789968 | /\ against HTML mail | From jstephen at gwds.net Thu Feb 19 22:28:12 2004 From: jstephen at gwds.net (James Stephenson) Date: Thu Feb 19 22:29:26 2004 Subject: [Y-devel] hello list, bootstrap problem, addenda to the requirements list References: <20040219221826.GC63497@dsb.tudelft.nl> Message-ID: <014d01c3f737$a8de51b0$0e4a140a@C5000188> Hello, new to the list myself, and I'm eager to start looking at helping development in any way I can. In response to your post, I've been having similar problems on FreeBSD, with the different versions of autoconf and automake. Are you using BSD? Anyway, I found that I needed at least libtool v1.5, and i had to run that before anything with the --force tag specified. Then I ran autoheader257, automake17 -a, and autoconf257. After that, I was finally able to appropriately configure it. Just make sure you have the most recent versions of libtool, automake, and autoconf, and use those for every step. Hope this helps! James ----- Original Message ----- From: To: Sent: Thursday, February 19, 2004 5:18 PM Subject: [Y-devel] hello list, bootstrap problem,addenda to the requirements list > Ok, so it's late and I really should be going more useful stuff. Ah well. > > Thanks, Mark, for the heads-up. Hello list. > > So, got the patch and tried it, but after 15 minutes haven't found it > to even configure yet. After installing autoconf-2.5.7 and automake-1.7.5: > > $ ACLOCAL=aclocal17 ./autogen.sh > aclocal: configure.ac: 29: macro `AM_PROG_LIBTOOL' not found in library > > I'm not very good at the gnu toolchainchainchain, so can anyone lend a hand? > > Good to see the /bin/sh==bash assumption gone, but now I'm asking to add > bash, autoconf, and automake to the list of requirements. As of yet, they > are real requirements and not every system has them, at least not by > default. > > Anyway, good to see there's some life in Y after all. :-) > > > -- > j p d (at) d s b (dot) t u d e l f t (dot) n l . > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel > From dsnowdon at club-internet.fr Thu Feb 19 22:34:56 2004 From: dsnowdon at club-internet.fr (Dave Snowdon) Date: Thu Feb 19 22:35:11 2004 Subject: [Y-devel] Two-handed input? Message-ID: <40353A10.3030403@club-internet.fr> Hi folks Haven't read through the source yet, but did read Mark's thesis. Unless I've misundertood (very possible) there is an assumption that only one pointing device / cursor will be needed. I wondered if anyone had been thinking of generalising this to allow multiple pointing devices. One application of this would be to support two-handed input in the future (or some types of collaborative applications). Michel Beaudouin-Lafon & Wendy Mackay have done some interesting stuff with two-handed user interfaces and also produced some interesting widgets (like toolglasses) that are adapted to two-handed input. For example: http://www-ihm.lri.fr/~mackay/pdffiles/PetriNets2000.CPNTools.pdf M. Beaudouin-Lafon, W.E. Mackay, P. Andersen, P. Janecek, M. Jensen, M. Lassen, K. Lund, K. Mortensen, S. Munck, A. Ratzer, K. Ravn, S. Christensen, K. Jensen. CPN/Tools: A Post-WIMP Interface for Editing and Simulating Coloured Petri Nets. In J-M Colom, M. Koutny (eds.), Proc. 22nd International Conference on Application and Theory of Petri Nets (ICATPN'2001), Newcastle upon Tyne (England), June 2001, Lecture Notes in Computer Science, Springer-Verlag, 200. cheers Dave -- This mind intentionally left blank. From durin at sbcglobal.net Thu Feb 19 21:21:52 2004 From: durin at sbcglobal.net (Augie Fackler) Date: Thu Feb 19 22:39:13 2004 Subject: [Y-devel] Technical Notes Message-ID: > 1. Make a consistent source style. Document it. Don't mix tabs and > spaces (I usually suggest 2 or 4 spaces, 8 is unwieldy). My I suggest using one tab for an indent? I really prefer 8 space indents, but a lot of people prefer less, so this way we can all be happy. 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);} 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 matt at mattsscripts.co.uk Thu Feb 19 22:58:50 2004 From: matt at mattsscripts.co.uk (Matt Wilson) Date: Thu Feb 19 22:58:54 2004 Subject: [Fwd: Re: [Y-devel] Technical Notes] Message-ID: <1077231529.9201.122.camel@aragorn.pissedup.com> D'oh! Reply-To: wasn't set :) On Thu, 2004-02-19 at 22:04, Nitin S Kumar wrote: > Hi > > You should probably use the Linux kernel coding style > guidelines as a start > (linux/Documentation/CodingStyle). I'd definitely have to disagree with that for a few reasons; * 8 character tabs (rather than 2 or 4, 2 being my personal pref.) * tabs (rather than spaces) * braces positioning The reason I mention the positioning of braces is that when you have lots of code, readability is a massive issue and; if ( .. ) { // do something } takes much longer to read (in terms of skimming through source looking for something) than the alternative; if ( ... ) { // do something } Likewise for other constructs; 'for, 'while, 'do' and function definitions. Though I'm sure I'll receive some flame material for saying that :P > Nitin > > > > --- Jay Sprenkle wrote: > > > > > > --- Dave Jarvis wrote: > > > > > > > > I guess the main point I was trying to make, > > which > > > > got mired in mucky > > > > details, was that it is better to step in at the > > > > start of a project with > > > > a list of guidelines and styles, rather than > > > trying > > > > to get everyone to adopt it later. > > > > > > snip > > > > > > > > > > > Like I said, it's easy to get mired in a myriad > > of > > > > details -- the main > > > > point I'm trying to make is be consistent. > > > > > > I've had something similar on everything I've been > > > on. > > > I don't agree with you on one or two small details > > > but IMHO a good idea. Since you can't compel > > > agreement why don't you make up a document with > > your > > > exact proposed standards and put it up for > > comments > > > and adopt what the concensus agrees on? Your first > > > email sounds like a good start. > > > > > > > > > > > > __________________________________ > > > Do you Yahoo!? > > > Yahoo! Mail SpamGuard - Read only the mail you > > want. > > > http://antispam.yahoo.com/tools > > > > > > _______________________________________________ > > > Y-devel mailing list > > > Y-devel@y-windows.org > > > http://www.y-windows.org/mailman/listinfo/y-devel > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Mail SpamGuard - Read only the mail you want. > > http://antispam.yahoo.com/tools > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail SpamGuard - Read only the mail you want. > http://antispam.yahoo.com/tools > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel -- http://www.mattsscripts.co.uk/ - A great source for free CGI and stuff The quality of a blow-job is determined by the length of sheet you have to pull out of your ass. From durin at sbcglobal.net Thu Feb 19 23:32:40 2004 From: durin at sbcglobal.net (Augie Fackler) Date: Thu Feb 19 23:32:46 2004 Subject: [Y-devel] Possibly stupid question Message-ID: libtoolize won't work, complaining that it needs a configure.in file. Do I need a newer/older version? I have 1.3.5 installed now. TIA From natasha at acm.org Thu Feb 19 23:56:28 2004 From: natasha at acm.org (Seth E. Randall) Date: Fri Feb 20 00:01:42 2004 Subject: [Y-devel] hello list, bootstrap problem, addenda to the requirements list In-Reply-To: <014d01c3f737$a8de51b0$0e4a140a@C5000188> References: <20040219221826.GC63497@dsb.tudelft.nl> <014d01c3f737$a8de51b0$0e4a140a@C5000188> Message-ID: <40354D2C.6090303@acm.org> I've been working on RPMS for Y and this is the line I had to use: ACLOCAL=aclocal-1.7 AUTOMAKE=automake-1.7 ./autogen.sh Obviously you need version 1.7 of automake. I also have autoconf 2.59. Seth. James Stephenson wrote: > Hello, new to the list myself, and I'm eager to start looking at helping > development in any way I can. > > In response to your post, I've been having similar problems on FreeBSD, with > the different versions of autoconf and automake. Are you using BSD? > > Anyway, I found that I needed at least libtool v1.5, and i had to run that > before anything with the --force tag specified. Then I ran autoheader257, > automake17 -a, and autoconf257. After that, I was finally able to > appropriately configure it. Just make sure you have the most recent > versions of libtool, automake, and autoconf, and use those for every step. > > Hope this helps! > > James > > From richard at playford.net Fri Feb 20 00:10:56 2004 From: richard at playford.net (Richard Hills) Date: Fri Feb 20 00:11:30 2004 Subject: [Y-devel] alpha blending in widgets Message-ID: <1077235855.10746.93.camel@localhost> hey, I was wondering... when a window is in the background we use alpha blending to make it appear partially transparent. However, when you put a window behind the terminal, then put the terminal and the behind window in the background, you can see through the window *decorations* but not through the terminal itself. Now... After searching through the code, I find that the alpha blending for the window decoration is done seperately from everything else. The result is that, for example, although yclock sometimes looks transparent, the hands of the clock are not! Should not the alpha blending for windows only be applied when they are finally being pasted onto the screen, and hence keep it entirely seperate from how the widgets are actually drawn? We'd then combine a widgets assigned "alpha-blendyness" with the extra bit of blendyness needed because it's in the background. Any ideas? Richard From eric at sandall.us Fri Feb 20 00:33:47 2004 From: eric at sandall.us (Eric Sandall) Date: Fri Feb 20 00:27:41 2004 Subject: [Y-devel] Build layout Message-ID: <1077237227.403555eba3753@horde.sandall.us> Hi all, I'm wondering if it would be possible to rewrite the configure/install steps so that you can just run one ./configure && make && make install from the topdir. This is how most packages do it (well, the easy ones, anyways ;)) and would make installing Y much easier. What would be needed (vaguely, I'm not a Makefile/configure wizard) is that the make processes do the libraries/packages in-order, install the libs to $topdir/.libs, and for the necessary packages add $topdir/.libs to LDFLAGS, then when it's all done and linked, run `make install` in all of the subdirs. Well, that's the general idea, anyways. ;) -sandalle -- PGP Key Fingerprint: FCFF 26A1 BE21 08F4 BB91 FAED 1D7B 7D74 A8EF DD61 http://search.keyserver.net:11371/pks/lookup?op=get&search=0xA8EFDD61 -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS/E/IT$ d-- s++:+>: a-- C++(+++) BL++++VIS>$ P+(++) L+++ E-(---) W++ N+@ o? K? w++++>-- O M-@ V-- PS+(+++) PE(-) Y++(+) PGP++(+) t+() 5++ X(+) R+(++) tv(--)b++(+++) DI+@ D++(+++) G>+++ e>+++ h---(++) r++ y+ ------END GEEK CODE BLOCK------ Eric Sandall | Source Mage GNU/Linux Developer eric@sandall.us | http://www.sourcemage.org/ http://eric.sandall.us/ | SysAdmin @ Inst. Shock Physics @ WSU http://counter.li.org/ #196285 | http://www.shock.wsu.edu/ ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From drizzt321 at phpfreaks.com Fri Feb 20 00:48:17 2004 From: drizzt321 at phpfreaks.com (Aaron) Date: Fri Feb 20 00:47:44 2004 Subject: [Y-devel] Build layout In-Reply-To: <1077237227.403555eba3753@horde.sandall.us> References: <1077237227.403555eba3753@horde.sandall.us> Message-ID: <40355951.6080805@phpfreaks.com> Eric Sandall wrote: > Hi all, > > I'm wondering if it would be possible to rewrite the configure/install steps so > that you can just run one ./configure && make && make install from the topdir. > This is how most packages do it (well, the easy ones, anyways ;)) and would > make installing Y much easier. What would be needed (vaguely, I'm not a > Makefile/configure wizard) is that the make processes do the libraries/packages > in-order, install the libs to $topdir/.libs, and for the necessary packages add > $topdir/.libs to LDFLAGS, then when it's all done and linked, run `make > install` in all of the subdirs. > > Well, that's the general idea, anyways. ;) > > -sandalle > actually, thats all I really had to do to install it. did you need to do it differently? Aaron ------------------------------------------------------------------ libiterm-0.5-mbt for debian and some basic Y FAQs, http://www.darkobjects.net/~drizzt/libiterm From drizzt321 at phpfreaks.com Fri Feb 20 00:57:10 2004 From: drizzt321 at phpfreaks.com (Aaron) Date: Fri Feb 20 00:56:32 2004 Subject: [Y-devel] hello list, bootstrap problem, addenda to the requirements list In-Reply-To: <40354D2C.6090303@acm.org> References: <20040219221826.GC63497@dsb.tudelft.nl> <014d01c3f737$a8de51b0$0e4a140a@C5000188> <40354D2C.6090303@acm.org> Message-ID: <40355B66.6050000@phpfreaks.com> Seth E. Randall wrote: > I've been working on RPMS for Y and this is the line I had to use: > > ACLOCAL=aclocal-1.7 AUTOMAKE=automake-1.7 ./autogen.sh > > Obviously you need version 1.7 of automake. I also have autoconf 2.59. > > Seth. I don't know if I faked it out, or whether the automake dir(I also have an automake1.4 dir) is 1.7 because I know I have both versions installed(somehow, some debian weirdness I think). anyways I simply made a symlink from the automake dir to an automake-1.7 which is what it wanted, and it worked just fine for me. Aaron From durin at sbcglobal.net Fri Feb 20 01:10:16 2004 From: durin at sbcglobal.net (Augie Fackler) Date: Fri Feb 20 01:10:23 2004 Subject: [Y-devel] aclocal barfs Message-ID: <8B0BEA02-6341-11D8-B15F-000502673BF6@sbcglobal.net> I am using aclocal17 from automake 1.7.5, but AM_PROG_LIBTOOL isn't defined, and neither is AC_PROG_LIBTOOL. I do have libtool 1.5.2 installed. What do I need to do here? I am baffled by the autotools. TIA, Augie From drizzt321 at phpfreaks.com Fri Feb 20 01:24:26 2004 From: drizzt321 at phpfreaks.com (Aaron) Date: Fri Feb 20 01:23:56 2004 Subject: [Y-devel] aclocal barfs In-Reply-To: <8B0BEA02-6341-11D8-B15F-000502673BF6@sbcglobal.net> References: <8B0BEA02-6341-11D8-B15F-000502673BF6@sbcglobal.net> Message-ID: <403561CA.1040101@phpfreaks.com> Augie Fackler wrote: > I am using aclocal17 from automake 1.7.5, but AM_PROG_LIBTOOL isn't > defined, and neither is AC_PROG_LIBTOOL. I do have libtool 1.5.2 > installed. What do I need to do here? I am baffled by the autotools. > > TIA, > Augie > hmm...From what I have seen there is an automake/autoconf error when you configure if the links in the autoconf/ are incorrect, but that is just a one line error, not multiple lines. Aaron ------------------------------------------------------------------ libiterm-0.5-mbt for debian and some basic Y FAQs, http://www.darkobjects.net/~drizzt/libiterm From stresscrash at kerneled.com Fri Feb 20 01:54:28 2004 From: stresscrash at kerneled.com (Mark Magnusson) Date: Fri Feb 20 01:54:42 2004 Subject: [Y-devel] Compiling problems with sigc-config Message-ID: <403568D4.9090504@kerneled.com> I am having problems compiling y, the config script claims that it cannot find sigc-config, and i KNOW that i have libsigc++ installed. I checked out the libsigc++ ChangeLog and found this: 2002-04-17 Murray Cumming * Removed sigc-config and sigc++.m4. People should use pkg-config. We don't need 2 ways to do the same thing. How exactly would i get around this.... From durin at sbcglobal.net Fri Feb 20 02:01:47 2004 From: durin at sbcglobal.net (Augie Fackler) Date: Fri Feb 20 02:01:59 2004 Subject: [Y-devel] Compiling problems with sigc-config In-Reply-To: <403568D4.9090504@kerneled.com> Message-ID: > How exactly would i get around this.... You could disable the libsigc++ check on configure(I think there is an option for that), or you could get an older version of libsigc++ 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 owen at kamala.ath.cx Thu Feb 19 21:24:11 2004 From: owen at kamala.ath.cx (Owen Becker) Date: Fri Feb 20 02:25:42 2004 Subject: [Y-devel] startY problems Message-ID: I compiled the latest snapshot of Y-Windows on Linux. Everything went okay, however when I try to run startY I get: Reading (header) from Y Socket: Success Aborted I can run the Y binary by itself, but when I try to launch yiterm or any other of the Y apps, I get the same error. TIA, Owen From drizzt321 at phpfreaks.com Fri Feb 20 02:42:22 2004 From: drizzt321 at phpfreaks.com (Aaron) Date: Fri Feb 20 02:41:48 2004 Subject: [Y-devel] startY problems In-Reply-To: References: Message-ID: <4035740E.7020800@phpfreaks.com> Owen Becker wrote: > I compiled the latest snapshot of Y-Windows on Linux. Everything went > okay, however when I try to run startY I get: > Reading (header) from Y Socket: Success > Aborted > > I can run the Y binary by itself, but when I try to launch yiterm or any > other of the Y apps, I get the same error. TIA, > Owen > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel You need the impact font from the MS Core True Type Fonts, look at http://corefonts.sf.net for information on how to install them under linux. -------------------------------------------------------------------- Some intro Y FAQs at http://www.darkobjects.net/~drizzt/libiterm From spiralman at softhome.net Fri Feb 20 02:53:11 2004 From: spiralman at softhome.net (Thomas) Date: Fri Feb 20 02:53:40 2004 Subject: [Y-devel] compatibility, gtk+, Qt etc In-Reply-To: <1077228553.24773.20.camel@localhost> References: <1077228553.24773.20.camel@localhost> Message-ID: <200402192153.11094.spiralman@softhome.net> first, since this is my first post to the list, hello On Thursday 19 February 2004 05:09, Shawn wrote: > 1. fallbacks in libY (or whatever) that display Y programs' primitives > using X11's $DISPLAY via Xlib (or whatever) via some translation > framework. This would ensure a Y program can display wherever. I was just thinking about this myself. Its been a while since i last read the documentation and code, but i dont remember compatibility in this manner being discussed. as i said, its been a while since i last read the code, but i might be interested in working on this if people think it might be a good idea. I am also interested in working on developing and expanding the widget set. Thomas Stephens spiralman@softhome.net > So, what do you folks think? Have these ideas been explored? > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel From mkurjano at cc.gatech.edu Fri Feb 20 03:05:07 2004 From: mkurjano at cc.gatech.edu (Matt Kurjanowicz) Date: Fri Feb 20 03:00:15 2004 Subject: [Y-devel] compatibility, gtk+, Qt etc In-Reply-To: <200402192153.11094.spiralman@softhome.net> Message-ID: <200402200300.i1K300gb001339@oscar.cc.gatech.edu> Hi there, This is my first post to the list as well - howdy the work looks really good. I am willing to help out on this (this would be my preferred area). Also, what about trying from the get-go to get multi-platform compatibility - like Mac, Windows etc? I doubt that Mac should be too hard, but what about windows? What about some way to run Y on top of X? This was discussed in an earlier post. Would this just require Y wrappers for to Xlib? -Matt Matt Kurjanowicz -- Matthew Kurjanowicz CS 1050A TA mkurjano@cc.gatech.edu -----Original Message----- From: y-devel-bounces@y-windows.org [mailto:y-devel-bounces@y-windows.org] On Behalf Of Thomas Sent: Thursday, February 19, 2004 9:53 PM To: y-devel@y-windows.org Subject: Re: [Y-devel] compatibility, gtk+, Qt etc first, since this is my first post to the list, hello On Thursday 19 February 2004 05:09, Shawn wrote: > 1. fallbacks in libY (or whatever) that display Y programs' primitives > using X11's $DISPLAY via Xlib (or whatever) via some translation > framework. This would ensure a Y program can display wherever. I was just thinking about this myself. Its been a while since i last read the documentation and code, but i dont remember compatibility in this manner being discussed. as i said, its been a while since i last read the code, but i might be interested in working on this if people think it might be a good idea. I am also interested in working on developing and expanding the widget set. Thomas Stephens spiralman@softhome.net > So, what do you folks think? Have these ideas been explored? > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel _______________________________________________ Y-devel mailing list Y-devel@y-windows.org http://www.y-windows.org/mailman/listinfo/y-devel From fret at memecode.com Fri Feb 20 02:59:58 2004 From: fret at memecode.com (Matthew Allen) Date: Fri Feb 20 03:00:36 2004 Subject: [Y-devel] License Message-ID: The current license for Y is the GPL. This is going to limit the types of programs you can run on Y to GPL compatible programs, is it not? There would never be commercial / closed source apps for Y, which I think is a pity, because in my opinion there is benefit in both the free and closed model of software development and we shouldn't lock out either. This also precludes any closed source video drivers ala nVidia and ATI. So in the interest of building a system capable of running anything, would it not be a better idea to use the LGPL? It's not that different really. I personally write both types of software, and if I can't link closed source against Y libs then I won't get involved. Not because I don't want to contribute code, because I would, but because I want to sell applications for Y. Everyone keeps comparing Y against X in purely technical terms but if you lock out all the closed source vendors then Y will never have a chance against X. Even though X sucks, it's license is pretty open... and so people won't be worried about putting their product on it. Before you shout me down, ranting about free libre software and all the benefits thereof. I would like to mention out of the 3 GUI systems in current widespread usage (Win32, MacOSX + X11) all 3 allow closed source to link against their libraries and run on them. When (not if) Linux becomes successful a lot of companies will bring their software (closed source) to Linux. We might want to be ready to let them in. Personally I'd prefer they bring their product to Y and not X, for all the technical reasons I alluded to earlier. Sincerly -- Matthew Allen (fret@memecode.com) From kempa at kwic.com Fri Feb 20 03:02:59 2004 From: kempa at kwic.com (Aaron Kemp) Date: Fri Feb 20 03:02:05 2004 Subject: [Y-devel] Compiling problems with sigc-config In-Reply-To: <403568D4.9090504@kerneled.com> References: <403568D4.9090504@kerneled.com> Message-ID: <1077246179.12796.10.camel@localhost.localdomain> On Thu, 2004-02-19 at 20:54, Mark Magnusson wrote: > * Removed sigc-config and sigc++.m4. People should use > pkg-config. We don't need 2 ways to do the same thing. > > > How exactly would i get around this.... I had the same problem initially, so I installed libsigc++ 1.0.4 instead of 1.2.X. The old (1.0.X series) use sigc-config not pkc-config. (Note: I still haven't gotten it to compile, I'm getting errors about undefined constants I haven't looked into, but I don't think it's sigc related.) HTH Aaron -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040219/740b323c/attachment.bin From krism at evilpen.net Fri Feb 20 03:00:17 2004 From: krism at evilpen.net (Kristopher Matthews) Date: Fri Feb 20 03:04:15 2004 Subject: [Y-devel] startY problems In-Reply-To: <4035740E.7020800@phpfreaks.com> References: <4035740E.7020800@phpfreaks.com> Message-ID: > You need the impact font from the MS Core True Type Fonts, look at > http://corefonts.sf.net for information on how to install them under linux. Please allow my erm, rant?, for being somewhat anal, but.. WHY?! Okkkay, I can understand requiring a font [in development code], but.. A Microsoft font? How can we be sure you're not a softie out to screw over the OSS community by wasting our time? erm. :) This is something I'd like to work on, e.g. font selection / configuratino for the "base" apps [e.g. term, etc], and perhaps a standardized font selection setup? Any advice[1]/guidance/this-is-already-being-done-so-begone-troll? ;) Thanks, Kris! [1] I mean, what do you want out of such a system, what are you envisioning? From fret at memecode.com Fri Feb 20 03:05:38 2004 From: fret at memecode.com (Matthew Allen) Date: Fri Feb 20 03:06:12 2004 Subject: [Y-devel] Various things... References: <1077200841.4034c7c9579bf@webmail.lanzone.be> Message-ID: <1ZT32T111E5W3.1139372809QA9XKX@memecode.com> ---------- Original Message ---------- To: Matthew Allen (fret@memecode.com) From: (matje@lanzone.be) Subject: Re: [Y-devel] Various things... Date: 20/2/2004 1:27:21a >> Ie an email client, ftp client, IDE, text >> editor, screen magnifier and a file manager. The file manager would be >> the real win to get running on Y, because it's a core desktop app. >Can you show us some screenshots of your apps? Have a look in these directories: http://memecode.com/images/scribe/ http://memecode.com/images/lgiide/ http://memecode.com/images/lgires/ http://memecode.com/images/ifile/ regards -- Matthew Allen (fret@memecode.com) (http://www.memecode.com) From stresscrash at kerneled.com Fri Feb 20 03:12:43 2004 From: stresscrash at kerneled.com (Mark Magnusson) Date: Fri Feb 20 03:12:56 2004 Subject: [Y-devel] Compiling problems with sigc-config In-Reply-To: <200402200300.i1K300gb001339@oscar.cc.gatech.edu> References: <200402200300.i1K300gb001339@oscar.cc.gatech.edu> Message-ID: <40357B2B.4020104@kerneled.com> i had to not only install the older version, but i had to hack up the ./configure script as well. Just to get it to configure.. now lets hope it makes. From stresscrash at kerneled.com Fri Feb 20 03:18:05 2004 From: stresscrash at kerneled.com (Mark Magnusson) Date: Fri Feb 20 03:18:13 2004 Subject: [Y-devel] Compiling problems with sigc-config Message-ID: <40357C6D.6040102@kerneled.com> yea, im also having problems with some undefineds, here is the err. output of make: terminal.cc:124: error: `VTK_KP_8' undeclared (first use this function) terminal.cc:126: error: `VTK_KP_9' undeclared (first use this function) terminal.cc:128: error: `VTK_KP_PERIOD' undeclared (first use this function) terminal.cc:130: error: `VTK_KP_DASH' undeclared (first use this function) terminal.cc:132: error: `VTK_KP_ENTER' undeclared (first use this function) terminal.cc:134: error: `VTK_UP' undeclared (first use this function) terminal.cc:136: error: `VTK_DOWN' undeclared (first use this function) terminal.cc:138: error: `VTK_LEFT' undeclared (first use this function) terminal.cc:140: error: `VTK_RIGHT' undeclared (first use this function) terminal.cc:142: error: `VTK_HOME' undeclared (first use this function) terminal.cc:144: error: `VTK_END' undeclared (first use this function) this is obviously shortened, there is a LOT more. From drizzt321 at phpfreaks.com Fri Feb 20 03:23:40 2004 From: drizzt321 at phpfreaks.com (Aaron) Date: Fri Feb 20 03:23:05 2004 Subject: [Y-devel] Debian package for Y Message-ID: <40357DBC.4070603@phpfreaks.com> I just finisyhed building a .deb package for Y. Everything should work alright, but please download it and tell me how it works. Currently it installs everything into /usr/y-base so it won't possibly interfere with anything else, so you'll have to manually run it, or add it to your PATH. I'll use alien to make rpms once I know it works alright. Download it from http://www.darkobjects.net/~drizzt/y-base/ Aaron http://www.darkobjects.net/~drizzt/y-base From stresscrash at kerneled.com Fri Feb 20 03:33:48 2004 From: stresscrash at kerneled.com (Mark Magnusson) Date: Fri Feb 20 03:33:57 2004 Subject: [Y-devel] Y-devel] startY problems Message-ID: <4035801C.9060002@kerneled.com> i am also having problems with starty, basicly the same thing, is there any way i can get it to work without those fonts... it looks like it might be a hassle installing them on my slack box. From drizzt321 at phpfreaks.com Fri Feb 20 03:49:12 2004 From: drizzt321 at phpfreaks.com (Aaron) Date: Fri Feb 20 03:48:36 2004 Subject: [Y-devel] Y-devel] startY problems In-Reply-To: <4035801C.9060002@kerneled.com> References: <4035801C.9060002@kerneled.com> Message-ID: <403583B8.4060107@phpfreaks.com> Mark Magnusson wrote: > i am also having problems with starty, basicly the same thing, is there > any way i can get it to work without those fonts... it looks like it > might be a hassle installing them on my slack box. > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel shouldn't be a hassle, corefonts has a pretty good explaination I believe. not sure, if you do it and find any tweaks, would you consider sending them to me so I can put them in the faq? From natasha at acm.org Fri Feb 20 04:20:58 2004 From: natasha at acm.org (Seth E. Randall) Date: Fri Feb 20 04:21:19 2004 Subject: [Y-devel] startY problems In-Reply-To: References: <4035740E.7020800@phpfreaks.com> Message-ID: <40358B2A.9010708@acm.org> If you're interested, I've attached the patch I use. It changes all the fonts to Luxi Sans which (on my distro at least) comes with XFree. I don't think there's a way to chose them yet though. Kristopher Matthews wrote: >>You need the impact font from the MS Core True Type Fonts, look at >>http://corefonts.sf.net for information on how to install them under linux. > > > Please allow my erm, rant?, for being somewhat anal, but.. WHY?! Okkkay, I > can understand requiring a font [in development code], but.. A Microsoft > font? How can we be sure you're not a softie out to screw over the OSS > community by wasting our time? > > erm. > > :) This is something I'd like to work on, e.g. font selection / > configuratino for the "base" apps [e.g. term, etc], and perhaps a > standardized font selection setup? > > Any advice[1]/guidance/this-is-already-being-done-so-begone-troll? ;) > > > Thanks, > Kris! > > [1] I mean, what do you want out of such a system, what are you > envisioning? > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel > -------------- next part -------------- diff -urN Y-0.1.orig/modules/themes/basic/basic.c Y-0.1/modules/themes/basic/basic.c --- Y-0.1.orig/modules/themes/basic/basic.c 2003-11-02 13:40:08.000000000 -0700 +++ Y-0.1/modules/themes/basic/basic.c 2003-10-30 21:56:46.000000000 -0700 @@ -40,7 +40,7 @@ module -> name = "Basic Theme"; module -> data = &basicTheme; - basicDefaultFont = fontCreate ("Verdana", "Regular", 12); + basicDefaultFont = fontCreate ("Luxi Sans", "Regular", 12); themeAdd (&basicTheme); return 0; diff -urN Y-0.1.orig/modules/themes/basic/window.c Y-0.1/modules/themes/basic/window.c --- Y-0.1.orig/modules/themes/basic/window.c 2003-11-02 13:40:08.000000000 -0700 +++ Y-0.1/modules/themes/basic/window.c 2003-10-30 21:56:46.000000000 -0700 @@ -48,7 +48,7 @@ { /* title bar */ const char *title = objectGetPropertyAsString (windowToObject (window), "title"); - struct Font *font = fontCreate ("Impact", "Regular", 12); + struct Font *font = fontCreate ("Luxi Sans", "Regular", 12); int ascender; int titlex = x + 22; int titley = y + 3; diff -urN Y-0.1.orig/Y/widget/console.c Y-0.1/Y/widget/console.c --- Y-0.1.orig/Y/widget/console.c 2003-10-30 21:53:42.000000000 -0700 +++ Y-0.1/Y/widget/console.c 2003-11-02 13:36:56.000000000 -0700 @@ -225,7 +225,7 @@ struct Console *self = castBack (self_w); int i = 0, j = 0; struct ConsoleChar *cur; - struct Font *font = fontCreate ("Andale Mono", "Regular", 11); + struct Font *font = fontCreate ("Luxi Mono", "Regular", 11); struct Rectangle *painterClip = painterGetClipRectangle (painter); int left = painterClip -> x / self -> charWidth; From tcfelker at mtco.com Fri Feb 20 04:26:03 2004 From: tcfelker at mtco.com (Tom Felker) Date: Fri Feb 20 04:25:04 2004 Subject: [Y-devel] License In-Reply-To: References: Message-ID: <200402192226.03922.tcfelker@mtco.com> Hi, everybody. Getting Slashdotted is great for publicity, yes? On Thursday 19 February 2004 8:59 pm, Matthew Allen wrote: > The current license for Y is the GPL. This is going to limit the types of > programs you can run on Y to GPL compatible programs, is it not? For the client libraries, LGPL is a no-brainer. The server is more interesting - you have to decide if you want to allow closed-source plugins (eg. nVidia drivers). I personally think it's a good idea. Alternately, you could promise that you won't consider plugins to be derived. Other thoughts: have some system established for changing the license in the future - when there are hundreds of people's code in there, it will be difficult otherwise. Also, maybe look into something like the Creative Commons ShareAlike license. IANAL, but it seems basically like the GPL, but more clear. For example, it does warrant ownership of the code, so SCO-of-the-future won't be able to make fun of you for not offering indemnification. -- Tom Felker, - Stop fiddling with the volume knob. Life is like an analogy. From drizzt321 at phpfreaks.com Fri Feb 20 05:01:16 2004 From: drizzt321 at phpfreaks.com (Aaron) Date: Fri Feb 20 05:01:23 2004 Subject: [Y-devel] startY problems In-Reply-To: <4035914C.2010300@acm.org> References: <4035740E.7020800@phpfreaks.com> <40358B2A.9010708@acm.org> <40358E38.5010301@phpfreaks.com> <40359084.1020302@acm.org> <4035915B.80609@phpfreaks.com> <4035914C.2010300@acm.org> Message-ID: <4035949C.2040002@phpfreaks.com> yes, but the top level dir name is wrong, and I think the timestamp would be wrong as well, i've tried to change it, but the most I've ever done is use patch files, so I don't think I'm doing things quite right. the top level dir name of the sources is Y--devel--0.2--patch-1 from the tar.gz. Aaron Seth E. Randall wrote: > It should work fine for 0.2-patch1. Nothing really change in that file > between the two versions. > > Seth. > > Aaron wrote: > >> Oh, and you used 0.1, right? I'm trying to hook it in for 0.2-patch1 >> that is on the y-windows.org site right now >> >> Aaron >> >> Seth E. Randall wrote: >> >>> Go for it. >>> >>> Seth. >>> >>> Aaron wrote: >>> >>>> cool, I'll put it up on my page as an alternate to the font problem. >>>> if you don't mind that is, I'll let them know where I got it ;) >>>> >>>> Aaron >>>> http://www.darkobjects.net/~drizzt/y-base >>>> >>>> >>>> Seth E. Randall wrote: >>>> >>>>> If you're interested, I've attached the patch I use. It changes >>>>> all the fonts to Luxi Sans which (on my distro at least) comes with >>>>> XFree. I don't think there's a way to chose them yet though. >>>>> >>>>> Kristopher Matthews wrote: >>>>> >>>>>>> You need the impact font from the MS Core True Type Fonts, look at >>>>>>> http://corefonts.sf.net for information on how to install them >>>>>>> under linux. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Please allow my erm, rant?, for being somewhat anal, but.. WHY?! >>>>>> Okkkay, I >>>>>> can understand requiring a font [in development code], but.. A >>>>>> Microsoft >>>>>> font? How can we be sure you're not a softie out to screw over the >>>>>> OSS >>>>>> community by wasting our time? >>>>>> >>>>>> erm. >>>>>> >>>>>> :) This is something I'd like to work on, e.g. font selection / >>>>>> configuratino for the "base" apps [e.g. term, etc], and perhaps a >>>>>> standardized font selection setup? >>>>>> >>>>>> Any advice[1]/guidance/this-is-already-being-done-so-begone-troll? ;) >>>>>> >>>>>> >>>>>> Thanks, >>>>>> Kris! >>>>>> >>>>>> [1] I mean, what do you want out of such a system, what are you >>>>>> envisioning? >>>>>> >>>>>> _______________________________________________ >>>>>> Y-devel mailing list >>>>>> Y-devel@y-windows.org >>>>>> http://www.y-windows.org/mailman/listinfo/y-devel >>>>>> >>>>> >>>>> ------------------------------------------------------------------------ >>>>> >>>>> >>>> >>>> >>> >> >> > From core at enodev.com Fri Feb 20 05:08:47 2004 From: core at enodev.com (Shawn) Date: Fri Feb 20 05:08:55 2004 Subject: [Y-devel] compatibility, gtk+, Qt etc In-Reply-To: <200402200300.i1K300gb001339@oscar.cc.gatech.edu> References: <200402200300.i1K300gb001339@oscar.cc.gatech.edu> Message-ID: <1077253726.19620.54.camel@localhost> (you wrote this in Outlook XP? For shame!) Anyway: On Thu, 2004-02-19 at 22:05 -0500, Matt Kurjanowicz wrote: > Also, what about trying from the get-go to get multi-platform compatibility > - like Mac, Windows etc? I doubt that Mac should be too hard, but what > about windows? Well, as far as supporting RDP and other non-native protocols, I wouldn't know why. Maybe supporting NX compression at the Y protocol level. To be honest, though, I don't think you'd have to if you upload widgets and twiddle them remotely. It's the bitmap stuff that could maybe use compression / transcoding plugin based system to get the bandwidth minimized I guess. It would be nice to be able to tell Y "bitmap_compression=jpeg" with a set of compression properties, or, settings for all Y bitmap operations. Y cannot be the one-true-windowing system for all platforms, as if it tried, it would fail. It's a moving target, and it requires you to dumb down your protocol just to fit within the sum total of all restrictions placed on windowing by all the protocols you would want to support. Basically, it's impossible by definition. X does almost as good a job at cross platform as it gets so far. There is no other network transparent windowing framework in wide use today with even half of the supported platforms that X has. Sure, it's pretty much unix type OSes that have X clients, and servers run everywhere, but other protocols are just not analogous. > What about some way to run Y on top of X? This was discussed in an earlier > post. Would this just require Y wrappers for to Xlib? I don't know how familiar you are, but in case I'm reading this right, I'll point out that one of the two "hardwares" Y runs on right now are SDL, which is basically an X window. I was talking about something just off kilter from that. Basically, a Y app loads, and uses some "Y" method to draw a primitive but there is no Y server running. An X compat mode, if enabled, would more than likely mean some Y methods would have to then use Xlib in such a way that things like Y widgets could be rendered with Xlib on the client side, and simple drawings I suppose may get more directly mapped to X counterparts. Seems like a little bit more than wrappers to comparable X functions, because my impression is that Y and X are not really as analogous as that. I can kind of see a couple ways to do it: 1. Something like a protocol proxy could be written which would respond like a fall-back Y server but draw primitives and render widgets to X using X11 or some abstraction on top of it. This method would I guess have the advantage of being able to run the fall-back Y protocol proxy on a remote server, and hence, displaying a Y app, through the better Y protocol over the network, to a remote X server. Y app -> libY sees no Y server and decides on fall-back mode -> use fall-back Y server (the proxy at Y display spec.) ///network transparency happens inside Y guts/// -> Y protocol proxy uses X11 to display primitive or renders widget to some buffer if needed, then draws the buffer using X11 2. Slightly lighter version of Y server widget handling could be implemented in the client lib which would use X11 to actually display primitives upon failure to connect to actual Y server. I'd think the only way to both be compatible with X and have server side widgets would be to support the widgets client side as well... I think this might already be part of Y's design... I know it was talked about in Xouvert. Y app -> libY sees no Y server and decides on fall-back mode -> Y fall-back method uses X11 to display primitive or renders widget to some buffer if needed, then draws using X11 ///network transparency happens inside X guts/// So... Have I shown my ignorance yet? Do I show any insight? Is this all wheel re-invention? From kempa at kwic.com Fri Feb 20 05:15:58 2004 From: kempa at kwic.com (Aaron Kemp) Date: Fri Feb 20 05:15:12 2004 Subject: [Y-devel] Compiling problems with sigc-config In-Reply-To: <40357C6D.6040102@kerneled.com> References: <40357C6D.6040102@kerneled.com> Message-ID: <1077254158.26553.2.camel@localhost.localdomain> On Thu, 2004-02-19 at 22:18, Mark Magnusson wrote: > terminal.cc:142: error: `VTK_HOME' undeclared (first use this function) > terminal.cc:144: error: `VTK_END' undeclared (first use this function) > > this is obviously shortened, there is a LOT more. Install libiterm (available from http://www.y-windows.org/downloads.html at the bottom). Unpack the archive and enter the 'lib' subdirectory, ./configure && make && make install && ldconfig Then back into the Y tree and rebuild. The errors should go away, they did for me. HTH, Aaron -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040220/e6280f7a/attachment.bin From core at enodev.com Fri Feb 20 05:15:27 2004 From: core at enodev.com (Shawn) Date: Fri Feb 20 05:15:30 2004 Subject: [Y-devel] compatibility, gtk+, Qt etc In-Reply-To: <1077253726.19620.54.camel@localhost> References: <200402200300.i1K300gb001339@oscar.cc.gatech.edu> <1077253726.19620.54.camel@localhost> Message-ID: <1077254126.19620.57.camel@localhost> On Thu, 2004-02-19 at 23:08 -0600, Shawn wrote: > On Thu, 2004-02-19 at 22:05 -0500, Matt Kurjanowicz wrote: > > What about some way to run Y on top of X? This was discussed in an earlier > > post. Would this just require Y wrappers for to Xlib? So, everything I just said... about equals me saying yes to your question, I think? I guess it depends on just how you scope the term "wrapper". There... Finally a short manageable answer... Not unlike my military haircut. From kempa at kwic.com Fri Feb 20 05:30:10 2004 From: kempa at kwic.com (Aaron Kemp) Date: Fri Feb 20 05:29:14 2004 Subject: [Y-devel] Two-handed input? In-Reply-To: <40353A10.3030403@club-internet.fr> References: <40353A10.3030403@club-internet.fr> Message-ID: <1077255009.26553.7.camel@localhost.localdomain> On Thu, 2004-02-19 at 17:34, Dave Snowdon wrote: > Unless I've misundertood (very possible) there is an assumption that > only one pointing device / cursor will be needed. I wondered if anyone > had been thinking of generalising this to allow multiple pointing > devices. One application of this would be to support two-handed input in > the future (or some types of collaborative applications). I'd just like to tack on a "me too". This is a limitation of X I've ran into a couple of times. I think we should absolutely make it possible to have multiple pointers -> multiple cursors. (I got the impression from the docs that only one was assumed too, but I have yet to seriously dig through the code yet either, I will shortly) Aaron -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040220/9c03e543/attachment.bin From ychris at amshey.net Fri Feb 20 05:58:07 2004 From: ychris at amshey.net (ychris@amshey.net) Date: Fri Feb 20 05:54:46 2004 Subject: [Y-devel] Two-handed input? In-Reply-To: <1077255009.26553.7.camel@localhost.localdomain> References: <40353A10.3030403@club-internet.fr> <1077255009.26553.7.camel@localhost.localdomain> Message-ID: <20040220055807.GA1682@amshey.net> On Fri, Feb 20, 2004 at 12:30:10AM -0500, Aaron Kemp wrote: > On Thu, 2004-02-19 at 17:34, Dave Snowdon wrote: > > Unless I've misundertood (very possible) there is an assumption that > > only one pointing device / cursor will be needed. I wondered if anyone > > had been thinking of generalising this to allow multiple pointing > > devices. One application of this would be to support two-handed input in > > the future (or some types of collaborative applications). > I'd just like to tack on a "me too". This is a limitation of X I've ran > into a couple of times. I think we should absolutely make it possible > to have multiple pointers -> multiple cursors. (I got the impression > from the docs that only one was assumed too, but I have yet to seriously > dig through the code yet either, I will shortly) > > Aaron I think, as a me too + suggestions, there should be able to be an arbitrary number of pointing devices, and an arbitrary number of cursors, and arbitrary (and reassignable) bindings between devices and cursors. For a reasonably normal usage, for example, mousepad and external mouse on a laptop both multiplexed to drive Cursor0, and joystick driving Cursor1 (for flythrough security systems, or remote control airplanes, or, okay, maybe for games...) Certainly N mice each to N cursors will be good for multiheaded systems, and maybe even one 'master' mouse that can drive all the cursors... I'm not so sure I see huge value in multiple cursors on one screen, (though I imagine it'd help with extreme programming practices) but I -do- see huge value in making a good pointer & cursors abstraction that can be used in a variety of ways (with a reasonably sane default for handling things). (Also, I don't think the assumption was ever made that there would be only one pointing device - I think that's just the default situation when pointers haven't been thoroughly specified. But I'm still trying to get the thing to run, so what do I know?) --Chris From drizzt321 at phpfreaks.com Fri Feb 20 06:25:56 2004 From: drizzt321 at phpfreaks.com (Aaron) Date: Fri Feb 20 06:25:15 2004 Subject: [Y-devel] fbdev driver patch Message-ID: <4035A874.8090506@phpfreaks.com> jhamby in #y-windows found a bug in the fbdev driver that didn't let it get the color map correctly. The following attached patch fixes this. Unfortunately this patch seems to only work with -depth 32. Aaron ---------------------------------------- http://www.darkobjects.net/~drizzt/y-base -------------- next part -------------- *** modules/drivers/video/fbdev/fbdev.c.orig 2004-01-29 13:30:13.000000000 -0800 --- modules/drivers/video/fbdev/fbdev.c 2004-02-19 21:52:32.601953647 -0800 *************** *** 642,650 **** --- 642,653 ---- return 1; } + data -> old_cmap.start = 0; + data -> old_cmap.len = 256; data -> old_cmap.red = data -> old_red; data -> old_cmap.green = data -> old_green; data -> old_cmap.blue = data -> old_blue; + data -> old_cmap.transp = 0; /* get frame buffer settings */ if (ioctl (data -> fbfd, FBIOGET_FSCREENINFO, &(data -> fscreeninfo)) < 0) *************** *** 742,747 **** --- 745,751 ---- data -> cmap.red = data -> red; data -> cmap.green = data -> green; data -> cmap.blue = data -> blue; + data -> cmap.transp = 0; { uint16_t * red_p = data -> cmap.red; uint16_t * green_p = data -> cmap.green; From jared.hanson at helixent.com Fri Feb 20 07:09:08 2004 From: jared.hanson at helixent.com (Jared Hanson) Date: Fri Feb 20 07:09:44 2004 Subject: [Y-devel] Success! Message-ID: Well, I finally got it working. It is running on SDL using Red Hat 8. For those of you who are having problems here is what I discovered, with help from the list: 1- Some of the modules need to have .so appended to their names. If you hang when running startY, check /var/log/messages. It will print something to the effect of not being able to find some .so. Chances are that that module didn't get installed with an extension of .so. Give it one. 2- After I did that, Y would start up and then abort right away, printing out some "Reading (header) from Y Socket"... mesage. This means you don't have the fonts required. Go to http://corefonts.sourceforge.net and follow those instructions. It should work for you then. Thanks to the list for these pointers. I just wanted to reiterate for anyone else who might be having trouble. Now that I've got it running, I can start to code :). I was wondering what the current plan is for code contributions? If we plan on doing a lot of work, should we set up our own arch repositories? Should any patches get sent to the list? Since this is a fairly new project, I'd like to see something set up where we can get nightly builds with a fairly quick turnaround on patch integration. It's always nice to see progress and that would help avoid overlapping work, or at least let us know who is doing what. Also, what are the directions some of you want to head in and should we get a discussion going on this? Obviously the widget kit needs more widgets and increased functionality, which should be a high priority. Also, what is the thinking about window managers? Should there be "one true window manager" that is a part of the project, which would seem to agree with the widgets in the server idea. In any case, I plan on digging into the widget code and the window manager code. But not until tomorrow or Saturday. It's late and I need some sleep. Jared From ychris at amshey.net Fri Feb 20 07:13:35 2004 From: ychris at amshey.net (ychris@amshey.net) Date: Fri Feb 20 07:10:15 2004 Subject: [Y-devel] Libraries not .so ... Message-ID: <20040220071335.GA9195@amshey.net> Hello list! I got the thing working under SDL, but there's a bit of a problem somewhere in the build process - I get a bunch of shared objects which are -not- named .so, but dlopen() is looking for an so. (pause... check... yes, we snprintf an explicit .so). It may just be a build-reqs thing. By the by, Y-windows requires at least gcc 3.0 or greater to compile (I default to 2.95). Anyway, I'll look at the build scripts and try to find the cause, but meanwhile people having mysterious 'it doesn't work' problems can try going to, /lib/Y/lib/{driver,theme,wm} and making symlinks for sdl to sdl.so, and so on. (It will show up in the syslog messages as a 'no such file or directory' just before 'Aborted' if this is your problem. Syslog messages can be seen directly by putting LOG_PERROR into the openlog options and running with --no-detach, if you're me, or you can set up your syslog to actually handle Y messages in some reasonable way, if you're sane.) Good luck, all. I hope this isn't utterly redundant but there's a bit of a gap between the web archives and my subscribing to thread, but from what I can tell a few people are having trouble getting started, so... hope I put you on the path. --Chris From mkurjano at cc.gatech.edu Fri Feb 20 07:19:43 2004 From: mkurjano at cc.gatech.edu (Matthew David Kurjanowicz) Date: Fri Feb 20 07:19:51 2004 Subject: [Y-devel] Success! In-Reply-To: References: Message-ID: <1344.199.77.205.69.1077261583.squirrel@webmail.cc.gatech.edu> See inline. > Well, I finally got it working. It is running on SDL using Red Hat 8. > For those of you who are having problems here is what I discovered, > with help from the list: > > 1- Some of the modules need to have .so appended to their names. If > you hang when running startY, check /var/log/messages. It will print > something to the effect of not being able to find some .so. > Chances are that that module didn't get installed with an extension of > .so. Give it one. > > 2- After I did that, Y would start up and then abort right away, > printing out some "Reading (header) from Y Socket"... mesage. This > means you don't have the fonts required. Go to > http://corefonts.sourceforge.net and follow those instructions. It > should work for you then. > > Thanks to the list for these pointers. I just wanted to reiterate for > anyone else who might be having trouble. > Thank You! Is there a SWIKI somewhere that we could post this and other information adn dies to. I've worked on a few start-up projects that use a SWIKI and it helps out A LOT in organizing information, plans, brainstorms, current work, etc. > Now that I've got it running, I can start to code :). I was wondering > what the current plan is for code contributions? If we plan on doing a > lot of work, should we set up our own arch repositories? Should any > patches get sent to the list? Since this is a fairly new project, I'd > like to see something set up where we can get nightly builds with a > fairly quick turnaround on patch integration. It's always nice to see > progress and that would help avoid overlapping work, or at least let us > know who is doing what. > I'm with you here. Is there a CVS repo somewhere? What about a structured procdure of adding commiters to the project, as well as a way of vetting ideas... What about a cvs commit mail list also, so we can keep track of all that's going on with the repo. I wouldn't mind (and am in fact willing to start) organizing all of this (can't get to it in the weekend) but seeing how this is my first day reading the list, I feel that would just be WAY too presumptuous(sic?) of me. > Also, what are the directions some of you want to head in and should we > get a discussion going on this? Obviously the widget kit needs more > widgets and increased functionality, which should be a high priority. > Also, what is the thinking about window managers? Should there be "one > true window manager" that is a part of the project, which would seem to > agree with the widgets in the server idea. In any case, I plan on > digging into the widget code and the window manager code. But not > until tomorrow or Saturday. It's late and I need some sleep. > I'm most interested in this area, and maybe the two of us could start brainstorming what this could look like. I disagree in having a "chosen one" - one true window manager. Not only do I believe in the freedom to chose your own window manager (heavy-weight, light-weight? so forth) as well as there has been TONS of work put into window managers already, and it would be a real shame to just ignore that. What's the point of reinventing the wheel? Yes, changing it, adding tires and so forth (as a metaphore), but it's still a wheel. Projects like Gnome, KDE, Fluxbox, Windowmaker, and so forth have spent enormous amounts of time getting a UI right (as far as a whole package goes), and I think it would be absurd to not at least figure out some way to use those projects on Y. > Jared Matt > > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel -- Matt Kurjanowicz CS 1050A TA Georgia Institute of Technology From mkurjano at cc.gatech.edu Fri Feb 20 07:28:07 2004 From: mkurjano at cc.gatech.edu (Matt Kurjanowicz) Date: Fri Feb 20 07:23:15 2004 Subject: FW: [Y-devel] compatibility, gtk+, Qt etc Message-ID: <200402200723.i1K7N8gb015309@oscar.cc.gatech.edu> Sorry, realized I just sent this to Shawn. -Matt -----Original Message----- From: Matt Kurjanowicz [mailto:mkurjano@cc.gatech.edu] Sent: Friday, February 20, 2004 12:42 AM To: 'Shawn' Subject: RE: [Y-devel] compatibility, gtk+, Qt etc After reading your earlier post (and with which for the sake of brevity I will not include) I am indeed using a very general term for wrapper. I meant at the most basic level, when there is no Y server for there to be an easy way for apps that are written with the y protocol in mind to be seamlessly run on X11, Mac, Windows and so forth. I think that the Mac and Windows impls of this would be horrible, and I wasn't suggesting an end-all be-all system, but maybe a step closer to easing the developers' in their quest for portability. I'm too used to Java and Swing and things running on major platforms (I understand they are not the same idea). Also, what happens if we want to run an X program on Y? Surely not start up a whole instance of X? I'm mostly an ignorant college student who's interested in the project, and looking for places to learn. I just think that it would be really cool for something like this to happen, and on any system. To be honest, I really didn't understand everything in your earlier email. Basically, I'm not talking about changing the Y-protocol to adapt to "lesser" systems and protocols, but just to see if internal translations could be made to ease the transition. I mean, Y can't ever get any market share (or the equiv in OSS terms) if every app has to be rewritten to work in Y. This is why making GTK+, Qt, and so forth would be, IMHO, a good idea, so that programs can be run flawlessly on Y. Ok, maybe not flawlessly, but pretty good, with it getting better and better. Maybe eventually GTK, Qt, etc can be rewritten as a wrapper for Y (in an abstract sense, don't jump... ;)) so that "legacy" programs could be more easily run on Y. That's one of the beauties of my Mac, the fact that I can now run programs that were built for X on linux seamlessly - it just makes for a happier existence. What about desktop managers? Maybe I'm just really confused, but the standard "startY" with a few apps just won't cut it for desktop use. If a desktop manager could be ported easily and quickly that would be good. So what if it doesn't run natively at first? How well can these desktop managers benefit from the unified widget set? What about one of the nice things in X being that you can make your desktop unique, in a way that's nearly impossible in Windows or OS X. All in all, sorry for the stream of consciousness-type writing and the long email, but I hope that my thoughts were at least cleared up a little. And yes, from Office XP, I could just never get into OpenOffice, AbiWord, etc. ;) -Matt -----Original Message----- From: Shawn [mailto:core@enodev.com] Sent: Friday, February 20, 2004 12:15 AM To: Matt Kurjanowicz Cc: y-devel@y-windows.org Subject: RE: [Y-devel] compatibility, gtk+, Qt etc On Thu, 2004-02-19 at 23:08 -0600, Shawn wrote: > On Thu, 2004-02-19 at 22:05 -0500, Matt Kurjanowicz wrote: > > What about some way to run Y on top of X? This was discussed in an earlier > > post. Would this just require Y wrappers for to Xlib? So, everything I just said... about equals me saying yes to your question, I think? I guess it depends on just how you scope the term "wrapper". There... Finally a short manageable answer... Not unlike my military haircut. From mkurjano at cc.gatech.edu Fri Feb 20 07:42:26 2004 From: mkurjano at cc.gatech.edu (Matthew David Kurjanowicz) Date: Fri Feb 20 07:42:36 2004 Subject: [Fwd: RE: [Y-devel] compatibility, gtk+, Qt etc] Message-ID: <1369.199.77.205.69.1077262946.squirrel@webmail.cc.gatech.edu> -------- Original Message -------- Subject: RE: [Y-devel] compatibility, gtk+, Qt etc From: Shawn Date: Fri, February 20, 2004 2:28 am To: Matt Kurjanowicz On Fri, 2004-02-20 at 00:42 -0500, Matt Kurjanowicz wrote: > Also, what happens if we want to run an X program on Y? Surely not > start up a whole instance of X? Not how I was thinking of it. I think folks have been thinking this could be handled in the form of some kind of extension to Y. I really didn't address these details, as my impression was that folks have talked about it. I just wondered if folks thought of it both ways. In order for a protocol to be adopted, and that's what we're really talking about, both apps and server side need a reason to use or move to it without major (or any) pain. > I'm mostly an ignorant college student who's interested in the > project, and looking for places to learn. I just think that it would > be really cool for something like this to happen, and on any system. > To be honest, I really didn't understand everything in your earlier > email. You know, I'm big concept guy, and I'm just throwing ideas out there knowing they could be bogosity level 10. I'm hoping some coder either finds the idea interesting or shreds me. Either will do. > Basically, I'm not talking about changing the Y-protocol to adapt to > "lesser" systems and protocols, but just to see if internal > translations could be made to ease the transition. I mean, Y can't > ever get any market share (or the equiv in OSS terms) if every app has > to be rewritten to work in Y. This is why making GTK+, Qt, and so > forth would be, IMHO, a good idea, so that programs can be run > flawlessly on Y. Ok, maybe not flawlessly, but pretty good, with it > getting better and better. Maybe eventually GTK, Qt, etc can be > rewritten as a wrapper for Y (in an abstract sense, don't jump... ;)) > so that "legacy" programs could be more easily run on Y. That's one > of the beauties of my Mac, the fact that I can now run programs that > were built for X on linux seamlessly - it just makes for a happier > existence. Exactly. Ass whut I'm twalkin about. > What about desktop managers? Maybe I'm just really confused, but the > standard "startY" with a few apps just won't cut it for desktop use. > If a desktop manager could be ported easily and quickly that would be > good. So what if it doesn't run natively at first? How well can > these desktop managers benefit from the unified widget set? What > about one of the nice things in X being that you can make your desktop > unique, in a way that's nearly impossible in Windows or OS X. All this stuff in Y is really a reference to work from. Think of the cross-hatch X screen, then imagine it being much more powerful, and imagine that Gnome could run on it natively with some effort, but still display on X11 as a fall-back, or Gnome could run on it in compat mode through a Y server answering X11 client requests. > All in all, sorry for the stream of consciousness-type writing and the > long email, but I hope that my thoughts were at least cleared up a > little. Hey, folks not understanding me is just an opportunity to either explain myself, or for me to start explaining myself only to realize I'm full of it. I'm not at that point yet, but I may get there. > And yes, from Office XP, I could just never get into OpenOffice, > AbiWord, etc. ;) For shame... (Kword would suite you maybe nicer than OO or Abi then). From shadowjack at mail.ru Fri Feb 20 16:28:17 2004 From: shadowjack at mail.ru (Dmitry Platonov) Date: Fri Feb 20 08:12:40 2004 Subject: [Y-devel] i18n In-Reply-To: <200402192158.22151.smartly@gala.net> References: <20040220032139.GB7133@hawk.stan.net> <200402192158.22151.smartly@gala.net> Message-ID: <20040220162817.GC7133@hawk.stan.net> On Thu, Feb 19, 2004 at 09:58:22PM +0200, Alexey Boyko wrote: > > > I'd like to discuss i18n support. > > So, if all in-server strings are wchar_t (i think it is > > implementation-dependen), we must put conversions it this places: 1. > > server->client > > 2. client->server > > Why convert? Client also may work in wchar_t, and it is client problem how to > convert from local encoding to UCS4 (mbstowcs/wcstombs). I think protocol > also must pass strings in UCS4. wchar_t is implementation-dependent, and can be not same on client and server. thus, it must be converted, and one possible way - through UTF8. UTF8 is endianness-independent, and good choise for transfer encoding. > > 3. server->glyph > > Fonts in unicode? > is there good free international unicode fonts? From t.knopp at gmx.net Fri Feb 20 09:21:11 2004 From: t.knopp at gmx.net (Tobias Knopp) Date: Fri Feb 20 09:18:29 2004 Subject: [Y-devel] Cairo as 2d Drawing Api Message-ID: <200402201020.59714.t.knopp@gmx.net> Hallo! My English is not very good and my Knowlege also. I read about the Idea to use Cairo as 2d Api in this Mailinglist. I think it is a very good idea. As I understand it you can Hardware accelerate it and so it is very fast. Isnt it the same as Quarz on the Mac? But if Cairo would be used in Y what will be with the standart Y toolkit? Must that be on the Top of Cairo to profit of the acceleration? The question is because the Cairo project wants the existing toolkits (gtk,qt..) to draw on Cairo and not on X. That could be used in the Y Window system. But than would be the problem, that every toolkit on Cairo looks and feels other. I think there must be a thin standart toolkit which is used by the existing toolkits. Tobi From brandon at tryplec.com Fri Feb 20 09:21:49 2004 From: brandon at tryplec.com (Brandon Black) Date: Fri Feb 20 09:21:56 2004 Subject: [Y-devel] Success report + resolution patch for sdl.c Message-ID: <4035D1AD.20602@tryplec.com> Another success to report. I'll list the complications I ran into, some of which have already been echoed here: 1) The module shared objects get installed with no ".so" suffix by make install on my system, had to manually rename them to get things going 2) Y doesn't start properly when I execute it normally and let it detach to the background, haven't looked into why. My workaround so far has just been to execute it as "Y --no-detach &" Also, I have my framebuffer set to 1024x768, and Y is currently hardcoded to start up its SDL screen at 800x600. So there's a trivial and ugly hack patch to allow the SDL screen resolution to be set from the Y default.conf file at the bottom of this email. It works for me to set my screen to 1024x768, YMMV :) After applying this patch, I modify the sdl driver line in my default.conf like this: LoadModule "driver/video/sdl" res=1024x768 The project looks promising if very rough and early, keep up the good work :) Other than more low-level drivers and whatnot, has a list been made of the next important things to work on? I wouldn't mind putting some time in if it's something I can do. Here's a few basic things I can think of off the top of my head: 1) An obvious one would be to write some native utilities (file manager for example). 2) Set up some default hotkeys for a few things in the Y server (like ctrl+alt+backspace to kill server ala xfree86). 3) Set up a popup context menu on the desktop (in the wm code?) with a simple menu like many X window managers have (maybe a shutdown item, a client killer, and some basic neccesity client spawn commands like yiterm) 4) Set up an applications menu / dockbar / etc (startbar) type of thing (again in the wm code I guess?) - something with a menu that can be configured per-user for the applications you want to launch, and perhaps a window/task list, etc. Anyone working on any of this already, or have any other good basic ideas along these lines? Brandon diff -ur Y--devel--0.2--patch-1/modules/drivers/video/sdl/sdl.c myY/modules/drivers/video/sdl/sdl.c --- Y--devel--0.2--patch-1/modules/drivers/video/sdl/sdl.c 2004-01-29 15:30:13.000000000 -0600 +++ myY/modules/drivers/video/sdl/sdl.c 2004-02-20 03:04:11.000000000 -0600 @@ -285,6 +285,10 @@ initialise (struct Module *module, int argc, const char **argv) { struct VideoDriver *videodriver; + char* res=NULL; + int screenx=800; + int screeny=600; + int i; if ( SDL_Init(SDL_INIT_EVERYTHING) < 0 ) { @@ -296,7 +300,25 @@ videodriver -> d = ymalloc (sizeof (struct SDLVideoDriverData)); videodriver -> module = module; - sdlData(videodriver) -> sdlSurface = SDL_SetVideoMode(800, 600, 32, SDL_HWSURFACE|SDL_DOUBLEBUF|SDL_RESIZABLE); + for (i=0; i sdlSurface = SDL_SetVideoMode(screenx, screeny, 32, SDL_HWSURFACE|SDL_DOUBLEBUF|SDL_RESIZABLE); SDL_WM_SetCaption ("Y on SDL", NULL); From matt at gretton-dann.org.uk Fri Feb 20 09:37:33 2004 From: matt at gretton-dann.org.uk (Matthew Gretton-Dann) Date: Fri Feb 20 09:37:33 2004 Subject: [Y-devel] License In-Reply-To: <200402192226.03922.tcfelker@mtco.com> References: <200402192226.03922.tcfelker@mtco.com> Message-ID: <200402200937.33610.matt@gretton-dann.org.uk> Hello to the list, This project sounds like a really good fun but I have one question before I leap into contributing fully: Are Imperial College happy that this project goes on and development happens in an Open Source manner? I ask as when I joined my university one of the things we had to sign said that we gave the copyright on everything we worked on (while using uni resources) instantly to the university. They were generally good in not fully enforcing this - but are Imperial going to be as friendly? In the current paranoid atmosphere (w.r.t. SCO) I think it will probably be a good idea to sort this out before we start! Thanks Matt On Friday 20 February 2004 04:26, Tom Felker wrote: > Hi, everybody. Getting Slashdotted is great for publicity, yes? > > On Thursday 19 February 2004 8:59 pm, Matthew Allen wrote: > > The current license for Y is the GPL. This is going to limit the types of > > programs you can run on Y to GPL compatible programs, is it not? > > For the client libraries, LGPL is a no-brainer. The server is more > interesting - you have to decide if you want to allow closed-source plugins > (eg. nVidia drivers). I personally think it's a good idea. Alternately, > you could promise that you won't consider plugins to be derived. > > Other thoughts: have some system established for changing the license in > the future - when there are hundreds of people's code in there, it will be > difficult otherwise. > > Also, maybe look into something like the Creative Commons ShareAlike > license. IANAL, but it seems basically like the GPL, but more clear. For > example, it does warrant ownership of the code, so SCO-of-the-future won't > be able to make fun of you for not offering indemnification. From c.mench at adilinstruments.com Fri Feb 20 09:38:38 2004 From: c.mench at adilinstruments.com (Claude Mench) Date: Fri Feb 20 09:39:22 2004 Subject: [Y-devel] Cairo as 2d Drawing Api References: <200402201020.59714.t.knopp@gmx.net> Message-ID: <00fc01c3f795$53698d40$9c02a8c0@mandoline> > ... But if Cairo would be used in Y what will be > with the standart Y toolkit? Must that be on the Top of Cairo to profit of > the acceleration? The question is because the Cairo project wants the > existing toolkits (gtk,qt..) to draw on Cairo and not on X. That could be > used in the Y Window system. But than would be the problem, that every > toolkit on Cairo looks and feels other. I think there must be a thin standart > toolkit which is used by the existing toolkits. > > Tobi > Cairo should be the primary drawing API, widgets should be defined in cairo orders even if they are server side. the Canvas API would provide the cairo api for the client side. My only concern with the fact that Y wants to use only server side widgets is that libY and LibYC++ should be modified for each new widget in the server. So even if Y can load modules with new widgets, the client side code that would want to use theses widgets will not be able to use them the same way as the standard widget (standard meaning already taken in account in libYC++). From smartly at gala.net Fri Feb 20 09:48:51 2004 From: smartly at gala.net (Alexey Boyko) Date: Fri Feb 20 10:02:32 2004 Subject: [Y-devel] i18n In-Reply-To: <20040220162817.GC7133@hawk.stan.net> References: <20040220032139.GB7133@hawk.stan.net> <200402192158.22151.smartly@gala.net> <20040220162817.GC7133@hawk.stan.net> Message-ID: <200402201148.51061.smartly@gala.net> > > Why convert? Client also may work in wchar_t, and it is client problem > > how to convert from local encoding to UCS4 (mbstowcs/wcstombs). I think > > protocol also must pass strings in UCS4. > wchar_t is implementation-dependent, and can be not same on client and > server. thus, it must be converted, and one possible way - through UTF8. > UTF8 is endianness-independent, and good choise for transfer encoding. Yes. > > > 3. server->glyph > > Fonts in unicode? > is there good free international unicode fonts? Now only URW Nimbus (and FreeSans/FreeSerif/FreeMono which, as I know, based on URW Nimbus) From mathy at lanzone.be Fri Feb 20 10:47:10 2004 From: mathy at lanzone.be (Mathy Vanvoorden) Date: Fri Feb 20 10:47:19 2004 Subject: [Y-devel] Build layout In-Reply-To: <1077237227.403555eba3753@horde.sandall.us> References: <1077237227.403555eba3753@horde.sandall.us> Message-ID: <1077274030.4035e5aee3ee7@webmail.lanzone.be> Citeren Eric Sandall : > I'm wondering if it would be possible to rewrite the configure/install steps > so > that you can just run one ./configure && make && make install from the > topdir. Isn't this what it does allready? -- Regards, Mathy Vanvoorden ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From mathy at lanzone.be Fri Feb 20 10:52:16 2004 From: mathy at lanzone.be (Mathy Vanvoorden) Date: Fri Feb 20 10:52:23 2004 Subject: [Y-devel] compatibility, gtk+, Qt etc In-Reply-To: <200402200300.i1K300gb001339@oscar.cc.gatech.edu> References: <200402200300.i1K300gb001339@oscar.cc.gatech.edu> Message-ID: <1077274336.4035e6e073a3e@webmail.lanzone.be> Citeren Matt Kurjanowicz : > What about some way to run Y on top of X? This was discussed in an earlier > post. Would this just require Y wrappers for to Xlib? 1. Start X 2. Open terminal 3. # startY 4. Observe :-) Y uses SDL, which off course allready works in X. -- Regards, Mathy Vanvoorden ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From griffon26 at kfk4ever.com Fri Feb 20 11:12:11 2004 From: griffon26 at kfk4ever.com (Maurice van der Pot) Date: Fri Feb 20 11:12:18 2004 Subject: [Y-devel] License In-Reply-To: <200402192226.03922.tcfelker@mtco.com> References: <200402192226.03922.tcfelker@mtco.com> Message-ID: <20040220111211.GB8891@kfk4ever.com> On Thu, Feb 19, 2004 at 10:26:03PM -0600, Tom Felker wrote: > Alternately, you > could promise that you won't consider plugins to be derived. I am afraid defining the term "derived work" is not up to the one using the license. Best regards, Maurice van der Pot. From dwm at y-windows.org Fri Feb 20 11:42:39 2004 From: dwm at y-windows.org (David McBride) Date: Fri Feb 20 11:43:18 2004 Subject: [Y-devel] License In-Reply-To: <200402200937.33610.matt@gretton-dann.org.uk> References: <200402192226.03922.tcfelker@mtco.com> <200402200937.33610.matt@gretton-dann.org.uk> Message-ID: <1077273266.5107.5.camel@angel> On Fri, 2004-02-20 at 09:37, Matthew Gretton-Dann wrote: > Hello to the list, > > This project sounds like a really good fun but I have one question before I > leap into contributing fully: > Are Imperial College happy that this project goes on and development happens > in an Open Source manner? I ask as when I joined my university one of the > things we had to sign said that we gave the copyright on everything we worked > on (while using uni resources) instantly to the university. They were > generally good in not fully enforcing this - but are Imperial going to be as > friendly? In the current paranoid atmosphere (w.r.t. SCO) I think it will > probably be a good idea to sort this out before we start! Howdy, Imperial have a very sane policy with regards to works created by students, which can be summarized as 'You own it unless you've promised it to someone else' so there shouldn't be any problems. Good question, though. Cheers, David -- David McBride -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040220/04aa0fe7/attachment.bin From drizzt321 at phpfreaks.com Fri Feb 20 12:00:07 2004 From: drizzt321 at phpfreaks.com (Aaron) Date: Fri Feb 20 11:59:24 2004 Subject: [Y-devel] Success! In-Reply-To: <1344.199.77.205.69.1077261583.squirrel@webmail.cc.gatech.edu> References: <1344.199.77.205.69.1077261583.squirrel@webmail.cc.gatech.edu> Message-ID: <4035F6C7.6090807@phpfreaks.com> Matthew David Kurjanowicz wrote: > See inline. > > > > Thank You! > Is there a SWIKI somewhere that we could post this and other information > adn dies to. I've worked on a few start-up projects that use a SWIKI and > it helps out A LOT in organizing information, plans, brainstorms, current > work, etc. > Not currently that I am aware of though. Thanx for the idea, since I seem to have started to organize some of the most common problems into a small FAQ( http://www.darkobjects.net/~drizzt/y-base ). Perhaps I'll go into that next, since I haven't done really anything with WIKI. > I'm with you here. Is there a CVS repo somewhere? What about a > structured procdure of adding commiters to the project, as well as a way > of vetting ideas... > What about a cvs commit mail list also, so we can keep track of all that's > going on with the repo. I wouldn't mind (and am in fact willing to start) > organizing all of this (can't get to it in the weekend) but seeing how > this is my first day reading the list, I feel that would just be WAY too > presumptuous(sic?) of me. No cvs that I am aware of currently. I'm certain there will will be some kind of repository(probably cvs) in the future, but there isn't one setup yet. > > > I'm most interested in this area, and maybe the two of us could start > brainstorming what this could look like. I disagree in having a "chosen > one" - one true window manager. Not only do I believe in the freedom to > chose your own window manager (heavy-weight, light-weight? so forth) as > well as there has been TONS of work put into window managers already, and > it would be a real shame to just ignore that. What's the point of > reinventing the wheel? Yes, changing it, adding tires and so forth (as a > metaphore), but it's still a wheel. Projects like Gnome, KDE, Fluxbox, > Windowmaker, and so forth have spent enormous amounts of time getting a UI > right (as far as a whole package goes), and I think it would be absurd to > not at least figure out some way to use those projects on Y. > > >>Jared > Well, you came in at the right time, just when this is all getting organized! Welcome aboard, I just hope that I stay with this 100% over the coming months/years. Either way, I'm going to learn alot :-D Aaron ------------------------------------------------------ http://www.darkobjects.net/~drizzt/y-base/ From nick.maynard at alumni.doc.ic.ac.uk Fri Feb 20 12:08:43 2004 From: nick.maynard at alumni.doc.ic.ac.uk (Nick Maynard) Date: Fri Feb 20 12:08:45 2004 Subject: [Y-devel] Success! In-Reply-To: <4035F6C7.6090807@phpfreaks.com> References: <1344.199.77.205.69.1077261583.squirrel@webmail.cc.gatech.edu> <4035F6C7.6090807@phpfreaks.com> Message-ID: <1077278923.4035f8cb74e8b@www.tastycake.net> > > I'm with you here. Is there a CVS repo somewhere? What about a > > structured procdure of adding commiters to the project, as well as a way > > of vetting ideas... > > What about a cvs commit mail list also, so we can keep track of all that's > > going on with the repo. I wouldn't mind (and am in fact willing to start) > > organizing all of this (can't get to it in the weekend) but seeing how > > this is my first day reading the list, I feel that would just be WAY too > > presumptuous(sic?) of me. > > No cvs that I am aware of currently. I'm certain there will will be some > kind of repository(probably cvs) in the future, but there isn't one > setup yet. Mark has put the project into "arch". Details are on the y-windows.org site. Cheers all, -- Nick Maynard nick.maynard@alumni.doc.ic.ac.uk From dwm at y-windows.org Fri Feb 20 12:14:51 2004 From: dwm at y-windows.org (David McBride) Date: Fri Feb 20 12:15:27 2004 Subject: [Y-devel] License In-Reply-To: <20040220111211.GB8891@kfk4ever.com> References: <200402192226.03922.tcfelker@mtco.com> <20040220111211.GB8891@kfk4ever.com> Message-ID: <1077279290.5536.5.camel@angel> On Fri, 2004-02-20 at 11:12, Maurice van der Pot wrote: > On Thu, Feb 19, 2004 at 10:26:03PM -0600, Tom Felker wrote: > > Alternately, you > > could promise that you won't consider plugins to be derived. > > I am afraid defining the term "derived work" is not up to the > one using the license. There was a discussion on this subject on LKML. In short, the licensor can specify that some works which might otherwise be considered a derived work will not be considered derived works under the license. For example, no program that uses the userland interfaces that the Linux kernel provides comes under the licensing restrictions of the kernel itself because Linus himself said as such. See also 'estoppel'. Cheers, David -- David McBride -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040220/29ac263c/attachment.bin From shadowjack at mail.ru Fri Feb 20 20:40:59 2004 From: shadowjack at mail.ru (Dmitry Platonov) Date: Fri Feb 20 12:25:28 2004 Subject: [Y-devel] i18n In-Reply-To: <200402201148.51061.smartly@gala.net> References: <20040220032139.GB7133@hawk.stan.net> <200402192158.22151.smartly@gala.net> <20040220162817.GC7133@hawk.stan.net> <200402201148.51061.smartly@gala.net> Message-ID: <20040220204059.GD7133@hawk.stan.net> On Fri, Feb 20, 2004 at 11:48:51AM +0200, Alexey Boyko wrote: > > > > Why convert? Client also may work in wchar_t, and it is client problem > > > how to convert from local encoding to UCS4 (mbstowcs/wcstombs). I think > > > protocol also must pass strings in UCS4. > > wchar_t is implementation-dependent, and can be not same on client and > > server. thus, it must be converted, and one possible way - through UTF8. > > UTF8 is endianness-independent, and good choise for transfer encoding. > > Yes. And, what is "right way" for doing encoding conversions? I tried iconv, but with not much success. I looked into wcrtomb and mbrtowc, but it seems that locale must be set before conversion to something like setlocale(LC_CTYPE,"en_IN.utf8")? Is there any cleaner way to do this? > > > > 3. server->glyph > > > Fonts in unicode? > > is there good free international unicode fonts? > > Now only URW Nimbus (and FreeSans/FreeSerif/FreeMono which, as I know, based > on URW Nimbus) > From richard at playford.net Fri Feb 20 12:27:17 2004 From: richard at playford.net (Richard Hills) Date: Fri Feb 20 12:27:55 2004 Subject: [Y-devel] [Patch] nicer window bars Message-ID: <1077280036.10580.99.camel@localhost> hey, This is something I was working on when Y first came out all those months ago. I've modified it a little and tried to take a diff, although I'm not entirely sure on all the command line parameters needed. I also had to cut out a lot of ./configure cruft, and I hope I haven't damaged the patch in the process. If you'd like me to resubmit this in a different form, just let me know. This patch adds a nice gradient to the window title bars, using the already existing colourBlendSourceOver function to generate the gradient. I think it looks quite nice; hope people like it, Richard Hills -------------- next part -------------- A non-text attachment was scrubbed... Name: window-title-bar-patch Type: text/x-patch Size: 2059 bytes Desc: not available Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040220/6daa7e17/window-title-bar-patch.bin From superluser at frontiernet.net Fri Feb 20 13:28:48 2004 From: superluser at frontiernet.net (Andrew A. Gill) Date: Fri Feb 20 12:29:44 2004 Subject: [Y-devel] (size_t == int)? Message-ID: I'm trying to compile Y on a DEC Alpha (ev56, 2.6.2, GCC 3.3, poofy party hats) and having the following problem: yctl.c: In function `main': yctl.c:56: warning: field precision is not type int (arg 2) Indeed, arg 2 is of type size_t. I suppose all that you need to do is add the following line (say, right after line 50): int q = s; and change line 56, arg 2 to q. but that's just a workaround. Is there a better way? -- |Andrew A. Gill |I posted to Silent-Tristero and| | |all I got was this stupid sig! | |alt.tv.simpsons CBG-FAQ author | | | (Report all obscene mail to Le Maitre Pots)| |Yet: Temporary sig: -- Thankayew. From pdamoc at gmx.net Fri Feb 20 12:46:03 2004 From: pdamoc at gmx.net (Peter Damoc) Date: Fri Feb 20 12:46:22 2004 Subject: [Y-devel] suggestions Message-ID: I think the Y-windows project will benefit from a large pool of users, but to get a large pool of users you should first "grab" them from everywhere. It shouldn't matter if this user is a vintaged C programmer or a kid whom is just starting to "talk" to his/her computer. Also it shouldn't matter if the user has Linux, OSX, or XP on his/her computer. Maybe the hard-core programmers do not need help building Y but I sure do! Let me cut to the chase: What I want is a python wrapper and a binary library to go with that wrapper and I want them available on Windows XP (the machine I HAVE TO use at work). I'm willing to invest time in the project if someone is willing to help me. How do I go about testing Y on Windows XP? Also, Y is about GUI and GUI programming is a pretty intensive OO environment so... an object oriented environment for gui programming is vital. This is why I suggested a Python wrapper. Make it possible for the beginner programmer to chip in and I promise you that you won't regret the time "wasted" doing that. -- Peter Damoc Hacker Wannabe From spiralman at softhome.net Fri Feb 20 13:35:24 2004 From: spiralman at softhome.net (Thomas) Date: Fri Feb 20 13:36:01 2004 Subject: [Fwd: RE: [Y-devel] compatibility, gtk+, Qt etc] In-Reply-To: <1369.199.77.205.69.1077262946.squirrel@webmail.cc.gatech.edu> References: <1369.199.77.205.69.1077262946.squirrel@webmail.cc.gatech.edu> Message-ID: <200402200835.24733.spiralman@softhome.net> here is my vision of how the y->x compatibility would work (again, just a suggestion), and further down how the x->y compatibility would work: We have some module (or set of modules. from what ive been looking at we might need to have a video driver and a widget theme, maybe a wm as well to do it this way) that, instead of drawing to a frame buffer, issue X commands (ie, in the paintRectangle() function, they just use the XLib call to paint a rectangle). their usage would go something like this: I'm sitting in the computer lab on a unix workstation, and decide i want to run something off the computer in my dorm room. I ssh into my comp, start up a second Y server with the XLib compat drivers loaded, and i tell it which X server to point to. Then i run my Y application and point it to that Y server (or, presumably move a running Y application over to that server). This server then translates all the low level drawing/event stuff into the X protocol through XLib and sends it out over the network, displaying on the unix workstation. Of course that would remove the nice overhead gain of server side widgets, but using the *exact same* implementation and a slightly different usage, we can get rid of that too: Instead of running the Y->X translating server on my remote computer, i run it on the computer i want the windows to display on (assuming i have permissions of course) and i then ssh into my dorm computer, and point all the applications i want to run at the Y server running local on the workstation. They transmit the lower bandwidth Y protocol over the network, which is then translated into XLib calls and sent through the XLib protocol between two local processes, which should dramatically speed up the drawing times from the first usage without actually having to rewrite code. To me, this seems the most portable, least amount of code to rewrite (we dont have to bother rewriting a whole new server when one already exists), and the most flexible. As far as compatibility in the other direction (drawing X windows in the Y server), this was discussed in the PDF and i like the idea used there. that method, as i understand it, is to have a module that you load into your Y server that acts as an X server, receiving things over the X protocol in the standard network-transparent way and then translating them into the appropriate low level Y drawing commands (since the low level drawing commands are the only thing remotely analogous between the two protocols). well, that got really long really fast. anyway, its just an idea, and i need to read more code to see how feasible it is, but in my opinion it seems like these are the two best ways to do this that have been mentioned so far. Thomas Stephens spiralman@softhome.net On Friday 20 February 2004 02:42, Matthew David Kurjanowicz wrote: > -------- Original Message -------- > Subject: RE: [Y-devel] compatibility, gtk+, Qt etc > From: Shawn > Date: Fri, February 20, 2004 2:28 am > To: Matt Kurjanowicz > > On Fri, 2004-02-20 at 00:42 -0500, Matt Kurjanowicz wrote: > > Also, what happens if we want to run an X program on Y? Surely not > > start up a whole instance of X? > > Not how I was thinking of it. I think folks have been thinking this > could be handled in the form of some kind of extension to Y. I really > didn't address these details, as my impression was that folks have > talked about it. I just wondered if folks thought of it both ways. > > In order for a protocol to be adopted, and that's what we're really > talking about, both apps and server side need a reason to use or move to > it without major (or any) pain. > > > I'm mostly an ignorant college student who's interested in the > > project, and looking for places to learn. I just think that it would > > be really cool for something like this to happen, and on any system. > > To be honest, I really didn't understand everything in your earlier > > email. > > You know, I'm big concept guy, and I'm just throwing ideas out there > knowing they could be bogosity level 10. I'm hoping some coder either > finds the idea interesting or shreds me. Either will do. > > > Basically, I'm not talking about changing the Y-protocol to adapt to > > "lesser" systems and protocols, but just to see if internal > > translations could be made to ease the transition. I mean, Y can't > > ever get any market share (or the equiv in OSS terms) if every app has > > to be rewritten to work in Y. This is why making GTK+, Qt, and so > > forth would be, IMHO, a good idea, so that programs can be run > > flawlessly on Y. Ok, maybe not flawlessly, but pretty good, with it > > getting better and better. Maybe eventually GTK, Qt, etc can be > > rewritten as a wrapper for Y (in an abstract sense, don't jump... ;)) > > so that "legacy" programs could be more easily run on Y. That's one > > of the beauties of my Mac, the fact that I can now run programs that > > were built for X on linux seamlessly - it just makes for a happier > > existence. > > Exactly. Ass whut I'm twalkin about. > > > What about desktop managers? Maybe I'm just really confused, but the > > standard "startY" with a few apps just won't cut it for desktop use. > > If a desktop manager could be ported easily and quickly that would be > > good. So what if it doesn't run natively at first? How well can > > these desktop managers benefit from the unified widget set? What > > about one of the nice things in X being that you can make your desktop > > unique, in a way that's nearly impossible in Windows or OS X. > > All this stuff in Y is really a reference to work from. Think of the > cross-hatch X screen, then imagine it being much more powerful, and > imagine that Gnome could run on it natively with some effort, but still > display on X11 as a fall-back, or Gnome could run on it in compat mode > through a Y server answering X11 client requests. > > > All in all, sorry for the stream of consciousness-type writing and the > > long email, but I hope that my thoughts were at least cleared up a > > little. > > Hey, folks not understanding me is just an opportunity to either explain > myself, or for me to start explaining myself only to realize I'm full of > it. I'm not at that point yet, but I may get there. > > > And yes, from Office XP, I could just never get into OpenOffice, > > AbiWord, etc. ;) > > For shame... (Kword would suite you maybe nicer than OO or Abi then). > > > > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel From kempa at kwic.com Fri Feb 20 13:42:09 2004 From: kempa at kwic.com (Aaron Kemp) Date: Fri Feb 20 13:41:11 2004 Subject: [Y-devel] suggestions In-Reply-To: References: Message-ID: <1077284529.26553.21.camel@localhost.localdomain> On Fri, 2004-02-20 at 07:46, Peter Damoc wrote: > Let me cut to the chase: > What I want is a python wrapper and a binary library to go with that > wrapper and I want them available on Windows XP (the machine I HAVE TO use > at work). Here's the catch. Y can't be the window system for every OS on the planet -- that will just slow down development and make sure the project never succeeds. Targeting Windows or OS X with a new windowing system doesn't make much sense; it's not as though we can replace the existing one anyway (on Windows I mean, I suppose you could on OS X). > I'm willing to invest time in the project if someone is willing to help > me. How do I go about testing Y on Windows XP? The easiest and quickest way: Use a live CD or live USB stick distribution to boot into Linux, and mount up your NTFS partition using the new safe NTFS drivers. > Make it possible for the beginner programmer to chip in and I promise you > that you won't regret the time "wasted" doing that. I don't speak for everyone, obviously, but I would rather see interested developers take it upon themselves to boot into a Live distribution (or, better still, find an old 486/Pentium that's collecting dust) and work on an open platform, rather than have a bunch of us spending time making Y work on a closed platform where there will be little or no interest/benefit in running it. Of course, if someone wants to spend that time, they are welcome to, it's open source after all. Aaron -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040220/ba4040f8/attachment.bin From GMR001 at bham.ac.uk Fri Feb 20 13:41:22 2004 From: GMR001 at bham.ac.uk (Gregory Reynolds) Date: Fri Feb 20 13:41:25 2004 Subject: [Y-devel] Technical Notes (additional) Message-ID: Following on from the previous discussions. In view of the potential of this project, both to become successful and really complex, would it not be better written in C++? An OOP approach doesn't necessarily have to be taken (although this might be a good idea), but features like variable declaration at the point of use, references and exceptions make for much more readable/robust code. This is not meant as a slight on the existing code. Greg. From pdamoc at gmx.net Fri Feb 20 13:48:06 2004 From: pdamoc at gmx.net (Peter Damoc) Date: Fri Feb 20 13:48:14 2004 Subject: Fwd: Re: [Y-devel] suggestions In-Reply-To: References: Message-ID: ------- Forwarded message ------- From: "Jerome Laheurte" To: "Peter Damoc" Subject: Re: [Y-devel] suggestions Date: Fri, 20 Feb 2004 14:22:29 +0100 (CET) On Fri, 20 Feb 2004, Peter Damoc wrote: > Let me cut to the chase: > What I want is a python wrapper and a binary library to go with that > wrapper and I want them available on Windows XP (the machine I HAVE TO > use > at work). > I'm willing to invest time in the project if someone is willing to help > me. How do I go about testing Y on Windows XP? From what I understand, it's not possible (yet) :) > Also, Y is about GUI and GUI programming is a pretty intensive OO > environment so... an object oriented environment for gui programming is > vital. This is why I suggested a Python wrapper. I'm new here, but I was looking for something I could do. You just had the idea :) Hem, note to project maintainers: what do I do (except coding) to become part of the project ? I'm willing to contribute: * A Windows port * A Python client library (maybe not in that order :) Should I just go ahead or do we need some synchronization ? Anyway, I have to get it to run under Linux first (fonts problem, although I have installed everything necessary, AFAIK)... -- Peter Damoc Hacker Wannabe Now: XP SP1, Python 2.3.3, wxPython 2.4.2.4 (2.5.1.0p7u via set PYHONPATH) From pdamoc at gmx.net Fri Feb 20 13:48:12 2004 From: pdamoc at gmx.net (Peter Damoc) Date: Fri Feb 20 13:48:19 2004 Subject: Fwd: Re: [Y-devel] suggestions In-Reply-To: <1077284529.26553.21.camel@localhost.localdomain> References: <1077284529.26553.21.camel@localhost.localdomain> Message-ID: ------- Forwarded message ------- From: "Aaron Kemp" To: "Peter Damoc" Subject: Re: [Y-devel] suggestions Date: Fri, 20 Feb 2004 08:42:09 -0500 On Fri, 2004-02-20 at 07:46, Peter Damoc wrote: > Let me cut to the chase: > What I want is a python wrapper and a binary library to go with that > wrapper and I want them available on Windows XP (the machine I HAVE TO > use > at work). Here's the catch. Y can't be the window system for every OS on the planet -- that will just slow down development and make sure the project never succeeds. Targeting Windows or OS X with a new windowing system doesn't make much sense; it's not as though we can replace the existing one anyway (on Windows I mean, I suppose you could on OS X). > I'm willing to invest time in the project if someone is willing to help > me. How do I go about testing Y on Windows XP? The easiest and quickest way: Use a live CD or live USB stick distribution to boot into Linux, and mount up your NTFS partition using the new safe NTFS drivers. > Make it possible for the beginner programmer to chip in and I promise you > that you won't regret the time "wasted" doing that. I don't speak for everyone, obviously, but I would rather see interested developers take it upon themselves to boot into a Live distribution (or, better still, find an old 486/Pentium that's collecting dust) and work on an open platform, rather than have a bunch of us spending time making Y work on a closed platform where there will be little or no interest/benefit in running it. Of course, if someone wants to spend that time, they are welcome to, it's open source after all. Aaron -- Peter Damoc Hacker Wannabe Now: XP SP1, Python 2.3.3, wxPython 2.4.2.4 (2.5.1.0p7u via set PYHONPATH) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp Size: 189 bytes Desc: not available Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040220/86323e9d/signature.bin From kempa at kwic.com Fri Feb 20 13:50:57 2004 From: kempa at kwic.com (Aaron Kemp) Date: Fri Feb 20 13:49:59 2004 Subject: [Y-devel] (size_t == int)? In-Reply-To: References: Message-ID: <1077285057.26553.28.camel@localhost.localdomain> On Fri, 2004-02-20 at 08:28, Andrew A. Gill wrote: > I suppose all that you need to do is add the following line > (say, right after line 50): > > int q = s; > > and change line 56, arg 2 to q. I would be tempted to simply cast it instead of allocating more space on the stack. Since from printf (3) we have: "If the precision is given as just ?.?, or the precision is negative, the precision is taken to be zero." You can safely cast from size_t (usually an unsigned int) to an int without worrying about (large-positive)/negative values causing bad things to happen. So line 56: printf ("%.*s\n", (int)s, d); Would do the trick I think. One wonders though, why printf() doesn't take a size_t instead of an int since negative precisions are uninteresting. Aaron -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040220/29b822a6/attachment.bin From pdamoc at gmx.net Fri Feb 20 13:51:01 2004 From: pdamoc at gmx.net (Peter Damoc) Date: Fri Feb 20 13:51:11 2004 Subject: [Y-devel] mailing list problem Message-ID: hey guys, please set the Reply-To header of the mailing list to "y-devel@y-windows.org". This way when someones replys to a question we can all see the answer. :D -- Peter Damoc Hacker Wannabe From c.mench at adilinstruments.com Fri Feb 20 13:51:17 2004 From: c.mench at adilinstruments.com (Claude Mench) Date: Fri Feb 20 13:51:29 2004 Subject: [Y-devel] suggestions References: Message-ID: <003601c3f7b8$9d5592a0$9c02a8c0@mandoline> > > I'm willing to invest time in the project if someone is willing to help > > me. How do I go about testing Y on Windows XP? > > From what I understand, it's not possible (yet) :) Y already Works on Win32, it is the third time I indicates it here look at : http://c.mench.free.fr just unzip the archive launch Ys.exe then launch Calculator.exe, Clock.exe, sample.exe The terminal.exe is not functionnal but displays correctly. From kempa at kwic.com Fri Feb 20 13:56:23 2004 From: kempa at kwic.com (Aaron Kemp) Date: Fri Feb 20 13:55:21 2004 Subject: [Y-devel] suggestions In-Reply-To: <1077284529.26553.21.camel@localhost.localdomain> References: <1077284529.26553.21.camel@localhost.localdomain> Message-ID: <1077285383.26553.34.camel@localhost.localdomain> On Fri, 2004-02-20 at 08:42, Aaron Kemp wrote: > Of course, if someone wants to spend that time, they are welcome to, > it's open source after all. Just to reply to myself, I thought I had mentioned this but I didn't. I am aware that the current release of Y has already been ported to Windows by at least one person. (I know the post is in the list somewhere here, but I can't find it and I have to run) I'm just saying that maintaining that portability as development progresses is unlikely to be trivial -- Linux and Windows are very different (thank goodness :) ) Aaron -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040220/bc8b13e1/attachment.bin From c.mench at adilinstruments.com Fri Feb 20 13:54:53 2004 From: c.mench at adilinstruments.com (Claude Mench) Date: Fri Feb 20 13:55:33 2004 Subject: [Y-devel] suggestions References: <1077284529.26553.21.camel@localhost.localdomain> <001b01c3f7b8$08550aa0$9c02a8c0@mandoline> <1077285194.26553.30.camel@localhost.localdomain> Message-ID: <006601c3f7b9$1dcab460$9c02a8c0@mandoline> >> Hi, >> Yes I know it does now, but maintaining that as the system evolves is >> unlikely. So many things are not supported (or vastly different) on >> Windows I can't really believe we are going to be able to support >> Windows platforms with no effort. The win32 port involved only to modifie the video driver module and the tcp module, and the build system, thats all. The Opengl part has tweaked the source more deeply, but with nothing specific to win32. ----- Original Message ----- From: "Aaron Kemp" To: "Claude Mench" Sent: Friday, 2004 February 20 14:53 Subject: Re: [Y-devel] suggestions From john at triciaandjohn.com Fri Feb 20 13:56:06 2004 From: john at triciaandjohn.com (John Johnson) Date: Fri Feb 20 13:56:00 2004 Subject: [Y-devel] mailing list problem In-Reply-To: References: Message-ID: <403611F6.80609@triciaandjohn.com> Peter Damoc wrote: > hey guys, > please set the Reply-To header of the mailing list to > "y-devel@y-windows.org". > This way when someones replys to a question we can all see the answer. :D > 'Reply-All' will get the message to the list... cheers, -john From jerome at gandalf.fraca7.homeunix.net Fri Feb 20 13:44:02 2004 From: jerome at gandalf.fraca7.homeunix.net (Jerome Laheurte) Date: Fri Feb 20 13:57:34 2004 Subject: [Y-devel] Font problems Message-ID: Okay, I installed all the MS fonts but it still doesn't work :) Setting some breakpoints with gdb shows that the font list (static 'faces' in font.c) is empty on the first call to fontCreate. Am I missing something ? -- J?r?me Laheurte You look like a million dollars. All green and wrinkled. From kempa at kwic.com Fri Feb 20 13:58:43 2004 From: kempa at kwic.com (Aaron Kemp) Date: Fri Feb 20 13:57:43 2004 Subject: [Y-devel] mailing list problem In-Reply-To: References: Message-ID: <1077285523.26553.37.camel@localhost.localdomain> On Fri, 2004-02-20 at 08:51, Peter Damoc wrote: > hey guys, > please set the Reply-To header of the mailing list to > "y-devel@y-windows.org". > This way when someones replys to a question we can all see the answer. :D The messages are making it to the list (at least mine are, you don't need to forward them again. Just click 'reply to all' in your mail client and it should work fine.) Aaron -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040220/f1b9e370/attachment.bin From toxic_shock at linux.wku.edu Fri Feb 20 13:54:59 2004 From: toxic_shock at linux.wku.edu (Jason McKee) Date: Fri Feb 20 14:00:10 2004 Subject: [Fwd: Re: [Y-devel] Technical Notes] In-Reply-To: <1077231529.9201.122.camel@aragorn.pissedup.com> Message-ID: Oddly enough you may not find yourself alone in this bold statement On Thu, 19 Feb 2004, Matt Wilson wrote: > D'oh! Reply-To: wasn't set :) > > On Thu, 2004-02-19 at 22:04, Nitin S Kumar wrote: > > Hi > > > > You should probably use the Linux kernel coding style > > guidelines as a start > > (linux/Documentation/CodingStyle). > > I'd definitely have to disagree with that for a few reasons; > > * 8 character tabs (rather than 2 or 4, 2 being my personal pref.) > * tabs (rather than spaces) > * braces positioning > > The reason I mention the positioning of braces is that when you have > lots of code, readability is a massive issue and; > > if ( .. ) { > // do something > } > To me this syntax style is antiquated.. flame on for that but its simply not as readable as if(..) { //my code here } putting that extra line between the if and the first line of code makes a big difference in readability for some people (i.e. me) if(x==4 && y == 4 && z == 4){ callSomeFunctionWithArgs(x,y,z); callAnotherFunctionIJustInvented(zz,tt); } as compared to if(x==4 && y == 4 && z == 4) { callSomeFunctionWithArgs(x,y,z); callAnotherFunctionIJustInvented(zz,tt); } This isn't going to make Y run any smoother or be more widely accepted.. it just seems to be a point of contention among some developers as to which is better(read: more readable). Obviously neither one of them is any more correct than the other. Making a clear space distinction between the condition and the resulting executed code is IMHO why developers such as myself find the second method more attractive than the standard. To semi-contradict myself, I often do the following when callin a function with many args. callMyThirdImaginaryFunction(lots, of, parameters, are, more, readable, when, put, on, multiple, lines); word wrap and not being able to see all the args at once in context of the function being called can be a pain when debugging or digesting code Although calling many functions repeatedly in this manner can really detract from the readability of the code, so its really a judgement call from the developeres standpoint. Just some babblings about style... hopefully not offending anyone, but just throwing out some reason behind the "madness" that is "next line opening curlies." -J > takes much longer to read (in terms of skimming through source looking > for something) than the alternative; > > if ( ... ) > { > // do something > } > > Likewise for other constructs; 'for, 'while, 'do' and function > definitions. > > Though I'm sure I'll receive some flame material for saying that :P > > > Nitin > > > > > > > --- Jay Sprenkle wrote: > > > > > > > > --- Dave Jarvis wrote: > > > > > > > > > > I guess the main point I was trying to make, > > > which > > > > > got mired in mucky > > > > > details, was that it is better to step in at the > > > > > start of a project with > > > > > a list of guidelines and styles, rather than > > > > trying > > > > > to get everyone to adopt it later. > > > > > > > > snip > > > > > > > > > > > > > > Like I said, it's easy to get mired in a myriad > > > of > > > > > details -- the main > > > > > point I'm trying to make is be consistent. > > > > > > > > I've had something similar on everything I've been > > > > on. > > > > I don't agree with you on one or two small details > > > > but IMHO a good idea. Since you can't compel > > > > agreement why don't you make up a document with > > > your > > > > exact proposed standards and put it up for > > > comments > > > > and adopt what the concensus agrees on? Your first > > > > email sounds like a good start. > > > > > > > > > > > > > > > > __________________________________ > > > > Do you Yahoo!? > > > > Yahoo! Mail SpamGuard - Read only the mail you > > > want. > > > > http://antispam.yahoo.com/tools > > > > > > > > _______________________________________________ > > > > Y-devel mailing list > > > > Y-devel@y-windows.org > > > > http://www.y-windows.org/mailman/listinfo/y-devel > > > > > > > > > __________________________________ > > > Do you Yahoo!? > > > Yahoo! Mail SpamGuard - Read only the mail you want. > > > http://antispam.yahoo.com/tools > > > > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Mail SpamGuard - Read only the mail you want. > > http://antispam.yahoo.com/tools > > > > _______________________________________________ > > Y-devel mailing list > > Y-devel@y-windows.org > > http://www.y-windows.org/mailman/listinfo/y-devel > > -- > http://www.mattsscripts.co.uk/ > - A great source for free CGI and stuff > > The quality of a blow-job is determined by the length of sheet you have to > pull out of your ass. > > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel > From pdamoc at gmx.net Fri Feb 20 14:01:42 2004 From: pdamoc at gmx.net (Peter Damoc) Date: Fri Feb 20 14:01:49 2004 Subject: [Y-devel] mailing list problem In-Reply-To: <403611F6.80609@triciaandjohn.com> References: <403611F6.80609@triciaandjohn.com> Message-ID: On Fri, 20 Feb 2004 08:56:06 -0500, John Johnson wrote: > Peter Damoc wrote: > >> hey guys, >> please set the Reply-To header of the mailing list to >> "y-devel@y-windows.org". >> This way when someones replys to a question we can all see the answer. >> :D >> > > 'Reply-All' will get the message to the list... > > cheers, > -john This is the very first time in my life I use ReplyAll. I still think that Reply-To header should be y-devel@y-windows.org -- Peter Damoc Hacker Wannabe Now: XP SP1, Python 2.3.3, wxPython 2.4.2.4 (2.5.1.0p7u via set PYHONPATH) From pdamoc at gmx.net Fri Feb 20 14:03:42 2004 From: pdamoc at gmx.net (Peter Damoc) Date: Fri Feb 20 14:03:47 2004 Subject: [Y-devel] suggestions In-Reply-To: <003601c3f7b8$9d5592a0$9c02a8c0@mandoline> References: <003601c3f7b8$9d5592a0$9c02a8c0@mandoline> Message-ID: On Fri, 20 Feb 2004 14:51:17 +0100, Claude Mench wrote: >> > I'm willing to invest time in the project if someone is willing to >> help >> > me. How do I go about testing Y on Windows XP? >> >> From what I understand, it's not possible (yet) :) > > > > Y already Works on Win32, it is the third time > I indicates it here > > look at : > > http://c.mench.free.fr > > just unzip the archive launch Ys.exe > > then launch Calculator.exe, Clock.exe, > sample.exe > > The terminal.exe is not functionnal but > displays correctly. > Maybe is time to have a link on the front page of y-windows to point to http://c.mench.free.fr :D -- Peter Damoc Hacker Wannabe Now: XP SP1, Python 2.3.3, wxPython 2.4.2.4 (2.5.1.0p7u via set PYHONPATH) From krism at evilpen.net Fri Feb 20 14:00:04 2004 From: krism at evilpen.net (Kristopher Matthews) Date: Fri Feb 20 14:04:10 2004 Subject: [Y-devel] mailing list problem In-Reply-To: References: Message-ID: Ermm.. The reply-to is an optional field that overrides reply.. The "from" field is properly set as y-devel@y-windows.org - so, hitting reply in your client should just .. send it there. ;) On Fri, 20 Feb 2004, Peter Damoc wrote: > hey guys, > please set the Reply-To header of the mailing list to > "y-devel@y-windows.org". > This way when someones replys to a question we can all see the answer. :D > > -- > Peter Damoc > Hacker Wannabe > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel > From krism at evilpen.net Fri Feb 20 14:02:54 2004 From: krism at evilpen.net (Kristopher Matthews) Date: Fri Feb 20 14:06:55 2004 Subject: [Y-devel] mailing list problem In-Reply-To: References: Message-ID: *doh* ;) Nevermind. I misunderstood his complaint. :) KRis On Fri, 20 Feb 2004, Kristopher Matthews wrote: > Ermm.. > > The reply-to is an optional field that overrides reply.. > > The "from" field is properly set as y-devel@y-windows.org - so, hitting > reply in your client should just .. send it there. > > ;) > > > On Fri, 20 Feb 2004, Peter Damoc wrote: > > > hey guys, > > please set the Reply-To header of the mailing list to > > "y-devel@y-windows.org". > > This way when someones replys to a question we can all see the answer. :D > > > > -- > > Peter Damoc > > Hacker Wannabe > > > > _______________________________________________ > > Y-devel mailing list > > Y-devel@y-windows.org > > http://www.y-windows.org/mailman/listinfo/y-devel > > > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel > From ea25066 at tarcoles.eie.ucr.ac.cr Fri Feb 20 14:07:02 2004 From: ea25066 at tarcoles.eie.ucr.ac.cr (ea25066@tarcoles.eie.ucr.ac.cr) Date: Fri Feb 20 14:07:24 2004 Subject: [Y-devel] mailing list problem In-Reply-To: References: Message-ID: <20040220140702.GA17491@abacus> El Fri, Feb 20, 2004 at 03:51:01PM +0200, si mal no recuerdo, Peter Damoc escribi?: > hey guys, > please set the Reply-To header of the mailing list to > "y-devel@y-windows.org". > This way when someones replys to a question we can all see the answer. :D Take a look aroud here http://archive.linuxfromscratch.org/mail-archives/links-list/2003-May/004189.html -- El?as Torres http://www.eie.ucr.ac.cr/elias elias en eie punto ucr punto ac punto cr From jerome at gandalf.fraca7.homeunix.net Fri Feb 20 13:55:44 2004 From: jerome at gandalf.fraca7.homeunix.net (Jerome Laheurte) Date: Fri Feb 20 14:09:16 2004 Subject: [Y-devel] suggestions In-Reply-To: <003601c3f7b8$9d5592a0$9c02a8c0@mandoline> References: <003601c3f7b8$9d5592a0$9c02a8c0@mandoline> Message-ID: ARGH! I'm messing things up with the Reply-to :( On Fri, 20 Feb 2004, Claude Mench wrote: > Y already Works on Win32, it is the third time > I indicates it here Sorry, I didn't see that in the archives :( Is this port maintained or is it just a proof of concept ? -- J?r?me Laheurte "The bland leadeth the bland and they both shall fall into the kitsch." From james at grickle.org Fri Feb 20 14:10:36 2004 From: james at grickle.org (James Harr) Date: Fri Feb 20 14:10:46 2004 Subject: [Fwd: Re: [Y-devel] Technical Notes] In-Reply-To: <1077231529.9201.122.camel@aragorn.pissedup.com> References: <1077231529.9201.122.camel@aragorn.pissedup.com> Message-ID: <200402200810.36570.james@grickle.org> I agree 100% with the brackets, they can shorten the vertical length of a statement, however sometimes I tend to forget there's a { after a condition like that. I would like to add that after long 'if's (25 lines or so long) that it's good to add a small note about what the 'if' is about. if ( x > y ) { // 25+ lines } // x > y This can help readability much, not just on if statements, but on long functions or on huge loops. On Thu February 19 2004 16:58, Matt Wilson wrote: > I'd definitely have to disagree with that for a few reasons; > > * 8 character tabs (rather than 2 or 4, 2 being my personal pref.) > * tabs (rather than spaces) > * braces positioning > > The reason I mention the positioning of braces is that when you have > lots of code, readability is a massive issue and; > > if ( .. ) { > // do something > } > > takes much longer to read (in terms of skimming through source looking > for something) than the alternative; > > if ( ... ) > { > // do something > } > > Likewise for other constructs; 'for, 'while, 'do' and function > definitions. > > Though I'm sure I'll receive some flame material for saying that :P From jerome at gandalf.fraca7.homeunix.net Fri Feb 20 13:59:07 2004 From: jerome at gandalf.fraca7.homeunix.net (Jerome Laheurte) Date: Fri Feb 20 14:12:39 2004 Subject: [Y-devel] mailing list problem In-Reply-To: References: Message-ID: On Fri, 20 Feb 2004, Peter Damoc wrote: > hey guys, > please set the Reply-To header of the mailing list to > "y-devel@y-windows.org". > This way when someones replys to a question we can all see the answer. :D Just noticed. After doing twice the same mistake :) As stated below, 'Reply to all' is one answer, but does everybody want to receive redundant mails ? -- J?r?me Laheurte Everything you know is wrong! From listreader at rambler.ru Fri Feb 20 14:23:53 2004 From: listreader at rambler.ru (Alexander Vlasov) Date: Fri Feb 20 14:19:10 2004 Subject: [Y-devel] Y over fbdev Message-ID: <20040220142353.GA26898@mumidol> Greetings. Y works over SDL just fine, but when I try to run Y over fbdev, I get errors: Y[15246]: configLoad:90: Opening config file: /opt/Y2/etc/Y/default.conf Y[15246]: initialise:600: Using fb:/dev/fb0 tty:/dev/tty (0) Y[15246]: Error: initialise: Couldn't open /dev/tty: No such device or address If I try to set tty & fb by hand (LoadModule "driver/video/fbdev" device=/dev/fb0 tty=/dev/tty7 mode=800x600-100), I get following errors: Y[15820]: configLoad:90: Opening config file: /opt/Y2/etc/Y/default.conf Y[15820]: initialise:600: Using fb:/dev/fb0 tty:/dev/tty7 (7) Y[15820]: Error: initialise: Couldn't activate /dev/tty7: Operation not permitted What's wrong with my config? -- WBR, Alexander A. Vlasov Debian GNU/Linux user JID: zulu@jabber.ru nic-hdl: ZULU-UANIC From c.mench at adilinstruments.com Fri Feb 20 14:21:09 2004 From: c.mench at adilinstruments.com (Claude Mench) Date: Fri Feb 20 14:22:01 2004 Subject: [Y-devel] suggestions References: <003601c3f7b8$9d5592a0$9c02a8c0@mandoline> Message-ID: <00ed01c3f7bc$cd496f00$9c02a8c0@mandoline> It could be maintained, but for now the openGl part seems to be refused (at least on hold), so I don't know the status. I don't know if my win32 modifications will be merged in the main tree. to resume: - I made a port to Win32 but the source remains compatible with Linux (conditional compilation everywhere). - Then i made an SDL+OpenGL video driver and the core modifications needed to have hardware acceleration but again theses modification remain linux compatible and don't break the SDL only video driver usage. - The only thing is that on the linux backport i didn't manage to do clean automake/autoconf usage, so the configure script is to be updated. For the linux backport of the OpenGl driver I tweaked the makefiles. But Mark could integrate my modifications in the main tree if he wanted, my sources are Linux and Win32 compatible, so as the OpengL extension. The people having tried my Win32 port will see that they can choose the SDL driver or the SDL+OpenGl driver indifferently. So i don't this I have broken anything. ----- Original Message ----- From: "Jerome Laheurte" To: Sent: Friday, 2004 February 20 14:55 Subject: Re: [Y-devel] suggestions ARGH! I'm messing things up with the Reply-to :( On Fri, 20 Feb 2004, Claude Mench wrote: > Y already Works on Win32, it is the third time > I indicates it here Sorry, I didn't see that in the archives :( Is this port maintained or is it just a proof of concept ? -- J?r?me Laheurte "The bland leadeth the bland and they both shall fall into the kitsch." _______________________________________________ Y-devel mailing list Y-devel@y-windows.org http://www.y-windows.org/mailman/listinfo/y-devel From listreader at rambler.ru Fri Feb 20 14:27:31 2004 From: listreader at rambler.ru (Alexander Vlasov) Date: Fri Feb 20 14:22:44 2004 Subject: [Y-devel] mailing list problem In-Reply-To: References: Message-ID: <20040220142731.GB26898@mumidol> Hi. On Fri, Feb 20, 2004 at 02:59:07PM +0100, Jerome Laheurte wrote: > On Fri, 20 Feb 2004, Peter Damoc wrote: > > > hey guys, > > please set the Reply-To header of the mailing list to > > "y-devel@y-windows.org". > > This way when someones replys to a question we can all see the answer. :D > > Just noticed. After doing twice the same mistake :) As stated below, > 'Reply to all' is one answer, but does everybody want to receive > redundant mails ? Just hit "L" in mutt to reply to the list, and I suggest you to do the same 8) -- WBR, Alexander A. Vlasov Debian GNU/Linux user JID: zulu@jabber.ru nic-hdl: ZULU-UANIC From pdamoc at gmx.net Fri Feb 20 14:25:33 2004 From: pdamoc at gmx.net (Peter Damoc) Date: Fri Feb 20 14:25:07 2004 Subject: [Y-devel] mailing list problem In-Reply-To: References: Message-ID: On Fri, 20 Feb 2004 14:59:07 +0100 (CET), Jerome Laheurte wrote: > On Fri, 20 Feb 2004, Peter Damoc wrote: > >> hey guys, >> please set the Reply-To header of the mailing list to >> "y-devel@y-windows.org". >> This way when someones replys to a question we can all see the answer. >> :D > > Just noticed. After doing twice the same mistake :) As stated below, > 'Reply to all' is one answer, but does everybody want to receive > redundant mails ? > I for sure don't wanna, but I understand that this is the price to pay for list flexibility and I don't mind. -- Peter Damoc Hacker Wannabe Now: XP SP1, Python 2.3.3, wxPython 2.4.2.4 (2.5.1.0p7u via set PYHONPATH) From brandon at tryplec.com Fri Feb 20 14:31:30 2004 From: brandon at tryplec.com (Brandon Black) Date: Fri Feb 20 14:31:36 2004 Subject: [Y-devel] Success report + resolution patch for sdl.c In-Reply-To: <4035F7FD.201@phpfreaks.com> References: <4035D1AD.20602@tryplec.com> <4035F7FD.201@phpfreaks.com> Message-ID: <40361A42.7060208@tryplec.com> Yeah you can do whatever you want with any trivial patches like that from me, I disclaim all rights to 5 minute efforts :) Aaron wrote: > Mind if I put this patch up on my http that I have started with some > faqs and other patches? http://www.darkobjects.net/~drizzt/y-base/ > > Aaron > > Brandon Black wrote: > >> >> Another success to report. I'll list the complications I ran into, >> some of which have already been echoed here: >> >> 1) The module shared objects get installed with no ".so" suffix by >> make install on my system, had to manually rename them to get things >> going >> 2) Y doesn't start properly when I execute it normally and let it >> detach to the background, haven't looked into why. My workaround so >> far has just been to execute it as "Y --no-detach &" >> >> Also, I have my framebuffer set to 1024x768, and Y is currently >> hardcoded to start up its SDL screen at 800x600. So there's a >> trivial and ugly hack patch to allow the SDL screen resolution to be >> set from the Y default.conf file at the bottom of this email. It >> works for me to set my screen to 1024x768, YMMV :) After applying >> this patch, I modify the sdl driver line in my default.conf like this: >> >> LoadModule "driver/video/sdl" res=1024x768 >> >> The project looks promising if very rough and early, keep up the good >> work :) Other than more low-level drivers and whatnot, has a list >> been made of the next important things to work on? I wouldn't mind >> putting some time in if it's something I can do. Here's a few basic >> things I can think of off the top of my head: >> >> 1) An obvious one would be to write some native utilities (file >> manager for example). >> 2) Set up some default hotkeys for a few things in the Y server (like >> ctrl+alt+backspace to kill server ala xfree86). >> 3) Set up a popup context menu on the desktop (in the wm code?) with >> a simple menu like many X window managers have (maybe a shutdown >> item, a client killer, and some basic neccesity client spawn commands >> like yiterm) >> 4) Set up an applications menu / dockbar / etc (startbar) type of >> thing (again in the wm code I guess?) - something with a menu that >> can be configured per-user for the applications you want to launch, >> and perhaps a window/task list, etc. >> >> Anyone working on any of this already, or have any other good basic >> ideas along these lines? >> >> Brandon >> >> diff -ur Y--devel--0.2--patch-1/modules/drivers/video/sdl/sdl.c >> myY/modules/drivers/video/sdl/sdl.c >> --- Y--devel--0.2--patch-1/modules/drivers/video/sdl/sdl.c >> 2004-01-29 15:30:13.000000000 -0600 >> +++ myY/modules/drivers/video/sdl/sdl.c 2004-02-20 03:04:11.000000000 >> -0600 >> @@ -285,6 +285,10 @@ >> initialise (struct Module *module, int argc, const char **argv) >> { >> struct VideoDriver *videodriver; >> + char* res=NULL; >> + int screenx=800; >> + int screeny=600; >> + int i; >> >> if ( SDL_Init(SDL_INIT_EVERYTHING) < 0 ) >> { >> @@ -296,7 +300,25 @@ >> videodriver -> d = ymalloc (sizeof (struct SDLVideoDriverData)); >> videodriver -> module = module; >> >> - sdlData(videodriver) -> sdlSurface = SDL_SetVideoMode(800, 600, >> 32, SDL_HWSURFACE|SDL_DOUBLEBUF|SDL_RESIZABLE); >> + for (i=0; i> + { >> + if (strncmp (argv[i], "res=", 4) == 0) >> + res = strdup(argv[i] + 4); >> + } >> + >> + if(res) { >> + char* xloc=strchr(res,'x'); >> + if(!xloc) { >> + Y_ERROR ("sdl: can't parse resolution string %s:",res); >> + } else { >> + screeny=atoi(xloc+1); >> + xloc=NULL; >> + screenx=atoi(res); >> + Y_ERROR ("sdl: Setting resolution to %i x %i",screenx,screeny); >> + } >> + } >> + >> + sdlData(videodriver) -> sdlSurface = SDL_SetVideoMode(screenx, >> screeny, 32, SDL_HWSURFACE|SDL_DOUBLEBUF|SDL_RESIZABLE); >> >> SDL_WM_SetCaption ("Y on SDL", NULL); >> >> >> >> _______________________________________________ >> Y-devel mailing list >> Y-devel@y-windows.org >> http://www.y-windows.org/mailman/listinfo/y-devel > From griffon26 at kfk4ever.com Fri Feb 20 14:35:29 2004 From: griffon26 at kfk4ever.com (Maurice van der Pot) Date: Fri Feb 20 14:35:32 2004 Subject: [Y-devel] Technical Notes In-Reply-To: <20040219215411.17844.qmail@web41502.mail.yahoo.com> References: <40352B48.9030306@invoqsystems.com> <20040219215411.17844.qmail@web41502.mail.yahoo.com> Message-ID: <20040220143529.GC8891@kfk4ever.com> Maybe the maintainers should see if they can just run indent with a certain set of options on any file checked into the archive. Anyone who would like to read the code with different layout could run indent with their own settings. Maybe it is best to only discuss things that are not managed by indent. I'm not sure what kind of things that would be though... seems most of my preferences are enforcable with indent. Just my 0.02 Maurice. From brandon at tryplec.com Fri Feb 20 14:36:30 2004 From: brandon at tryplec.com (Brandon Black) Date: Fri Feb 20 14:36:34 2004 Subject: [Y-devel] Success report + resolution patch for sdl.c In-Reply-To: <4035D1AD.20602@tryplec.com> References: <4035D1AD.20602@tryplec.com> Message-ID: <40361B6E.3010206@tryplec.com> Didn't think about all the different ways people might be running theirs (under X or fbdev) - my success report below and my no-detach problem were from running it with the SDL driver without X (SDL talking to framebuffer, possibly through GGI library, couldn't tell if it was using GGI or going direct to the fb device), on a Gentoo system. It was on an nvidia graphics card, with the kernel's framebuffer configured for VESA mode 0x318 (1024x768x24/32). Brandon Black wrote: > > Another success to report. I'll list the complications I ran into, > some of which have already been echoed here: > > 1) The module shared objects get installed with no ".so" suffix by > make install on my system, had to manually rename them to get things > going > 2) Y doesn't start properly when I execute it normally and let it > detach to the background, haven't looked into why. My workaround so > far has just been to execute it as "Y --no-detach &" > [...] From casey at cwinans.com Fri Feb 20 14:34:14 2004 From: casey at cwinans.com (Casey Winans) Date: Fri Feb 20 14:38:12 2004 Subject: [Y-devel] Why now use GObject for the object system Message-ID: <1077287654.2131.22.camel@spongebob.www.ebizitpa.local> Introduction ---------------------------------------------------- I've been lurking on the list for the past couple of days and have read the thesis (once a few months ago and again right now). I've done very little C/C++ programming outside of college but can read it quite well. I spend most of my time in higher level languages such as Java and C# but have dabbled with many more languages on a hobbyist level. ---------------------------------------------------- While reading the thesis, I wondered what the reasons were for reinventing an object system in C... why not use the GObject system instead? I make no claims to understanding the full details of the GObject system or Y's object system... I'm just trying to spark ideas and constructive dialog. Please feel free to let me know how absurd my idea is if need be. -- Casey Winans From griffon26 at kfk4ever.com Fri Feb 20 14:39:50 2004 From: griffon26 at kfk4ever.com (Maurice van der Pot) Date: Fri Feb 20 14:39:53 2004 Subject: [Y-devel] License In-Reply-To: <1077279290.5536.5.camel@angel> References: <200402192226.03922.tcfelker@mtco.com> <20040220111211.GB8891@kfk4ever.com> <1077279290.5536.5.camel@angel> Message-ID: <20040220143950.GD8891@kfk4ever.com> On Fri, Feb 20, 2004 at 12:14:51PM +0000, David McBride wrote: > On Fri, 2004-02-20 at 11:12, Maurice van der Pot wrote: > > On Thu, Feb 19, 2004 at 10:26:03PM -0600, Tom Felker wrote: > > > Alternately, you > > > could promise that you won't consider plugins to be derived. > > > > I am afraid defining the term "derived work" is not up to the > > one using the license. > > There was a discussion on this subject on LKML. > > In short, the licensor can specify that some works which might otherwise > be considered a derived work will not be considered derived works under > the license. IANAL, but doesn't this only work as long as it stays out of courts? I have the feeling that judges have to interpret "derived work" as either something that is universally defined in the same way or in the absence of such a definition, as whatever the authors of the license defined. If you ask me, you can change the definition, but you are thereby changing the license. Maurice. From jerome at gandalf.fraca7.homeunix.net Fri Feb 20 14:31:51 2004 From: jerome at gandalf.fraca7.homeunix.net (Jerome Laheurte) Date: Fri Feb 20 14:45:23 2004 Subject: [OT] [Y-devel] mailing list problem In-Reply-To: <20040220142731.GB26898@mumidol> References: <20040220142731.GB26898@mumidol> Message-ID: On Fri, 20 Feb 2004, Alexander Vlasov wrote: > Just hit "L" in mutt to reply to the list, and I suggest you to do the > same 8) Well, I'm looking for something like this under Pine... I know it's not 'Free' in the Debian sense, but I'm used to it :) According to the doc, it doesn't seem possible... Maybe I didn't dig enough... -- J?r?me Laheurte The law will never make men free; it is men who have got to make the law free. -- Henry David Thoreau From casey at cwinans.com Fri Feb 20 14:45:50 2004 From: casey at cwinans.com (Casey Winans) Date: Fri Feb 20 14:49:32 2004 Subject: [Y-devel] Technical Notes (additional) In-Reply-To: References: Message-ID: <1077288350.2131.27.camel@spongebob.www.ebizitpa.local> > An OOP approach doesn't necessarily have to be taken (although this might be a good idea), but features like variable declaration at the point of use, references and exceptions make for much more readable/robust code. Have you read the thesis yet? http://www.doc.ic.ac.uk/~ajf/Teaching/Projects/Distinguished03/ MarkThomas.pdf It explains why C was chosen over C++ because of the compiler dependent mangling of C++ function names... C is a better fit so that many language bindings can be created for Y. -- Casey Winans From dwm at y-windows.org Fri Feb 20 14:55:25 2004 From: dwm at y-windows.org (David McBride) Date: Fri Feb 20 14:56:03 2004 Subject: [Y-devel] License In-Reply-To: <20040220143950.GD8891@kfk4ever.com> References: <200402192226.03922.tcfelker@mtco.com> <20040220111211.GB8891@kfk4ever.com> <1077279290.5536.5.camel@angel> <20040220143950.GD8891@kfk4ever.com> Message-ID: <1077288924.5436.22.camel@angel> On Fri, 2004-02-20 at 14:39, Maurice van der Pot wrote: > > In short, the licensor can specify that some works which might otherwise > > be considered a derived work will not be considered derived works under > > the license. > > IANAL, but doesn't this only work as long as it stays out of courts? > I have the feeling that judges have to interpret "derived work" as > either something that is universally defined in the same way or in > the absence of such a definition, as whatever the authors of the > license defined. Conflicts over legal agreements are resolved in court when all else fails. If we get that far, the law of the land will decide who wins. If we have announced in the past that we consider binary plugins to not be a derived work, then subsequently take someone to court on the basis that their binary plugin *is* considered, by us, to be a derived work then they can point to our earlier statement and claim protection under estoppel. As far as I'm concerned, they'd be right, too - turning around and later suing them would be pretty damn nasty. The only uncertainty here is whether the judge would conclude that we'd waived those rights. For that analysis, you'd need to talk to a lawyer, and I am not a lawyer. Linus Torvalds wrote in an email to the LKML titled 'RE: Linux GPL and binary module exception clause?' dated Wed 10 Dec 2003 15:11:24 -0800 the following: On Wed, 10 Dec 2003, Andre Hedrick wrote: > > How can the additional words alter the mean of GPL itself? They can't. But they _can_ alter your ability to sue. In particular, if you publicly state that you will not sue anybody over something, they can now use that statement to make future plans. If at a later date you decide to sue them anyway, they can point the judge at your earlier statement, and claim estoppel against you. .. ie that estoppel is a legitimate legal defense in a court of law. Now I can't judge whether Linus is right or not, but he's had to talk to far more lawyers recently than I ever want to so chances are his understanding is as accurate as we're going to get without talking to laywers ourselves. [ Whatever happened to the days when ignorance of the law wasn't only just considered "not an excuse" but wasn't even considered likely? ] Cheers, David -- David McBride -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040220/3ac3b9c3/attachment.bin From brandon at tryplec.com Fri Feb 20 14:56:44 2004 From: brandon at tryplec.com (Brandon Black) Date: Fri Feb 20 14:56:53 2004 Subject: [Y-devel] Technical Notes (additional) In-Reply-To: <1077288350.2131.27.camel@spongebob.www.ebizitpa.local> References: <1077288350.2131.27.camel@spongebob.www.ebizitpa.local> Message-ID: <4036202C.9000500@tryplec.com> Late/scoped variable declarations are there in C on gcc, although I'm not sure if they're part of C99 or just a gnu extension. Casey Winans wrote: >>An OOP approach doesn't necessarily have to be taken (although this might be a good idea), but features like variable declaration at the point of use, references and exceptions make for much more readable/robust code. >> >> > >Have you read the thesis yet? >http://www.doc.ic.ac.uk/~ajf/Teaching/Projects/Distinguished03/ >MarkThomas.pdf > >It explains why C was chosen over C++ because of the compiler dependent >mangling of C++ function names... C is a better fit so that many >language bindings can be created for Y. > >-- >Casey Winans > > >_______________________________________________ >Y-devel mailing list >Y-devel@y-windows.org >http://www.y-windows.org/mailman/listinfo/y-devel > > From maxl_mailbox at inode.at Fri Feb 20 15:11:43 2004 From: maxl_mailbox at inode.at (Markus Cserna) Date: Fri Feb 20 15:09:50 2004 Subject: [Y-devel] Technical Notes (additional) In-Reply-To: <4036202C.9000500@tryplec.com> References: <1077288350.2131.27.camel@spongebob.www.ebizitpa.local> <4036202C.9000500@tryplec.com> Message-ID: <200402201611.43733.maxl_mailbox@inode.at> On Friday 20 February 2004 15:56, Brandon Black wrote: > Late/scoped variable declarations are there in C on gcc, although I'm > not sure if they're part of C99 or just a gnu extension. They are part of C99 and gcc supports them. There is even a document for gcc, but I don't know how up-to-date this is (it's called "mixed declarations and code" there): http://gcc.gnu.org/c99status.html Regards, Markus From jpd at dsb.tudelft.nl Fri Feb 20 15:11:02 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Fri Feb 20 15:11:13 2004 Subject: [Fwd: Re: [Y-devel] Technical Notes] In-Reply-To: <1077231529.9201.122.camel@aragorn.pissedup.com> References: <1077231529.9201.122.camel@aragorn.pissedup.com> Message-ID: <20040220151102.GA71151@dsb.tudelft.nl> On Thu, Feb 19, 2004 at 10:58:50PM +0000, Matt Wilson wrote: > On Thu, 2004-02-19 at 22:04, Nitin S Kumar wrote: > > You should probably use the Linux kernel coding style > > guidelines as a start > > (linux/Documentation/CodingStyle). The gnu coding style is one of the sickest I've ever seen. I don't know how much it differs from the linux guidelines though. (Nor do I care.) > I'd definitely have to disagree with that for a few reasons; > > * 8 character tabs (rather than 2 or 4, 2 being my personal pref.) > * tabs (rather than spaces) I'd like to chip in here and note that assuming and/or trying to enforce that the actual ascii-#9 HT (`horizontal tab') character be anything but a tabulation to the nearest greater tab position at 8-character intervals will break at lots of places and will do more harm than good. That said, whatever width you use for indenting, and thus how many columns your -key moves is a different matter completely, and a matter of personal preference and proper configuration of your favourite editor. I know mine but I don't think it important enough to start a holy war on this. 8 is the easiest, my own code has 2, reseach indicated 4 might be the most readable. Pick one, and stick with it. As long as the HT-issue above is honoured, _I_, for one, will not complain. > * braces positioning 1tis, of course. Seriously, I think Mark Thomas gets to say what we pick and we stick with it. [snip] > Though I'm sure I'll receive some flame material for saying that :P Of course, your personal preference is opposite of mine, and if I'm taking part in a holy war I cannot but assert I am right and nobody else is. -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From paolo at ghido.com Fri Feb 20 15:35:00 2004 From: paolo at ghido.com (Paolo Ghidini) Date: Fri Feb 20 15:35:13 2004 Subject: [Y-devel] Newbie Message-ID: <40362924.2040604@ghido.com> Hi all i'm e newbie of Y-windows and a try to build a copy of software but when i run ./autogen.sh i obtain this error: aclocal: configure.ac: 26: macro `AM_PROG_CC_C_O' not found in library i think that aclocal search gcc, but i just install gcc!! Thank you ghido From jared.hanson at helixent.com Fri Feb 20 15:58:24 2004 From: jared.hanson at helixent.com (Jared Hanson) Date: Fri Feb 20 16:12:13 2004 Subject: [Y-devel] Project management suggestions Message-ID: <35956.24.220.19.13.1077292704.squirrel@webmail1.hrnoc.net> I'm just thinking about some project management issues right now. I was wondering what people's thoughts are on using Subversion (http://subversion.tigris.org) as a version control system. It's scheduled to be released Monday at version 1.0. I've been waiting for a while for this milestone, as sv looks like a great vcs. It is quite a bit more powerful than cvs and handles directory renames and moves gracefully, which is a big benefit. Also, a Wiki, as has been suggested, would be a terrific idea. We really need a place to post documentation and keep it up to date as the project matures. For code documentation, I really like doxygen for automatically generating pretty function documentation and what not. I find a good code reference/documentation to be invaluable as a cross reference when writing code. Anyone got any thoughts? For the person(s) who maintain the y-windows.org domain: would it be possible to get a subversion repo and a wiki running on the domain? It'd be nice not to split these things up into too many different locations. From eric at sandall.us Fri Feb 20 16:21:23 2004 From: eric at sandall.us (Eric Sandall) Date: Fri Feb 20 16:15:11 2004 Subject: [Y-devel] Build layout In-Reply-To: <40355951.6080805@phpfreaks.com> References: <1077237227.403555eba3753@horde.sandall.us> <40355951.6080805@phpfreaks.com> Message-ID: <1077294083.4036340333279@horde.sandall.us> Quoting Aaron : > Eric Sandall wrote: > > > Hi all, > > > > I'm wondering if it would be possible to rewrite the configure/install > steps so > > that you can just run one ./configure && make && make install from the > topdir. > > This is how most packages do it (well, the easy ones, anyways ;)) and > would > > make installing Y much easier. What would be needed (vaguely, I'm not a > > Makefile/configure wizard) is that the make processes do the > libraries/packages > > in-order, install the libs to $topdir/.libs, and for the necessary packages > add > > $topdir/.libs to LDFLAGS, then when it's all done and linked, run `make > > install` in all of the subdirs. > > > > Well, that's the general idea, anyways. ;) > > > > -sandalle > > > > actually, thats all I really had to do to install it. did you need to do > it differently? > > Aaron Sorry, my bad, I meant libiterm has these problems, Y works just fine. ;) -sandalle -- PGP Key Fingerprint: FCFF 26A1 BE21 08F4 BB91 FAED 1D7B 7D74 A8EF DD61 http://search.keyserver.net:11371/pks/lookup?op=get&search=0xA8EFDD61 -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS/E/IT$ d-- s++:+>: a-- C++(+++) BL++++VIS>$ P+(++) L+++ E-(---) W++ N+@ o? K? w++++>-- O M-@ V-- PS+(+++) PE(-) Y++(+) PGP++(+) t+() 5++ X(+) R+(++) tv(--)b++(+++) DI+@ D++(+++) G>+++ e>+++ h---(++) r++ y+ ------END GEEK CODE BLOCK------ Eric Sandall | Source Mage GNU/Linux Developer eric@sandall.us | http://www.sourcemage.org/ http://eric.sandall.us/ | SysAdmin @ Inst. Shock Physics @ WSU http://counter.li.org/ #196285 | http://www.shock.wsu.edu/ ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From rmedina at rochester.rr.com Fri Feb 20 16:27:25 2004 From: rmedina at rochester.rr.com (Ramon Medina) Date: Fri Feb 20 16:27:41 2004 Subject: [Y-devel] Getting started Message-ID: <200402201127.25149.rmedina@rochester.rr.com> Hi all, I just compiled the sources yesterday. I had to make some changes to make it work with libsigc++ 1.2, which I'll detail when I get home sunday night if anyone is interested. Haven't gotten any apps to run yet. I do have the fonts installed but maybe not in the way it expects (I have a Linux from Scratch system), but that's an issue I'll get to when my exams are over next week. I would definately like to contribute to this project. I don't have a lot of experience programming, though. I did have some thoughts as I was looking through the code. We really need to adopt a coding standard before anyone writes too much more code and update the code we have to reflect it. I don't mind going against my own preferences as long as we all agree to follow it. Especially important (to me anyway) is documenting the code. As a matter of habit/ discipline I always write headers for each class/function(in javadoc-like style) before I start coding it. Doxygen, or something similar, can then be used to generate docs so it's easier to see the relationships between different parts of the code. I just compiled kdevelop 3 recently and it really looks nice, so I would like to use it. Anyone know how I can import Y into a kdevelop project? One more thing: I woke up this morning to 59 emails. Really, if this is going to work you'll all have to conform to my timezone and sleep when I do. =oP From keyguard at mail.ru Fri Feb 20 16:28:21 2004 From: keyguard at mail.ru (Key) Date: Fri Feb 20 16:28:35 2004 Subject: [Y-devel] Cannot run Y on my system. Message-ID: Very sorry. I've just installed the Y on my system( Slackware 9.1 on PIV2500;512 RAM; 128 mb Radeon; Intel 845E) into folder /tmp/ywin. When I try startY & nothing happens and I have such messages in log: Feb 20 19:15:06 ice Y[2484]: configLoad:90: Opening config file: /tmp/ywin/etc/Y/default.conf Feb 20 19:15:06 ice Y[2484]: clientRegister:48: Registering client with ID: 1 Feb 20 19:15:06 ice Y[2484]: clientAddObject:92: Adding object 2 [Window] to client 1 Feb 20 19:15:06 ice Y[2484]: clientAddObject:92: Adding object 3 [Console] to client 1 //It seems that all going ok... but nothing happaens with screen. ... [Ctrl-C] Feb 20 19:15:48 ice Y[2484]: clientClose:57: Closing client 1 May be this is an SDL incompatibility problem? Or another? Help, please. P.S.: May be a small bug(or feature) in startY (or Y): when I tried to run it from, root I get such message: *** A server is already running on /dev/.Y-0 , but it isn't in process lidt and there is no file /dev/.Y-0 :). And there is no file /tmp/.Y-0 whick creates when I run Y from any user. P.S.S: Very sorry for my bad English. ------- Key aka Alexander Bolshev [keyguard (at) mail.ru] From durin at sbcglobal.net Fri Feb 20 16:37:22 2004 From: durin at sbcglobal.net (Augie Fackler) Date: Fri Feb 20 16:37:26 2004 Subject: [Y-devel] Success! In-Reply-To: <1344.199.77.205.69.1077261583.squirrel@webmail.cc.gatech.edu> Message-ID: <0EB14C50-63C3-11D8-B15F-000502673BF6@sbcglobal.net> On Friday, February 20, 2004, at 01:19 AM, Matthew David Kurjanowicz wrote: > I'm most interested in this area, and maybe the two of us could start > brainstorming what this could look like. I disagree in having a > "chosen > one" - one true window manager. Not only do I believe in the freedom > to > chose your own window manager (heavy-weight, light-weight? so forth) as > well as there has been TONS of work put into window managers already, > and > it would be a real shame to just ignore that. What's the point of > reinventing the wheel? Yes, changing it, adding tires and so forth > (as a > metaphore), but it's still a wheel. Projects like Gnome, KDE, Fluxbox, > Windowmaker, and so forth have spent enormous amounts of time getting > a UI > right (as far as a whole package goes), and I think it would be absurd > to > not at least figure out some way to use those projects on Y. I think that at some point we need to make some kind of HIG for programs(note, this is way in the future). I think that we should try and keep the GUI configureable. As an example, KDE lets you pick the location of the menu bar, which is something I like very much. Skinnable would be a good thing too, and although I've not checked that portion of the code yet, I think that was already being planned for. 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 jared.hanson at helixent.com Fri Feb 20 16:30:34 2004 From: jared.hanson at helixent.com (Jared Hanson) Date: Fri Feb 20 16:44:25 2004 Subject: [Y-devel] Cannot run Y on my system. In-Reply-To: References: Message-ID: <40016.24.220.19.13.1077294634.squirrel@webmail1.hrnoc.net> It sounds like you are missing some required fonts. Check out http://corefonts.sourceforge.net for help on how to get them. As an aside, it's rather unfortunate that this is as big of a problem as it is. The next version should try and restrict itself to fonts that are expected on a Linux system, without this MS core ronts requirement. > Very sorry. > > I've just installed the Y on my system( Slackware 9.1 on PIV2500;512 RAM; > 128 mb Radeon; Intel 845E) into folder /tmp/ywin. > When I try startY & nothing happens and I have such messages in log: > > Feb 20 19:15:06 ice Y[2484]: configLoad:90: Opening config file: > /tmp/ywin/etc/Y/default.conf > Feb 20 19:15:06 ice Y[2484]: clientRegister:48: Registering client with > ID: 1 > Feb 20 19:15:06 ice Y[2484]: clientAddObject:92: Adding object 2 [Window] > to client 1 > Feb 20 19:15:06 ice Y[2484]: clientAddObject:92: Adding object 3 [Console] > to client 1 > //It seems that all going ok... but nothing happaens with screen. > ... > [Ctrl-C] Feb 20 19:15:48 ice Y[2484]: clientClose:57: Closing client 1 > > May be this is an SDL incompatibility problem? > Or another? Help, please. > > P.S.: May be a small bug(or feature) in startY (or Y): when I tried to run > it from, root I get such message: > *** A server is already running on /dev/.Y-0 > , but it isn't in process lidt and there is no file /dev/.Y-0 :). And > there is no file /tmp/.Y-0 whick creates when I run Y from any user. > > P.S.S: Very sorry for my bad English. > > ------- > Key aka Alexander Bolshev [keyguard (at) mail.ru] > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel > From spiralman at softhome.net Fri Feb 20 17:02:44 2004 From: spiralman at softhome.net (Thomas) Date: Fri Feb 20 17:03:09 2004 Subject: [Y-devel] minimize patch (sortof) and what is needed to get it right Message-ID: <200402201202.44657.spiralman@softhome.net> Hello. I was reading through code and decided to write a patch to support minimizing windows. This was partially just my way of getting used to the source code (although i still have a long way to go), but it is also a feature that needs to be implemented eventually. Currently this does not actually hide windows, but instead "shades" them (makes them only display their title bars), but all the hooks to do actual minimizing are in there. In this case even that doesnt happen perfectly, because the widgetResize() function keeps the minimum height to large for the display to look quite right. I have also changed some code that assumed that the only valid values of WindowSizeState were WINDOW_SIZE_NORMAL and WINDOW_SIZE_MAXIMISE (ie, they check for WINDOW_SIZE_NORMAL and if it isnt, they assume it is maximized). I also added a WINDOW_SIZE_MINIMIZE value to the enum. There were two reasons i did not actually implement minimizing: first, the desktop has no way of hiding/showing windows, it can only remove them. based on the current code, it looks like there are two easy ways to implement this, either with a flag in the window class to set whether it is hidden or not, or by implementing a separate list of "hidden windows" in the desktop class and have show/hide move the windows between the lists (i prefer this second way myself). This would certainly make showing/hiding windows slower, but drawing windows would operate faster, which is, imho, the better place to put the speedup. The second reason i did not implement actual window minimizing is that there is currently no GUI available to unminimize the window. presumably this would be done in some sort of taskbar (a. la. windows), a desktop mouse menu (*box) or even desktop icons (twm, etc). This got me to thinking about how and where a person would implement this feature. In the X environment this would be done in the window manager, but since the window manager is just another module in Y, perhaps it would be better to make a "task manager" module, which the user could swap in and out, and, presumably, a window manager module could also implement a task manager module and provide both functionalities. anyway, here, finally, is the patch Thomas Stephens spiralman@softhome.net --- orig/Y/modules/windowmanager_interface.h +++ mod/Y/modules/windowmanager_interface.h @@ -28,6 +28,7 @@ void (*selectWindow) (struct WindowManager *, struct Window *); void (*maximiseWindow) (struct WindowManager *, struct Window *); void (*restoreWindow) (struct WindowManager *, struct Window *); + void (*minimizeWindow) (struct WindowManager *, struct Window *); }; #endif --- orig/Y/modules/windowmanager.h +++ mod/Y/modules/windowmanager.h @@ -24,6 +24,7 @@ void wmSelectWindow (struct Window *); void wmMaximiseWindow (struct Window *); void wmRestoreWindow (struct Window *); +void wmMinimizeWindow (struct Window *); #endif /* macro guard */ --- orig/Y/modules/windowmanager.c +++ mod/Y/modules/windowmanager.c @@ -109,5 +109,13 @@ return currentWindowManager -> restoreWindow (currentWindowManager, w); } +void +wmMinimizeWindow (struct Window *w) +{ + if (currentWindowManager == NULL) + return; + return currentWindowManager -> minimizeWindow (currentWindowManager, w); +} + /* arch-tag: 07b8bf39-884b-49a3-a3e6-1769c44432a2 */ --- orig/Y/widget/window.h +++ mod/Y/widget/window.h @@ -14,7 +14,7 @@ enum WindowSizeState { - WINDOW_SIZE_NORMAL, WINDOW_SIZE_MAXIMISE + WINDOW_SIZE_NORMAL, WINDOW_SIZE_MAXIMISE, WINDOW_SIZE_MINIMIZE }; #include --- orig/Y/widget/desktop.c +++ mod/Y/widget/desktop.c @@ -257,6 +257,7 @@ switch (winState) { case WINDOW_SIZE_NORMAL: + case WINDOW_SIZE_MINIMIZE: /* push any off bottom/right windows back on-to the screen, * if possible */ if (newRect -> w > self -> widget.w) @@ -275,7 +276,6 @@ case WINDOW_SIZE_MAXIMISE: /* just resize it */ widgetResize (windowToWidget (win), self -> widget.w, self -> widget.h); - break; } rectangleDestroy (winRect); rectangleDestroy (newRect); --- orig/modules/themes/basic/window.c +++ mod/modules/themes/basic/window.c @@ -29,7 +29,7 @@ enum WindowRegion { WINDOW_REGION_NOTHING, -WINDOW_REGION_MOVE, +WINDOW_REGION_MOVE, WINDOW_REGION_MINIMIZE, WINDOW_REGION_MAXIMISE, WINDOW_REGION_RESTORE, WINDOW_REGION_CLOSE, WINDOW_REGION_RESIZE_NW, WINDOW_REGION_RESIZE_N, WINDOW_REGION_RESIZE_NE, WINDOW_REGION_RESIZE_W, WINDOW_REGION_RESIZE_E, @@ -80,16 +80,18 @@ painterSetPenColour (painter, 0xFFFFFFFF); painterDrawLine (painter, x + w - 12, y + 5, 7, 7); painterDrawLine (painter, x + w - 6, y + 5, -7, 7); - if (windowGetSizeState (window) == WINDOW_SIZE_NORMAL) + if (windowGetSizeState (window) == WINDOW_SIZE_MAXIMISE) { - painterDrawLine (painter, x + w - 22, y + 5, -4, 7); - painterDrawLine (painter, x + w - 22, y + 5, 4, 7); + painterDrawLine (painter, x + w - 22, y + 12, -4, -7); + painterDrawLine (painter, x + w - 22, y + 12, 4, -7); } else { - painterDrawLine (painter, x + w - 22, y + 12, -4, -7); - painterDrawLine (painter, x + w - 22, y + 12, 4, -7); + painterDrawLine (painter, x + w - 22, y + 5, -4, 7); + painterDrawLine (painter, x + w - 22, y + 5, 4, 7); } + /*Minimize button*/ + painterDrawHLine( painter, x + w - 39, y + 12, 7 ); } @@ -104,7 +106,7 @@ ? objectGetPropertyAsInteger (windowToObject (window), "background") : bgcolour; - if (windowGetSizeState (window) == WINDOW_SIZE_NORMAL) + if (windowGetSizeState (window) != WINDOW_SIZE_MAXIMISE) { /* resizing border */ painterSetBlendMode (painter, COLOUR_BLEND_SOURCE); @@ -135,7 +137,7 @@ rectangleDestroy (rect); /* paint child */ - if (child != NULL) + if (child != NULL && windowGetSizeState (window) != WINDOW_SIZE_MINIMIZE) { struct Rectangle *childRect = widgetGetRectangle (child); painterSaveState (painter); @@ -168,6 +170,11 @@ wy = 0; ww = rect -> w; wh = rect -> h; + case WINDOW_SIZE_MINIMIZE: + wx = 5; + wy = 5; + ww = rect -> w - 10; + wh = rect -> h - 10; } if (y > wy && y <= wy + 19) @@ -176,13 +183,20 @@ region = WINDOW_REGION_MOVE; if (x >= wx + ww - 27 && x < wx + ww - 14) { - if (windowGetSizeState (window) == WINDOW_SIZE_NORMAL) - region = WINDOW_REGION_MAXIMISE; - else + if (windowGetSizeState (window) == WINDOW_SIZE_MAXIMISE) region = WINDOW_REGION_RESTORE; + else + region = WINDOW_REGION_MAXIMISE; } if (x >= wx + ww - 14 && x <= wx + ww) region = WINDOW_REGION_CLOSE; + if (x >= wx + ww - 41 && x <= wx + ww - 28) + { + if (windowGetSizeState (window) == WINDOW_SIZE_MINIMIZE) + region = WINDOW_REGION_RESTORE; + else + region = WINDOW_REGION_MINIMIZE; + } } if (x > wx && x < wx + ww && y > wy + 19 && y < wy + wh) region = WINDOW_REGION_CHILD; @@ -254,6 +268,8 @@ windowStartReshape (w, x, y, WINDOW_RESHAPE_MOVE); break; case WINDOW_REGION_MAXIMISE: wmMaximiseWindow (w); break; + case WINDOW_REGION_MINIMIZE: + wmMinimizeWindow (w); break; case WINDOW_REGION_RESTORE: wmRestoreWindow (w); break; case WINDOW_REGION_CLOSE: @@ -373,6 +389,11 @@ case WINDOW_SIZE_MAXIMISE: widgetMove (child, 0, 19); widgetResize (child, w, h - 19); + break; + case WINDOW_SIZE_MINIMIZE: + widgetMove (child, 5, 24); + widgetResize (child, w - 10, h - 29); + break; } } } --- orig/modules/wm/default/default.c +++ mod/modules/wm/default/default.c @@ -127,6 +127,20 @@ windowRestoreGeometry (win); } +static void +defaultMinimizeWindow (struct WindowManager *wm, struct Window *win) +{ + int x, y, w, h; + defaultSelectWindow (wm, win); + widgetGetPosition (windowToWidget (win), &x, &y); + widgetGetSize (windowToWidget (win), &w, &h); + printf( "%dx%d %dx%d\n", x, y, w, h ); + windowSaveGeometry (win); + windowSetSizeState (win, WINDOW_SIZE_MINIMIZE); + widgetMove (windowToWidget (win), x, y); + widgetResize (windowToWidget (win), w, 0); +} + int initialise (struct Module *m, int argc, const char **argv) { @@ -144,6 +158,7 @@ self -> selectWindow = defaultSelectWindow; self -> maximiseWindow = defaultMaximiseWindow; self -> restoreWindow = defaultRestoreWindow; + self -> minimizeWindow = defaultMinimizeWindow; self -> module = m; m -> name = "Default Window Manager"; m -> data = self; From kg4cjv at comcast.net Fri Feb 20 17:04:20 2004 From: kg4cjv at comcast.net (kg4cjv@comcast.net) Date: Fri Feb 20 17:04:57 2004 Subject: [Y-devel] (no subject) Message-ID: <022020041704.27451.757a@comcast.net> I've got a few err 10 p100's laying around, has anyone tested Y on a p100, I'm considering developing on Y if I can run it on one of my old pc. Thank, Eric From durin at sbcglobal.net Fri Feb 20 17:11:53 2004 From: durin at sbcglobal.net (Augie Fackler) Date: Fri Feb 20 17:12:02 2004 Subject: [Y-devel] Compile Problems on BSD Message-ID: Now, I know I'm insane for even trying this now, but I am trying to get this working on FreeBSD. A list of my errors are available at: http://tuxserver.ath.cx/~durin/compile.txt Basically, BSD is missing some standard header files. Having done a little research, the missing headers appear to be either available on the new technology release or will be soon, and it doesn't look like they are going to make it to the current stable release any time soon. That said, should I try and #ifdef some stuff in so that this will work on FreeBSD now, or should I work on -current of FBSD? Any thoughts on which of the above is the best route? 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 brentg at magma.ca Fri Feb 20 17:17:22 2004 From: brentg at magma.ca (Brent Gulanowski) Date: Fri Feb 20 17:16:47 2004 Subject: [Y-devel] mailing list problem In-Reply-To: References: Message-ID: On Feb 20, 2004, at 9:25 AM, Peter Damoc wrote: > On Fri, 20 Feb 2004 14:59:07 +0100 (CET), Jerome Laheurte > wrote: > >> On Fri, 20 Feb 2004, Peter Damoc wrote: >> >>> hey guys, >>> please set the Reply-To header of the mailing list to >>> "y-devel@y-windows.org". >>> This way when someones replys to a question we can all see the >>> answer. :D >> >> Just noticed. After doing twice the same mistake :) As stated below, >> 'Reply to all' is one answer, but does everybody want to receive >> redundant mails ? >> > > I for sure don't wanna, but I understand that this is the price to pay > for list flexibility and I don't mind. See your user mailing list preferences: eg: Avoid duplicate copies of messages? When you are listed explicitly in the To: or Cc: headers of a list message, you can opt to not receive another copy from the mailing list. Select Yes to avoid receiving copies from the mailing list; select No to receive copies. If the list has member personalized messages enabled, and you elect to receive copies, every copy will have a X-Mailman-Copy: yes header added to it. > -- Brent Gulanowski brentg@magma.ca -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2359 bytes Desc: not available Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040220/a65a9947/smime.bin From smartly at gala.net Fri Feb 20 17:05:01 2004 From: smartly at gala.net (Alexey Boyko) Date: Fri Feb 20 17:24:30 2004 Subject: [Y-devel] i18n In-Reply-To: <20040220204059.GD7133@hawk.stan.net> References: <20040220032139.GB7133@hawk.stan.net> <200402201148.51061.smartly@gala.net> <20040220204059.GD7133@hawk.stan.net> Message-ID: <200402201905.01144.smartly@gala.net> > And, what is "right way" for doing encoding conversions? It is possible to convert between UTF-8 and UCS4 manually. > I tried iconv, but with not much success. What problem? > I looked into wcrtomb and mbrtowc, and wcstombs/mbstowcs > but it seems that locale must be set > before conversion to something like setlocale(LC_CTYPE,"en_IN.utf8")? Yes, as I know. > Is there any cleaner way to do this? No, as I know. From rmedina at rochester.rr.com Fri Feb 20 17:24:35 2004 From: rmedina at rochester.rr.com (Ramon Medina) Date: Fri Feb 20 17:24:44 2004 Subject: [Y-devel] minimize patch (sortof) and what is needed to get it right In-Reply-To: <200402201202.44657.spiralman@softhome.net> References: <200402201202.44657.spiralman@softhome.net> Message-ID: <200402201224.35881.rmedina@rochester.rr.com> This is why we should come up with some design ideas so we know how we want things to interact. I'm afraid that features will be implemented in the wrong place and tangle things up if we don't. A better way to submit patches would be nice too. On Friday 20 February 2004 12:02 pm, you wrote: > Hello. I was reading through code and decided to write a patch to support > minimizing windows. This was partially just my way of getting used to the > source code (although i still have a long way to go), but it is also a > feature that needs to be implemented eventually. > > Currently this does not actually hide windows, but instead "shades" them > (makes them only display their title bars), but all the hooks to do actual > minimizing are in there. In this case even that doesnt happen perfectly, > because the widgetResize() function keeps the minimum height to large for > the display to look quite right. > > I have also changed some code that assumed that the only valid values of > WindowSizeState were WINDOW_SIZE_NORMAL and WINDOW_SIZE_MAXIMISE > (ie, they check for WINDOW_SIZE_NORMAL and if it isnt, they assume it is > maximized). I also added a WINDOW_SIZE_MINIMIZE value to the enum. > > There were two reasons i did not actually implement minimizing: first, the > desktop has no way of hiding/showing windows, it can only remove them. > based on the current code, it looks like there are two easy ways to > implement this, either with a flag in the window class to set whether it is > hidden or not, or by implementing a separate list of "hidden windows" in > the desktop class and have show/hide move the windows between the lists (i > prefer this second way myself). This would certainly make showing/hiding > windows slower, but drawing windows would operate faster, which is, imho, > the better place to put the speedup. > > The second reason i did not implement actual window minimizing is that > there is currently no GUI available to unminimize the window. presumably > this would be done in some sort of taskbar (a. la. windows), a desktop > mouse menu (*box) or even desktop icons (twm, etc). This got me to > thinking about how and where a person would implement this feature. In the > X environment this would be done in the window manager, but since the > window manager is just another module in Y, perhaps it would be better to > make a "task manager" module, which the user could swap in and out, and, > presumably, a window manager module could also implement a task manager > module and provide both functionalities. > > anyway, here, finally, is the patch > > Thomas Stephens > spiralman@softhome.net > From smartly at gala.net Fri Feb 20 17:05:01 2004 From: smartly at gala.net (Alexey Boyko) Date: Fri Feb 20 17:27:28 2004 Subject: [Y-devel] i18n In-Reply-To: <20040220204059.GD7133@hawk.stan.net> References: <20040220032139.GB7133@hawk.stan.net> <200402201148.51061.smartly@gala.net> <20040220204059.GD7133@hawk.stan.net> Message-ID: <200402201905.01144.smartly@gala.net> > And, what is "right way" for doing encoding conversions? It is possible to convert between UTF-8 and UCS4 manually. > I tried iconv, but with not much success. What problem? > I looked into wcrtomb and mbrtowc, and wcstombs/mbstowcs > but it seems that locale must be set > before conversion to something like setlocale(LC_CTYPE,"en_IN.utf8")? Yes, as I know. > Is there any cleaner way to do this? No, as I know. From brentg at magma.ca Fri Feb 20 17:32:26 2004 From: brentg at magma.ca (Brent Gulanowski) Date: Fri Feb 20 17:31:47 2004 Subject: [Y-devel] sub-projects Message-ID: I'm curious about some of the development style decisions being considered for this project. I have no vested interest and probably will not personally be able to contribute (way too many other priorities), but I will be following along to see how things go. I am very interested in the whole open source development model and would like to follow this since I can start watching early, unlike other existing projects of similar scope. At what point will it make sense to break up development into separate sub-projects? Or what other means to avoid monolithic coding? Will individuals be named as supervisors of different sub-projects or areas of specialization? (Build system, coding style, CVS, synchronization with libraries, and sub-projects) How will coding conventions, such as coding style, and the methods for getting object-oriented behaviour from C, be enforced? What will determine the useable status of Y? Are there expectations to set milestones? Will it be dynamic in response to contributions? I'm also very interested in any design documents or research being done and any results. Is anything underway, or will it be done on an ad hoc basis? The end product, if successful, is likely to be a very large code base. What will determine its ultimate structure? Wishing you all good luck and keen to see how things progress. -- Brent Gulanowski brentg@magma.ca From core at enodev.com Fri Feb 20 17:48:43 2004 From: core at enodev.com (Shawn) Date: Fri Feb 20 17:48:47 2004 Subject: [Fwd: RE: [Y-devel] compatibility, gtk+, Qt etc] In-Reply-To: <200402200835.24733.spiralman@softhome.net> References: <1369.199.77.205.69.1077262946.squirrel@webmail.cc.gatech.edu> <200402200835.24733.spiralman@softhome.net> Message-ID: <1077299323.9801.14.camel@localhost> Comments inline: On Fri, 2004-02-20 at 08:35 -0500, Thomas wrote: > We have some module (or set of modules. from what ive been looking at we > might need to have a video driver and a widget theme, maybe a wm as well to > do it this way) that, instead of drawing to a frame buffer, issue X commands > (ie, in the paintRectangle() function, they just use the XLib call to paint a > rectangle). > > their usage would go something like this: I'm sitting in the computer lab on > a unix workstation, and decide i want to run something off the computer in my > dorm room. I ssh into my comp, start up a second Y server with the XLib > compat drivers loaded, and i tell it which X server to point to. Then i run > my Y application and point it to that Y server (or, presumably move a running > Y application over to that server). This server then translates all the low > level drawing/event stuff into the X protocol through XLib and sends it out > over the network, displaying on the unix workstation. So this is a Y -> X protocol proxy, right? Basically sending Y protocol over the net, and having a Y proxy server acting like a remote Y server, but using X to display like the Y server is really an X client? (BTW, both "-y" and "-Y" options are unused in openssh... Anyone like to take a stab? Or at least start talking to them?) > Of course that would remove the nice overhead gain of server side widgets, but > using the *exact same* implementation and a slightly different usage, we can > get rid of that too: Instead of running the Y->X translating server on my > remote computer, i run it on the computer i want the windows to display on > (assuming i have permissions of course) and i then ssh into my dorm computer, > and point all the applications i want to run at the Y server running local on > the workstation. They transmit the lower bandwidth Y protocol over the > network, which is then translated into XLib calls and sent through the XLib > protocol between two local processes, which should dramatically speed up the > drawing times from the first usage without actually having to rewrite code. It seems like you're describing one of the solutions I mentioned in a previous email. > To me, this seems the most portable, least amount of code to rewrite (we dont > have to bother rewriting a whole new server when one already exists), and the > most flexible. So long as the Xwindow target DISPLAY host doesn't have to run an X and a Y desktop in full GUI mode.. It would seem the remote Y translating server could be started in some sort of redirect mode. Better yet, could there not be a Y compat module written for XFree86 in a more direct fashion utilizing libY[c]? This is really where the code for what it would need is anyway, right? (Forgive me for not looking) > As far as compatibility in the other direction (drawing X windows in the Y > server), this was discussed in the PDF and i like the idea used there. that > method, as i understand it, is to have a module that you load into your Y > server that acts as an X server, receiving things over the X protocol in the > standard network-transparent way and then translating them into the > appropriate low level Y drawing commands (since the low level drawing > commands are the only thing remotely analogous between the two protocols). Yep. /me nods > well, that got really long really fast. > anyway, its just an idea, and i need to read more code to see how feasible it > is, but in my opinion it seems like these are the two best ways to do this > that have been mentioned so far. What do you think of the "XFree86 module implementing Y server functionality using libY[c]" idea's feasibility? From stresscrash at kerneled.com Fri Feb 20 17:52:14 2004 From: stresscrash at kerneled.com (Mark Magnusson) Date: Fri Feb 20 17:52:28 2004 Subject: [Y-devel] Cannot run Y on my system. In-Reply-To: <40016.24.220.19.13.1077294634.squirrel@webmail1.hrnoc.net> References: <40016.24.220.19.13.1077294634.squirrel@webmail1.hrnoc.net> Message-ID: <4036494E.3090009@kerneled.com> yea, this is a real problem, i think that the first thing to get done would be to get it working on a *nix box without those windows fonts. It is being a bitch to install on my slack box BTW.. From core at enodev.com Fri Feb 20 17:54:51 2004 From: core at enodev.com (Shawn) Date: Fri Feb 20 17:54:58 2004 Subject: [Y-devel] Project management suggestions In-Reply-To: <35956.24.220.19.13.1077292704.squirrel@webmail1.hrnoc.net> References: <35956.24.220.19.13.1077292704.squirrel@webmail1.hrnoc.net> Message-ID: <1077299691.9801.19.camel@localhost> On Fri, 2004-02-20 at 10:58 -0500, Jared Hanson wrote: > I'm just thinking about some project management issues right now. I was > wondering what people's thoughts are on using Subversion > (http://subversion.tigris.org) as a version control system. It's > scheduled to be released Monday at version 1.0. I've been waiting for a > while for this milestone, as sv looks like a great vcs. It is quite a bit > more powerful than cvs and handles directory renames and moves gracefully, > which is a big benefit. You're not talking about project mgmt, you're talking about revision control and source code mgmt. arch is fine. It's not like this project is really big enough for it to be a problem, but it's great that they are using arch. SVN was not chosen for whatever reason. From drizzt321 at phpfreaks.com Fri Feb 20 18:00:07 2004 From: drizzt321 at phpfreaks.com (Aaron) Date: Fri Feb 20 18:00:26 2004 Subject: [Y-devel] Y over fbdev In-Reply-To: <20040220142353.GA26898@mumidol> References: <20040220142353.GA26898@mumidol> Message-ID: <40364B27.5070805@phpfreaks.com> Do you have write permission to use /dev/tty7? Either try running as root or add yourself to the tty group. Aaron Alexander Vlasov wrote: > Greetings. > > Y works over SDL just fine, but when I try to run Y over fbdev, I get > errors: > > Y[15246]: configLoad:90: Opening config file: /opt/Y2/etc/Y/default.conf > Y[15246]: initialise:600: Using fb:/dev/fb0 tty:/dev/tty (0) > Y[15246]: Error: initialise: Couldn't open /dev/tty: No such device or address > > If I try to set tty & fb by hand (LoadModule "driver/video/fbdev" > device=/dev/fb0 tty=/dev/tty7 mode=800x600-100), I get following errors: > > Y[15820]: configLoad:90: Opening config file: /opt/Y2/etc/Y/default.conf > Y[15820]: initialise:600: Using fb:/dev/fb0 tty:/dev/tty7 (7) > Y[15820]: Error: initialise: Couldn't activate /dev/tty7: Operation not permitted > > What's wrong with my config? > From listreader at rambler.ru Fri Feb 20 18:23:00 2004 From: listreader at rambler.ru (Alexander Vlasov) Date: Fri Feb 20 18:18:19 2004 Subject: [Y-devel] Y over fbdev In-Reply-To: <40364B27.5070805@phpfreaks.com> References: <20040220142353.GA26898@mumidol> <40364B27.5070805@phpfreaks.com> Message-ID: <20040220182300.GA13562@mumidol> Greetings, Aaron. Permissions was the first thing I tested after unsuccessfull try. [mumidol]~> whoami snork [mumidol]~> ll /dev/tty7 crw-rw-rw- 1 snork snork 4, 7 2002-03-14 23:51 /dev/tty7 On Fri, Feb 20, 2004 at 01:00:07PM -0500, Aaron wrote: > Do you have write permission to use /dev/tty7? Either try running as > root or add yourself to the tty group. > > Aaron > > Alexander Vlasov wrote: > > >Greetings. > > > >Y works over SDL just fine, but when I try to run Y over fbdev, I get > >errors: > > > >Y[15246]: configLoad:90: Opening config file: /opt/Y2/etc/Y/default.conf > >Y[15246]: initialise:600: Using fb:/dev/fb0 tty:/dev/tty (0) > >Y[15246]: Error: initialise: Couldn't open /dev/tty: No such device or > >address > >If I try to set tty & fb by hand (LoadModule "driver/video/fbdev" > >device=/dev/fb0 tty=/dev/tty7 mode=800x600-100), I get following errors: > > > >Y[15820]: configLoad:90: Opening config file: /opt/Y2/etc/Y/default.conf > >Y[15820]: initialise:600: Using fb:/dev/fb0 tty:/dev/tty7 (7) > >Y[15820]: Error: initialise: Couldn't activate /dev/tty7: Operation not > >permitted > > > >What's wrong with my config? > > > > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel -- WBR, Alexander A. Vlasov Debian GNU/Linux user JID: zulu@jabber.ru nic-hdl: ZULU-UANIC From superluser at frontiernet.net Fri Feb 20 19:25:44 2004 From: superluser at frontiernet.net (Andrew A. Gill) Date: Fri Feb 20 18:26:51 2004 Subject: [Y-devel] Y doesn't like me Message-ID: So I made a cast in line 56 and now Y compiles. But I can't get Y to run. I run startY and nothing happens. Well, the hard drive light flickers for about thirty seconds, but nothing else. I hit C-C, and it returns control of my session, but there's no explanation of what just happened. I see people talking about the log file, but I can't find it. Maybe it doesn't get that far, or maybe I just can't find it. Either way, little help? -- |Andrew A. Gill |I posted to Silent-Tristero and| | |all I got was this stupid sig! | |alt.tv.simpsons CBG-FAQ author | | | (Report all obscene mail to Le Maitre Pots)| |Yet: Temporary sig: -- I just can't find it. From ilovetogetspam at comcast.net Fri Feb 20 18:56:30 2004 From: ilovetogetspam at comcast.net (Jason Miller) Date: Fri Feb 20 18:57:09 2004 Subject: [Y-devel] Random thoughts Message-ID: <4036585E.6020500@comcast.net> I'll start off with a "Hello list." The idea behind Y intrigues me, so I am planning on pitching in wherever I can. I've been considering one of the issues related to server side widgets, and one idea came to mind. Someone commented in another email that loading client code to the server was undesirable, and I absolutely agree. There are many reasons to not allow this. However, if there was a scripting interface to the widget system, it would become possible for applications to load custom widgets without the overhead of a client canvas and all that binary communication. I know this idea is somewhat half-baked, but I wanted to throw it out there for consideration. It would accommodate the goal of keeping the message passing to a minimum, and there is nothing in the current spec or roadmap that really stands in the way. Feel free to shoot me down. J. From mpaque at mac.com Fri Feb 20 19:05:35 2004 From: mpaque at mac.com (Mike Paquette) Date: Fri Feb 20 19:05:35 2004 Subject: [Y-devel] Toolkits? In-Reply-To: <8B8AA2EE-63D6-11D8-A225-003065FC262A@apple.com> References: <1077216816.12796.7.camel@localhost.localdomain> <22780.24.220.19.13.1077222461.squirrel@webmail1.hrnoc.net> <9A44453E-631F-11D8-A893-003065FC262A@mac.com> <36073.24.220.19.13.1077228698.squirrel@webmail1.hrnoc.net> <8B8AA2EE-63D6-11D8-A225-003065FC262A@apple.com> Message-ID: On Feb 19, 2004, at 2:11 PM, jared.hanson@helixent.com wrote: > After sending in my reply, I got to thinking about various widget > related > items. You are correct in that most applications end up subclassing a > standard widget and overriding its drawing routines and whatever other > custom behaviour it might need. As an example, take a look at the > source > list in iTunes. The background of the selected row is rendered with a > gradient as opposed to a solid color. > I can't speak for Y, as I'm still poking around in it's code base. Subclassing and modifying widgets is generally much easier when the widget code resides entirely on the client, atop a lower level drawing framework. In a few past window systems where widgets have been done in the server, most notably the Sun NeWS window system, widgets were handled by a high level language run in the server's interpreter. NeWS included libraries of user interface widgets written in the NeWS environment (a PostScript superset), interacting with the user entirely in that environment, and only communicating to the outside environment (client app, or other NeWS widgets) when needed. This produced a very high level communications abstraction with the server. It was also a real pain to deal with. (There's lots of 'Why NeWS failed' commentary on the web.) From ychris at amshey.net Fri Feb 20 19:12:19 2004 From: ychris at amshey.net (ychris@amshey.net) Date: Fri Feb 20 19:08:59 2004 Subject: [Y-devel] Font problems In-Reply-To: References: Message-ID: <20040220191219.GB9195@amshey.net> On Fri, Feb 20, 2004 at 02:44:02PM +0100, Jerome Laheurte wrote: > > Okay, I installed all the MS fonts but it still doesn't work :) > > Setting some breakpoints with gdb shows that the font list (static > 'faces' in font.c) is empty on the first call to fontCreate. > > Am I missing something ? Fonts must be installed in /usr/X11R6/lib/X11/fonts/truetype, AFAIK; this is not where my install put them, but a symlink fixed that up. Other than that, check your syslog messages. --Chris From curtis at penguinbrat.com Fri Feb 20 19:17:52 2004 From: curtis at penguinbrat.com (Curtis Wood) Date: Fri Feb 20 19:18:38 2004 Subject: [Y-devel] Random thoughts In-Reply-To: <4036585E.6020500@comcast.net> References: <4036585E.6020500@comcast.net> Message-ID: <200402201317.04078.> I could be way off base here, I'm just now looking into Y, but I would think that an interface for custom widgets or something along those lines, could also be used as a way to interface XWindows - based apps, obviously with some kind of wrapper or something... I think this is a good idea none the less. On Friday 20 February 2004 12:56 pm, Jason Miller wrote: > I'll start off with a "Hello list." The idea behind Y intrigues me, so > I am planning on pitching in wherever I can. > > I've been considering one of the issues related to server side widgets, > and one idea came to mind. Someone commented in another email that > loading client code to the server was undesirable, and I absolutely > agree. There are many reasons to not allow this. However, if there was > a scripting interface to the widget system, it would become possible for > applications to load custom widgets without the overhead of a client > canvas and all that binary communication. > > I know this idea is somewhat half-baked, but I wanted to throw it out > there for consideration. It would accommodate the goal of keeping the > message passing to a minimum, and there is nothing in the current spec > or roadmap that really stands in the way. > > Feel free to shoot me down. > > J. > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel From curtis at penguinbrat.com Fri Feb 20 19:24:50 2004 From: curtis at penguinbrat.com (Curtis Wood) Date: Fri Feb 20 19:25:33 2004 Subject: [Y-devel] docs? Message-ID: <200402201324.50259.curtis@penguinbrat.com> Hi, I haven't downloaded Y just yet (waiting for openoffice to finish compiling), but Im really interested by some of the things I've read on it, albeit not much... Are there any online docs, for example the archecture or anything like this - is it in the development archive or something? I've been to the site ofcourse, its pretty small but I could have missed something.. Curtis From ychris at amshey.net Fri Feb 20 19:35:08 2004 From: ychris at amshey.net (ychris@amshey.net) Date: Fri Feb 20 19:31:44 2004 Subject: [Fwd: Re: [Y-devel] Technical Notes] In-Reply-To: <20040220151102.GA71151@dsb.tudelft.nl> References: <1077231529.9201.122.camel@aragorn.pissedup.com> <20040220151102.GA71151@dsb.tudelft.nl> Message-ID: <20040220193508.GC9195@amshey.net> On Fri, Feb 20, 2004 at 04:11:02PM +0100, JP Dinger wrote: > On Thu, Feb 19, 2004 at 10:58:50PM +0000, Matt Wilson wrote: > > On Thu, 2004-02-19 at 22:04, Nitin S Kumar wrote: ... ... Braces of if(foo) { bar(); } are more vertically compact, making it easier to see an entire section of code at once and encouraging the use of blank lines to make code readable (because inserting blank lines is that much less painful). Braces of if(foo) { bar(); } make the brace-matching more obvious at a distance and eliminate many stupid mistakes of changing if(foo) bar(); to if(foo) { bar(); baz(); } Neither is 'right' or 'better', and which to use depends mostly on what a personal preference calls 'readable', and trying to advocate one leads only to holy wars. In any case, the style we -will- use is, if(foo) { bar(); } Why? Because that's the style Mark wrote the code in, and none of you can stop him from running it through a c formatter with his favorite settings so you might as well do it that way from the start. ;) If you want to convince him to change the style, try for something that isn't too terribly alien to what he writes naturally... As for, if(foo) { many_bars(); } // foo This is very bad. If you must have a tail comment, use /* foo */ - yes, gcc supports //, yes // is probably in several standards now, no, not every cc on every *nix believes in //. Right now, Y is for Linux, (and maybe BSD), but if it's ever going to replace X, it has to be portable across *nix-land. It may be that gcc-isms will creep in anyway, but unless people are willing to -require- gcc version N to build Y, I suggest we avoid doing so when possible. (Also, grep shows there are currently no // comments in the code, vaguely indicating they go against what established code style there is.) --Chris From cardoe at cardoe.com Fri Feb 20 19:37:37 2004 From: cardoe at cardoe.com (Doug Goldstein) Date: Fri Feb 20 19:40:20 2004 Subject: [Y-devel] Gentoo Support Message-ID: <40366201.7010303@cardoe.com> While the page might be ugly now. I'll keep up the Gentoo support over at http://www.cardoe.com/y-base/ Doug Goldstein From ychris at amshey.net Fri Feb 20 19:44:54 2004 From: ychris at amshey.net (ychris@amshey.net) Date: Fri Feb 20 19:41:31 2004 Subject: [Y-devel] Y doesn't like me In-Reply-To: References: Message-ID: <20040220194454.GD9195@amshey.net> On Fri, Feb 20, 2004 at 02:25:44PM -0500, Andrew A. Gill wrote: > Either way, little help? Y outputs syslog messages of Y.warn ; on most linux installs, /etc/syslog.conf puts *.warn to /var/log/messages, so that's where they end up, ymmv. You can also add LOG_PERROR to the options of openlog in Y/util/log.h, but you won't see much on stderr unless you run with --no-detach. --Chris From markjan at xs4all.nl Fri Feb 20 20:06:32 2004 From: markjan at xs4all.nl (Mark-Jan Bastian) Date: Fri Feb 20 20:06:42 2004 Subject: [Y-devel] display server architectures compared Message-ID: <20040220200631.GA54138@xs4all.nl> Hello, I looked on the website, but I cant find an architecture document yet. A display server is a graphics powerhorse, and these days the standards are pretty high if you want to measure yourself against microsoft's DirectX and apple's quartz display engines. Especially quartz has impressed me a lot. It is not the ghost-in-a-bottle, and the transparent, very smooth animated graphics themselves that wowed me, but how they actually got it all that smooth and fast. I assume there is a lot of buffering going on for each window, RAM is cheap these days. But then still, the server has to make a good tradeoff between using videomemory and main memory. What I am also missing is info on the coordinate system to use, and what graphics primitives must be availble, how they are queued/batched, and how all the planes will be interfacing with each other. Is this thing going to be heavily multithreaded, like the still-awesome BeOS appserver ? Things like this. Is there anyone on this list that wants to bring y-windows to a level like this, with a fresh design, good insight, and a good bag of experience in this kind of graphics programming ? Mark-Jan From jason-y at cwik.org Fri Feb 20 20:11:20 2004 From: jason-y at cwik.org (Jason Cwik) Date: Fri Feb 20 20:12:13 2004 Subject: [Y-devel] patch-2 Message-ID: <1077307880.24795.4319.camel@bobafett.mpls.ancept.com> I installed arch and checked out Y--devel--0.2--patch2 and have a couple questions: 1) I'm getting compile errors dealing with the debug macros in log.h. They're set up for varargs, but when called with only one parameter, they cause parse errors. I'm using debian-stable (ppc) which I believe is gcc 2.95. Do I need 3+? 2) Anyone know how to rollback your changes under arch? rm Y/utils/log.h; tla update doesn't work like CVS... it thinks I intentionally deleted log.h so I can commit its removal. 3) If we're going to continue with arch, some modification to the build process is in order. If you look at how tla is built, you do this: mkdir =build cd =build ../configure make This way, arch doesn't see the .o's and .so's and think that it has new source files that must be committed. From davidtheflyer at hotmail.com Fri Feb 20 20:12:57 2004 From: davidtheflyer at hotmail.com (David Vuorio) Date: Fri Feb 20 20:13:38 2004 Subject: [Y-devel] Y hangs on startup or exits with error message Message-ID: Basically, I can't get Y to start. Depending on whether I give the parameter --no-detach or not, I get different results. With a modified startY script which uses "Y --no-detach" I get: david@localhost Y $ startY /usr/local/bin/startY: line 25: 28338 Aborted ${bindir}/Y --no-detach Failed to connect to Y Server via Unix Domain Sockets: No such file or directory libY: Could not establish link to server at unix:/tmp/.Y-0 Aborted In all other cases trying to run Y yields no results. It just sits there. More specifically, I get this from strace: ... getpid() = 7793 rt_sigaction(SIGRTMIN, {0x400a0330, [], 0}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {0x400a0470, [], 0}, NULL, 8) = 0 rt_sigaction(SIGRT_2, {0x400a0650, [], 0}, NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [33], NULL, 8) = 0 _sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbffff164, 35, (nil), 0}) = 0 open("/dev/urandom", O_RDONLY) = 3 read(3, "$p\215\372\316\342\334E.\350$\247\252\nw\342\24\261zu\370"..., 32) = 32 close(3) = 0 socket(PF_UNIX, SOCK_DGRAM, 0) = 3 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 connect(3, {sa_family=AF_UNIX, path="/dev/log"}, 16) = 0 pipe([4, 5]) = 0 fork() = 7794 read(4, 0xbffff4b8, 8) = ? ERESTARTSYS (To be restarted) --- SIGCHLD (Child exited) @ 0 (0) --- read(4, (No new output ever occurs after that last comma.) ps ax | grep Y gives: david@localhost david $ ps ax | grep Y PID TTY STAT TIME COMMAND 7792 pts/3 S 0:00 strace Y 7793 pts/3 S 0:00 Y 7794 ? Z 0:00 [Y] 7845 pts/4 S 0:00 grep Y gdb gives (while the Y parent process is still running): (gdb) attach 7794 Attaching to process 7794 ptrace: Operation not permitted. System specs: Gentoo Linux, kernel 2.6.3 gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice) binutils 2.14.90.0.6-r6 glibc 2.3.3_pre20040207 glib 2.2.3 libiterm-mbt 0.5 It seems to be a problem that is in one way or another related to Gentoo. Probably a specific library version or system setup that differs from "regular" distros. However, I talked to at least one other Gentoo user who had it working. _________________________________________________________________ Chatt: Tr?ffa nya n?tkompisar p? Habbo Hotel http://habbohotel.msn.se/habbo/sv/channelizer From durin at sbcglobal.net Fri Feb 20 20:24:10 2004 From: durin at sbcglobal.net (Augie Fackler) Date: Fri Feb 20 20:25:13 2004 Subject: [Y-devel] display server architectures compared In-Reply-To: <20040220200631.GA54138@xs4all.nl> Message-ID: On Friday, February 20, 2004, at 02:06 PM, Mark-Jan Bastian wrote: > Hello, > > Especially quartz has impressed me a lot. It is not the > ghost-in-a-bottle, > and the transparent, very smooth animated graphics themselves that > wowed me, but how they actually got it all that smooth and fast. > I assume there is a lot of buffering going on for each window, RAM > is cheap these days. But then still, the server has to make a > good tradeoff between using videomemory and main memory. My(probably not entirely correct) understanding of Quartz is that *all* windows are buffered. There is an option, which defaults to off, to compress the window buffers on the fly. A lot of people turn that on, because the reduced RAM overhead means less dipping into swap space. In Quartz I think that the windows themselves don't know what they are showing, each window draws to its own buffer which is then overlayed by the window server, adding the drop shadows and so forth. A lot of the work with alpha channels is offloaded onto a GPU. At least, that's my understanding of how it works. 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 jpd at dsb.tudelft.nl Fri Feb 20 20:28:06 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Fri Feb 20 20:28:48 2004 Subject: [Y-devel] (no subject) In-Reply-To: <022020041704.27451.757a@comcast.net> References: <022020041704.27451.757a@comcast.net> Message-ID: <20040220202806.GA71648@dsb.tudelft.nl> On Fri, Feb 20, 2004 at 05:04:20PM +0000, kg4cjv@comcast.net wrote: > I've got a few err 10 p100's laying around, has anyone tested Y on a > p100, I'm considering developing on Y if I can run it on one of my old pc. Try. If you have a linux running you'll probably get it compiled and running with no less effort than the others; the sources aren't that much and _when_ you get them to compile they'll do so quickly enough that developing on a p100 won't be a problem. -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From cardoe at cardoe.com Fri Feb 20 20:29:20 2004 From: cardoe at cardoe.com (Doug Goldstein) Date: Fri Feb 20 20:32:08 2004 Subject: [Y-devel] Y hangs on startup or exits with error message In-Reply-To: References: Message-ID: <40366E20.1060700@cardoe.com> I have it working and several people have e-mailed me that they have it working with my e-builds. Try www.cardoe.com/y-base/ for some ebuilds. Doug David Vuorio wrote: > Basically, I can't get Y to start. Depending on whether I give the > parameter --no-detach or not, I get different results. > > With a modified startY script which uses "Y --no-detach" I get: > > david@localhost Y $ startY > /usr/local/bin/startY: line 25: 28338 Aborted > ${bindir}/Y --no-detach > Failed to connect to Y Server via Unix Domain Sockets: No such file or > directory > libY: Could not establish link to server at unix:/tmp/.Y-0 > Aborted > > In all other cases trying to run Y yields no results. It just sits > there. More specifically, I get this from strace: > > ... > > getpid() = 7793 > rt_sigaction(SIGRTMIN, {0x400a0330, [], 0}, NULL, 8) = 0 > rt_sigaction(SIGRT_1, {0x400a0470, [], 0}, NULL, 8) = 0 > rt_sigaction(SIGRT_2, {0x400a0650, [], 0}, NULL, 8) = 0 > rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0 > rt_sigprocmask(SIG_UNBLOCK, [33], NULL, 8) = 0 > _sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbffff164, 35, (nil), 0}) = 0 > open("/dev/urandom", O_RDONLY) = 3 > read(3, > "$p\215\372\316\342\334E.\350$\247\252\nw\342\24\261zu\370"..., 32) = 32 > close(3) = 0 > socket(PF_UNIX, SOCK_DGRAM, 0) = 3 > fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 > connect(3, {sa_family=AF_UNIX, path="/dev/log"}, 16) = 0 > pipe([4, 5]) = 0 > fork() = 7794 > read(4, 0xbffff4b8, 8) = ? ERESTARTSYS (To be restarted) > --- SIGCHLD (Child exited) @ 0 (0) --- > read(4, > > (No new output ever occurs after that last comma.) > > ps ax | grep Y gives: > > david@localhost david $ ps ax | grep Y > PID TTY STAT TIME COMMAND > 7792 pts/3 S 0:00 strace Y > 7793 pts/3 S 0:00 Y > 7794 ? Z 0:00 [Y] > 7845 pts/4 S 0:00 grep Y > > gdb gives (while the Y parent process is still running): > > (gdb) attach 7794 > Attaching to process 7794 > ptrace: Operation not permitted. > > System specs: > > Gentoo Linux, kernel 2.6.3 > gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice) > binutils 2.14.90.0.6-r6 > glibc 2.3.3_pre20040207 > glib 2.2.3 > libiterm-mbt 0.5 > > It seems to be a problem that is in one way or another related to > Gentoo. Probably a specific library version or system setup that > differs from "regular" distros. However, I talked to at least one > other Gentoo user who had it working. > > _________________________________________________________________ > Chatt: Tr?ffa nya n?tkompisar p? Habbo Hotel > http://habbohotel.msn.se/habbo/sv/channelizer > > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel > > From spiralman at softhome.net Fri Feb 20 20:50:21 2004 From: spiralman at softhome.net (Thomas) Date: Fri Feb 20 20:50:36 2004 Subject: [Y-devel] minimize patch version 2.0 Message-ID: <200402201550.21194.spiralman@softhome.net> ok, i worked on Desktop and gave it a list of hidden windows in addition to the list of visible windows. there is now a desktopShowWindow( Desktop *, Window *) and a desktopHideWindow( Desktop *, Window *) which moves things between the stack of visible windows and the list of hidden windows. (adding a window still automatically makes it visible). Of course, there is still no GUI to unmaximize windows. What do people think of the idea of having a task manager module similar to a window manager module? or would this better fit in the window manager module itself? let me know how this patch goes (in case i missed a file or something, im not too familiar with arch at the moment) Thomas Stephens spiralman@softhome.net --- orig/Y/modules/windowmanager.c +++ mod/Y/modules/windowmanager.c @@ -109,5 +109,13 @@ return currentWindowManager -> restoreWindow (currentWindowManager, w); } +void +wmMinimizeWindow (struct Window *w) +{ + if (currentWindowManager == NULL) + return; + return currentWindowManager -> minimizeWindow (currentWindowManager, w); +} + /* arch-tag: 07b8bf39-884b-49a3-a3e6-1769c44432a2 */ --- orig/Y/modules/windowmanager.h +++ mod/Y/modules/windowmanager.h @@ -24,6 +24,7 @@ void wmSelectWindow (struct Window *); void wmMaximiseWindow (struct Window *); void wmRestoreWindow (struct Window *); +void wmMinimizeWindow (struct Window *); #endif /* macro guard */ --- orig/Y/modules/windowmanager_interface.h +++ mod/Y/modules/windowmanager_interface.h @@ -28,6 +28,7 @@ void (*selectWindow) (struct WindowManager *, struct Window *); void (*maximiseWindow) (struct WindowManager *, struct Window *); void (*restoreWindow) (struct WindowManager *, struct Window *); + void (*minimizeWindow) (struct WindowManager *, struct Window *); }; #endif --- orig/Y/widget/desktop.c +++ mod/Y/widget/desktop.c @@ -21,6 +21,7 @@ { struct Widget widget; struct ZOrder *windows; + struct List *hidden; struct Widget *pointerWidget; }; @@ -109,6 +110,7 @@ self -> windows = zorderCreate (windowsKeyFunction, windowsComparisonFunction); + self -> hidden = listCreate (); self -> pointerWidget = NULL; @@ -257,6 +259,7 @@ switch (winState) { case WINDOW_SIZE_NORMAL: + case WINDOW_SIZE_MINIMIZE: /* push any off bottom/right windows back on-to the screen, * if possible */ if (newRect -> w > self -> widget.w) @@ -275,7 +278,6 @@ case WINDOW_SIZE_MAXIMISE: /* just resize it */ widgetResize (windowToWidget (win), self -> widget.w, self -> widget.h); - break; } rectangleDestroy (winRect); rectangleDestroy (newRect); @@ -345,5 +347,33 @@ widgetRerender (windowToWidget (win), NULL); } +void +desktopHideWindow (struct Desktop *self, struct Window *win) +{ + zorderRemove (self -> windows, win); + listPrepend (self -> hidden, win); + widgetRerender (desktopToWidget (self), + widgetGetRectangle (windowToWidget (win))); +} + +void +desktopShowWindow (struct Desktop * self, struct Window *win) +{ + struct ListIterator *iter = listGetStartIterator( self -> hidden ); + while (listiteratorHasValue (iter)) + { + struct Window *cur = listiteratorGet (iter); + if (cur == win) + { + zorderAddAtTop (self -> windows, win); + listiteratorRemove (iter); + widgetRerender (desktopToWidget (self), + widgetGetRectangle (windowToWidget (win))); + return; + } + listiteratorNext (iter); + } +} + /* arch-tag: c944bbcb-243c-491e-af68-1953384e05ac */ --- orig/Y/widget/desktop.h +++ mod/Y/widget/desktop.h @@ -18,6 +18,9 @@ void desktopCycleWindows (struct Desktop *, int direction); +void desktopShowWindow (struct Desktop *, struct Window *); +void desktopHideWindow (struct Desktop *, struct Window *); + #endif /* header guard */ --- orig/Y/widget/window.h +++ mod/Y/widget/window.h @@ -14,7 +14,7 @@ enum WindowSizeState { - WINDOW_SIZE_NORMAL, WINDOW_SIZE_MAXIMISE + WINDOW_SIZE_NORMAL, WINDOW_SIZE_MAXIMISE, WINDOW_SIZE_MINIMIZE }; #include --- orig/modules/themes/basic/window.c +++ mod/modules/themes/basic/window.c @@ -29,7 +29,7 @@ enum WindowRegion { WINDOW_REGION_NOTHING, -WINDOW_REGION_MOVE, +WINDOW_REGION_MOVE, WINDOW_REGION_MINIMIZE, WINDOW_REGION_MAXIMISE, WINDOW_REGION_RESTORE, WINDOW_REGION_CLOSE, WINDOW_REGION_RESIZE_NW, WINDOW_REGION_RESIZE_N, WINDOW_REGION_RESIZE_NE, WINDOW_REGION_RESIZE_W, WINDOW_REGION_RESIZE_E, @@ -80,16 +80,18 @@ painterSetPenColour (painter, 0xFFFFFFFF); painterDrawLine (painter, x + w - 12, y + 5, 7, 7); painterDrawLine (painter, x + w - 6, y + 5, -7, 7); - if (windowGetSizeState (window) == WINDOW_SIZE_NORMAL) + if (windowGetSizeState (window) == WINDOW_SIZE_MAXIMISE) { - painterDrawLine (painter, x + w - 22, y + 5, -4, 7); - painterDrawLine (painter, x + w - 22, y + 5, 4, 7); + painterDrawLine (painter, x + w - 22, y + 12, -4, -7); + painterDrawLine (painter, x + w - 22, y + 12, 4, -7); } else { - painterDrawLine (painter, x + w - 22, y + 12, -4, -7); - painterDrawLine (painter, x + w - 22, y + 12, 4, -7); + painterDrawLine (painter, x + w - 22, y + 5, -4, 7); + painterDrawLine (painter, x + w - 22, y + 5, 4, 7); } + /*Minimize button*/ + painterDrawHLine( painter, x + w - 39, y + 12, 7 ); } @@ -104,7 +106,7 @@ ? objectGetPropertyAsInteger (windowToObject (window), "background") : bgcolour; - if (windowGetSizeState (window) == WINDOW_SIZE_NORMAL) + if (windowGetSizeState (window) != WINDOW_SIZE_MAXIMISE) { /* resizing border */ painterSetBlendMode (painter, COLOUR_BLEND_SOURCE); @@ -135,7 +137,7 @@ rectangleDestroy (rect); /* paint child */ - if (child != NULL) + if (child != NULL && windowGetSizeState (window) != WINDOW_SIZE_MINIMIZE) { struct Rectangle *childRect = widgetGetRectangle (child); painterSaveState (painter); @@ -168,6 +170,11 @@ wy = 0; ww = rect -> w; wh = rect -> h; + case WINDOW_SIZE_MINIMIZE: + wx = 5; + wy = 5; + ww = rect -> w - 10; + wh = rect -> h - 10; } if (y > wy && y <= wy + 19) @@ -176,13 +183,20 @@ region = WINDOW_REGION_MOVE; if (x >= wx + ww - 27 && x < wx + ww - 14) { - if (windowGetSizeState (window) == WINDOW_SIZE_NORMAL) - region = WINDOW_REGION_MAXIMISE; - else + if (windowGetSizeState (window) == WINDOW_SIZE_MAXIMISE) region = WINDOW_REGION_RESTORE; + else + region = WINDOW_REGION_MAXIMISE; } if (x >= wx + ww - 14 && x <= wx + ww) region = WINDOW_REGION_CLOSE; + if (x >= wx + ww - 41 && x <= wx + ww - 28) + { + if (windowGetSizeState (window) == WINDOW_SIZE_MINIMIZE) + region = WINDOW_REGION_RESTORE; + else + region = WINDOW_REGION_MINIMIZE; + } } if (x > wx && x < wx + ww && y > wy + 19 && y < wy + wh) region = WINDOW_REGION_CHILD; @@ -254,6 +268,8 @@ windowStartReshape (w, x, y, WINDOW_RESHAPE_MOVE); break; case WINDOW_REGION_MAXIMISE: wmMaximiseWindow (w); break; + case WINDOW_REGION_MINIMIZE: + wmMinimizeWindow (w); break; case WINDOW_REGION_RESTORE: wmRestoreWindow (w); break; case WINDOW_REGION_CLOSE: @@ -373,6 +389,11 @@ case WINDOW_SIZE_MAXIMISE: widgetMove (child, 0, 19); widgetResize (child, w, h - 19); + break; + case WINDOW_SIZE_MINIMIZE: + widgetMove (child, 5, 24); + widgetResize (child, w - 10, h - 29); + break; } } } --- orig/modules/wm/default/default.c +++ mod/modules/wm/default/default.c @@ -127,6 +127,12 @@ windowRestoreGeometry (win); } +static void +defaultMinimizeWindow (struct WindowManager *wm, struct Window *win) +{ + desktopHideWindow (desktop, win); +} + int initialise (struct Module *m, int argc, const char **argv) { @@ -144,6 +150,7 @@ self -> selectWindow = defaultSelectWindow; self -> maximiseWindow = defaultMaximiseWindow; self -> restoreWindow = defaultRestoreWindow; + self -> minimizeWindow = defaultMinimizeWindow; self -> module = m; m -> name = "Default Window Manager"; m -> data = self; From davidtheflyer at hotmail.com Fri Feb 20 20:53:50 2004 From: davidtheflyer at hotmail.com (David Vuorio) Date: Fri Feb 20 20:54:26 2004 Subject: [Y-devel] Y hangs on startup or exits with error message Message-ID: The ebuild works right away. Thanks for the help. I will now try to investigate differences in the manual building vs the ebuild-controlled building according to the recent suggestions I've got. If I find something out, I will post it here later. >From: Doug Goldstein >To: David Vuorio >CC: y-devel@y-windows.org >Subject: Re: [Y-devel] Y hangs on startup or exits with error message >Date: Fri, 20 Feb 2004 15:29:20 -0500 >MIME-Version: 1.0 >Received: from lakemtao03.cox.net ([68.1.17.242]) by mc12-f28.hotmail.com >with Microsoft SMTPSVC(5.0.2195.6824); Fri, 20 Feb 2004 12:31:29 -0800 >Received: from cardoe.com ([24.136.55.206]) by lakemtao03.cox.net >(InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP >id <20040220203127.IFRL2192.lakemtao03.cox.net@cardoe.com>; Fri, >20 Feb 2004 15:31:27 -0500 >X-Message-Info: JGTYoYF78jFWD/cTXKi9CWw7HGll6x+O >Message-ID: <40366E20.1060700@cardoe.com> >User-Agent: Mozilla Thunderbird 0.5 (X11/20040215) >X-Accept-Language: en-us, en >References: >In-Reply-To: >Return-Path: cardoe@cardoe.com >X-OriginalArrivalTime: 20 Feb 2004 20:31:29.0869 (UTC) >FILETIME=[8564BFD0:01C3F7F0] > >I have it working and several people have e-mailed me that they have it >working with my e-builds. Try www.cardoe.com/y-base/ for some ebuilds. > >Doug > >David Vuorio wrote: > >>Basically, I can't get Y to start. Depending on whether I give the >>parameter --no-detach or not, I get different results. >> >>With a modified startY script which uses "Y --no-detach" I get: >> >>david@localhost Y $ startY >>/usr/local/bin/startY: line 25: 28338 Aborted ${bindir}/Y >>--no-detach >>Failed to connect to Y Server via Unix Domain Sockets: No such file or >>directory >>libY: Could not establish link to server at unix:/tmp/.Y-0 >>Aborted >> >>In all other cases trying to run Y yields no results. It just sits there. >>More specifically, I get this from strace: >> >>... >> >>getpid() = 7793 >>rt_sigaction(SIGRTMIN, {0x400a0330, [], 0}, NULL, 8) = 0 >>rt_sigaction(SIGRT_1, {0x400a0470, [], 0}, NULL, 8) = 0 >>rt_sigaction(SIGRT_2, {0x400a0650, [], 0}, NULL, 8) = 0 >>rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0 >>rt_sigprocmask(SIG_UNBLOCK, [33], NULL, 8) = 0 >>_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbffff164, 35, (nil), 0}) = 0 >>open("/dev/urandom", O_RDONLY) = 3 >>read(3, "$p\215\372\316\342\334E.\350$\247\252\nw\342\24\261zu\370"..., >>32) = 32 >>close(3) = 0 >>socket(PF_UNIX, SOCK_DGRAM, 0) = 3 >>fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 >>connect(3, {sa_family=AF_UNIX, path="/dev/log"}, 16) = 0 >>pipe([4, 5]) = 0 >>fork() = 7794 >>read(4, 0xbffff4b8, 8) = ? ERESTARTSYS (To be restarted) >>--- SIGCHLD (Child exited) @ 0 (0) --- >>read(4, >> >>(No new output ever occurs after that last comma.) >> >>ps ax | grep Y gives: >> >>david@localhost david $ ps ax | grep Y >> PID TTY STAT TIME COMMAND >>7792 pts/3 S 0:00 strace Y >>7793 pts/3 S 0:00 Y >>7794 ? Z 0:00 [Y] >>7845 pts/4 S 0:00 grep Y >> >>gdb gives (while the Y parent process is still running): >> >>(gdb) attach 7794 >>Attaching to process 7794 >>ptrace: Operation not permitted. >> >>System specs: >> >>Gentoo Linux, kernel 2.6.3 >>gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice) >>binutils 2.14.90.0.6-r6 >>glibc 2.3.3_pre20040207 >>glib 2.2.3 >>libiterm-mbt 0.5 >> >>It seems to be a problem that is in one way or another related to Gentoo. >>Probably a specific library version or system setup that differs from >>"regular" distros. However, I talked to at least one other Gentoo user who >>had it working. >> >>_________________________________________________________________ >>Chatt: Tr?ffa nya n?tkompisar p? Habbo Hotel >>http://habbohotel.msn.se/habbo/sv/channelizer >> >> >>_______________________________________________ >>Y-devel mailing list >>Y-devel@y-windows.org >>http://www.y-windows.org/mailman/listinfo/y-devel >> >> > _________________________________________________________________ Hitta r?tt p? n?tet med MSN S?k http://search.msn.se/ From mpaque at mac.com Fri Feb 20 20:56:00 2004 From: mpaque at mac.com (Mike Paquette) Date: Fri Feb 20 20:56:27 2004 Subject: [Y-devel] display server architectures compared Message-ID: <303F6ED1-63E7-11D8-A225-003065FC262A@mac.com> On Feb 20, 2004, at 12:06 PM, Mark-Jan Bastian wrote: > Especially quartz has impressed me a lot. It is not the > ghost-in-a-bottle, > and the transparent, very smooth animated graphics themselves that > wowed me, but how they actually got it all that smooth and fast. > I assume there is a lot of buffering going on for each window, RAM > is cheap these days. But then still, the server has to make a > good tradeoff between using videomemory and main memory. A good bit of work went into getting the Quartz WIndow Server to be that way. Essentially all the windows are buffered. The Window Server acts as a sort of video mixer, using the Quartz Compositor to blend the drawn buffer contents together to produce the display contents. The design was done so as to deliberately hide how the 'back end' is implemented, so that the original software compositing machinery could be supplanted by hardware acceleration transparently. The hardware accelerated Quartz Compositor is called Quartz Extreme. (Marketing. Go figure...) In this design, the window system itself does not contain any drawing code. It acts as a screen 'real estate' manager and a video mixer to combine the window buffer contents. All drawing is done into the window buffers from client side drawing frameworks such as Quartz 2D and QuickDraw. Widget sets are implemented atop the drawing frameworks in higher level frameworks. This makes the implementation of custom widgets relatively easy, as the custom widgets can use existing code in their implementation, as by subclassing Cocoa NSControls. Such custom widgets operate using the same underlying drawing primitives as the standard system widgets. One drawback of this implementation is that the communication of all window content to the window server is done as raster data. The server is assumed to be on the same processor set and memory system as the client apps. That's a reasonable assumption for most desktop personal computers, but it does mean that applications written to this model are not 'network transparent', and so cannot readily connect to a remote display server. VNC and Timbuktu are used for remote system management. > > What I am also missing is info on the coordinate system to use, > and what graphics primitives must be availble, how they are > queued/batched, and how all the planes will be interfacing > with each other. Is this thing going to be heavily multithreaded, > like the still-awesome BeOS appserver ? Things like this. Over in the Mac OS X world, I think every popular coordinate system is used. Quartz 2D uses a lower-left origin, like PostScript and PDF. Transformation matrices are available to make like easier. QuickDraw uses an upper-left origin, like many other raster-oriented drawing systems. The window server itself is not heavily multithreaded. As the drawing operations are done by the client applications, there's always (at least) a thread per app to do the drawing work. On backing store compression: This is a feature enabled in Mac OS X 10.2 and later where the window buffers, or backing stores, are compressed while not in use. This method for reducing backing memory usage was first introduced in OPENSTEP 4.0, way back on the Display PostScript window system. On window visibiliity and compositing: Apps draw the window content without regard to current window visibility, rendering the complete window content into the buffer. The window server applies any needed clipping for totally obscured areas, or blending with translucent areas above a window. Since the buffer contains the complete window content, there is never a need for 'damage repair' events. When a portion of a window is revealed, the window server can immediately composite the revealed area to the display, without running the application to repaint the revealed area. Compositing may be done by a GPU, as in Quartz Extreme, or by a software compositor, when a particular display's GPU isn't quite up to handling Quartz Extreme. From ufaria at prisacom.com Fri Feb 20 21:09:29 2004 From: ufaria at prisacom.com (Uxio Faria) Date: Fri Feb 20 21:09:55 2004 Subject: [Y-devel] minor correction on US keymap Message-ID: keycode 97 [a] = SHIFT(65) [A], CTRL(1) keycode 98 [b] = SHIFT(66) [B], CTRL(2) keycode 99 [c] = SHIFT(67) [C], CTRL(3) keycode 100 [d] = SHIFT(68) [D], CTRL(4) keycode 101 [e] = SHIFT(69) [E], CTRL(5) keycode 102 [f] = SHIFT(70) [F], CTRL(6) keycode 103 [g] = SHIFT(71) [G], CTRL(7) keycode 104 [h] = SHIFT(72) [H], CTRL(8) keycode 105 [i] = SHIFT(73) [I], CTRL(9) keycode 106 [j] = SHIFT(74) [J], CTRL(10) keycode 107 [k] = SHIFT(75) [K], CTRL(11) keycode 108 [l] = SHIFT(76) [L], CTRL(12) keycode 109 [m] = SHIFT(77) [M], CTRL(13) keycode 110 [n] = SHIFT(78) [N], CTRL(14) keycode 111 [o] = SHIFT(79) [O], CTRL(15) keycode 112 [p] = SHIFT(80) [P], CTRL(16) keycode 113 [q] = SHIFT(81) [Q], CTRL(17) keycode 114 [r] = SHIFT(82) [R], CTRL(18) keycode 115 [s] = SHIFT(83) [S], CTRL(19) keycode 116 [t] = SHIFT(84) [T], CTRL(20) keycode 117 [u] = SHIFT(85) [U], CTRL(21) keycode 118 [v] = SHIFT(86) [V], CTRL(22) keycode 119 [w] = SHIFT(87) [W], CTRL(23) keycode 120 [x] = SHIFT(88) [X], CTRL(24) keycode 121 [y] = SHIFT(89) [Y], CTRL(25) keycode 122 [z] = SHIFT(90) [Z], CTRL(26) From toxic_shock at linux.wku.edu Fri Feb 20 21:06:18 2004 From: toxic_shock at linux.wku.edu (Jason McKee) Date: Fri Feb 20 21:12:29 2004 Subject: [Y-devel] minimize patch version 2.0 In-Reply-To: <200402201550.21194.spiralman@softhome.net> Message-ID: On Fri, 20 Feb 2004, Thomas wrote: > ok, i worked on Desktop and gave it a list of hidden windows in addition to > the list of visible windows. there is now a desktopShowWindow( Desktop *, > Window *) and a desktopHideWindow( Desktop *, Window *) which moves things > between the stack of visible windows and the list of hidden windows. (adding > a window still automatically makes it visible). > > Of course, there is still no GUI to unmaximize windows. What do people think > of the idea of having a task manager module similar to a window manager > module? or would this better fit in the window manager module itself? It all depends on what people want the task manager to do..depending on what is decided that the Y task manager (if one ever comes to fruition) should do, it may or may not be beneficial (from a interface clunkyness perspective) to include it as part of a window manager. Of course having the ability to do both would be ideal. i.e. you have the window manager and the task manager and you can click and drag the task manager into the window manager, which would not simply stack the widgets of the windows on top of each other, but rather adapt the interface in the window manager and kill the task manager. This new interface would have an "undock tasks" button which would revert the window manager to its prior interface and restart the taskmanager. just talking out loud there... I'm curious what everyone thinks about that(the manager merging) > > let me know how this patch goes (in case i missed a file or something, im not > too familiar with arch at the moment) > > Thomas Stephens > spiralman@softhome.net > > --- orig/Y/modules/windowmanager.c > +++ mod/Y/modules/windowmanager.c > @@ -109,5 +109,13 @@ > return currentWindowManager -> restoreWindow (currentWindowManager, w); > } > > +void > +wmMinimizeWindow (struct Window *w) > +{ > + if (currentWindowManager == NULL) > + return; > + return currentWindowManager -> minimizeWindow (currentWindowManager, w); > +} > + > /* arch-tag: 07b8bf39-884b-49a3-a3e6-1769c44432a2 > */ > --- orig/Y/modules/windowmanager.h > +++ mod/Y/modules/windowmanager.h > @@ -24,6 +24,7 @@ > void wmSelectWindow (struct Window *); > void wmMaximiseWindow (struct Window *); > void wmRestoreWindow (struct Window *); > +void wmMinimizeWindow (struct Window *); > > #endif /* macro guard */ > > --- orig/Y/modules/windowmanager_interface.h > +++ mod/Y/modules/windowmanager_interface.h > @@ -28,6 +28,7 @@ > void (*selectWindow) (struct WindowManager *, struct Window *); > void (*maximiseWindow) (struct WindowManager *, struct Window *); > void (*restoreWindow) (struct WindowManager *, struct Window *); > + void (*minimizeWindow) (struct WindowManager *, struct Window *); > }; > > #endif > --- orig/Y/widget/desktop.c > +++ mod/Y/widget/desktop.c > @@ -21,6 +21,7 @@ > { > struct Widget widget; > struct ZOrder *windows; > + struct List *hidden; > struct Widget *pointerWidget; > }; > > @@ -109,6 +110,7 @@ > > self -> windows = > zorderCreate (windowsKeyFunction, windowsComparisonFunction); > + self -> hidden = listCreate (); > > self -> pointerWidget = NULL; > > @@ -257,6 +259,7 @@ > switch (winState) > { > case WINDOW_SIZE_NORMAL: > + case WINDOW_SIZE_MINIMIZE: > /* push any off bottom/right windows back on-to the screen, > * if possible */ > if (newRect -> w > self -> widget.w) > @@ -275,7 +278,6 @@ > case WINDOW_SIZE_MAXIMISE: > /* just resize it */ > widgetResize (windowToWidget (win), self -> widget.w, self -> > widget.h); > - break; > } > rectangleDestroy (winRect); > rectangleDestroy (newRect); > @@ -345,5 +347,33 @@ > widgetRerender (windowToWidget (win), NULL); > } > > +void > +desktopHideWindow (struct Desktop *self, struct Window *win) > +{ > + zorderRemove (self -> windows, win); > + listPrepend (self -> hidden, win); > + widgetRerender (desktopToWidget (self), > + widgetGetRectangle (windowToWidget (win))); > +} > + > +void > +desktopShowWindow (struct Desktop * self, struct Window *win) > +{ > + struct ListIterator *iter = listGetStartIterator( self -> hidden ); > + while (listiteratorHasValue (iter)) > + { > + struct Window *cur = listiteratorGet (iter); > + if (cur == win) > + { > + zorderAddAtTop (self -> windows, win); > + listiteratorRemove (iter); > + widgetRerender (desktopToWidget (self), > + widgetGetRectangle (windowToWidget (win))); > + return; > + } > + listiteratorNext (iter); > + } > +} > + > /* arch-tag: c944bbcb-243c-491e-af68-1953384e05ac > */ > --- orig/Y/widget/desktop.h > +++ mod/Y/widget/desktop.h > @@ -18,6 +18,9 @@ > > void desktopCycleWindows (struct Desktop *, int direction); > > +void desktopShowWindow (struct Desktop *, struct Window *); > +void desktopHideWindow (struct Desktop *, struct Window *); > + > #endif /* header guard */ > > > --- orig/Y/widget/window.h > +++ mod/Y/widget/window.h > @@ -14,7 +14,7 @@ > > enum WindowSizeState > { > - WINDOW_SIZE_NORMAL, WINDOW_SIZE_MAXIMISE > + WINDOW_SIZE_NORMAL, WINDOW_SIZE_MAXIMISE, WINDOW_SIZE_MINIMIZE > }; > > #include > --- orig/modules/themes/basic/window.c > +++ mod/modules/themes/basic/window.c > @@ -29,7 +29,7 @@ > enum WindowRegion > { > WINDOW_REGION_NOTHING, > -WINDOW_REGION_MOVE, > +WINDOW_REGION_MOVE, WINDOW_REGION_MINIMIZE, > WINDOW_REGION_MAXIMISE, WINDOW_REGION_RESTORE, WINDOW_REGION_CLOSE, > WINDOW_REGION_RESIZE_NW, WINDOW_REGION_RESIZE_N, WINDOW_REGION_RESIZE_NE, > WINDOW_REGION_RESIZE_W, WINDOW_REGION_RESIZE_E, > @@ -80,16 +80,18 @@ > painterSetPenColour (painter, 0xFFFFFFFF); > painterDrawLine (painter, x + w - 12, y + 5, 7, 7); > painterDrawLine (painter, x + w - 6, y + 5, -7, 7); > - if (windowGetSizeState (window) == WINDOW_SIZE_NORMAL) > + if (windowGetSizeState (window) == WINDOW_SIZE_MAXIMISE) > { > - painterDrawLine (painter, x + w - 22, y + 5, -4, 7); > - painterDrawLine (painter, x + w - 22, y + 5, 4, 7); > + painterDrawLine (painter, x + w - 22, y + 12, -4, -7); > + painterDrawLine (painter, x + w - 22, y + 12, 4, -7); > } > else > { > - painterDrawLine (painter, x + w - 22, y + 12, -4, -7); > - painterDrawLine (painter, x + w - 22, y + 12, 4, -7); > + painterDrawLine (painter, x + w - 22, y + 5, -4, 7); > + painterDrawLine (painter, x + w - 22, y + 5, 4, 7); > } > + /*Minimize button*/ > + painterDrawHLine( painter, x + w - 39, y + 12, 7 ); > > } > > @@ -104,7 +106,7 @@ > ? objectGetPropertyAsInteger (windowToObject (window), > "background") > : bgcolour; > > - if (windowGetSizeState (window) == WINDOW_SIZE_NORMAL) > + if (windowGetSizeState (window) != WINDOW_SIZE_MAXIMISE) > { > /* resizing border */ > painterSetBlendMode (painter, COLOUR_BLEND_SOURCE); > @@ -135,7 +137,7 @@ > rectangleDestroy (rect); > > /* paint child */ > - if (child != NULL) > + if (child != NULL && windowGetSizeState (window) != WINDOW_SIZE_MINIMIZE) > { > struct Rectangle *childRect = widgetGetRectangle (child); > painterSaveState (painter); > @@ -168,6 +170,11 @@ > wy = 0; > ww = rect -> w; > wh = rect -> h; > + case WINDOW_SIZE_MINIMIZE: > + wx = 5; > + wy = 5; > + ww = rect -> w - 10; > + wh = rect -> h - 10; > } > > if (y > wy && y <= wy + 19) > @@ -176,13 +183,20 @@ > region = WINDOW_REGION_MOVE; > if (x >= wx + ww - 27 && x < wx + ww - 14) > { > - if (windowGetSizeState (window) == WINDOW_SIZE_NORMAL) > - region = WINDOW_REGION_MAXIMISE; > - else > + if (windowGetSizeState (window) == WINDOW_SIZE_MAXIMISE) > region = WINDOW_REGION_RESTORE; > + else > + region = WINDOW_REGION_MAXIMISE; > } > if (x >= wx + ww - 14 && x <= wx + ww) > region = WINDOW_REGION_CLOSE; > + if (x >= wx + ww - 41 && x <= wx + ww - 28) > + { > + if (windowGetSizeState (window) == WINDOW_SIZE_MINIMIZE) > + region = WINDOW_REGION_RESTORE; > + else > + region = WINDOW_REGION_MINIMIZE; > + } > } > if (x > wx && x < wx + ww && y > wy + 19 && y < wy + wh) > region = WINDOW_REGION_CHILD; > @@ -254,6 +268,8 @@ > windowStartReshape (w, x, y, WINDOW_RESHAPE_MOVE); break; > case WINDOW_REGION_MAXIMISE: > wmMaximiseWindow (w); break; > + case WINDOW_REGION_MINIMIZE: > + wmMinimizeWindow (w); break; > case WINDOW_REGION_RESTORE: > wmRestoreWindow (w); break; > case WINDOW_REGION_CLOSE: > @@ -373,6 +389,11 @@ > case WINDOW_SIZE_MAXIMISE: > widgetMove (child, 0, 19); > widgetResize (child, w, h - 19); > + break; > + case WINDOW_SIZE_MINIMIZE: > + widgetMove (child, 5, 24); > + widgetResize (child, w - 10, h - 29); > + break; > } > } > } > --- orig/modules/wm/default/default.c > +++ mod/modules/wm/default/default.c > @@ -127,6 +127,12 @@ > windowRestoreGeometry (win); > } > > +static void > +defaultMinimizeWindow (struct WindowManager *wm, struct Window *win) > +{ > + desktopHideWindow (desktop, win); > +} > + > int > initialise (struct Module *m, int argc, const char **argv) > { > @@ -144,6 +150,7 @@ > self -> selectWindow = defaultSelectWindow; > self -> maximiseWindow = defaultMaximiseWindow; > self -> restoreWindow = defaultRestoreWindow; > + self -> minimizeWindow = defaultMinimizeWindow; > self -> module = m; > m -> name = "Default Window Manager"; > m -> data = self; > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel > From brentg at magma.ca Fri Feb 20 21:20:12 2004 From: brentg at magma.ca (Brent Gulanowski) Date: Fri Feb 20 21:19:50 2004 Subject: [Y-devel] display server architectures compared In-Reply-To: <303F6ED1-63E7-11D8-A225-003065FC262A@mac.com> References: <303F6ED1-63E7-11D8-A225-003065FC262A@mac.com> Message-ID: <91F48ABC-63EA-11D8-BFE6-000393DCAB04@magma.ca> On Feb 20, 2004, at 3:56 PM, Mike Paquette wrote: > On window visibiliity and compositing: Apps draw the window content > without regard to current window visibility, rendering the complete > window content into the buffer. Clarification: The screen representation of a view (NSView, the superclass of all visible "widgets" -- Cocoa does not use the term) is redrawn upon receipt of a -drawRect: message, which includes a rectangular region which has to be re-drawn. If this rect is smaller than the view's bounds, it is not necessary draw the complete view, and if that view contains sub-views (child widgets), only this in the dirty region need to be redrawn themselves. Calls to -drawRect: are managed by the NSView abstract superclass, the parent Window, and the window server, so the application does not have to, and custom views need only worry about their own custom content. A notable point is that sub-views have -drawRect: called automatically by the window server -- it is not necessary to call them manually, nor to call super's implementation of -drawRect: -- each view in the entire view hierarchy will always get a chance to redraw itself. Hopefully the developers of this system will find time to study up on a number of other GUI systems so they can learn what techniques to emulate for best results. Cheers, -- Brent Gulanowski brentg@magma.ca From jason at jclark.org Fri Feb 20 21:30:28 2004 From: jason at jclark.org (Jason Clark) Date: Fri Feb 20 21:31:15 2004 Subject: [Y-devel] Build issue on OS X Message-ID: <00CF506D-63EC-11D8-BAA5-000393DDE552@jclark.org> Hello list (first post); I thought I'd try to get Y built under OS X. I've had to update some of tools (libtool, automake) but I think I'm getting there. autogen and configure now run without a hitch, but I'm having a make problem: > main/defaults.c:7: error: parse error before '.' token > make[3]: *** [main/defaults.o] Error 1 > make[2]: *** [all-recursive] Error 1 > make[1]: *** [all] Error 2 > make: *** [all-recursive] Error 1 a quick look at defaults.c looks like something prior to the make step failed, but i'm not sure what: > /* Generated by Makefile on > Fri Feb 20 16:14:59 EST 2004 > */ > > #include > > ../Y/widget/button.c:CLASSDEF struct Class buttonClass = > ../Y/widget/canvas.c:CLASSDEF struct Class canvasClass = > ../Y/widget/checkbox.c:CLASSDEF struct Class checkboxClass = > ../Y/widget/console.c:CLASSDEF struct Class consoleClass = > ../Y/widget/desktop.c:CLASSDEF struct Class desktopClass = > ../Y/widget/gridlayout.c:CLASSDEF struct Class gridlayoutClass = > ../Y/widget/label.c:CLASSDEF struct Class labelClass = > ../Y/widget/menu.c:CLASSDEF struct Class menuClass = > ../Y/widget/widget.c:CLASSDEF struct Class widgetClass = > ../Y/widget/window.c:CLASSDEF struct Class windowClass = > > void > yRegisterDefaultClasses () > { > ../Y/main/defaults.c:../Y/widget/button.c:CLASSDEF struct Class > buttonClass = > ../Y/main/defaults.c:../Y/widget/canvas.c:CLASSDEF struct Class > canvasClass = > ../Y/main/defaults.c:../Y/widget/checkbox.c:CLASSDEF struct Class > checkboxClass = > ../Y/main/defaults.c:../Y/widget/console.c:CLASSDEF struct Class > consoleClass = > ../Y/main/defaults.c:../Y/widget/desktop.c:CLASSDEF struct Class > desktopClass = > ../Y/main/defaults.c:../Y/widget/gridlayout.c:CLASSDEF struct Class > gridlayoutClass = > ../Y/main/defaults.c:../Y/widget/label.c:CLASSDEF struct Class > labelClass = > ../Y/main/defaults.c:../Y/widget/menu.c:CLASSDEF struct Class > menuClass = > ../Y/main/defaults.c:../Y/widget/widget.c:CLASSDEF struct Class > widgetClass = > ../Y/main/defaults.c:../Y/widget/window.c:CLASSDEF struct Class > windowClass = > ../Y/widget/button.c:CLASSDEF struct Class buttonClass = > ../Y/widget/canvas.c:CLASSDEF struct Class canvasClass = > ../Y/widget/checkbox.c:CLASSDEF struct Class checkboxClass = > ../Y/widget/console.c:CLASSDEF struct Class consoleClass = > ../Y/widget/desktop.c:CLASSDEF struct Class desktopClass = > ../Y/widget/gridlayout.c:CLASSDEF struct Class gridlayoutClass = > ../Y/widget/label.c:CLASSDEF struct Class labelClass = > ../Y/widget/menu.c:CLASSDEF struct Class menuClass = > ../Y/widget/widget.c:CLASSDEF struct Class widgetClass = > ../Y/widget/window.c:CLASSDEF struct Class windowClass = > } Any thoughts? I'm using autoconf2.5, automake1.7 and libtool1.5 (libtool 1.3 kept barfing). Thanks, Jason Jason Clark http://jclark.org/weblog/ From core at enodev.com Fri Feb 20 21:32:27 2004 From: core at enodev.com (Shawn) Date: Fri Feb 20 21:32:36 2004 Subject: [Y-devel] Y hangs on startup or exits with error message In-Reply-To: References: Message-ID: <1077312746.18523.30.camel@localhost> I had this problem to start with, but it seems after doing away with the /usr/share/fonts/afms dir it started up straight away. On Fri, 2004-02-20 at 14:12, David Vuorio wrote: > Basically, I can't get Y to start. Depending on whether I give the parameter > --no-detach or not, I get different results. > > With a modified startY script which uses "Y --no-detach" I get: > > david@localhost Y $ startY > /usr/local/bin/startY: line 25: 28338 Aborted ${bindir}/Y > --no-detach > Failed to connect to Y Server via Unix Domain Sockets: No such file or > directory > libY: Could not establish link to server at unix:/tmp/.Y-0 > Aborted > > In all other cases trying to run Y yields no results. It just sits there. > More specifically, I get this from strace: > > ... > > getpid() = 7793 > rt_sigaction(SIGRTMIN, {0x400a0330, [], 0}, NULL, 8) = 0 > rt_sigaction(SIGRT_1, {0x400a0470, [], 0}, NULL, 8) = 0 > rt_sigaction(SIGRT_2, {0x400a0650, [], 0}, NULL, 8) = 0 > rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0 > rt_sigprocmask(SIG_UNBLOCK, [33], NULL, 8) = 0 > _sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbffff164, 35, (nil), 0}) = 0 > open("/dev/urandom", O_RDONLY) = 3 > read(3, "$p\215\372\316\342\334E.\350$\247\252\nw\342\24\261zu\370"..., 32) > = 32 > close(3) = 0 > socket(PF_UNIX, SOCK_DGRAM, 0) = 3 > fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 > connect(3, {sa_family=AF_UNIX, path="/dev/log"}, 16) = 0 > pipe([4, 5]) = 0 > fork() = 7794 > read(4, 0xbffff4b8, 8) = ? ERESTARTSYS (To be restarted) > --- SIGCHLD (Child exited) @ 0 (0) --- > read(4, > > (No new output ever occurs after that last comma.) > > ps ax | grep Y gives: > > david@localhost david $ ps ax | grep Y > PID TTY STAT TIME COMMAND > 7792 pts/3 S 0:00 strace Y > 7793 pts/3 S 0:00 Y > 7794 ? Z 0:00 [Y] > 7845 pts/4 S 0:00 grep Y > > gdb gives (while the Y parent process is still running): > > (gdb) attach 7794 > Attaching to process 7794 > ptrace: Operation not permitted. > > System specs: > > Gentoo Linux, kernel 2.6.3 > gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice) > binutils 2.14.90.0.6-r6 > glibc 2.3.3_pre20040207 > glib 2.2.3 > libiterm-mbt 0.5 > > It seems to be a problem that is in one way or another related to Gentoo. > Probably a specific library version or system setup that differs from > "regular" distros. However, I talked to at least one other Gentoo user who > had it working. > > _________________________________________________________________ > Chatt: Tr?ffa nya n?tkompisar p? Habbo Hotel > http://habbohotel.msn.se/habbo/sv/channelizer > > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel From ychris at amshey.net Fri Feb 20 21:53:59 2004 From: ychris at amshey.net (Chris) Date: Fri Feb 20 21:50:40 2004 Subject: [Y-devel] Build issue on OS X In-Reply-To: <00CF506D-63EC-11D8-BAA5-000393DDE552@jclark.org> References: <00CF506D-63EC-11D8-BAA5-000393DDE552@jclark.org> Message-ID: <20040220215359.GA31701@amshey.net> On Fri, Feb 20, 2004 at 04:30:28PM -0500, Jason Clark wrote: > Hello list (first post); I had okay luck using automake 1.7.9 yesterday, but to-day, after getting tla working and current code downloaded, autogen told me to use automake 1.8 or higher. This may (or may not) solve your problem, but at least will put you in the correct toolchain. (and yes, autogen.sh should be run prior to distribution and we should be just running ./configure ... I'm sure that will happen eventually. Maybe to-day... the last time I run autogen with an up-to-date toolset, it looked like it was creating a configure that should be useable... no symlinks to odd places, all the necessary files created. However, there's no 'configure' in the current checkout, or else I'm not using the archive right.) --Chris PS: I'm writing this in an X emacs launched by a mutt running in an iterm in a Y/SDL session. It didn't occur to me until I was about to send it, that that's what I was doing, but it's a pretty cool effect. :) From cupycake_jay at yahoo.com Fri Feb 20 21:51:58 2004 From: cupycake_jay at yahoo.com (Jay Sprenkle) Date: Fri Feb 20 21:52:52 2004 Subject: [Y-devel] Re: Y-devel Digest, Vol 1, Issue 19 In-Reply-To: Message-ID: <20040220215158.95339.qmail@web41511.mail.yahoo.com> --- Mike Paquette wrote: >From: Mike Paquette >Subject: Re: [Y-devel] display server architectures compared >One drawback of this implementation is that the communication of all window content to the window server is done as raster data. The server is assumed to be on the same processor set and memory system as the client apps. That's a reasonable assumption for most desktop personal computers, but it does mean that applications written to this model are not 'network transparent', and so cannot readily connect to a remote display server. VNC and Timbuktu are used for remote system management. But network transparency is one of the goals of the project. I'd much rather send compressed video over the network than a uncompressed stream. The convergence of entertainment applications and the desktop makes this very important. __________________________________ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools From tcfelker at mtco.com Fri Feb 20 22:27:59 2004 From: tcfelker at mtco.com (Tom Felker) Date: Fri Feb 20 22:26:38 2004 Subject: [Y-devel] License In-Reply-To: <20040220111211.GB8891@kfk4ever.com> References: <200402192226.03922.tcfelker@mtco.com> <20040220111211.GB8891@kfk4ever.com> Message-ID: <200402201627.59500.tcfelker@mtco.com> On Friday 20 February 2004 5:12 am, Maurice van der Pot wrote: > On Thu, Feb 19, 2004 at 10:26:03PM -0600, Tom Felker wrote: > > Alternately, you > > could promise that you won't consider plugins to be derived. > > I am afraid defining the term "derived work" is not up to the > one using the license. > > Best regards, > Maurice van der Pot. Fair enough - you can't change the definition of derivative work. But you can change the scope of the license. For example, the GPL could be modified to say, ..."work based on the Program" means either the Program or any derivative work under copyright law, except works whose only derivation from the Program is the use of the foo interface. I am not saying we should use a modified version of the GPL (is that even legal?), or our own made-from-scratch license. Just that it's worth considering what we want to allow in terms of closed-source server plugins, drivers, etc. (I personally don't think dynamic linking should constitute derivation, but that's not what the courts think.) -- Tom Felker, - Stop fiddling with the volume knob. Code is speech! From nofx_3 at softhome.net Fri Feb 20 22:33:01 2004 From: nofx_3 at softhome.net (Andrew Kaplan) Date: Fri Feb 20 22:35:17 2004 Subject: [Y-devel] Y over fbdev In-Reply-To: <20040220142353.GA26898@mumidol> References: <20040220142353.GA26898@mumidol> Message-ID: <200402201433.01647.nofx_3@softhome.net> On Friday 20 February 2004 06:23 am, Alexander Vlasov wrote: > Greetings. > > Y works over SDL just fine, but when I try to run Y over fbdev, I get > errors: > > Y[15246]: configLoad:90: Opening config file: /opt/Y2/etc/Y/default.conf > Y[15246]: initialise:600: Using fb:/dev/fb0 tty:/dev/tty (0) > Y[15246]: Error: initialise: Couldn't open /dev/tty: No such device or > address > > If I try to set tty & fb by hand (LoadModule "driver/video/fbdev" > device=/dev/fb0 tty=/dev/tty7 mode=800x600-100), I get following errors: > > Y[15820]: configLoad:90: Opening config file: /opt/Y2/etc/Y/default.conf > Y[15820]: initialise:600: Using fb:/dev/fb0 tty:/dev/tty7 (7) > Y[15820]: Error: initialise: Couldn't activate /dev/tty7: Operation not > permitted > > What's wrong with my config? From mark at y-windows.org Fri Feb 20 22:39:34 2004 From: mark at y-windows.org (Mark Thomas) Date: Fri Feb 20 22:39:36 2004 Subject: [Y-devel] Toolkits? In-Reply-To: <1077216816.12796.7.camel@localhost.localdomain> References: <1077216816.12796.7.camel@localhost.localdomain> Message-ID: Hi, On Thu, 19 Feb 2004, Aaron Kemp wrote: > So, my question is, how does G[TD]K/Qt/wxWindows/whatever fit into the > big picture? First, there's a significant difference between GTK and Qt/wxWindows. GTK is primarily an X widget library like Xaw or Motif (Gtk on win32 notwithstanding). Qt and wxWindows, however, are platform abstraction libraries (you'll notice that Qt has classes for dealing with files and networks, things that have nothing to do with a GUI). It is unfortunate for trolltech and the wxWindows developers that X had no standard GUI, so they had to make a kind of fallback GUI to use in that situation. I think Gtk is too closely tied to X to be ultimately useful to Y. I expect someone will port it so Gtk apps work on Y, but I doubt it will make the API of choice for Y or cross-platform development. Qt and wxWindows, on the other hand, I expect to gain Y as a new "target", so Qt apps work on Y (hopefully with native widgets). This means if you want to write a cross-platform app, you use Qt, or wx(y)Windows, or an equivalent. If you want to write a Y power app, you use the libY for the language you want to write it in. Regards, Mark. -- || Mark Thomas || efaref.net || || Friends don't let friends use Windoze. From ychris at amshey.net Fri Feb 20 22:51:53 2004 From: ychris at amshey.net (Chris) Date: Fri Feb 20 22:48:30 2004 Subject: [Y-devel] License In-Reply-To: <200402201627.59500.tcfelker@mtco.com> References: <200402192226.03922.tcfelker@mtco.com> <20040220111211.GB8891@kfk4ever.com> <200402201627.59500.tcfelker@mtco.com> Message-ID: <20040220225153.GA14460@amshey.net> On Fri, Feb 20, 2004 at 04:27:59PM -0600, Tom Felker wrote: > I am not saying we should use a modified version of the GPL (is that even > legal?), or our own made-from-scratch license. Just that it's worth > considering what we want to allow in terms of closed-source server plugins, > drivers, etc. > > (I personally don't think dynamic linking should constitute derivation, but > that's not what the courts think.) < Actual suggestion > There is a thing called the LGPL (once meaning library gpl, now politically renamed as 'lesser' gpl.) for this kind of situation, that is, if you want to provide infrastructure that anyone can build on top of, but people modifying the infrastructure need to contribute back. There's also the (unencumbered) BSD license for universal compatibility, with some risk of usage you don't like. < / Actual suggestion > < Rambling commentary > Also, AFAIK, dynamic linking is not derivation. It's the including of the header files that make the dynamic linking work that's the derivation... for all practical purposes, the same thing, though it does give some rather bizarre licensing options if one wanted to thoroughly confuse people and cause Eben Moglen to write another 200 pages of legal theory. ;) (I think there is some argument that a work dependent on a unique dynamic library is a derived work, even if it's not linked in distribution, since it requires the derived work. Works linking to publicly documented interfaces, however, would not be susceptible to this argument, since they could be linked to any implementation of the interface.) < / Rambling commentary > < Focus > Anyway. To reiterate, the LGPL is ideal for this situation. < / Focus > --Chris From ychris at amshey.net Fri Feb 20 22:51:53 2004 From: ychris at amshey.net (Chris) Date: Fri Feb 20 22:48:31 2004 Subject: [Y-devel] License In-Reply-To: <200402201627.59500.tcfelker@mtco.com> References: <200402192226.03922.tcfelker@mtco.com> <20040220111211.GB8891@kfk4ever.com> <200402201627.59500.tcfelker@mtco.com> Message-ID: <20040220225153.GA14460@amshey.net> On Fri, Feb 20, 2004 at 04:27:59PM -0600, Tom Felker wrote: > I am not saying we should use a modified version of the GPL (is that even > legal?), or our own made-from-scratch license. Just that it's worth > considering what we want to allow in terms of closed-source server plugins, > drivers, etc. > > (I personally don't think dynamic linking should constitute derivation, but > that's not what the courts think.) < Actual suggestion > There is a thing called the LGPL (once meaning library gpl, now politically renamed as 'lesser' gpl.) for this kind of situation, that is, if you want to provide infrastructure that anyone can build on top of, but people modifying the infrastructure need to contribute back. There's also the (unencumbered) BSD license for universal compatibility, with some risk of usage you don't like. < / Actual suggestion > < Rambling commentary > Also, AFAIK, dynamic linking is not derivation. It's the including of the header files that make the dynamic linking work that's the derivation... for all practical purposes, the same thing, though it does give some rather bizarre licensing options if one wanted to thoroughly confuse people and cause Eben Moglen to write another 200 pages of legal theory. ;) (I think there is some argument that a work dependent on a unique dynamic library is a derived work, even if it's not linked in distribution, since it requires the derived work. Works linking to publicly documented interfaces, however, would not be susceptible to this argument, since they could be linked to any implementation of the interface.) < / Rambling commentary > < Focus > Anyway. To reiterate, the LGPL is ideal for this situation. < / Focus > --Chris From nofx_3 at softhome.net Fri Feb 20 22:47:21 2004 From: nofx_3 at softhome.net (Andrew Kaplan) Date: Fri Feb 20 22:49:38 2004 Subject: [Y-devel] Y over fbdev Message-ID: <200402201447.21994.nofx_3@softhome.net> On Friday 20 February 2004 06:23 am, Alexander Vlasov wrote: > Greetings. > > Y works over SDL just fine, but when I try to run Y over fbdev, I get > errors: > > Y[15246]: configLoad:90: Opening config file: /opt/Y2/etc/Y/default.conf > Y[15246]: initialise:600: Using fb:/dev/fb0 tty:/dev/tty (0) > Y[15246]: Error: initialise: Couldn't open /dev/tty: No such device or > address > > If I try to set tty & fb by hand (LoadModule "driver/video/fbdev" > device=/dev/fb0 tty=/dev/tty7 mode=800x600-100), I get following errors: > > Y[15820]: configLoad:90: Opening config file: /opt/Y2/etc/Y/default.conf > Y[15820]: initialise:600: Using fb:/dev/fb0 tty:/dev/tty7 (7) > Y[15820]: Error: initialise: Couldn't activate /dev/tty7: Operation not > permitted > > What's wrong with my config? First of, hello list. Now I know there was a response, but I realized the only way to run it if you get that message is to run as root. I set the permissions correctly, but still think only root can access the tty's directly. -kaplanfx nofx_3@softhome.net From spiralman at softhome.net Fri Feb 20 22:53:44 2004 From: spiralman at softhome.net (Thomas) Date: Fri Feb 20 22:55:00 2004 Subject: [Y-devel] initial task manager design Message-ID: <200402201753.44624.spiralman@softhome.net> ok, i decided to start working on a taskmanager module, and while i make sure i understand how modules work in Y, i thought i would post what i was thinking of for the TaskManager struct. let me know if you think there is something that should be added, or if there is a better way to do something. struct TaskManager { struct Module *module; /* unloads the task manager */ void (*unload) (struct TaskManager *); /* called when a new window is created */ void (*addWindow) (struct TaskManager *, struct Window *); /* called when a window has been minimized */ void (*windowMinimized) (struct TaskManager *, struct Window *); /* called when a window has been unminimized */ void (*windowUnMinimized) (struct TaskManager *, struct Window *); } I am not sure about windowUnMinimized because the task manager would be doing most of the minimizing/maximizing (although i guess a window could hide itself). Thomas Stephens spiralman@softhome.net From mark at y-windows.org Fri Feb 20 22:55:55 2004 From: mark at y-windows.org (Mark Thomas) Date: Fri Feb 20 22:55:57 2004 Subject: [Y-devel] Technical Notes In-Reply-To: <40350CBF.9000509@invoqsystems.com> References: <40350CBF.9000509@invoqsystems.com> Message-ID: Hi Dave, Your comments are mostly spot on. Most of the deviations were due to time pressures (I had a project deadline). A thorough linting of the source is probably a good idea and sane patches will be welcomed. I'll respond to a few of your comments: > 1. Make a consistent source style. Document it. Don't mix tabs and > spaces (I usually suggest 2 or 4 spaces, 8 is unwieldy). This can be > automated by getting CVS to launch a code formatter before entering the > code into the repository. The current code should conform to the GNU coding standards with the following modifications: use classnameFunctionName style identifiers for functions use thisKindOfIdentifier for other identifiers - the choice between this and underscore_style is arbitrary. I was finding underscores were exacerbating my wrist pains, which is why I chose to drop them. no tabs. anywhere. ever. spaces around the -> operator. - in retrospect, I think I prefer it without the spaces. I will probably change this in the future. > 2. Keep function calls commented. This is extremely important, and even > though it is time consuming, and nobody likes to do it (except me ;-), I > suggest even a minimal standard (in keeping with either JavaDoc or some > C-based documentation standard). An example template: I hate javadoc style in-code documentation (with cryptic @param thingies). But yes, functions should all be commented. > 6. typedefs in C are the handiest things. I can't stand pointers, and > hate trying to read code full of 'em. Odd, I hate stacks of typedefs. > 12. Looping backwards to 0 is often faster than looping from 0 to a > specific value. That's premature optimisation :o) Regards, Mark. -- || Mark Thomas || efaref.net || || Change is inevitable, except from a vending machine. From mpaque at mac.com Fri Feb 20 23:05:59 2004 From: mpaque at mac.com (Mike Paquette) Date: Fri Feb 20 23:05:57 2004 Subject: [Y-devel] display server architectures compared Message-ID: <58C01708-63F9-11D8-A225-003065FC262A@mac.com> On Feb 20, 2004, at 1:51 PM, Jay Sprenkle wrote: > But network transparency is one of the goals > of the project. I'd much rather send compressed > video over the network than a uncompressed stream. > The convergence of entertainment applications and > the desktop makes this very important. Certainly. One interesting approach is, rather than trying to pump the video (and sound, GL, etc) over the window server connection, to simply use the window server path to identify an interesting resource ("See this movie?") and target ("Play it here, in this view of that window"), and let a streaming protocol more appropriate for the media channel handle the data. A separate encode/decode process that understands the media, and can find the correct view/window on the destination system can be used to present the multimedia data. This lets the window system folks concentrate on their job, while allowing the multimedia team to do what works best for their media. From mark at y-windows.org Fri Feb 20 23:16:00 2004 From: mark at y-windows.org (Mark Thomas) Date: Fri Feb 20 23:16:02 2004 Subject: [Y-devel] License In-Reply-To: References: Message-ID: There is a COPYING file in the archive :) Y server is GPL. I've used some other GPL code in there (specifically Y/util/index.c), so we'd have to replace that if we wanted to change (but I don't want to change so it's all OK). Y libraries are LGPL. yiterm is CPL because it uses libiterm and that is CPL. AFAIK, using a CPL library requires using the CPL for the program. All the other Y client apps are GPL. Regards, Mark. -- || Mark Thomas || efaref.net || || Things you never hear people say; "Hand me that piano." From jon at number-none.com Fri Feb 20 23:31:31 2004 From: jon at number-none.com (Jonathan Blow) Date: Fri Feb 20 23:32:31 2004 Subject: [Y-devel] Random thoughts References: <4036585E.6020500@comcast.net> Message-ID: <081401c3f809$bfad5df0$95e3ff0a@Quiz> > agree. There are many reasons to not allow this. However, if there was > a scripting interface to the widget system, it would become possible for > applications to load custom widgets without the overhead of a client > canvas and all that binary communication. It's a mistake to try and get people to buy into a heavyweight system, that puts a lot of constraints on their development, in order to get things done. Such a scripting interface is an example. Multilanguage development is a large engineering burden, and forcing all your app developers into this (when they don't even get to pick one of the languages!) is just a bad idea. Actually this extends all the way to server-side widgets. Server-side widgets are just a poor idea and I'm not even sure why they're being seriously considered. One of X-Windows' biggest faults is that it is too complicated and bulky. In attempting to make Y successful, it seems this would be a good place to strike. From mark at y-windows.org Fri Feb 20 23:32:40 2004 From: mark at y-windows.org (Mark Thomas) Date: Fri Feb 20 23:32:44 2004 Subject: [Y-devel] suggestions In-Reply-To: <00ed01c3f7bc$cd496f00$9c02a8c0@mandoline> References: <003601c3f7b8$9d5592a0$9c02a8c0@mandoline> <00ed01c3f7bc$cd496f00$9c02a8c0@mandoline> Message-ID: Hi Claude, On Fri, 20 Feb 2004, Claude Mench wrote: > It could be maintained, but for now the openGl part > seems to be refused (at least on hold), so I don't > know the status. > > I don't know if my win32 modifications will be merged > in the main tree. I like the OpenGL work, but it needs a little adjustment before it's ready to commit to the tree. I think I've worked out how to do it cleanly now, but it will have to wait until I get some free time. For now, I'd like to keep the win32 port out of the main tree; the conditional compilation can get confusing, and as Aaron Kemp mentioned, Y is primarily for UNIX-like systems. I would encourage you to maintain it though. If you have access to a UNIX machine then you can use GNU Arch to maintain a Y--win32 branch with the appropriate changes in. GNU Arch has a few problems on win32 at the moment; mostly Cygwin limitations, I think. Regards, Mark. -- || Mark Thomas || efaref.net || || If there were no golf balls, how would we measure hail? From mark at y-windows.org Fri Feb 20 23:38:31 2004 From: mark at y-windows.org (Mark Thomas) Date: Fri Feb 20 23:38:33 2004 Subject: [Y-devel] Font problems In-Reply-To: <20040220191219.GB9195@amshey.net> References: <20040220191219.GB9195@amshey.net> Message-ID: On Fri, 20 Feb 2004 ychris@amshey.net wrote: > Fonts must be installed in /usr/X11R6/lib/X11/fonts/truetype, Either there or /usr/share/fonts. The list is defined in Y/text/font.c line 213. Still to come: FontDirectory directives in the config file :) Regards, Mark. -- || Mark Thomas || efaref.net || || I don't cheat, I play by the extended rules. From mark at y-windows.org Fri Feb 20 23:56:10 2004 From: mark at y-windows.org (Mark Thomas) Date: Fri Feb 20 23:56:12 2004 Subject: [Y-devel] Random thoughts In-Reply-To: <4036585E.6020500@comcast.net> References: <4036585E.6020500@comcast.net> Message-ID: Hi, On Fri, 20 Feb 2004, Jason Miller wrote: > I've been considering one of the issues related to server side widgets, > and one idea came to mind. Someone commented in another email that > loading client code to the server was undesirable, and I absolutely > agree. Yes, I'd like to keep Y as language-agnostic as possible, and that means not requiring people to use a server-scripting-language. There's a lot of talk about "custom widgets", but when you think about it carefully, there is really only ever one good reason to make a "custom widget" and that is when you are displaying client-specific data on the screen, for example a Gantt chart in a scheduling application. In these situations, there is usally a *lot* of client-side data that needs to be displayed, which we don't want to be throwing over the network connection every time it changes, so it seems that this is the one case where having the widget server-side would be a bad thing. Which is lucky for us, since it's easier to let the clients subclass "Canvas" on the client side and do the drawing themselves. Of course, Canvas will provide methods for drawing theme-parts (like buttons and so forth), so client-side widgets can fit into the look and feel. The only issue here is latency (which only comes into play on high-latency connections), but I think we're going to have to live with that. Regards, Mark. -- || Mark Thomas || efaref.net || || Cats know how we feel. They don't give a damn, but they know. From mark at y-windows.org Sat Feb 21 00:06:17 2004 From: mark at y-windows.org (Mark Thomas) Date: Sat Feb 21 00:06:19 2004 Subject: [Y-devel] Build issue on OS X In-Reply-To: <20040220215359.GA31701@amshey.net> References: <00CF506D-63EC-11D8-BAA5-000393DDE552@jclark.org> <20040220215359.GA31701@amshey.net> Message-ID: On Fri, 20 Feb 2004, Chris wrote: > I had okay luck using automake 1.7.9 yesterday, but to-day, after getting > tla working and current code downloaded, autogen told me to use automake 1.8 > or higher. This may (or may not) solve your problem, but at least will > put you in the correct toolchain Yes, asuffield updated the build system today, it was slightly broken (as you may have noticed). > (and yes, autogen.sh should be run prior to distribution and we should > be just running ./configure ... I'm sure that will happen eventually. configure should never have been in the devel snapshot, and shouldn't be in the archive. when using those you *must* run ./autogen.sh to generate a correct build environment. Also, something chomped my README file, which would have had instructions in, but was mysteriously 0 bytes (I possibly forgot to commit it. doh.) Later on tonight (well, early hours of the morning here) I will be making a proper distribution tarball with some bugfixes and a ./confiure that works :) I'll post it on the website and send an email to the Y-announce list when it's done. > PS: I'm writing this in an X emacs launched by a mutt running in an > iterm in a Y/SDL session. It didn't occur to me until I was about to > send it, that that's what I was doing, but it's a pretty cool effect. :) :) Regards, Mark. -- || Mark Thomas || efaref.net || || Two wrongs don't make a right, but three lefts do. From tcfelker at mtco.com Sat Feb 21 00:11:19 2004 From: tcfelker at mtco.com (Tom Felker) Date: Sat Feb 21 00:10:01 2004 Subject: Fwd: Re: [Y-devel] suggestions In-Reply-To: References: <1077284529.26553.21.camel@localhost.localdomain> Message-ID: <200402201811.19265.tcfelker@mtco.com> On Friday 20 February 2004 7:48 am, Peter Damoc wrote: > Here's the catch. Y can't be the window system for every OS on the > planet -- that will just slow down development and make sure the project > never succeeds. Targeting Windows or OS X with a new windowing system > doesn't make much sense; it's not as though we can replace the existing > one anyway (on Windows I mean, I suppose you could on OS X). One counterpoint - if there were a headless Y server for Windows and OS X, then more people would write directly for Y when they wanted to make something relatively cross-platform. > I don't speak for everyone, obviously, but I would rather see interested > developers take it upon themselves to boot into a Live distribution (or, > better still, find an old 486/Pentium that's collecting dust) and work > on an open platform, rather than have a bunch of us spending time making > Y work on a closed platform where there will be little or no > interest/benefit in running it. Good point. I personally don't care for Windows anyway. But they do have a rather large user-base. > Of course, if someone wants to spend that time, they are welcome to, > it's open source after all. > > Aaron -- Tom Felker, - Stop fiddling with the volume knob. It might look like I'm standing motionless, but I'm actively waiting for my problems to go away. From jon at number-none.com Sat Feb 21 00:15:18 2004 From: jon at number-none.com (Jonathan Blow) Date: Sat Feb 21 00:15:27 2004 Subject: [Y-devel] Random thoughts References: <4036585E.6020500@comcast.net> <081401c3f809$bfad5df0$95e3ff0a@Quiz> Message-ID: <083701c3f80f$c9d17090$95e3ff0a@Quiz> > Actually this extends all the way to server-side widgets. Server-side widgets > are just a poor idea and I'm not even sure why they're being seriously considered. Actually now that I have thought about things a little bit I will amend this statement and say that I can see why you might want them. Though it still seems the wrong sort of thing to put into a window system that hasn't taken off yet. From caeryd at hotmail.com Sat Feb 21 00:18:58 2004 From: caeryd at hotmail.com (Gil Wiget) Date: Sat Feb 21 00:19:37 2004 Subject: [Y-devel] questions, confusions and other things Message-ID: Hello I've to admit I'm pretty new here. Nevertheles, i think here should be some kind of structur. At the moment this all is very confusing to me. I've read things that someone is doing this and another one is doing something else and so on. It's difficult to see what really is going on. I'm wondering if it wouldnt be better to have something like a forum instead of this mailing list? There also it would be possible to split the whole thing apart into smaller pieces. Something else i still didn't got. is there already some development in progress, besides what mark is doing? what about the libsigc++? Since 1.0.4 i think, there's no more sig-config. It makes use of pkconfig. Wouldn't it be a good thing to make use of pkconfig? Cheers Gil _________________________________________________________________ Eine angenehme Konversation, ein hei?er Flirt oder ein Teamwork mit Kollegen. http://messenger.msn.ch/ From Linux.Luser at myrealbox.com Sat Feb 21 01:30:11 2004 From: Linux.Luser at myrealbox.com (Stroller) Date: Sat Feb 21 01:30:18 2004 Subject: [Y-devel] Gentoo Support In-Reply-To: <40366201.7010303@cardoe.com> References: <40366201.7010303@cardoe.com> Message-ID: <7DC60833-640D-11D8-94E8-000A95795F3E@myrealbox.com> On Feb 20, 2004, at 7:37 pm, Doug Goldstein wrote: > While the page might be ugly now. I'll keep up the Gentoo support > over at http://www.cardoe.com/y-base/ Well, that fell over: # ACCEPT_KEYWORDS="~x86" emerge y-base/y-windows Calculating dependencies !!! Problem with determining the name/location of an ebuild. !!! Please report this on IRC and bugs if you are not causing it. !!! mycpv: y-base/ !!! mysplit: ['y-base', ''] !!! psplit: None !!! error: unsubscriptable object !!! Problem in y-base/y-windows dependencies. !!! 17 # ACCEPT_KEYWORDS="~x86" emerge /usr/local/portage/y-base/y-windows/y-windows-0.2_p4-r1.ebuild seems to be compiling now, tho'. Stroller. From ychris at amshey.net Sat Feb 21 02:15:52 2004 From: ychris at amshey.net (Chris) Date: Sat Feb 21 02:12:29 2004 Subject: [Y-devel] questions, confusions and other things In-Reply-To: References: Message-ID: <20040221021552.GA14522@amshey.net> On Sat, Feb 21, 2004 at 01:18:58AM +0100, Gil Wiget wrote: > what about the libsigc++? Since 1.0.4 i think, there's no more sig-config. > It makes use of pkconfig. Wouldn't it be a good thing to make use of > pkconfig? $ sigc-config --version 1.0.4 $ pkg-config --cflags sigc Package sigc was not found in the pkg-config search path. Perhaps you should add the directory containing `sigc.pc' to the PKG_CONFIG_PATH environment variable No package 'sigc' found $ No, the only correct solution is to check both. --Chris From mathy at lanzone.be Sat Feb 21 02:17:53 2004 From: mathy at lanzone.be (Mathy Vanvoorden) Date: Sat Feb 21 02:16:15 2004 Subject: [Y-devel] Gentoo Support In-Reply-To: <7DC60833-640D-11D8-94E8-000A95795F3E@myrealbox.com> References: <40366201.7010303@cardoe.com> <7DC60833-640D-11D8-94E8-000A95795F3E@myrealbox.com> Message-ID: <20040221031753.6a6f1875@lambik> On Sat, 21 Feb 2004 01:30:11 +0000 Stroller wrote: > # ACCEPT_KEYWORDS="~x86" emerge y-base/y-windows > Calculating dependencies > !!! Problem with determining the name/location of an ebuild. > !!! Please report this on IRC and bugs if you are not causing it. > !!! mycpv: y-base/ > !!! mysplit: ['y-base', ''] > !!! psplit: None > !!! error: unsubscriptable object > > > !!! Problem in y-base/y-windows dependencies. > !!! 17 > > # ACCEPT_KEYWORDS="~x86" emerge > /usr/local/portage/y-base/y-windows/y-windows-0.2_p4-r1.ebuild > seems to be compiling now, tho'. It is because portage doesn't know the category y-base actually exists, you need to add it in some file somewhere. -- Regards, Mathy Vanvoorden From cyfred at gentoo.org Sat Feb 21 02:43:53 2004 From: cyfred at gentoo.org (Andrew Bevitt) Date: Sat Feb 21 02:43:02 2004 Subject: [Y-devel] Various Quibs Message-ID: <200402211343.53243.cyfred@gentoo.org> Hello, When ever I try running Y natively to fbdev I get logs similar to this Y[4485] general protection rip:2a95c16018 rsp:bffff240 error:0 Y[26726] general protection rip:2a95c2b018 rsp:bffff240 error:0 Also when I try running under SDL from X, I actually cannot close applications in the Y environment, Y simply just hangs... Once again log file shows similar to the above. Any ideas? From mark at y-windows.org Sat Feb 21 03:01:10 2004 From: mark at y-windows.org (Mark Thomas) Date: Sat Feb 21 03:01:14 2004 Subject: [Y-devel] questions, confusions and other things In-Reply-To: <20040221021552.GA14522@amshey.net> References: <20040221021552.GA14522@amshey.net> Message-ID: On Fri, 20 Feb 2004, Chris wrote: > On Sat, Feb 21, 2004 at 01:18:58AM +0100, Gil Wiget wrote: > > what about the libsigc++? Since 1.0.4 i think, there's no more sig-config. > > It makes use of pkconfig. Wouldn't it be a good thing to make use of > > pkconfig? [...] > > No, the only correct solution is to check both. I was quite disappointed to find that pkgconfig didn't check ${package}-config if there was no .pc file :( In any case, libsigc++-1.2 is source incompatible with 1.0, and for now Y uses 1.0 because that was the latest there was when I wrote that part. Regards, Mark. -- || Mark Thomas || efaref.net || || Blood flows down one leg and up the other. From Linux.Luser at myrealbox.com Sat Feb 21 03:12:32 2004 From: Linux.Luser at myrealbox.com (Stroller) Date: Sat Feb 21 03:12:47 2004 Subject: [Y-devel] framebuffer, 2.6.3 - no mouse..? Message-ID: I've emerged Cardoe's latest ebuild (of this evening) & recompiled my kernel with the: Input device support ---> <*> Event interface option. It emerges seamlessly using your updated instructions, BTW, Cardoe :-D Y-windows starts fine & if I call `yiterm` &c from a ssh session those apps open fine. The mouse (a Logitech scroll-wheely thingy), however, has no effect - the pointer just sits in the top-left hand corner of the screen. If I `cat /dev/input/mouse0` then move the mouse around stuff appears before crashing the terminal, so that seems to be set-up ok. Is it my kernel config, or just my choice of 2.6.3..? Config is attached. Thanks for any advices, Stroller. -------------- next part -------------- A non-text attachment was scrubbed... Name: kernel-config Type: application/octet-stream Size: 30136 bytes Desc: not available Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040221/e6c58f27/kernel-config-0001.obj From rshadow at linuxquestions.net Sat Feb 21 05:42:21 2004 From: rshadow at linuxquestions.net (Steve B.) Date: Sat Feb 21 05:34:14 2004 Subject: [Y-devel] Y development Message-ID: <200402211442.21162.rshadow@linuxquestions.net> Hello, First off let me say I'm comming from a windows background, so I have little development experince on Linux. However I have been involved with Linux, running Gentoo, for a little while now and have been learning Qt (which I think is far superior to MFC). From the looks of different forums and mailing lists xfree is comming upon its death. So my questions about Y is what sort of API (and API Documentation) is avalible for Y ? I would like to help with the project giving what skills I do have. I don't imagine that Y supports (at this time) Qt. Is there any framework avalible for Y? Thank you, Steve From mkurjano at cc.gatech.edu Sat Feb 21 05:41:40 2004 From: mkurjano at cc.gatech.edu (Matthew David Kurjanowicz) Date: Sat Feb 21 05:41:44 2004 Subject: [Y-devel] Y development In-Reply-To: <200402211442.21162.rshadow@linuxquestions.net> References: <200402211442.21162.rshadow@linuxquestions.net> Message-ID: <32958.128.61.73.117.1077342100.squirrel@webmail.cc.gatech.edu> Hi, As far as I understand, one goal of Y is to provide a standard toolkit, and one does exist (though in very limited form). If you check out Mark's Thesis paper, it explains his view on toolkits and talks about the toolkit in Y. -Matt > Hello, > > First off let me say I'm comming from a windows background, so I have > > little development experince on Linux. > > However I have been involved with Linux, running Gentoo, for a little > while > now and have been learning Qt (which I think is far superior to MFC). > From the looks of different forums and mailing lists xfree is comming > upon its death. So my questions about Y is what sort of API (and API > Documentation) is avalible for Y ? I would like to help with the > project giving what skills I do have. I don't imagine that Y supports > (at this time) Qt. Is there any framework avalible for Y? > > > Thank you, > Steve > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel From keyguard at mail.ru Sat Feb 21 05:43:00 2004 From: keyguard at mail.ru (Key) Date: Sat Feb 21 05:43:35 2004 Subject: [Y-devel] SDL: No available video device. Message-ID: Thank all for answers. I've located the problem (it's not a font problem), but I cannot solve it. I've edited log.h and comment all stringd before '#else' and then run Y. I've get such message: initialise:291: sdl: Unable to init: no available video device. , then I've tried to run Y under fbbdev. I've made manual configuration of default.conf. When I try to run Y from any user, I get the message: 'Operation not permited.' And if I try to run it from root, I've get such error: initialise 638: couldn't open /dev/fb0: No such device. Help me please to solve this problems. -- Key aka Alexander Bolshev [keyguard (at) mail.ru] From jason at jclark.org Sat Feb 21 06:34:59 2004 From: jason at jclark.org (Jason Clark) Date: Sat Feb 21 06:35:49 2004 Subject: [Y-devel] Build issue on OS X In-Reply-To: References: <00CF506D-63EC-11D8-BAA5-000393DDE552@jclark.org> <20040220215359.GA31701@amshey.net> Message-ID: <124904EC-6438-11D8-BAA5-000393DDE552@jclark.org> On Feb 20, 2004, at 7:06 PM, Mark Thomas wrote: > On Fri, 20 Feb 2004, Chris wrote: > >> I had okay luck using automake 1.7.9 yesterday, but to-day, after >> getting >> tla working and current code downloaded, autogen told me to use >> automake 1.8 >> or higher. This may (or may not) solve your problem, but at least will >> put you in the correct toolchain > > Yes, asuffield updated the build system today, it was slightly broken > (as > you may have noticed). > >> (and yes, autogen.sh should be run prior to distribution and we should >> be just running ./configure ... I'm sure that will happen eventually. > > configure should never have been in the devel snapshot, and shouldn't > be > in the archive. when using those you *must* run ./autogen.sh to > generate > a correct build environment. Also, something chomped my README file, > which would have had instructions in, but was mysteriously 0 bytes (I > possibly forgot to commit it. doh.) > > Later on tonight (well, early hours of the morning here) I will be > making > a proper distribution tarball with some bugfixes and a ./confiure that > works :) I'll post it on the website and send an email to the > Y-announce > list when it's done. > The new tarball goes much smoother using ./configure (and no autogen); gcc is being called with a flag it doesn't recognize (-pthread), but it's ignoring. I'll try to clean that up tommorow. My issue now is that my original problem with defaults.c remains. Guess I need to go to Automake1.8. So far I've been using fink to update my toolchain, but fink only has Automake1.7.9 so I'll have to do it the old fashioned way. Tommorow-- it's late. Jason Clark http://jclark.org/weblog/ From ahmedcharles at hotmail.com Sat Feb 21 06:47:50 2004 From: ahmedcharles at hotmail.com (Ahmed Charles) Date: Sat Feb 21 06:48:39 2004 Subject: [Y-devel] It works... Message-ID: <4036FF16.50807@hotmail.com> Just like to say hi all. I got Y working straight off with no problems, well not under sdl on X, I'm going to try it standalone next, but I see not reason why it shouldn't. I'll monitor the list an help anyway I can, I'm just glad there is an alternative to X now. Ahmed Charles From jeff2619 at uidaho.edu Sat Feb 21 05:45:58 2004 From: jeff2619 at uidaho.edu (Keith Jeffery) Date: Sat Feb 21 08:46:12 2004 Subject: [Y-devel] Y development In-Reply-To: <200402211442.21162.rshadow@linuxquestions.net> References: <200402211442.21162.rshadow@linuxquestions.net> Message-ID: <4036F096.3080605@uidaho.edu> Well, you seem to be in luck. I was just browsing through the calculator and clock programs to figure out why my clock doesn't actually tick (no clue yet). The signals method seems to be very close to QT, with slots and such. I haven't yet gotten very far though. I've also noticed in these classes that the constructors are not using member initialization lists. Is there some compiler inconsistency that's trying to be avoided? Member initialization lists are faster and better than assignment in the constructor. But, since these are more or less toy apps at the moment, I suppose it doesn't matter much. Keith Jeffery Steve B. wrote: >Hello, > > First off let me say I'm comming from a windows background, so I have >little development experince on Linux. > > However I have been involved with Linux, running Gentoo, for a little while >now and have been learning Qt (which I think is far superior to MFC). From >the looks of different forums and mailing lists xfree is comming upon its >death. So my questions about Y is what sort of API (and API Documentation) >is avalible for Y ? I would like to help with the project giving what skills >I do have. I don't imagine that Y supports (at this time) Qt. Is there any >framework avalible for Y? > > >Thank you, >Steve > >_______________________________________________ >Y-devel mailing list >Y-devel@y-windows.org >http://www.y-windows.org/mailman/listinfo/y-devel > > From erikhill at hawaii.rr.com Sat Feb 21 10:13:35 2004 From: erikhill at hawaii.rr.com (Erik) Date: Sat Feb 21 10:08:00 2004 Subject: [Y-devel] Y latency stuff In-Reply-To: <4036F096.3080605@uidaho.edu> References: <200402211442.21162.rshadow@linuxquestions.net> <4036F096.3080605@uidaho.edu> Message-ID: <200402210013.35863.erikhill@hawaii.rr.com> Hello, I'd like to introduce myself, my name is Erik Hill. I'm very excited about the discovery of the Y windowing system. I've sent a patch or two to Greg Harre's microwindows project years ago but was still looking for a windowing system project to really sink my teeth into, until I discovered Y. At this time, is there any standardization of the protocol? I noticed a couple of gadget types, so it seems to be forming. I am very interested in latency in user interfaces. And specifically, how to lower it. I do have some ideas and I'd like to implement them in Y Windows. I am specifically interested in experimenting with priority inheritance and queue optimization. Two possible approaches are: #1 - The server inherits the priority of the task that sent the command that it is currently working on, and moves stuff around in the queue to execute the work sent by higher priority tasks sooner, or, #2 - A threaded system so that long-executing tasks can be preempted. I believe that, in conjunction with the automatic task priority adjustment feature in the 2.6 kernel (it automatically adjusts the priority of tasks according to their estimated "interactivity level") the latency and interactiveness of a windowing system can be greatly improved. But I wanted to wait until there was a windowing system that had interactivity and low latency as stated, high priority goals, right on the front page, which Y seems to. Otherwise, I feared that I my ideas might contradict those of the project and I'd rather with the grain, than against it. In any case, I'm not sure how to work these ideas (which are hardly new, I believe that QNX uses a similiar system in its "Photon microgui") in, in a way which is compatible and plays nice with the transparent networking feature (where the priority of foreign tasks might not be meaningful) but I'm sure I'll figure out something and would love as much input as possible. I'm a newcomer so I may have missed a lot of information about this already, I don't mean to beat an already over-beaten drum. In any case, I guess I'm delurked, not that I lurked long (definitely broke the "2 month" or whatever rule about not opening your mouth before you know what's going on, but hey, the mailing lists aren't that old to begin with) Erik From ychris at amshey.net Sat Feb 21 10:33:17 2004 From: ychris at amshey.net (Chris) Date: Sat Feb 21 10:29:59 2004 Subject: [Y-devel] Y latency stuff In-Reply-To: <200402210013.35863.erikhill@hawaii.rr.com> References: <200402211442.21162.rshadow@linuxquestions.net> <4036F096.3080605@uidaho.edu> <200402210013.35863.erikhill@hawaii.rr.com> Message-ID: <20040221103317.GA21431@amshey.net> Mark's thesis is available at: http://www.doc.ic.ac.uk/~ajf/Teaching/Projects/Distinguished03/MarkThomas.pd (and he should really put a link to 'The Thesis', yes capitalized like that, on the front page at y-windows.org... the phrase 'have you read The Thesis' is becoming to common to hide it 3/4s of the way through the about page...) And other than the discussions in the thesis, I don't believe latency has been mentioned. There's only a couple hours reading to all the posts in the lists. I think. At least there was yesterday... ;) I'll read your post again to-morrow. Normally, timing issues actually do interest me (might have something to do with my rt background...) but right now it's late, so. And, even though I still feel like I just barged in on the party, I've been here longer than you, so, welcome to the list. ;) --Chris On Sat, Feb 21, 2004 at 12:13:35AM -1000, Erik wrote: > Hello, I'd like to introduce myself, my name is Erik Hill. ... > At this time, is there any standardization of the protocol? I noticed a > couple of gadget types, so it seems to be forming. .. > I am very interested in latency in user interfaces. And specifically, how to > lower it. ... From cardoe at cardoe.com Sat Feb 21 10:35:13 2004 From: cardoe at cardoe.com (Doug Goldstein) Date: Sat Feb 21 10:38:00 2004 Subject: [Y-devel] Gentoo & Patches Message-ID: <40373461.3030204@cardoe.com> I've got some patches for certain things available on my site. For example a friendlier handling of the font problem. Instead of requiring the MS Corefonts it should fall back on some standard XFree fonts. I've got the yend app patch there. It's a little menu to start the apps instead of the yiterm. The SDL Resize patch and a couple more. As far as the Gentoo stuff goes, there's ebuilds there for it all. The ebuilds include all the patches already. http://www.cardoe.com/y-base/ -Doug From p_robin at freemail.hu Sat Feb 21 10:45:14 2004 From: p_robin at freemail.hu (Palotai Robin) Date: Sat Feb 21 10:45:45 2004 Subject: [Y-devel] gcc 2.95 macro; Y-0.2 compile buglist In-Reply-To: <1077307880.24795.4319.camel@bobafett.mpls.ancept.com> References: <1077307880.24795.4319.camel@bobafett.mpls.ancept.com> Message-ID: <20040221144538.5ea41c9f.p_robin@freemail.hu> Hello! It's the same problem here, Debian Woody, gcc 2.95, and I had to comment those macros.. I linked gcc to gcc-3.0, here are the problems I had to overcome while compiling the Y-0.2 : - Had some problem with the version script, solved it by deleting the extern "C++" {} thing (of course left what was inside). - This lead in calculator.cc to not know Y::Y:: - Very rude thing: in the version script, I set * in global, nothing to local - M_PI was undefined in clock.cc, included math.h After that, everything was fine (well, term has no letters, but I haven't installed those fonts yet) Happy Y-ing! Robin On Fri, 20 Feb 2004 14:11:20 -0600 Jason Cwik wrote: > I installed arch and checked out Y--devel--0.2--patch2 and have a couple > questions: > > 1) I'm getting compile errors dealing with the debug macros in log.h. > They're set up for varargs, but when called with only one parameter, > they cause parse errors. I'm using debian-stable (ppc) which I believe > is gcc 2.95. Do I need 3+? > > 2) Anyone know how to rollback your changes under arch? rm > Y/utils/log.h; tla update doesn't work like CVS... it thinks I > intentionally deleted log.h so I can commit its removal. > > 3) If we're going to continue with arch, some modification to the build > process is in order. If you look at how tla is built, you do this: > > mkdir =build > cd =build > ../configure > make > > This way, arch doesn't see the .o's and .so's and think that it has new > source files that must be committed. > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel > > > -- -- Ne szidd. Irj jobbat. -- From rshadow at linuxquestions.net Sat Feb 21 11:23:53 2004 From: rshadow at linuxquestions.net (Steve B.) Date: Sat Feb 21 11:15:54 2004 Subject: [Y-devel] Gentoo & Patches In-Reply-To: <40373461.3030204@cardoe.com> References: <40373461.3030204@cardoe.com> Message-ID: <200402212023.53379.rshadow@linuxquestions.net> On 2004? February 21? Saturday pm 7:35, Doug Goldstein wrote: > As far as the Gentoo stuff goes, there's ebuilds there for it all. The > ebuilds include all the patches already. > > > http://www.cardoe.com/y-base/ > > > -Doug Are you the only one working on the gentoo ebuild for Y? From erikhill at hawaii.rr.com Sat Feb 21 11:25:25 2004 From: erikhill at hawaii.rr.com (Erik) Date: Sat Feb 21 11:16:41 2004 Subject: [Y-devel] Y latency stuff In-Reply-To: <20040221103317.GA21431@amshey.net> References: <200402211442.21162.rshadow@linuxquestions.net> <200402210013.35863.erikhill@hawaii.rr.com> <20040221103317.GA21431@amshey.net> Message-ID: <200402210125.25214.erikhill@hawaii.rr.com> On Saturday 21 February 2004 12:33 am, Chris wrote: > Mark's thesis is available at: > > http://www.doc.ic.ac.uk/~ajf/Teaching/Projects/Distinguished03/MarkThomas.p >d Yes, thank you, I already read it, this is what it has to say about latency, page 23: " Speed improvements can be made by buffering multiple requests and sending them as a single packet. However, the buffer must be flushed frequently in order to avoid significant latency." Combining packets improves throughput, but can, as it is already stated in Mark's thesis, can worsen latency. Human perception begins to notice a delay at as little as 10ms, and even a single operation, if long enough, such as a big bitmap copy, can exceed that. And it's also possible that a lower priority task is sending more work per packet (a lot of bitmap copies, for example), so even if the higher priority task gets more requests through, it still might be overwhelmed by a lower priority task that is simply reading mouse movements or updating buttons or whatnot. We want buttons for example to update very quickly even if there's a lot of business going on. And of course we want movies to not drop frames and so on. Luckily, the Linux kernel already distinguishes between high and low interactive tasks by analyzing the sleeping behavior of the tasks (tasks which sleep a lot and are only occasionally running get a significant priority boost). Other kernels have other ways of dealing with interactivity and priority. If the Y server can obtain this information it can boost the interactivity of tasks based on the same information that the kernel has, without having to recompute it. As for other kernels, the priority information is still quite useful and can be used to avoid priority inversions. Approaches that I've considered are, resorting the queue, multithreading (which Y might already do) and setting the priority of each thread based on the priority of the task which sent the signal, or just modifying the priority of the Y server based on that same information, as it goes through the queue (priorities can be changed very quickly, with basically zero overhead). > (and he should really put a link to 'The Thesis', yes capitalized like > that, on the front page at y-windows.org... the phrase 'have you read The > Thesis' is becoming to common to hide it 3/4s of the way through the about > page...) > > And other than the discussions in the thesis, I don't believe latency has > been mentioned. There's only a couple hours reading to all the posts in > the lists. I think. At least there was yesterday... ;) > > I'll read your post again to-morrow. Normally, timing issues actually do > interest me (might have something to do with my rt background...) but > right now it's late, so. > Cool. > And, even though I still feel like I just barged in on the party, I've been > here longer than you, so, welcome to the list. ;) > Awesome party. I look forward to it -- lets figure this timing stuff out right on this puppy so we can say goodbye to jumps and stutters like in XFree86. > --Chris > > On Sat, Feb 21, 2004 at 12:13:35AM -1000, Erik wrote: > > Hello, I'd like to introduce myself, my name is Erik Hill. > > ... > > > At this time, is there any standardization of the protocol? I noticed a > > couple of gadget types, so it seems to be forming. > > .. > > > I am very interested in latency in user interfaces. And specifically, > > how to lower it. > > ... > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel From rshadow at linuxquestions.net Sat Feb 21 12:01:54 2004 From: rshadow at linuxquestions.net (Steve B.) Date: Sat Feb 21 11:54:11 2004 Subject: [Y-devel] A few more questions about Y Message-ID: <200402212101.54293.rshadow@linuxquestions.net> I've started to read Mark's paper. In the introduction its described that "A message passing system for accessign these objects on systems that support some form of message passing, and a socket..." One thing that I "missed" when I left windows gui code for linux, was the ability to "talk" to other applications via user defined messages. Thus far I have not found a way to do this with XFree. Is this the type of messages that are being mentioned in Mark's paper? (Forgive me if these are answered in the paper later on. I read fast.. but not fast enough to easy my mind :-) ) Also while reading the paper and thinking about a toolkit, here are some of my *wishes*, and assuming I have the skill I would love to help develop them. * The idea of "skinning" is here to stay. Todays applications need to be able to be skinnable. Something that I have wished for since I started programming was a object class to support skinning that is native to the O.S API. I think it would make the whole process smoother for end user as well as the programmer if there was a common API for "themeing" an application. This creates consistancy among applications. This also eliminated the need for 80 different theme formats for applications. You should be able to use the same format model to skin all applications (assuming they use the 'standard') * IPC IPC IPC! There should be a easy reliable means of inter process communication. (User defined messages seems to be a good choice in my opinion). * A standard maintained toolkit. Again I refer to windows here (please don't flame me... its were I learned to program). MFC was great in the begining, but fell apart very quickly. As a toolkit is developed there should be a strong plan for future development. The toolkit needs to be scalable for the future. Otherwise ten years from now we will end up with a bloated hacked up toolkit to support new features (a.k.a MFC). * Internal Unicode support. One of the GREAT things that I liked when getting involved with Qt was how easy it is to support different languages. * Speaking of unicode, there should be a input method that natively supports different languages. Anyways, just some Ideas... and excuse my spelling.. its late. Thanks you, Steve From mike at 2kay.net Sat Feb 21 12:22:43 2004 From: mike at 2kay.net (mike) Date: Sat Feb 21 12:22:27 2004 Subject: [Y-devel] questions, confusions and other things In-Reply-To: References: Message-ID: <40374D93.3080901@2kay.net> Gil Wiget wrote: > Hello > > I've to admit I'm pretty new here. Nevertheles, i think here should be > some kind of structur. > At the moment this all is very confusing to me. I've read things that > someone is doing this and another one is doing something else and so > on. It's difficult to see what really is going on. I'm wondering if > it wouldnt be better to have something like a forum instead of this > mailing list? There also it would be possible to split the whole thing > apart into smaller pieces. I think a forum for this is a great idea, as it does add more structure. if anyone wants i could set up a forum, i would need a week or so as i have only purchased the domain name today. From igor at widespace.ee Sat Feb 21 12:34:31 2004 From: igor at widespace.ee (Igor Malinin) Date: Sat Feb 21 12:36:34 2004 Subject: [Y-devel] License References: Message-ID: <40375057.3050702@widespace.ee> Mark Thomas wrote: > Y server is GPL. I've used some other GPL code in there (specifically > Y/util/index.c), so we'd have to replace that if we wanted to change > (but I don't want to change so it's all OK). Is it the only file? As I see it is just an implementation of RB-Tree algolithm. It is not too hard to find more unrestrictive implementation (LGPL or even MIT/BSD licensed). What is your rationale of choosing GPL? As was already said it limits commercial use of Y. X has long life and popularity because of it's very unrestrictive license. I am very impressed with what you have done in Y - you've made what I already thought about since long time. Server side widgets, 2d rendering, Unicode, and all this with network transparency is exactly what I think should be next generation windowing system after X. But limit it's use from the beginning... Don't make it a toy, allow commercial entities adopt Y, make it friendly for them. > Y libraries are LGPL. It is much better. As you are the author of the Y you can legally make such a separation of Y is GPL, and libs is LGPL. But! You have indes.c is not your work, and IMHO it requires you to meke libs GPL too. Isn't it? Don't you think that it is much easier to release all under a single license. Current situation makes much confusion. > yiterm is CPL because it uses libiterm and that is CPL. AFAIK, using a > CPL library requires using the CPL for the program. You is not right here, IMHO... If you don't copy a code from the library you can use any license for the program. Read the definitions of Contribution and Program for CPL. In terms of CPL library itself is a Program. And your program is just an external module if you release it under different license. Useful link about CPL (FAQ): http://www-106.ibm.com/developerworks/library/os-cplfaq.html It was just information. I have nothing against CPL and even like more than LGPL. It has more clarity in respect of patent issues. > All the other Y client apps are GPL. For applications it is acceptable I think. But again not for 'core' things like taskbars and other commonly used components. From rawler at rsn.bth.se Sat Feb 21 12:47:47 2004 From: rawler at rsn.bth.se (Ulrik Mikaelsson) Date: Sat Feb 21 12:48:03 2004 Subject: [Y-devel] Y latency stuff In-Reply-To: <200402210013.35863.erikhill@hawaii.rr.com> References: <200402211442.21162.rshadow@linuxquestions.net> <4036F096.3080605@uidaho.edu> <200402210013.35863.erikhill@hawaii.rr.com> Message-ID: <200402211347.54782.rawler@rsn.bth.se> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Saturday 21 February 2004 11.13 skrev Erik: > At this time, is there any standardization of the protocol? I noticed a > couple of gadget types, so it seems to be forming. I have one little comment here. Maybe it have allready been mentioned, but in Y/const.h, the enum YMessageOperation that specifies the values used for each type of operation, isn't explicitly specified. Relying on the values that the C compiler sets for you might be allright when just using a C/C++ client library, and the server and client is compiled using the same compiler. The problem is that it makes things REALLY hard for guys like me, playing around with the possibility of creating a C# library on the Mono platform, because frankly I can't _know_ what the MessageOperation is. It might also pose a problem in a networked environment, when Server and Client might be compiled using different compilers. Other than this, Y seems like a well thought-through and well working base for an X-replacement. Good job so far. Regards Ulrik - -- Double your disk space - delete Windows! -- Albert Dorofeev -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFAN1N3069SELtZwIkRAuyCAJ9t/HZAdMyLgOo+eGWA+d+xREUaEgCfS0T+ qSWw0yKevQfMJI5xLGklWCg= =na4P -----END PGP SIGNATURE----- From jpd at dsb.tudelft.nl Sat Feb 21 13:35:31 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Sat Feb 21 13:35:38 2004 Subject: [Y-devel] questions, confusions and other things In-Reply-To: <40374D93.3080901@2kay.net> References: <40374D93.3080901@2kay.net> Message-ID: <20040221133531.GB75554@dsb.tudelft.nl> [still gotta learn to hit `L' right away instead of `r'] On Sat, Feb 21, 2004 at 12:22:43PM +0000, mike wrote: > Gil Wiget wrote: [snip: move to a forum instead?] > > I think a forum for this is a great idea, as it does add more structure. > if anyone wants i could set up a forum, i would need a week or so as i > have only purchased the domain name today. Maybe I'm biassed but I really do not get this urge toward fora. It gains you pictures and other niceties that don't actually add to the content and just as much (or maybe more) bad formatting and me-too-postings. And, of course, it's harder to archive and there's less custom clients that do what the user wants. To add a datapoint, this ML forced me to also thread-enable my mailreader (which my newsreader already was) but that turned out to be a small config change. The upshot is that I'm not forced to use a browser and can still conveniently use a vt220 without placing the burden of making that work on the webmaster. In short, I think a ML works better but does require the confused newbie to learn how to properly configure his mailclient. If the ml fills up more it may be time to split it into more topical ones, like brainstorming, design, writing the code, and running the code. But that is another issue. -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From jpd at dsb.tudelft.nl Sat Feb 21 14:04:44 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Sat Feb 21 14:04:51 2004 Subject: [Y-devel] Some patches for Re: Compile Problems on BSD In-Reply-To: References: Message-ID: <20040221140444.GC75554@dsb.tudelft.nl> On Fri, Feb 20, 2004 at 11:11:53AM -0600, Augie Fackler wrote: > Basically, BSD is missing some standard header files. [snip] I don't really know whether or not those header files are really standard or `just' linuxisms, one'd have to look up them posix and/or single-unix specifications to find out. However, most of what's supposedly in those files is solvable right away: $ cat Y-0.2/stdint.h /* [jpd] don't have stdint.h. let's see if this shuts up the compiler */ #ifndef __STDINT_H #define __STDINT_H 1 #include #endif $ cat Y-0.2/endian.h /* [jpd] don't have endian.h. let's see if this shuts up the compiler */ $ And lo and behold, it _does_ shut up the compiler. Yes, the second one is essentially empty. I don't know what system you're using but I ran into a few more problems with 0.1 (like the debug include thingy) that I'm now integrating into 0.2. There are a number of gnu-vs-world issues, one is that the GNU sed supports extended regexpen where the BSD one, in my case, does not: *** --- Y-0.2-config/Y/Makefile Sat Feb 21 14:54:27 2004 +++ Y-0.2/Y/Makefile Sat Feb 21 11:45:22 2004 @@ -397,7 +397,7 @@ util/yutil.c util/list.c Y_LDFLAGS = -Wl,-export-dynamic -Y_LDADD = $(FREETYPE_LIBS) -ldl +Y_LDADD = $(FREETYPE_LIBS) -liconv pkginclude_HEADERS = \ const.h @@ -2259,13 +2259,13 @@ @echo "#include " >> $@ @echo >> $@ @find $(top_srcdir)/Y -iname '*.c' | xargs grep CLASSDEF \ - | sed s/'^.*struct Class \([a-zA-Z]\+\).*'/'extern struct Class \1;'/ >> $@ + | sed s/'^.*struct Class \([a-zA-Z][a-zA-Z]*\).*'/'extern struct Class \1;'/ >> $@ @echo >> $@ @echo "void" >> $@ @echo "yRegisterDefaultClasses ()" >> $@ @echo "{" >> $@ @find $(top_srcdir)/Y -iname '*.c' | xargs grep CLASSDEF \ - | sed s/'^.*struct Class \([a-zA-Z]\+\).*'/' classRegister (\&\1);'/ >> $@ + | sed s/'^.*struct Class \([a-zA-Z][a-zA-Z]*\).*'/' classRegister (\&\1);'/ >> $@ @echo "}" >> $@ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. *** As you can see, there's also a -ldl that doesn't exist here, and from 0.1 I remember needing libiconv so I put that in preventively. I'll leave it to someone else to integrate this into the pre-auto*-tools makefiles. Also, IIRC there are a few more +-vs-* issues but I haven't run into them yet. Read on. The next thing is another header problem that you need this patch for: *** --- Y-0.2-dist/libY/Y/select.c Sat Feb 21 02:45:10 2004 +++ Y-0.2/libY/Y/select.c Sat Feb 21 11:52:05 2004 @@ -2,10 +2,9 @@ #include "libY.h" #include "internal.h" -#include -#include +#include +#include #include -#include /* compile this file in if you want multi-fd access using select (); */ *** I'd be interested to see if this breaks the linux compile or not. Next was a missing -lc in libtool that prevented libY from compiling. I didn't find a nice way of solving that yet. Just hacking out the offending bit in libtool did allow me to go on but it'll probably break some programs linked against it. Now I'm stuck with a problem in the Versions file in libYc++. The error looks like /usr/libexec/elf/ld:./Versions:5: syntax error in VERSION script And Versions looks like (don't know if this changes across platforms?) $ cat Y-0.2/libYc++/Versions LIBYCXX_0.2_0 { global: _init; _fini; extern "C++" { Y::*; }; local: *; }; $ I haven't dived in yet so I don't even know what syntax the file is supposed to follow. Anyone a clue there? -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From caeryd at hotmail.com Sat Feb 21 14:17:19 2004 From: caeryd at hotmail.com (Gil Wiget) Date: Sat Feb 21 14:18:11 2004 Subject: [Y-devel] questions, confusions and other things Message-ID: Hello Yes and true, BUT ... >To add a datapoint, this ML forced me to also thread-enable my mailreader >(which my newsreader already was) but that turned out to be a small config >change. The upshot is that I'm not forced to use a browser and can still >conveniently use a vt220 without placing the burden of making that work >on the webmaster. In short, I think a ML works better but does require >the confused newbie to learn how to properly configure his mailclient. it proably doesn't work with a non-pop account ( ie. hotmail ). Can't find a find a good mail-client which handles those account. Ah, well, maybe i should just get a proper pop-account ;) Cheers Gil _________________________________________________________________ Der neue MSN Messenger 6.1 - chatten Sie von Angesicht zu Angesicht! http://messenger.msn.ch/ From jpd at dsb.tudelft.nl Sat Feb 21 14:28:03 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Sat Feb 21 14:28:06 2004 Subject: [Y-devel] Build issue on OS X In-Reply-To: References: <00CF506D-63EC-11D8-BAA5-000393DDE552@jclark.org> <20040220215359.GA31701@amshey.net> Message-ID: <20040221142803.GD75554@dsb.tudelft.nl> On Sat, Feb 21, 2004 at 12:06:17AM +0000, Mark Thomas wrote: > On Fri, 20 Feb 2004, Chris wrote: > > > (and yes, autogen.sh should be run prior to distribution and we should > > be just running ./configure ... I'm sure that will happen eventually. > > configure should never have been in the devel snapshot, and shouldn't be > in the archive. when using those you *must* run ./autogen.sh to generate > a correct build environment. And generating that seems to be pretty hard for some not quite linux machines. :-/ May I suggest refraining from using the latest and greatest of the auto*- tools? I mean, they're useful and all, but they're growing in what seems exponential fashion[1] and compatability usually works better when using a later version of the tools against files gerenerated by earlier versions than the other way around[2]. Add to that the fact that not everybody installs by hand --I, for one, use the FreeBSD ports system-- and the installation systems involved aren't always updated fast enough to keep up with the latest and greatest of the auto*-tools. And, call me lazy, but I'm not really prepared to become the ports-maintainer for those tools just to be able to compile Y now and then. Cleaning up the code so it compiles on more than one platform is hard enough as it is without also running behind the latest version of the auto*-tools. :-) Let me stress that I'm not against using them at all, but I'm not very happy having to upgrade every day to the latest of those to try a new snapshot of Y. Y is small, the auto*-tools sure are not. [1] $ cd /usr/ports/distfiles; ls -s1 auto* libtool* 272 autoconf-000227.tar.bz2 816 autoconf-2.57.tar.bz2 400 automake-1.4-p5.tar.gz 560 automake-1.7.5.tar.bz2 544 libtool-1.3.4.tar.gz 544 libtool-1.3.5.tar.gz 1168 libtool-1.4.3.tar.gz 2768 libtool-1.5.tar.gz [2] The latter won't work at all. -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From jpd at dsb.tudelft.nl Sat Feb 21 14:33:07 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Sat Feb 21 14:33:11 2004 Subject: [Y-devel] questions, confusions and other things In-Reply-To: References: Message-ID: <20040221143307.GE75554@dsb.tudelft.nl> On Sat, Feb 21, 2004 at 03:17:19PM +0100, Gil Wiget wrote: [snip: fora or threading MUAs] > > it proably doesn't work with a non-pop account ( ie. hotmail ). Can't find > a find a good mail-client > which handles those account. Well, either everyone cannot use threading or just the bums with lousy mail clients cannot. > Ah, well, maybe i should just get a proper > pop-account ;) I used to get the mail delivered right on my machine in my spoolfile, and now I get it over IMAP. Both don't use pop3 protocol. :-) -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From Linux.Luser at myrealbox.com Sat Feb 21 14:44:46 2004 From: Linux.Luser at myrealbox.com (Stroller) Date: Sat Feb 21 14:44:55 2004 Subject: [Y-devel] questions, confusions and other things In-Reply-To: References: Message-ID: <7E813E70-647C-11D8-94E8-000A95795F3E@myrealbox.com> On Feb 21, 2004, at 2:17 pm, Gil Wiget wrote: > >> ...The upshot is that I'm not forced to use a browser and can still >> conveniently use a vt220 without placing the burden of making that >> work >> on the webmaster. In short, I think a ML works better but does require >> the confused newbie to learn how to properly configure his mailclient. I agree. Having forums AND a mailing list AND IRC just splits discussions up too much. I know that each medium has its fans: I find IRC useful for real-time Q-and-A, but there's no archiving. Having forums AND a mailing-list just means additional archives to search for previously answered questions, and can create divergence within the community. IMO a bug-tracker is a more essential web-based solution. Someone mentioned on IRC that one might have been set-up already, but was unable to provide a link. > it proably doesn't work with a non-pop account ( ie. hotmail ). Can't > find a find a good mail-client > which handles those account. Ah, well, maybe i should just get a > proper pop-account ;) $ esearch -S hotmail [ Results for search key : hotmail ] [ Applications found : 2 ] * net-mail/gotmail Latest version available: 0.8.1 Latest version installed: [ Not Installed ] Size of downloaded files: 24 kB Homepage: http://www.nongnu.org/gotmail/ Description: Utility to download mail from a HotMail account * net-mail/hotwayd Latest version available: 0.5.3 Latest version installed: [ Not Installed ] Size of downloaded files: 116 kB Homepage: http://hotwayd.sourceforge.net/ Description: Hotmail to pop3 deamon HTH, Stroller. From matt at mattsscripts.co.uk Sat Feb 21 15:03:43 2004 From: matt at mattsscripts.co.uk (Matt Wilson) Date: Sat Feb 21 15:03:48 2004 Subject: [Y-devel] startY?... In-Reply-To: <1077225137.9201.110.camel@aragorn.pissedup.com> References: <1077225137.9201.110.camel@aragorn.pissedup.com> Message-ID: <1077375823.10812.5.camel@aragorn.pissedup.com> OK, I found out my problem related to text/font.cc and line #214; fontScanDirectory ("/usr/share/fonts", 255); att@aragorn Y--devel--0.2--patch-1 $ ls /usr/share/fonts/ README.binaries artwiz fonts.cache-1 ttf README.installer corefonts freefont ttf-bitstream-vera afms default run-gnome-font-install matt@aragorn Y--devel--0.2--patch-1 $ I'm running Gentoo ~x86 and removing that line gets me further to running Y :) Now I think there's a problem related to a missing font or something ... but this problem was interesting, anyone any ideas why it doesn't work? On Thu, 2004-02-19 at 21:12, Matt Wilson wrote: > Hi folks, > > * waves to the list > > I just downloaded Y--devel--0.2--patch-1.tar.gz and compiled it up > (after installing libiterm-mbt, which configure didn't notice was > missing btw), then 'make install'ed it. Upon running 'startY' nothing > happens ... not a thing. I wasn't entirely sure if anything really > *should* happen so I tried to run ycalculator (and yiterm) to no avail, > it appears that the socket /tmp/.Y-0 isn't being created... > > Suggestions? :) > > Matt > > -- > http://www.mattsscripts.co.uk/ > - A great source for free CGI and stuff > > No hardware designer should be allowed to produce any piece of hardware > until three software guys have signed off for it. > -- Andy Tanenbaum > > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel -- http://www.mattsscripts.co.uk/ - A great source for free CGI and stuff In the words of one of the founding Igors: 'We belong dead? Ecthcuthe me? Where doeth it thay "we"?' (The Thief of Time) From mark at y-windows.org Sat Feb 21 15:06:16 2004 From: mark at y-windows.org (Mark Thomas) Date: Sat Feb 21 15:06:18 2004 Subject: [Y-devel] A few more questions about Y In-Reply-To: <200402212101.54293.rshadow@linuxquestions.net> References: <200402212101.54293.rshadow@linuxquestions.net> Message-ID: On Sat, 21 Feb 2004, Steve B. wrote: > I've started to read Mark's paper. In the introduction its described that "A > message passing system for accessign these objects on systems that support > some form of message passing, and a socket..." > > One thing that I "missed" when I left windows gui code for linux, was the > ability to "talk" to other applications via user defined messages. Thus far > I have not found a way to do this with XFree. Is this the type of messages > that are being mentioned in Mark's paper? (Forgive me if these are answered > in the paper later on. I read fast.. but not fast enough to easy my > mind :-) ) > Yes. It's planned to be able to talk to other clients. I'd also like for clients to be able to publish services to other clients, and for clients to be able to transfer widgets to each other. That would make it possible for an application to publish a "FormulaEditor" service, which your word processor, presentation maker or email client could request a formula editor from and pack it inside itself (like OLE but better). Of course there are a myriad of concerns with this that need to be hammered out. It is quite a distance down the road, too :) > Also while reading the paper and thinking about a toolkit, here are some > of my *wishes*, and assuming I have the skill I would love to help > develop them. > > * The idea of "skinning" is here to stay. Yes. In Y they are called "themes" and are automatic. All widgets will use the same theme by default. The theme API will be exposed to the client so clients can render their custom widgets using theme parts. > * IPC IPC IPC! There should be a easy reliable means of inter process > communication. (User defined messages seems to be a good choice in my > opinion). As I said above, user messages and a published-interface system are on the cards. > * A standard maintained toolkit. This is one of Y's main aims. > * Internal Unicode support. One of the GREAT things that I liked when getting > involved with Qt was how easy it is to support different languages. It's not quite in there now, but yes, Y will be fully unicode. There's no reason not to be. > * Speaking of unicode, there should be a input method that natively supports > different languages. Yes. I want to be able to walk up to /any/ Y desktop, press a few buttons and start typing in Japanese. Regards, Mark. -- || Mark Thomas || efaref.net || || Never anger a dragon for you are crunchy and go well with Brie. From jpd at dsb.tudelft.nl Sat Feb 21 15:09:02 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Sat Feb 21 15:09:08 2004 Subject: [Y-devel] questions, confusions and other things In-Reply-To: <7E813E70-647C-11D8-94E8-000A95795F3E@myrealbox.com> References: <7E813E70-647C-11D8-94E8-000A95795F3E@myrealbox.com> Message-ID: <20040221150901.GF75554@dsb.tudelft.nl> On Sat, Feb 21, 2004 at 02:44:46PM +0000, Stroller wrote: [snip!] > I agree. Having forums AND a mailing list AND IRC just splits > discussions up too much. > > I know that each medium has its fans: I find IRC useful for real-time > Q-and-A, but there's no archiving. Having forums AND a mailing-list > just means additional archives to search for previously answered > questions, and can create divergence within the community. There already are web-based ML-archives. :-) > IMO a bug-tracker is a more essential web-based solution. Someone > mentioned on IRC that one might have been set-up already, but was > unable to provide a link. A bug-tracker is a useful tool, but I don't agree it must be web-based. There do exist workable implementations of such a thing that include a good deal of email-support. AFAIK bugzilla has it, and gnats is, AFAIUI, mostly mail-based. Altough I've only used the (web-based) archives so far. BTW, has someone indeed set up a bugtracker? If so, where? If not, are there plans to set one up on y-windows.org? -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From Linux.Luser at myrealbox.com Sat Feb 21 15:31:27 2004 From: Linux.Luser at myrealbox.com (Stroller) Date: Sat Feb 21 15:31:39 2004 Subject: [Y-devel] questions, confusions and other things In-Reply-To: <20040221150901.GF75554@dsb.tudelft.nl> References: <7E813E70-647C-11D8-94E8-000A95795F3E@myrealbox.com> <20040221150901.GF75554@dsb.tudelft.nl> Message-ID: <03F0830D-6483-11D8-94E8-000A95795F3E@myrealbox.com> On Feb 21, 2004, at 3:09 pm, JP Dinger wrote: > On Sat, Feb 21, 2004 at 02:44:46PM +0000, Stroller wrote: > [snip!] >> I agree. Having forums AND a mailing list AND IRC just splits >> discussions up too much. >> >> I know that each medium has its fans: I find IRC useful for real-time >> Q-and-A, but there's no archiving. Having forums AND a mailing-list >> just means additional archives to search for previously answered >> questions, and can create divergence within the community. > > There already are web-based ML-archives. :-) Exactly! Making forums redundant, IMO. Stroller. From brandon at tryplec.com Sat Feb 21 15:48:55 2004 From: brandon at tryplec.com (Brandon Black) Date: Sat Feb 21 15:49:03 2004 Subject: [Y-devel] C API? Message-ID: <40377DE7.1030307@tryplec.com> Is there a C API yet? I saw the C++ one (libYc++), and I see a "Yc", but it doesn't appear to have all the widget interfaces and things I would expect, just a couple messaging calls. Am I missing something here? From dsnowdon at club-internet.fr Sat Feb 21 16:08:09 2004 From: dsnowdon at club-internet.fr (Dave Snowdon) Date: Sat Feb 21 16:08:18 2004 Subject: [Y-devel] XML Bundle widget Message-ID: <40378269.7080603@club-internet.fr> Hi folks I got Y to compile and run so now I have no excuse for not getting my grubby little fingers into the code :-) There's a few things I'm interested in contributing to such as Open GL support (if anything remains to be done; I saw that Claude has written some code for this), multiple input devices and audio support but I was thinking about something smaller to get me started. Anyway... In Mark's thesis he mentions that one way of improving the start-up time would be the possibility of throwing an XML document at the server which then instantiates all the widgets described in the file in a single request. I was thinking that there are more reasons to like the idea of widgets being able to accept and generate XML descriptions. For example it would make it easier to build resource editors. The UI editor could throw some XML at the server which instantiates the user interface, the editor allows the developer to edit the UI and, when done, asks the server to send back the XML for the current state. The XML is then ready to use by the aplication being built. Another reason is internationalism, you can edit the XML UI description and translate the text without touching the executable. I was thinking that the way to go about building this would be to build a widget ("XML Bundle" seems like a good name) which implements a method with a string parameter which is interpreted as XML. The widget parses the XML (using a simple lightweight parser like expat) and instantiates the widgets. The XML file would allow the developer to name widgets - the names would then be associated with the id of the instantiated widget and used as properties on the XML Bundle so that client applications could then look up the identifiers for individual widgets. To do this in a clean way would require each widget class to have methods supporting the parsing and generation of the XML that represents it. This way the XML Bundle widget doesn't need to know anything about the widgets it's buildng except how to find the correct widget class to hand a piece of XML to (actually I would probably not pass the XML itself but instead route the callbacks from the XML parser to the widget class concerned). So, before I start coding, does anyone have any comments on the above? Anyone already started doing something similar? Dave -- New book: "Inhabited Information Spaces" Web site: http://www.iisbook.com Dave Snowdon This mind intentionally left blank. From nofx_3 at softhome.net Sat Feb 21 16:20:31 2004 From: nofx_3 at softhome.net (Andrew Kaplan) Date: Sat Feb 21 16:23:13 2004 Subject: [Y-devel] Hello world app. Message-ID: <200402210820.31693.nofx_3@softhome.net> If anyone is interested in looking at some very simplified apps, I have created two hello, world varations. The source code can be found at http://kaplanfx.homelinux.org:8080/ystuff/ most of the code is copied from the apps in the client folder, but its a bit simpler to see whats going on in these apps. Have fun! -kaplanfx nofx_3@softhome.net From richard at playford.net Sat Feb 21 16:38:18 2004 From: richard at playford.net (Richard Hills) Date: Sat Feb 21 16:38:52 2004 Subject: [Y-devel] The clock... Message-ID: <1077381497.2975.14.camel@localhost> ... has stopped ticking. I've done a little poking around, and although in libYc++/Y/c++/y.cc the call to "timer ()" is being executed this does not result in a call to the clock::timer function. The connect(sock code in clock::clock is being called. I am not a C++ programmer, so am not sure where to go from here. If anyone has any ideas...? Richard From durin at sbcglobal.net Sat Feb 21 17:22:27 2004 From: durin at sbcglobal.net (Augie Fackler) Date: Sat Feb 21 17:22:33 2004 Subject: [Y-devel] Some patches for Re: Compile Problems on BSD In-Reply-To: <20040221140444.GC75554@dsb.tudelft.nl> Message-ID: <855D5A04-6492-11D8-822E-000502673BF6@sbcglobal.net> Inline comments On Saturday, February 21, 2004, at 08:04 AM, JP Dinger wrote: > I don't really know whether or not those header files are really > standard > or `just' linuxisms, one'd have to look up them posix and/or > single-unix > specifications to find out. However, most of what's supposedly in those > files is solvable right away: The files are, according to the Open Group, part of the C99 spec. FreeBSD 5 has support for most of them, but the chance of backports to 4 looks pretty weak. > And lo and behold, it _does_ shut up the compiler. Yes, the second one > is essentially empty. Cool! Thanks! > I'd be interested to see if this breaks the linux compile or not. Yeah, that was one thing I was wondering about too. You mind if I put your patches up on my site? I was thinking of trying to maintain a list of patches needed for BSD usage of Y. 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 durin at sbcglobal.net Sat Feb 21 17:30:32 2004 From: durin at sbcglobal.net (Augie Fackler) Date: Sat Feb 21 17:30:37 2004 Subject: [Y-devel] Build issue on OS X In-Reply-To: <20040221142803.GD75554@dsb.tudelft.nl> Message-ID: On Saturday, February 21, 2004, at 08:28 AM, JP Dinger wrote: > May I suggest refraining from using the latest and greatest of the > auto*- > tools? I second that request. 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 jerome at gandalf.fraca7.homeunix.net Sat Feb 21 17:18:42 2004 From: jerome at gandalf.fraca7.homeunix.net (Jerome Laheurte) Date: Sat Feb 21 17:32:04 2004 Subject: [Y-devel] Some problems :) Message-ID: I'm working on a Python binding, and I just spent 1/2 hour tracking a non-existent bug :) Shame on me... The problem is that the YMO_GET_PROPERTY doesn't seem to be implemented yet on the server; it doesn't even produce an error. Is somebody already working on this ? -- J?r?me Laheurte Faith, n: That quality which enables us to believe what we know to be untrue. From jerome at gandalf.fraca7.homeunix.net Sat Feb 21 17:31:08 2004 From: jerome at gandalf.fraca7.homeunix.net (Jerome Laheurte) Date: Sat Feb 21 17:44:35 2004 Subject: [Y-devel] Build issue on OS X In-Reply-To: References: Message-ID: On Sat, 21 Feb 2004, Augie Fackler wrote: > > On Saturday, February 21, 2004, at 08:28 AM, JP Dinger wrote: > > > May I suggest refraining from using the latest and greatest of the > > auto*- > > tools? > I second that request. So do I. After updating to the latest version, I could build Y but I couldn't build libsigc++ any more :( -- J?r?me Laheurte We have only two things to worry about: That things will never get back to normal, and that they already have. From benurban at comcast.net Sat Feb 21 18:37:29 2004 From: benurban at comcast.net (Ben Urban) Date: Sat Feb 21 18:38:02 2004 Subject: [Y-devel] A few more questions about Y In-Reply-To: <200402212101.54293.rshadow@linuxquestions.net> References: <200402212101.54293.rshadow@linuxquestions.net> Message-ID: <1077388648.18050.12.camel@localhost.localdomain> On Sat, 2004-02-21 at 07:01, Steve B. wrote: > I've started to read Mark's paper. In the introduction its described that "A > message passing system for accessign these objects on systems that support > some form of message passing, and a socket..." > > One thing that I "missed" when I left windows gui code for linux, was the > ability to "talk" to other applications via user defined messages. Thus far > I have not found a way to do this with XFree. Is this the type of messages > that are being mentioned in Mark's paper? (Forgive me if these are answered > in the paper later on. I read fast.. but not fast enough to easy my > mind :-) ) > > > Also while reading the paper and thinking about a toolkit, here are some of my > *wishes*, and assuming I have the skill I would love to help develop them. > [snip] > > * IPC IPC IPC! There should be a easy reliable means of inter process > communication. (User defined messages seems to be a good choice in my > opinion). > [snip] I don't know how anyone else feels about this, but I'm a pretty big fan of the way Apple does it's IAC (interapplication communication). Is there some way we could implement some form of Apple Events / AppleScript? (If you want it, I have an AbiWord document listing the various script commands/operations I'd like to see; Let me know and i'll attach it.) I would be willing to help with this. From dr at machdep.com Sat Feb 21 23:55:21 2004 From: dr at machdep.com (David Rhodus) Date: Sat Feb 21 18:45:12 2004 Subject: [Y-devel] License References: <40375057.3050702@widespace.ee> Message-ID: <200402212355.i1LNtLGO057419@machdep.com> > >Mark Thomas wrote: >> Y server is GPL. I've used some other GPL code in there (specifically >> Y/util/index.c), so we'd have to replace that if we wanted to change >> (but I don't want to change so it's all OK). > >Is it the only file? As I see it is just an implementation of RB-Tree >algolithm. It is not too hard to find more unrestrictive implementation >(LGPL or even MIT/BSD licensed). > >What is your rationale of choosing GPL? As was already said it limits >commercial use of Y. X has long life and popularity because of it's very >unrestrictive license. I am very impressed with what you have done in Y >- you've made what I already thought about since long time. Server side >widgets, 2d rendering, Unicode, and all this with network transparency >is exactly what I think should be next generation windowing system after >X. But limit it's use from the beginning... Don't make it a toy, allow >commercial entities adopt Y, make it friendly for them. I think a lot of people would have really liked to have seen a BSD license on this to try and push this into companies that are still shy about pushing changes into the public eye. Still being fresh, it seems like Y should think about switching over to a BSD license and help move the Free operating systems into companies. -DR From benurban at comcast.net Sat Feb 21 19:03:41 2004 From: benurban at comcast.net (Ben Urban) Date: Sat Feb 21 19:04:15 2004 Subject: [Y-devel] License In-Reply-To: <200402212355.i1LNtLGO057419@machdep.com> References: <40375057.3050702@widespace.ee> <200402212355.i1LNtLGO057419@machdep.com> Message-ID: <1077390221.14686.20.camel@localhost.localdomain> The linux kernel is GPL. gcc is GPL. Has that stopped companies from using them? If a company doesn't want their changes to be public, they don't have to release their changes at all. Don't make the same mistake that X made. I for one will only submit code under the GPL (or possibly LGPL). On Sat, 2004-02-21 at 18:55, David Rhodus wrote: > > > >Mark Thomas wrote: > >> Y server is GPL. I've used some other GPL code in there (specifically > >> Y/util/index.c), so we'd have to replace that if we wanted to change > >> (but I don't want to change so it's all OK). > > > >Is it the only file? As I see it is just an implementation of RB-Tree > >algolithm. It is not too hard to find more unrestrictive implementation > >(LGPL or even MIT/BSD licensed). > > > >What is your rationale of choosing GPL? As was already said it limits > >commercial use of Y. X has long life and popularity because of it's very > >unrestrictive license. I am very impressed with what you have done in Y > >- you've made what I already thought about since long time. Server side > >widgets, 2d rendering, Unicode, and all this with network transparency > >is exactly what I think should be next generation windowing system after > >X. But limit it's use from the beginning... Don't make it a toy, allow > >commercial entities adopt Y, make it friendly for them. > > I think a lot of people would have really liked to have seen > a BSD license on this to try and push this into companies > that are still shy about pushing changes into the public eye. > Still being fresh, it seems like Y should think about switching > over to a BSD license and help move the Free operating systems > into companies. > > -DR > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel From jpd at dsb.tudelft.nl Sat Feb 21 19:08:34 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Sat Feb 21 19:08:49 2004 Subject: [Y-devel] Some patches for Re: Compile Problems on BSD In-Reply-To: <855D5A04-6492-11D8-822E-000502673BF6@sbcglobal.net> References: <20040221140444.GC75554@dsb.tudelft.nl> <855D5A04-6492-11D8-822E-000502673BF6@sbcglobal.net> Message-ID: <20040221190834.GB19064@dsb.tudelft.nl> [`r' me one more time] On Sat, Feb 21, 2004 at 11:22:27AM -0600, Augie Fackler wrote: > The files are, according to the Open Group, part of the C99 spec. > FreeBSD 5 has support for most of them, but the chance of backports to > 4 looks pretty weak. Ah well. Maybe 2004 is too early for all platforms to have C99 support. [snip] > >I'd be interested to see if this breaks the linux compile or not. > Yeah, that was one thing I was wondering about too. > > You mind if I put your patches up on my site? I was thinking of trying > to maintain a list of patches needed for BSD usage of Y. Not at all, actually. I't be happier if the tree would compile right away, but then again, might be too early to want that. :-) Oh, when inlining answers (for which I thank you), can you please add and empty line around them? My mailreader (and my editor) don't highlight it so it gets hard to read real quick. :-) -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From jerome at gandalf.fraca7.homeunix.net Sat Feb 21 19:37:47 2004 From: jerome at gandalf.fraca7.homeunix.net (Jerome Laheurte) Date: Sat Feb 21 19:51:10 2004 Subject: [Y-devel] A few more questions about Y In-Reply-To: <1077388648.18050.12.camel@localhost.localdomain> References: <200402212101.54293.rshadow@linuxquestions.net> <1077388648.18050.12.camel@localhost.localdomain> Message-ID: On Sat, 21 Feb 2004, Ben Urban wrote: > I don't know how anyone else feels about this, but I'm a pretty big fan > of the way Apple does it's IAC (interapplication communication). Is > there some way we could implement some form of Apple Events / > AppleScript? (If you want it, I have an AbiWord document listing the > various script commands/operations I'd like to see; Let me know and i'll > attach it.) I would be willing to help with this. I'd like to see that, but I don't think sending a binary to a mailing list is a good idea :) Could you post an URL to it ? -- J?r?me Laheurte Real programmers don't bring brown-bag lunches. If the vending machine doesn't sell it, they don't eat it. Vending machines don't sell quiche. From brandon at tryplec.com Sat Feb 21 20:06:14 2004 From: brandon at tryplec.com (Brandon Black) Date: Sat Feb 21 20:06:19 2004 Subject: [Y-devel] Y over fbdev In-Reply-To: <200402201447.21994.nofx_3@softhome.net> References: <200402201447.21994.nofx_3@softhome.net> Message-ID: <4037BA36.6090100@tryplec.com> Y on SDL on fbdev works too, as another possibility. I never bothered with the fbdev Y driver, I just used the SDL driver from my text console without X running and let SDL use the framebuffer. Andrew Kaplan wrote: >On Friday 20 February 2004 06:23 am, Alexander Vlasov wrote: > > >>Greetings. >> >>Y works over SDL just fine, but when I try to run Y over fbdev, I get >>errors: >> >>Y[15246]: configLoad:90: Opening config file: /opt/Y2/etc/Y/default.conf >>Y[15246]: initialise:600: Using fb:/dev/fb0 tty:/dev/tty (0) >>Y[15246]: Error: initialise: Couldn't open /dev/tty: No such device or >>address >> >>If I try to set tty & fb by hand (LoadModule "driver/video/fbdev" >>device=/dev/fb0 tty=/dev/tty7 mode=800x600-100), I get following errors: >> >>Y[15820]: configLoad:90: Opening config file: /opt/Y2/etc/Y/default.conf >>Y[15820]: initialise:600: Using fb:/dev/fb0 tty:/dev/tty7 (7) >>Y[15820]: Error: initialise: Couldn't activate /dev/tty7: Operation not >>permitted >> >>What's wrong with my config? >> >> > >First of, hello list. > >Now I know there was a response, but I realized the only way to run it if you >get that message is to run as root. I set the permissions correctly, but >still think only root can access the tty's directly. > >-kaplanfx >nofx_3@softhome.net > > >_______________________________________________ >Y-devel mailing list >Y-devel@y-windows.org >http://www.y-windows.org/mailman/listinfo/y-devel > > From spiralman at softhome.net Sat Feb 21 20:10:16 2004 From: spiralman at softhome.net (Thomas) Date: Sat Feb 21 20:11:02 2004 Subject: [Y-devel] internal "Class methods" patch (less Canvas) Message-ID: <200402211510.16382.spiralman@softhome.net> hello, this is a patch i made at Mark's request so that modules and other server side code can access the methods a widget (or other object) exposes to the clients through the "Class" interface. I left out the object_check classes, as i believe they are simply debugging classes used for Mark's final project. I also left out the Canvas class because i was not sure how to implement one of the methods, which calls parametersAddOutputInteger(). I assume that these would be implemented by passing pointers to ints, and then the method would change their values, but i wanted to make sure before i spend a lot of time working on Canvas (it is probably as much work as all the other classes were combined). So if Mark or anybody else wants to chime in on how to implement this, please do. anyway, here is the initial patch Thomas Stephens spiralman@softhome.net --- orig/Y/widget/console.c +++ mod/Y/widget/console.c @@ -449,6 +449,24 @@ } void +consoleSetRendition (struct Console *self, int bold, int blink, int inverse, int underline, int foreground, int background, const char *charset) +{ + self -> bold = bold; + self -> blink = blink; + self -> inverse = inverse; + self -> underline = underline; + if (foreground >= 1 && foreground <= 8) + self -> foreground = foreground - 1; + else + self -> foreground = -1; + if (background >= 1 && background <= 8) + self -> background = background - 1; + else + self -> background = -1; + self -> charset = charset[0]; +} + +void consoleCSetRendition (struct Console *self, struct Parameters *params) { if (parametersGetInputCount (params) == 7) @@ -463,35 +481,49 @@ background = strtol (parametersGetInput (params, 5), NULL, 0); charset = parametersGetInput (params, 6); - self -> bold = bold; - self -> blink = blink; - self -> inverse = inverse; - self -> underline = underline; - if (foreground >= 1 && foreground <= 8) - self -> foreground = foreground - 1; - else - self -> foreground = -1; - if (background >= 1 && background <= 8) - self -> background = background - 1; - else - self -> background = -1; - self -> charset = charset[0]; + consoleSetRendition (self, bold, blink, inverse, underline, foreground, background, charset); } } void -consoleCSwapVideo (struct Console *self, struct Parameters *params) +consoleSwapVideo (struct Console *self) { Y_TRACE ("Swap Video ?"); } void -consoleCRing (struct Console *self, struct Parameters *params) +consoleCSwapVideo (struct Console *self, struct Parameters *params) +{ + consoleSwapVideo (self); +} + +void +consoleRing (struct Console *self) { Y_TRACE ("***BEEP***"); } void +consoleCRing (struct Console *self, struct Parameters *params) +{ + consoleRing (self); +} + +void +consoleUpdateCursorPos (struct Console *self, int col, int row) +{ +if (col != self -> cursorCol || row != self -> cursorRow) + { + consoleRepaintChars (self, self -> cursorCol, self -> cursorRow, + self -> cursorCol + 1, self -> cursorRow +1); + self -> cursorCol = col; + self -> cursorRow = row; + consoleRepaintChars (self, self -> cursorCol, self -> cursorRow, + self -> cursorCol + 1, self -> cursorRow +1); + } +} + +void consoleCUpdateCursorPos (struct Console *self, struct Parameters *params) { if (parametersGetInputCount (params) == 2) @@ -499,19 +531,34 @@ int col, row; col = strtol (parametersGetInput (params, 0), NULL, 0); row = strtol (parametersGetInput (params, 1), NULL, 0); - if (col != self -> cursorCol || row != self -> cursorRow) - { - consoleRepaintChars (self, self -> cursorCol, self -> cursorRow, - self -> cursorCol + 1, self -> cursorRow +1); - self -> cursorCol = col; - self -> cursorRow = row; - consoleRepaintChars (self, self -> cursorCol, self -> cursorRow, - self -> cursorCol + 1, self -> cursorRow +1); - } + consoleUpdateCursorPos (self, col, row); } } void +consoleScrollView (struct Console *self, int destRow, int srcRow, int numLines) +{ + if (destRow >= self -> rows) + return; + if (srcRow >= self -> rows) + return; + if (destRow + numLines > self -> rows) + numLines = self -> rows - destRow; + if (srcRow + numLines > self -> rows) + numLines = self -> rows - srcRow; + memmove (self -> contents + destRow * self -> cols, + self -> contents + srcRow * self -> cols, + numLines * self -> cols * sizeof (struct ConsoleChar)); + if (destRow < srcRow) + consoleClearRect (self, 0, MAX (srcRow, destRow + numLines), + self -> cols, srcRow + numLines); + else if (srcRow < destRow) + consoleClearRect (self, 0, srcRow, self -> cols, + MIN (numLines, destRow - srcRow)); + consoleRepaintChars (self, 0, destRow, self -> cols, destRow + numLines); +} + +void consoleCScrollView (struct Console *self, struct Parameters *params) { if (parametersGetInputCount (params) == 3) @@ -520,24 +567,7 @@ destRow = strtol (parametersGetInput (params, 0), NULL, 0); srcRow = strtol (parametersGetInput (params, 1), NULL, 0); numLines = strtol (parametersGetInput (params, 2), NULL, 0); - if (destRow >= self -> rows) - return; - if (srcRow >= self -> rows) - return; - if (destRow + numLines > self -> rows) - numLines = self -> rows - destRow; - if (srcRow + numLines > self -> rows) - numLines = self -> rows - srcRow; - memmove (self -> contents + destRow * self -> cols, - self -> contents + srcRow * self -> cols, - numLines * self -> cols * sizeof (struct ConsoleChar)); - if (destRow < srcRow) - consoleClearRect (self, 0, MAX (srcRow, destRow + numLines), - self -> cols, srcRow + numLines); - else if (srcRow < destRow) - consoleClearRect (self, 0, srcRow, self -> cols, - MIN (numLines, destRow - srcRow)); - consoleRepaintChars (self, 0, destRow, self -> cols, destRow + numLines); + consoleScrollView (self, destRow, srcRow, numLines); } } --- orig/Y/widget/console.h +++ mod/Y/widget/console.h @@ -11,6 +11,15 @@ struct Widget * consoleToWidget (struct Console *); struct Object * consoleToObject (struct Console *); +void consoleClearRect (struct Console *, int, int, int, int); +void consoleDrawText (struct Console *, int, int, wchar_t *, int); +void consoleRing (struct Console *); +void consoleScrollView (struct Console *, int destRow, int srcRow, int numLines); +void consoleSetRendition (struct Console *, int, int, int, int, int, int, const char *); +void consoleSwapVideo (struct Console *); +void consoleUpdateCursorPos (struct Console *, int, int); + + #endif /* Y_WIDGET_CONSOLE_H */ /* arch-tag: 5b0298fc-904b-4647-a238-89127956cbd0 --- orig/Y/widget/gridlayout.c +++ mod/Y/widget/gridlayout.c @@ -270,37 +270,50 @@ listiteratorDestroy (iter); } +void +gridlayoutAddWidget (struct GridLayout *self, int objId, int col, int row, int colspan, int rowspan) +{ + struct GridItem *item; + + item = ymalloc (sizeof (struct GridItem)); + item -> widget = (struct Widget *) objectFind (objId); + item -> col = col; + item -> row = row; + item -> colspan = colspan; + item -> rowspan = rowspan; + + listAppend (self -> items, item); + + if (item -> col + item -> colspan > self -> cols || + item -> row + item -> rowspan > self -> rows) + { + gridlayoutResizeGrid (self, self -> cols, self -> rows); + } + else + { + gridlayoutFitChildren (self); + widgetRepaint (gridlayoutToWidget (self), + widgetGetRectangle (item -> widget)); + } + widgetReconfigure (gridlayoutToWidget (self)); + widgetSetContainer (item -> widget, gridlayoutToWidget (self)); +} + static void gridlayoutCAddWidget (struct Object *self_o, struct Parameters *params) { struct GridLayout *self = (struct GridLayout *)self_o; if (self != NULL || parametersGetInputCount (params) > 4) { - struct GridItem *item; + int objId, col, row, colspan, rowspan; - item = ymalloc (sizeof (struct GridItem)); - item -> widget = (struct Widget *) - objectFind (strtol (parametersGetInput (params, 0), NULL, 0)); - item -> col = strtol (parametersGetInput (params, 1), NULL, 0); - item -> row = strtol (parametersGetInput (params, 2), NULL, 0); - item -> colspan = strtol (parametersGetInput (params, 3), NULL, 0); - item -> rowspan = strtol (parametersGetInput (params, 4), NULL, 0); + objId = strtol (parametersGetInput (params, 0), NULL, 0); + col = strtol (parametersGetInput (params, 1), NULL, 0); + row = strtol (parametersGetInput (params, 2), NULL, 0); + colspan = strtol (parametersGetInput (params, 3), NULL, 0); + rowspan = strtol (parametersGetInput (params, 4), NULL, 0); - listAppend (self -> items, item); - - if (item -> col + item -> colspan > self -> cols || - item -> row + item -> rowspan > self -> rows) - { - gridlayoutResizeGrid (self, self -> cols, self -> rows); - } - else - { - gridlayoutFitChildren (self); - widgetRepaint (gridlayoutToWidget (self), - widgetGetRectangle (item -> widget)); - } - widgetReconfigure (gridlayoutToWidget (self)); - widgetSetContainer (item -> widget, gridlayoutToWidget (self)); + gridlayoutAddWidget (self, objId, col, row, colspan, rowspan); } } --- orig/Y/widget/gridlayout.h +++ mod/Y/widget/gridlayout.h @@ -11,6 +11,8 @@ struct Widget * gridlayoutToWidget (struct GridLayout *); struct Object * gridlayoutToObject (struct GridLayout *); +void gridlayoutAddWidget (struct GridLayout *, int, int, int, int, int); + #endif /* Y_WIDGET_GRIDLAYOUT_H */ /* arch-tag: 3fbc3e6e-b55d-4ed3-a7bc-12dcc54ea929 --- orig/Y/widget/menu.c +++ mod/Y/widget/menu.c @@ -364,6 +364,28 @@ self -> current = NULL; } +void menuAddItem (struct Menu *self, int id, const char *text, int submenuId) +{ + struct Object *submenu; + struct MenuItem *item; + + if (indexFind (self -> items, &id) != NULL) + return; + + submenu = objectFind (submenuId); + if (submenu != NULL && !classInherits (objectClass (submenu), "Menu")) + return; + + item = ymalloc (sizeof (struct MenuItem)); + item -> id = id; + item -> text = ystrdup (text); + item -> height = 0; + item -> submenu = (struct Menu *) submenu; /* ok, because we checked */ + + indexAdd (self -> items, item); + widgetReconfigure (menuToWidget (self)); +} + void menuCAddItem (struct Menu *self, struct Parameters *params) { @@ -371,29 +393,14 @@ */ if (parametersGetInputCount (params) == 3) { - struct MenuItem *item; int id, submenuId; const char *text; - struct Object *submenu; + id = strtol (parametersGetInput (params, 0), NULL, 0); text = parametersGetInput (params, 1); submenuId = strtol (parametersGetInput (params, 2), NULL, 0); - if (indexFind (self -> items, &id) != NULL) - return; - - submenu = objectFind (submenuId); - if (submenu != NULL && !classInherits (objectClass (submenu), "Menu")) - return; - - item = ymalloc (sizeof (struct MenuItem)); - item -> id = id; - item -> text = ystrdup (text); - item -> height = 0; - item -> submenu = (struct Menu *) submenu; /* ok, because we checked */ - - indexAdd (self -> items, item); - widgetReconfigure (menuToWidget (self)); + menuAddItem (self, id, text, submenuId); } } --- orig/Y/widget/menu.h +++ mod/Y/widget/menu.h @@ -11,6 +11,8 @@ struct Widget * menuToWidget (struct Menu *); struct Object * menuToObject (struct Menu *); +void menuAddItem (struct Menu *, int, const char *, int); + #endif /* Y_WIDGET_MENU_H */ /* arch-tag: 5089f3eb-1e75-40c3-b21d-096b2482716c --- orig/Y/widget/window.c +++ mod/Y/widget/window.c @@ -444,44 +444,60 @@ } void +windowSetChild (struct Window *self, int child_id) +{ + struct Widget *child; + + child = (struct Widget *)objectFind (child_id); + if (child == NULL) + return; + self -> child = child; + self -> widget.reqWidth = -1; + self -> widget.reqHeight = -1; + widgetSetContainer (child, windowToWidget (self)); + widgetRepaint (child, NULL); +} + +void windowCSetChild (struct Window *self, struct Parameters *p) { if (self != NULL) { int child_id; - struct Widget *child; if (parametersGetInputCount (p) < 1) return; child_id = strtol (parametersGetInput (p, 0), NULL, 0); - child = (struct Widget *)objectFind (child_id); - if (child == NULL) - return; - self -> child = child; - self -> widget.reqWidth = -1; - self -> widget.reqHeight = -1; - widgetSetContainer (child, windowToWidget (self)); - widgetRepaint (child, NULL); + + windowSetChild (self, child_id); } } void +windowSetFocussed (struct Window *self, int focus_id) +{ + struct Widget *focus; + + focus = (struct Widget *)objectFind (focus_id); + if (focus == NULL) + return; + windowSetFocussedWidget (self, focus); +} + +void windowCSetFocussed (struct Window *self, struct Parameters *p) { if (self != NULL) { int focus_id; - struct Widget *focus; if (parametersGetInputCount (p) < 1) return; focus_id = strtol (parametersGetInput (p, 0), NULL, 0); - focus = (struct Widget *)objectFind (focus_id); - if (focus == NULL) - return; - windowSetFocussedWidget (self, focus); + windowSetFocussed (self, focus_id); } } + void -windowCShow (struct Window *self, struct Parameters *p) +windowShow (struct Window *self) { if (self != NULL) { @@ -494,6 +510,12 @@ } void +windowCShow (struct Window *self, struct Parameters *p) +{ + windowShow (self); +} + +void windowRender (struct Widget *self_w, struct Renderer *renderer) { struct Window *self = castBack (self_w); --- orig/Y/widget/window.h +++ mod/Y/widget/window.h @@ -44,6 +44,10 @@ void windowSaveGeometry (struct Window *); void windowRestoreGeometry (struct Window *); +void windowSetChild (struct Window *, int); +void windowSetFocussed (struct Window *, int); +void windowShow (struct Window *); + #endif /* Y_WIDGET_WINDOW_H */ /* arch-tag: f4f25bca-aa44-4f8e-a586-2c0f0372f91d From ychris at amshey.net Sat Feb 21 20:43:45 2004 From: ychris at amshey.net (Chris) Date: Sat Feb 21 20:40:21 2004 Subject: [Y-devel] License In-Reply-To: <1077390221.14686.20.camel@localhost.localdomain> References: <40375057.3050702@widespace.ee> <200402212355.i1LNtLGO057419@machdep.com> <1077390221.14686.20.camel@localhost.localdomain> Message-ID: <20040221204345.GC21431@amshey.net> On Sat, Feb 21, 2004 at 02:03:41PM -0500, Ben Urban wrote: > The linux kernel is GPL. gcc is GPL. Has that stopped companies from > using them? If a company doesn't want their changes to be public, they > don't have to release their changes at all. GCC is essentially a standalone program, with explicit language in the documentation to explain that the GPL does -not- apply to programs compiled with GCC. The linux kernel situation -has- prevented some companies from creating drivers, and the choice to release closed drivers to an open kernel is a cause of some debate about the interpretations of the GPL in such a case. > Don't make the same mistake that X made. X is a widely adopted and successful platform ; it's only 'mistake' is in not having a major overhaul in far too long. The fact that I can ssh from my Linux machine to a Solaris machine and launch an X application in another country and operate it at my own computer says something about the interoperability of the specification. I can even install several X-server layers onto Windows and run Unix applications on the Microsoft Desktop. I don't see any mistake other than becoming outdated. > I for one will only submit code under the GPL (or possibly LGPL). Whatever; to code or not to code is your choice; however, the libraries -must- be at -least- LGPL-level-unencumbered for there to be corporate adoption; under the GPL, all programs -using- a library must also be GPL'ed. (Technically, GPL-or-equivalent, I know.) This is why libreadline and libQt are released as GPL - in the one case, to try to 'force' the world to abandon commercial software and use only free software, and in the other case to require that closed applications purchase a commercial license. Anyway, the current licensing scheme is fine by me, as is any less encumbered licensing scheme (all LGPL, all BSD, whatever.) --Chris From sbeck at gossamer-threads.com Sat Feb 21 20:48:23 2004 From: sbeck at gossamer-threads.com (Scott Beck) Date: Sat Feb 21 20:48:27 2004 Subject: [Y-devel] event propagation Message-ID: <1077396503.1874.5.camel@sbeck.office.gossamer-threads.com> Hi, This patch adds event propagation to the client side widget code. It works similar to Gtk in that the handler returning true means the event was handled in not to propagate it upwards. All events start at the widget of focus and bubble up. This is needed for things like application key bindings and can be used for a number of other things. I am not sure what I have here is the best way to handle it. Suggestions welcome. Cheers, Scott -- Scott Beck Gossamer Threads -------------- next part -------------- A non-text attachment was scrubbed... Name: event-propagation.patch Type: text/x-patch Size: 6069 bytes Desc: not available Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040221/cd5a9c21/event-propagation.bin From spiralman at softhome.net Sat Feb 21 20:52:35 2004 From: spiralman at softhome.net (Thomas) Date: Sat Feb 21 20:53:12 2004 Subject: [Y-devel] canvas "Class method" fix (plus previous patch) Message-ID: <200402211552.35130.spiralman@softhome.net> ok, i guess i was a tad hasty in submitting that last patch before this one. I have also included the previous patches, as i believe my mail client might be mangling patches i submit through copy-paste. This patch applies against Y--devel--0.2--patch-11 Thomas Stephens spiralman@softhome.net -------------- next part -------------- A non-text attachment was scrubbed... Name: Y--devel--0.2--classfix-patch.diff Type: text/x-diff Size: 19821 bytes Desc: not available Url : http://www.y-windows.org/pipermail/y-devel/attachments/20040221/bad8d928/Y--devel--0.2--classfix-patch-0001.bin From eric at ericlathrop.com Sat Feb 21 20:55:20 2004 From: eric at ericlathrop.com (Eric Lathrop) Date: Sat Feb 21 20:54:39 2004 Subject: [Y-devel] Compile Error Message-ID: <20040221155520.68c49213@lfs> I get the following error trying to compile 0.2: /bin/sh ../libtool --mode=link g++ -pthread -g -O2 -o libYc++.la -rpath /usr/local/lib -Wl,-Bsymbolic -Wl,--version-script=./Versions -Wl,--no-undefined Y/c++/y.lo Y/c++/object.lo Y/c++/widget.lo Y/c++/window.lo Y/c++/canvas.lo Y/c++/label.lo Y/c++/button.lo Y/c++/checkbox.lo Y/c++/console.lo Y/c++/gridlayout.lo Y/c++/menu.lo -L/usr/local/lib -lsigc -lpthread ../libY/libY.la g++ -shared -nostdlib /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../crti.o /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/crtbeginS.o Y/c++/.libs/y.o Y/c++/.libs/object.o Y/c++/.libs/widget.o Y/c++/.libs/window.o Y/c++/.libs/canvas.o Y/c++/.libs/label.o Y/c++/.libs/button.o Y/c++/.libs/checkbox.o Y/c++/.libs/console.o Y/c++/.libs/gridlayout.o Y/c++/.libs/menu.o -Wl,--rpath -Wl,/home/xyu/Y-0.2/libY/.libs -L/usr/src/packages/gcc-build/gcc -L/usr/src/packages/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src/.libs -L/usr/src/packages/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src -pthread -L/usr/local/lib /usr/local/lib/libsigc.so -lpthread ../libY/.libs/libY.so -L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2 -L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../.. /usr/lib/libstdc++.so -lm -lc -lgcc_s /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/crtendS.o /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../crtn.o -Wl,-Bsymbolic -Wl,--version-script=./Versions -Wl,--no-undefined -Wl,-soname -Wl,libYc++.so.0 -o .libs/libYc++.so.0.0.0 /usr/bin/ld:./Versions:5: parse error in VERSION script collect2: ld returned 1 exit status make[1]: *** [libYc++.la] Error 1 make[1]: Leaving directory `/home/xyu/Y-0.2/libYc++' make: *** [all-recursive] Error 1 I have no idea what a VERSION script is. Any idea why it's broken? -- --Eric Lathrop EricLathrop.com From p_robin at freemail.hu Sat Feb 21 21:04:11 2004 From: p_robin at freemail.hu (Palotai Robin) Date: Sat Feb 21 21:05:53 2004 Subject: [Y-devel] Compile Error In-Reply-To: <20040221155520.68c49213@lfs> References: <20040221155520.68c49213@lfs> Message-ID: <20040222010423.2a34ddd7.p_robin@freemail.hu> Goto /home/xyu/Y-0.2/libYc++, there is a Versions file. I altered it, so it looked like this: LIBYCXX_0.2_0 { global: _init; _fini; Y::*; *; }; This may be rude, but works :) On Sat, 21 Feb 2004 15:55:20 -0500 Eric Lathrop wrote: > > I get the following error trying to compile 0.2: > > /bin/sh ../libtool --mode=link g++ -pthread -g -O2 -o libYc++.la > -rpath /usr/local/lib -Wl,-Bsymbolic -Wl,--version-script=./Versions > -Wl,--no-undefined Y/c++/y.lo Y/c++/object.lo Y/c++/widget.lo > Y/c++/window.lo Y/c++/canvas.lo Y/c++/label.lo Y/c++/button.lo > Y/c++/checkbox.lo Y/c++/console.lo Y/c++/gridlayout.lo Y/c++/menu.lo > -L/usr/local/lib -lsigc -lpthread ../libY/libY.la g++ -shared > -nostdlib /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../crti.o > /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/crtbeginS.o Y/c++/.libs/y.o > Y/c++/.libs/object.o Y/c++/.libs/widget.o Y/c++/.libs/window.o > Y/c++/.libs/canvas.o Y/c++/.libs/label.o Y/c++/.libs/button.o > Y/c++/.libs/checkbox.o Y/c++/.libs/console.o Y/c++/.libs/gridlayout.o > Y/c++/.libs/menu.o -Wl,--rpath -Wl,/home/xyu/Y-0.2/libY/.libs > -L/usr/src/packages/gcc-build/gcc > -L/usr/src/packages/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src/.libs > -L/usr/src/packages/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src > -pthread -L/usr/local/lib /usr/local/lib/libsigc.so -lpthread > ../libY/.libs/libY.so -L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2 > -L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../.. > /usr/lib/libstdc++.so -lm -lc -lgcc_s > /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/crtendS.o > /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../crtn.o -Wl,-Bsymbolic > -Wl,--version-script=./Versions -Wl,--no-undefined -Wl,-soname > -Wl,libYc++.so.0 -o .libs/libYc++.so.0.0.0 > /usr/bin/ld:./Versions:5: parse error in VERSION script > collect2: ld returned 1 exit status > make[1]: *** [libYc++.la] Error 1 > make[1]: Leaving directory `/home/xyu/Y-0.2/libYc++' > make: *** [all-recursive] Error 1 > > I have no idea what a VERSION script is. Any idea why it's broken? > > > -- > > --Eric Lathrop > EricLathrop.com > > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel > > > -- -- Ne szidd. Irj jobbat. -- From ychris at amshey.net Sat Feb 21 21:15:32 2004 From: ychris at amshey.net (Chris) Date: Sat Feb 21 21:12:22 2004 Subject: [Y-devel] Compile Error In-Reply-To: <20040221155520.68c49213@lfs> References: <20040221155520.68c49213@lfs> Message-ID: <20040221211532.GD21431@amshey.net> On Sat, Feb 21, 2004 at 03:55:20PM -0500, Eric Lathrop wrote: > I get the following error trying to compile 0.2: Which 0.2? (Where'd it come from?) and which platform and how did you configure the build system? My first suspicion is that you either didn't run autogen.sh or don't have a compatible set of automake/autoconf/libtool installed, you might look into that. --Chris From durin at sbcglobal.net Sat Feb 21 21:24:33 2004 From: durin at sbcglobal.net (Augie Fackler) Date: Sat Feb 21 21:25:24 2004 Subject: [Y-devel] Some patches for Re: Compile Problems on BSD Message-ID: <70CC5356-64B4-11D8-822E-000502673BF6@sbcglobal.net> On Saturday, February 21, 2004, at 01:07 PM, JP Dinger wrote: >> You mind if I put your patches up on my site? I was thinking of trying >> to maintain a list of patches needed for BSD usage of Y. > > Not at all, actually. I't be happier if the tree would compile right > away, > but then again, might be too early to want that. :-) I hear ya , but we need to test the patches first. Once we get something working, we can submit it. I just updated my i386 laptop to 5.2.1-rc2, so I will have most of the C99 stuff. Are you still on 4.x? Your patches will be available shortly at http://tuxserver.ath.cx/~durin/Y/ I'm going to start in on libiterm, to see if I can get yiterm working soon. > Oh, when inlining answers (for which I thank you), can you please add > and > empty line around them? My mailreader (and my editor) don't highlight > it > so it gets hard to read real quick. :-) Sure thing 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 ahmedcharles at hotmail.com Sat Feb 21 21:34:37 2004 From: ahmedcharles at hotmail.com (Ahmed Charles) Date: Sat Feb 21 21:35:30 2004 Subject: [Y-devel] Y over fbdev In-Reply-To: <4037BA36.6090100@tryplec.com> References: <200402201447.21994.nofx_3@softhome.net> <4037BA36.6090100@tryplec.com> Message-ID: <4037CEED.7050903@hotmail.com> How do you get that working? I shutdown X and then run startY and nothing happens and the log says: Y[15246]: configLoad:90: Opening config file: /usr/local/etc/Y/default.conf And nothing else. Is there a config setting or cl-arg that I'm missing? Thanks allot. Ahmed Charles Brandon Black wrote: > > Y on SDL on fbdev works too, as another possibility. I never bothered > with the fbdev Y driver, I just used the SDL driver from my text > console without X running and let SDL use the framebuffer. > > Andrew Kaplan wrote: > >> On Friday 20 February 2004 06:23 am, Alexander Vlasov wrote: >> >> >>> Greetings. >>> >>> Y works over SDL just fine, but when I try to run Y over fbdev, I get >>> errors: >>> >>> Y[15246]: configLoad:90: Opening config file: >>> /opt/Y2/etc/Y/default.conf >>> Y[15246]: initialise:600: Using fb:/dev/fb0 tty:/dev/tty (0) >>> Y[15246]: Error: initialise: Couldn't open /dev/tty: No such device or >>> address >>> >>> If I try to set tty & fb by hand (LoadModule "driver/video/fbdev" >>> device=/dev/fb0 tty=/dev/tty7 mode=800x600-100), I get following >>> errors: >>> >>> Y[15820]: configLoad:90: Opening config file: >>> /opt/Y2/etc/Y/default.conf >>> Y[15820]: initialise:600: Using fb:/dev/fb0 tty:/dev/tty7 (7) >>> Y[15820]: Error: initialise: Couldn't activate /dev/tty7: Operation not >>> permitted >>> >>> What's wrong with my config? >>> >> >> >> First of, hello list. >> >> Now I know there was a response, but I realized the only way to run >> it if you get that message is to run as root. I set the permissions >> correctly, but still think only root can access the tty's directly. >> >> -kaplanfx >> nofx_3@softhome.net >> >> >> _______________________________________________ >> Y-devel mailing list >> Y-devel@y-windows.org >> http://www.y-windows.org/mailman/listinfo/y-devel >> >> > > > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel > From mark at y-windows.org Sat Feb 21 21:37:54 2004 From: mark at y-windows.org (Mark Thomas) Date: Sat Feb 21 21:37:56 2004 Subject: [Y-devel] C API? In-Reply-To: <40377DE7.1030307@tryplec.com> References: <40377DE7.1030307@tryplec.com> Message-ID: On Sat, 21 Feb 2004, Brandon Black wrote: > Is there a C API yet? I saw the C++ one (libYc++), and I see a "Yc", > but it doesn't appear to have all the widget interfaces and things I > would expect, just a couple messaging calls. Am I missing something here? There isn't a libYc yet. There is a libY which was supposed to be the messaging system common to many language implementations, but I decided that is was probably easier just to include the messaging system in libYc++. If you want to start writing a C interface, feel free, though I warn you the client API is likely to change quite a bit in the first few stages of development. Regards, Mark. -- || Mark Thomas || efaref.net || || Be consistent - but don't do it all the time. From mark at y-windows.org Sat Feb 21 21:41:15 2004 From: mark at y-windows.org (Mark Thomas) Date: Sat Feb 21 21:41:16 2004 Subject: [Y-devel] The clock... In-Reply-To: <1077381497.2975.14.camel@localhost> References: <1077381497.2975.14.camel@localhost> Message-ID: On Sat, 21 Feb 2004, Richard Hills wrote: > ... has stopped ticking. I've done a little poking around, and although > in libYc++/Y/c++/y.cc the call to "timer ()" is being executed this does > not result in a call to the clock::timer function. The connect(sock code > in clock::clock is being called. > I am not a C++ programmer, so am not sure where to go from here. If > anyone has any ideas...? Yes, this is a minor bug in the way libsigc++ generates symbols. asuffield found and fixed it so he is the person to ask if you want details (I think it boils down to removing the -Bsymbolic option to GCC when compiling libYc++). It is fixed (well, a workaround is implemented) in the most recent version in my Arch archive. Regards, Mark. -- || Mark Thomas || efaref.net || || Don't play stupid with me, I'm better at it! From smartly at gala.net Sat Feb 21 21:47:20 2004 From: smartly at gala.net (Alexey Boyko) Date: Sat Feb 21 22:02:46 2004 Subject: [Y-devel] A few more questions about Y In-Reply-To: References: <200402212101.54293.rshadow@linuxquestions.net> Message-ID: <200402212347.20639.smartly@gala.net> > > * Internal Unicode support. One of the GREAT things that I liked when > > getting involved with Qt was how easy it is to support different > > languages. > > It's not quite in there now, but yes, Y will be fully unicode. There's no > reason not to be. Let write, while codebase not too large. I think, Ylib functions must accept wchar_t instead of char, by default. Then, converted to UTF-8 and passed to server. Server must decode UTF-8 back to UCS, and use inside widgets. I can make patches for this. Are they welcome? From hiro at dns-az.com Sat Feb 21 23:37:17 2004 From: hiro at dns-az.com (Shaun Hull) Date: Sat Feb 21 23:37:54 2004 Subject: [Y-devel] startY issue Message-ID: <1077406638.1247.8.camel@chromium> First off, Hi all =) As it will become evident in the remainder of my post, I'm very very new to development. I have perl experience, but little C. I finally got everything installed (thanks to many for their great posts) and when I try to startY the screen flickers, then I'm back to looking at the console (near as I can surmise, Y isnt detaching either), and I get one line in /var/log/messages configLoad:99: Opening config file: /usr/local/etc/Y/default.conf I ran with strace (first use of this app) and it looks like the child proc of startY (which is Y i think) is getting a SIGHUP but that makes no sense =) I appreciate all of your assistance. Thanks -S -- From richard at playford.net Sat Feb 21 23:46:17 2004 From: richard at playford.net (Richard Hills) Date: Sat Feb 21 23:46:51 2004 Subject: [Y-devel] C API? In-Reply-To: References: <40377DE7.1030307@tryplec.com> Message-ID: <1077407176.2975.25.camel@localhost> On Sat, 2004-02-21 at 21:37, Mark Thomas wrote: > On Sat, 21 Feb 2004, Brandon Black wrote: > > > Is there a C API yet? I saw the C++ one (libYc++), and I see a "Yc", > > but it doesn't appear to have all the widget interfaces and things I > > would expect, just a couple messaging calls. Am I missing something here? > > There isn't a libYc yet. There is a libY which was supposed to be the > messaging system common to many language implementations, but I decided > that is was probably easier just to include the messaging system in > libYc++. > > If you want to start writing a C interface, feel free, though I warn you > the client API is likely to change quite a bit in the first few stages of > development. This is something I'd be happy to do. I was wondering, is it possible for a C interface to use the underlying C++ interface, in order to reduce code duplication? As far as I understand it, the C interface for GTK is the base for several other language wrappers, so is it possible to do the same thing in reverse? Thanks, Richard From ychris at amshey.net Sun Feb 22 00:36:31 2004 From: ychris at amshey.net (Chris Amshey) Date: Sun Feb 22 00:33:08 2004 Subject: [Y-devel] startY issue In-Reply-To: <1077406638.1247.8.camel@chromium> References: <1077406638.1247.8.camel@chromium> Message-ID: <20040222003631.GA22673@amshey.net> On Sat, Feb 21, 2004 at 04:37:17PM -0700, Shaun Hull wrote: > I ran with strace (first use of this app) and it looks like the child > proc of startY (which is Y i think) is getting a SIGHUP but that makes > no sense =) That might be what abort() uses when initialization fails. If you're trying to run on fbdev, you'll need to change /etc/Y/default.conf for the video driver; if you're using sdl, you'll want to be already running X. If this isn't your problem, you'll want to check /var/log/messages or wherever your y.warn level messages go. --Chris > I appreciate all of your assistance. Thanks > > -S > -- > > > > > _______________________________________________ > Y-devel mailing list > Y-devel@y-windows.org > http://www.y-windows.org/mailman/listinfo/y-devel From jpd at dsb.tudelft.nl Sun Feb 22 00:34:46 2004 From: jpd at dsb.tudelft.nl (JP Dinger) Date: Sun Feb 22 00:34:56 2004 Subject: [Y-devel] Some patches for Re: Compile Problems on BSD In-Reply-To: <578A3874-64B4-11D8-822E-000502673BF6@sbcglobal.net> References: <20040221190721.GA19064@dsb.tudelft.nl> <578A3874-64B4-11D8-822E-000502673BF6@sbcglobal.net> Message-ID: <20040222003446.GA19597@dsb.tudelft.nl> On Sat, Feb 21, 2004 at 03:24:33PM -0600, Augie Fackler wrote: > On Saturday, February 21, 2004, at 01:07 PM, JP Dinger wrote: [snip: FreeBSD patches] > I hear ya , but we need to test the patches first. Once we get > something working, we can submit it. > I just updated my i386 laptop to 5.2.1-rc2, so I will have most of the > C99 stuff. Are you still on 4.x? Yep, 4.9R-p2 currently. > Your patches will be available shortly at > http://tuxserver.ath.cx/~durin/Y/ I'll check. :-) > I'm going to start in on libiterm, to see if I can get yiterm working > soon. I've just dug up an old patch that I wrote in the night Y-0.1 got /.ed. (Can you tell?) I guess probably it's still relevant. But altough it compiled I never got it yiterm to properly work. You probably want to add the proper FreeBSD support or use a posix or SUS compatible construct. Or both, and let the auto*-tools sort out the difference. *** --- iterm-0.5-mbt/lib/src/unix/tty/ttyio.c.orig Sun Sep 28 18:05:58 2003 +++ iterm-0.5-mbt/lib/src/unix/tty/ttyio.c Sun Sep 28 19:56:33 2003 @@ -21,13 +21,19 @@ #include #undef __USE_XOPEN #include +#ifdef USE_STREAMS #include +#else +#include +#endif #include #include #include #include +#ifdef TEHLINEX #include +#endif #include #if defined(HAVE_LIBUTEMPTER) @@ -50,6 +56,7 @@ /* flag if this file descriptor is closed or not */ }; +#ifdef TEHLINEX #if defined(HAVE_LIBUTEMPTER) #define write_utmp(tty_name,fd) addToUtmp(tty_name,NULL,fd); #define delete_utmp(tty_name) removeFromUtmp(); @@ -138,7 +145,15 @@ endutxent(); } #endif +#else +/* just fscking ignore utmp alltogether. I don't feel like doing anything + fancy like adding freebsd login(3) and logout(3) support. + */ +#define write_utmp(dummy) ; +#define delete_utmp(dummy) ; +#endif +#ifdef USE_STREAMS /* this looks like it's stolen from UNP */ static int open_master(char *slave_name) { char *ptys; @@ -206,6 +221,37 @@ return fd; } +#else /* let's copy something different from UNP instead, then */ +/* thanks, stevens */ +static int open_master(char *slave_name) { + int i, master_fd; + char *ptr; + struct stat statbuff; + static char ptychar[] = "pqrs"; /* X */ + static char hexdigit[] = "0123456789abcdef"; /* Y */ + for(ptr=ptychar; *ptr != 0; ++ptr) { + strcpy(slave_name, "/dev/ptyXY"); + slave_name[8] = *ptr; /* X */ + slave_name[9] = '0'; /* Y */ + if(stat(slave_name,&statbuff)<0) break; + for(i=0;i<16;++i) { + slave_name[9] = hexdigit[i]; + if((master_fd=open(slave_name, O_RDWR))>=0) + return(master_fd); + } + } + return -1; +} +int open_slave(int master_fd,char *slave_name) { + int slave_fd; + slave_name[5] = 't'; + if((slave_fd=open(slave_name,O_RDWR))<0) { + close(master_fd); + return -1; + } + return slave_fd; +} +#endif static int get_slave_fd(int master_fd, char *slave_name) { int fd; *** The UNP comments are mostly interesting because what is in the original and what I added sit right next to each other in the book as well. [snip: hilite && Stuff] > > Sure thing Thanks. -- j p d (at) d s b (dot) t u d e l f t (dot) n l . From fprog26 at hotmail.com Sun Feb 22 00:41:54 2004 From: fprog26 at hotmail.com (Fred P.) Date: Sun Feb 22 00:42:28 2004 Subject: [Y-devel] XML Bundle widget Message-ID: >Hi folks >In Mark's thesis he mentions that one way of improving the start-up time >would be the possibility of throwing an XML document at the server which >then instantiates all the widgets described in the file in a single >request. I was thinking that there are more reasons to like the idea of >widgets being able to accept and generate XML descriptions. For example it >would make it easier to build resource editors. The UI editor could throw >some XML at the server which instantiates the user interface, the editor >allows the developer to edit the UI and, when done, asks the server to send >back the XML for the current state. The XML is then ready to use by the >aplication being built. Another reason is internationalism, you can edit >the XML UI description and translate the text without touching the >executable. >I was thinking that the way to go about building this would be to build a >widget ("XML Bundle" seems like a good name) which implements a method with >a string parameter which is interpreted as XML. The widget parses the XML >(using a simple lightweight parser like expat) and instantiates the >widgets. The XML file would allow the developer to name widgets - the names >would then be associated with the id of the instantiated widget and used as >properties on the XML Bundle so that client applications could then look up >the identifiers for individual widgets. That would be cool. In fact, it would be nice to have a XUL interface to Y, [ XML User Interface Language (XUL) ] porting application like Mozilla would be easier also. http://www.mozilla.org/projects/xul/ It would be nice to have a compatible interface, maybe extend it as needed. XUL support Widget Themes also... The XML code is quite straight-forward: curpos="20" maxpos="100" increment="1" pageincrement="10"/>