5 ms·
Why Apple didn't use X for the window system
- orib 18y ago1) Extend font server and services to vend outlines and antialiased masks, support more font types, handle font subsetting. It does that. See Cairo/XRender. or XFT. or any of the other client-side font stuff (available since 2000) 2) Extend drawing primitives to include PS-like path operations. It does that. See Cairo/XRender. Cairo was explicitly designed around a postscript-style drawing model. 3) Add dithering and phase controls. It does that. See Cairo/XRender. 4) Add ColorSync support for drawing and imaging operations, display calibration Yeah, color management sucks. On all systems. There's work to make it better on X, with XRandR 1.2 CRTC properties, but the linear lookup tables that hardware exposes can only do a rough approximation. The "right" way of doing it that would provide good results is slow, complicated, and difficult to get right. 5) Add broad alpha channel support and Porter-Duff compositing, both for drawing in a window and for interactions between windows. It does that. See composite/cairo/XRender. 6) Add support for general affine transforms of windows It does better than that - this is under application control, and can do weird and wonderful stuff like cutting holes in windows, rendering them in 3d, recoloring them, etc 7) Add support for mesh-warps of windows See above -- arbitrary manipulation to window images is possible because it's under application control. 8) Make sure that OpenGL and special video playback hardware support is integrated, and behaves well with all above changes. Yeah. drivers suck under X. the situation is rapidly improving though, especially under Intel and ATI. 9) We find that we typically stream 200 Mb/sec of commands and textures for interactive OpenGL use, so transport efficiency could be an issue. No, it really isn't. Unix domain sockets are fast. really fast. as in, beating shared memory sometimes fast. And if you really need shared memory (this can be a win in large, one-time blits, although usually you're better off not using it), it's also there through the XSHM extension which is about 15 years old. So why did they do their own window system from scratch? Well, because they didn't. They merely extended NeXT's disply postscript, which they already owned and had code for.
- orib 18y agoOh. Oops, noticed the date. How things change in just a few years. =) Still, it shows how fast X is progressing, now that we've ditched XFree86. Since the split, X has really moved into the 90s, gaining <sarcasm>esoteric</sarcasm> features like monitor hotplugging, being able to configure more than one input device at once (like a touchpad and external mouse) and other silly things that nobody would ever want. It's also jumped ahead of other window systems by leaps and bounds in some areas -- for example, multitouch support has been merged in, and X will be the first desktop window system to support multiple pointers, input redirection is on it's way, a new OpenGL framework (Gallium3D) is coming, new 2d acceleration (Exa/GEM/TTM/...) are in various states of merged-inness, etc. And they've done all of this while deleting between 10,000 and 50,000 lines of code per release. And preserving backwards compatibility. I'd say the future looks pretty bright for X. [edit: give a better overview of what I mean by X progressing]
- eggnet 18y agoMore than a few years, the post was in late 2003 but the OS X preview came out in late 2000 where they clearly decided to not use X already. The decision was likely made substantially before that date as well, not to mention NextStep.
- riahi 18y ago|by mpaque (655244) on Tuesday August 19 2003 Notice that this is an old comment. Did all those features you describe exist back in 2003 on X?
- anewaccountname 18y agoIs this a gimmick post to prove that block quotes lower the quality of discussion?
- mechanical_fish 18y agoI cannot possibly upmod this enough. I just don't read posts like the one above. My brain literally refuses to bother anymore -- it scans the first couple of lines, sees the stuff it's already read, sees the repeated lines, and then starts looking around for something else to do. The author's actual intelligence couldn't be better disguised if it came in the shape of a banner ad.