Slashdot Mirror


freedesktop.org xlibs 1.0 Released

Daniel Stone writes "A short time ago, freedesktop.org xlibs 1.0 was released. Simply put, this is the collection of libX11, libXext, and other little-used libraries that kind of power your whole desktop. The xlibs team at fd.o are now maintaining all these libraries, and more, and we're going to be making releases as part of the fd.o platform, which is far more wide-ranging, but it still forms an important part of the platform. Share and enjoy!"

243 comments

  1. How do I shot web? by Anonymous Coward · · Score: 0, Funny

    I want 2 b spoder man:(

    1. Re:How do I shot web? by Anonymous Coward · · Score: 0

      go back to gbs.

  2. Communism: by Anonymous Coward · · Score: 0, Funny

    It's fun! Please try it.

  3. Re:Who uses Xlib by IversenX · · Score: 5, Informative

    What is your definition of "Doesn't depend on"?

    They both use xlib exclusively for drawing!

    QT (and possibly GTK) exists in a version for embedding/framebuffer devices, but that's not the version you see in everyday KDE/Gnome.

    --
    With great numbers come great responsibility!
  4. Some of us by Anonymous Coward · · Score: 2, Interesting

    still use non-bloated window managers like WindowMaker, Blackbox, IceWM, and Enlightenment that don't use the GTK/QT libraries.

    1. Re:Some of us by Anonymous Coward · · Score: 0

      The most interesting statement in that comment is Enlightenment is non-bloated. Back when E was used by almost everyone, it was ridiculed for being bloated and slow. Anybody see a parallel to today's XFree86?

    2. Re:Some of us by psavo · · Score: 3, Insightful

      Yeah, and what kind of non-bloated non-gtk/qt applications do you run in your non-bloated window manager?

      psavo, a wmaker user himself

      --
      fucktard is a tenderhearted description
    3. Re:Some of us by Anonymous Coward · · Score: 0

      TWM Baby!

    4. Re:Some of us by gnu-generation-one · · Score: 1

      "Some of us still use non-bloated window managers like WindowMaker, Blackbox, IceWM, and Enlightenment that don't use the GTK/QT libraries."

      Some of us do that, then have to wait for the libraries to load anyway, for kppp and kmail to work...

  5. Xlib is trash. by Anonymous Coward · · Score: 0

    No one uses Xlib, thats the problem with the X development team. They waste time reinventing the wheel over and over. We don't need cairo. we don't need Xlib, we don't need to switch to this stupid open GL interface bloated crap.

    1. Re:Xlib is trash. by Anonymous Coward · · Score: 0

      Yes you sure DO, for the desktop market you are so fond of spouting over

    2. Re:Xlib is trash. by serial+frame · · Score: 2, Insightful

      Bullshit.

      I triple dog dare you (not necessarily the parent troll, but the general audience) to find a binary or library capable of displaying on an X11 display that's not linked, statically or dynamically, to libX11 and friends; of course, barring the things written by masochists that implement the X Window protocol themselves over a TCP or Unix socket.

      --

      -
      And the Angel said unto me, "These are the cries of the carrots! The cries of the carrots!"
    3. Re:Xlib is trash. by ickpoo · · Score: 1

      Qt, GTK, ... all of them use Xlib. If it runs under X and draws on the screen it is using XLib.

      --
      I am not a script! .Sig?
    4. Re:Xlib is trash. by Curtman · · Score: 2, Informative
      The GTK FAQ has this to say about it:

      • What is GDK?

        GDK is basically a wrapper around the standard Xlib function calls. If you are at all familiar with Xlib, a lot of the functions in GDK will require little or no getting used to. All functions are written to provide an way to access Xlib functions in an easier and slightly more intuitive manner. In addition, since GDK uses GLib (see below), it will be more portable and safer to use on multiple platforms.
    5. Re:Xlib is trash. by Anonymous Coward · · Score: 0

      Is XCB what you're looking for? I don't think it was written by masochists.

    6. Re:Xlib is trash. by Anonymous Coward · · Score: 0

      I think the point is that you could probably count with one hand the number of people who have written an X11 program without using Xlib or similar, although XCB does look interesting.

    7. Re:Xlib is trash. by Anonymous Coward · · Score: 0

      Note that XCB is the freedesktop replacement for Xlib -- the plan is that Gnome/KDE will interface directly to XCB and that XLib will turn into a legacy compatibility shim.

      Xlib is obsolete.

    8. Re:Xlib is trash. by Kent+Recal · · Score: 1

      of course, barring the things written by masochists that implement the X Window protocol themselves over a TCP or Unix socket.

      You insensitive clod.
      No, I haven't done it. But I feel for those who have!

    9. Re:Xlib is trash. by Anonymous Coward · · Score: 0

      If you are at all familiar with Xlib... you must be a hellspawn!!!

    10. Re:Xlib is trash. by Anonymous Coward · · Score: 0

      You Sir ar a moron, and not just your average run of the mill moron. Oh no, you are a spectactuarly uninformed idiot who is so unmitigatedly ignorant of any aspect of the facts that the only saving grace in your post is that it was merely anonymous screed. I mean it really takes a special breed of genetically challenged clown to spew that kind of utter crap.

      Go watch some porn and raise your IQ a bit you fucking asshat retard.

    11. Re:Xlib is trash. by Anonymous Coward · · Score: 0

      Actually, the full name of xlib is "the C library X bindings" or something like that. It was originally intended that all languages would have their own libraries to wrap the X wire protocol. After all xlib originally didn't offer nothing but a thin wrapper for the X protocol, and even now the additional utility functions are not that numerous. However, the way it ended up is that Common Lisp is the only other language with its own X library called CLX, everything else uses the C language X library called xlib. This means that every Common Lisp program capable of X11 display does its stuff without xlib. Even by a conservative estimate, this means thousands of programs.

  6. Little used ? by noselasd · · Score: 3, Informative

    Virtually every toolkit out there uses xlib. It really isn't
    "little used", but rather key part of the whole *nix desktop.

    1. Re:Little used ? by Vanieter · · Score: 1

      Uh, didn't you think it could have been sarcasm ?

    2. Re:Little used ? by Simon+Kongshoj · · Score: 1

      #include

      --
      Six sick .sigs, the Number of the Beast!
    3. Re:Little used ? by Simon+Kongshoj · · Score: 2, Funny

      Blargh.
      #include <irony.h>
      Sorry 'bout that.

      --
      Six sick .sigs, the Number of the Beast!
    4. Re:Little used ? by Anonymous Coward · · Score: 0

      Thank you, Captain Obvious.

    5. Re:Little used ? by Anonymous Coward · · Score: 0

      What a waste of perfectly good sarcasm on you.

    6. Re:Little used ? by rsidd · · Score: 2, Informative
      It really isn't "little used", but rather key part of the whole *nix desktop.

      As indeed the rest of that sentence indicates: "... libraries that kind of power your whole desktop." Try twiddling the knobs on your humour meter.

    7. Re:Little used ? by Anonymous Coward · · Score: 0

      So uh, how is this still +4 Informative?

  7. Not that X is slow ... by Space+cowboy · · Score: 2, Insightful

    ... but having one group looking after all these libs would seem to offer some scope for optimisation and consolidation. Sounds like a good thing...

    What's the DBUS ? (Desktop bus ?)

    Simon

    --
    Physicists get Hadrons!
    1. Re:Not that X is slow ... by CoolVibe · · Score: 1, Flamebait
      DBUS is something the GNOME people thought up when they saw KDE's DCOP.

      Not to badmouth it (well, I am biased), but I've heard that the KDE people plan to integrate DBUS into KDE to make GNOME apps integrate better. I'm all for it.

    2. Re:Not that X is slow ... by AllUsernamesAreGone · · Score: 4, Funny

      What's the DBUS ?

      It's dthing you get on to go to work in when you don't want to get dcar out of dgarage mon.

      Or, put another way, I don't have a fscking clue so, in the greatest tradition of /., I said something silly instead.

    3. Re:Not that X is slow ... by aTMsA · · Score: 1
      Well, I'd say that X is lean and fast enough, though some drivers could use some work, maybe from the video card manufacturers(SiS this goes for you).

      The good thing about this consolidation is that finally xlibs is mantained with people close(and interested) in the workings of the main toolkits, Qt and GTK+; In the past the X dev team has shown a bit of disdain towards the toolkits and their developers. Now, thanks to Keith Packard and many other volunteers this is starting to change, i hope this leads to xlib and Qt/GTK+ working together in a better way, and, now that they can add things to X directly, to a more standard desktop!

      Kudos do Keith Packard and the fd.o team for this!

    4. Re:Not that X is slow ... by Carewolf · · Score: 5, Informative

      D-BUS is the replacement for DCOP. "Agnostically" written in C this time to help GNOME developers swallow (not so agnostically though since Glib kept sneaking in, but fortunately got replaced in the end).

      It does have a few neat features that DCOP doesnt. Like being system-wide, and thus support signals from the kernel (implemented by HAL) and signals from other non-desktop application like Apache.

    5. Re:Not that X is slow ... by Anonymous Coward · · Score: 0

      X is slow. They need to have a couple of programmers recode it in assembly. Two weeks max the job would be done and X would be much faster.

    6. Re:Not that X is slow ... by jackbird · · Score: 3, Funny

      ...so you could say that, um, DBUS ran over DCOP? Tragic.

    7. Re:Not that X is slow ... by EachLennyAPenny · · Score: 1

      D-BUS is a system for interprocess communication (IPC).

      It's a common successor for Gnome's CORBA and KDE's dcop usage.

    8. Re:Not that X is slow ... by ajs · · Score: 3, Interesting

      IMHO, every major C project should use glib. It is fairly lightweight and provides a lot of the features that C programmers end up carrying around anyway. It's certainly not a Gnome thing in the strictest sense. You could ship glib with KDE and have no dependence on Gnome, GTK+ or anything else like that.

      Glib 2.0 also includes GObject, the core object system on which Gtk+ and Gnome are based, though again, you could write grep using these objects, they're not graphics-specific.

    9. Re:Not that X is slow ... by be-fan · · Score: 3, Informative

      D-BUS wasn't something the GNOME people thought up. The freedesktop.org people modeled it after DCOP, but made it independent of KDE's framework so the GNOME people could use it. The plans for D-BUS in KDE seem uncertain. Some developers want to just ditch D-COP entirely and use D-BUS, since D-BUS is similar. Others want to bridge D-COP and D-BUS, and retain D-COP for intra-KDE communication, and use D-BUS for inter-desktop communication.

      --
      A deep unwavering belief is a sure sign you're missing something...
    10. Re:Not that X is slow ... by caseih · · Score: 4, Insightful

      I can't agree more. I recently wrote a fairly complicated proxy server and using glib (combined with the gnet libraries) has completely saved me. The glib routines for building quick hashtables, lists, and dynamic strings (all in C) make so many aspects of my life easier. By using a glib dynamic string as my input buffer, I can easily grow it to accomodate the incoming data rather than having to do all the realloc stuff myself.

      I think glib (at least the routines for data types -- lists, hash tables, strings, etc) should be in the C standard library. The gobject stuff, while useful, should always be in a separate library.

    11. Re:Not that X is slow ... by be-fan · · Score: 1

      KDE already ships with a glib dependency. aRts used it...

      --
      A deep unwavering belief is a sure sign you're missing something...
    12. Re:Not that X is slow ... by cubic6 · · Score: 1

      I haven't used glib, but from your and grandparent's description, it sounds like a GNU/Copy of the C++ Standard Template Library for C. Cool.

      --
      Karma: Contrapositive
    13. Re:Not that X is slow ... by Anonymous Coward · · Score: 2, Insightful

      > IMHO, every major C project should use glib

      glib is incredibly convenient to program in because it has no error handling. Your app just goes boom if something unexpected happens, like a memory allocation failing. You can kind of prevent your program for totally blowing up, but you don't have the ability to correctly handle errors (at least in glib 1.2, don't know if 2.0 fixed this - we're talking about a nontrivial change here).

      Great for building toy programs, but absolutely terrible for building a production quality system. It saddens me that so much otherwise great work (for example from the GNOME folks) is a castle built on a swamp. And it saddens me much more that people who don't understand this problem would say things like you just said, encouraging others who might not yet know better to build more software on a poor foundation.

    14. Re:Not that X is slow ... by Anonymous Coward · · Score: 0

      Too bad it's got portability issues. Oh, how I remember the nights I tried to get glib to compile under Tru64.

      Remember, Linux is not the entire world, and some people actually enjoy running Tru64/Irix/HP-UX on their non-x86 machines rather than bastardizing them as NetBSD/Linux boxen.

    15. Re:Not that X is slow ... by kervel · · Score: 1

      i first was fairly sceptical of dbus too ... (why replace something that works so well). But now, i realise it is the only way to solve some pretty fundamental problems that have seen lots of solve-attempts but no real solution.

      All those problems are related with making things work together that are not designed to work together. (hardware-configurators, application wrappers that use undocumented and non-robust assumptions) Those mostly work, but are one of the main reasons for the 'unpolished' or 'unfinished' feeling you get when using linux (and thats only one symptom). Clearly defined interfaces with a broad scope (not only kde) would solve a lot here, so i'm all for dbus now, even if it means that people will have to go to the trouble of immature software again.

    16. Re:Not that X is slow ... by Anonymous Coward · · Score: 0

      That is pretty much it. It gives you things every C program (of some size) needs anyway. In a standard package.

    17. Re:Not that X is slow ... by mackstann · · Score: 1

      I've been really impressed with Glibmm (the c++ glib bindings) too. Glib::Module makes dlopen() et. al. a little less ugly to use (although you still have to do a little mucking with void pointers). libsigc++ also rocks. And I plan on probably using Gdkmm for something or another. It all looks so tasty!

    18. Re:Not that X is slow ... by KeyserDK · · Score: 1

      I Can't see a problem using for C. You just end up coding similar stuff with another name in C projects. Thus creating your own bugs.

      --
      still reading?
    19. Re:Not that X is slow ... by fooishbar · · Score: 1

      DBUS isn't exactly an X library, so we didn't release it as part of xlibs; it will, however, be part of the fd.o Platform, 'cause it's way cool. :)

      Daniel

      --
      -- x hacker, iterant idiot (with apologies to michael meeks)
    20. Re:Not that X is slow ... by groomed · · Score: 1


      glib is incredibly convenient to program in because it has no error handling. Your app just goes boom if something unexpected happens, like a memory allocation failing.


      Yeah. Of course that's what most versions of the Linux kernel do as well: when they run out of memory, they just start killing processes, rather than returning NULL (with the wonderful rationale that this would break programs that don't check for malloc errors). You can change that behavior by disabling overcommit, sort of, but it's still a worrying attitude.

    21. Re:Not that X is slow ... by grahamdrew · · Score: 1

      It's close. The other main feature is that is standardizes the implementation across platforms. An gint (glib integer) is always going to be a set number of bytes, no matter if it's on a 64bit Alpha or a Motorola 68040 Mac. It makes porting code a LOT easier.

      --
      // Dumps core here
    22. Re:Not that X is slow ... by Anonymous Coward · · Score: 0

      lightweight? The .so is more than 400k on my x86 box compiled for small code size!

      That is not lightweight, that is ultra-bloated.

      In particular since glib is completely superfluous. It offers nothing that the platform APIs, conventience libraries, and STL or other standard language environments do not also offer.

      Die, glib, die!

    23. Re:Not that X is slow ... by Anonymous Coward · · Score: 0

      And this is why many of the linux desktop programs are headed down the windows bloat and BSOD path.

    24. Re:Not that X is slow ... by Anonymous Coward · · Score: 0

      From the Glib Reference Manual (Section "Error Reporting"):

      "GLib provides a standard method of reporting errors from a called function to the calling code. [...] GError should only be used to report recoverable runtime errors, never to report programming errors. [...] Examples of recoverable runtime errors are "file not found" or "failed to parse input." Examples of programming errors are "NULL passed to strcmp()" or "attempted to free the same pointer twice." These two kinds of errors are fundamentally different: runtime errors should be handled or reported to the user, programming errors should be eliminated by fixing the bug in the program. This is why most functions in GLib and GTK+ do not use the GError facility."

    25. Re:Not that X is slow ... by Anonymous Coward · · Score: 0

      Overcommit's not the default, and hasn't been for quite a while.

    26. Re:Not that X is slow ... by nitehorse · · Score: 1

      Actually, last that I heard, the plan is to use a DCOP/DBUS bridge in KDE 3.3 and then a wholesale move to DBUS for KDE4. There's talk of using DBUS as a base for DCOP in KDE4, as well, for the wire implementation (and thus ditching libICE) but we'll see what happens.

    27. Re:Not that X is slow ... by joto · · Score: 1
      An gint (glib integer) is always going to be a set number of bytes, no matter if it's on a 64bit Alpha or a Motorola 68040 Mac. It makes porting code a LOT easier.

      This is exactly what bothers me about it. I know, it's probably just nitpicking, but the C standard already have this, it's called int32_t, int64_t, etc... When you port GLIB to platforms that doesn't have these, it should provide a compatibility header for inttypes.h (such as glib/inttypes.h), instead of inventing yet another stupid name with a G-prefix.

      While I have nothing against the nice features of Glib, I don't really see the necessity of demanding everything to be prefixed by a g, i.e. gsscanf, gfloat, gtan, gselect, (and probably soon gmain), etc...

    28. Re:Not that X is slow ... by ajs · · Score: 1

      The STL is not a C library, it's a C++ library, and on my box STL is over a megabyte and glib is under 200k, so I would suggest that you program in C and save yourself some overhead.

    29. Re:Not that X is slow ... by ajs · · Score: 1

      "Too bad it's got portability issues" ... "some people actually enjoy running Tru64/Irix/HP-UX"

      And some people enjoy running VMS or Windows, but if it don't compile on your platform, I suggest you offer to help port it. NO software ports to every platform out-of-the-box, even (actually, perhaps especially) Java software.

      On the other hand glib works fine on Solaris... in fact Sun ships glib WITH Solaris. Perhaps you should switch to Solaris, or ask your vendor why they don't support modern cross-platform libraries like glib that run on their competitor's boxes...

    30. Re:Not that X is slow ... by sfraggle · · Score: 1
      It's dthing you get on to go to work in when you don't want to get dcar out of dgarage
      I'm guessing the KDE and GNOME developers have run out of names that begin with 'g' and 'k' and have now settled on the new cross-desktop freedesktop.org standard of 'd' :-)
      --
      were you expecting to see a sig here? perhaps you'd rather see the inside of an ambulance!
    31. Re:Not that X is slow ... by sfraggle · · Score: 1
      I've used glib and it has made my life much better when writing C code. Not only the data structures which another poster mentioned, but I also find very useful that there are utility functions provided for things you tend to do all of the time - g_strdup_printf springs to mind.


      The portability stuff is also really useful - I spent ages trying to get code working on windows which used gettimeofday before I realised that glib just had standardised time functions.

      --
      were you expecting to see a sig here? perhaps you'd rather see the inside of an ambulance!
    32. Re:Not that X is slow ... by Anonymous Coward · · Score: 0

      It's kind of sad because it's not really difficult to program to the unix standards (which can be freely downloaded from the open group website) if you are creating something for unix, and then you can expect your software to workon all unix compatible systems out of the box, without porting..

    33. Re:Not that X is slow ... by Anonymous Coward · · Score: 0

      No really, the grandparent is correct. Unless someone submits Glib to ANSI or ISO for standardisation and we can have a complete interface specifcation Glib should be used as little as possible, especially if you are writing cross-platform code. It's bad enough having to deal with code that relies on the latest bleeding edge version of Glibc, let alone adding yet-another-Linux-centric-dependency to the codebase.

      Not only that but Glib needs to stop duplicating functions and types that are already part of C. If you need strictly sized types C99 added a bunch of extra types for you to use; int16_t for example. It should drop the Gnome-centric Gobject stuff, too.

    34. Re:Not that X is slow ... by IamTheRealMike · · Score: 1
      glib is incredibly convenient to program in because it has no error handling. Your app just goes boom if something unexpected happens, like a memory allocation failing.

      Er, do you know how much software out there is OOM safe? Almost none.

      Though FWIW DBUS bucks that trend and actually is OOM safe.

      Nonetheless, failing cleanly (with an understandable error message) instead of a segfault is waaaay better than simply dying at some random later point because malloc returned null when you assumed it didn't.

      Great for building toy programs, but absolutely terrible for building a production quality system.

      I really don't see what your problem is. Can you give examples of where glib "lacks error handling" sufficient for "production systems" (which almost invariably aren't fully OOM safe anyway).

    35. Re:Not that X is slow ... by IamTheRealMike · · Score: 2, Informative
      Over half the size of glib is unicode translation tables (ie pure data), which apps require for correct internationalization.

      In fact this is one big reason to use glib: it makes it very easy to support UTF-8 and other things in a portable (to windows) way.

    36. Re:Not that X is slow ... by jcupitt65 · · Score: 1

      Actually, gint is always guaranteed to be the same as int. There are things like guint32 and guint64 for particular integer sizes (proof).

    37. Re:Not that X is slow ... by ajs · · Score: 1

      All Gnome and Gnome-supporting software is designed to be portable. The problem is that "portable" != "ported". Compiler differences, subtle changes in libraries, etc can lead to platform differences that you need to account for. It might be good, for example, to rely on always having a SSL library around on modern systems, but on legacy OSes, you can't assume that at all! Same goes for assuming that C9x features are supported, and don't get me started on the difficulties in finding GCC dependencies without actually doing a port.

      These things are all hurdles that you must overcome, and it's NEVER as easy as "just follow the standards".

    38. Re:Not that X is slow ... by ajs · · Score: 1

      "Glib needs to stop duplicating functions and types that are already part of C. If you need strictly sized types C99 added a bunch of extra types for you to use; int16_t"

      WOAH! You cannot rely on C9x support on every patform! Glib uses its own type naming conventions to avoid the morass of semi-standards and then identifies what you actually have at compile-time. This is the right way to go for a library that sets out to fundamentally re-architect the way you
      interface to the language (e.g. to put a real event, exception, threading and object model between you and the raw system), where it would NOT be the right choice for a lib that provided some specific niche of functionality.

    39. Re:Not that X is slow ... by Anonymous Coward · · Score: 0

      I'm glad glib isn't in the libc, because it's slightly obnoxious.

      A library to supplement libc in order to make it both portable and high-level is a very good goal. However, I don't always like how glib, or publib, or any of the other libraries do it.

      That's why it's best that none of these are standard. You have a choice. None of these libraries are necessarily going to cramp your style.

  8. Re:Who uses Xlib by CoolVibe · · Score: 5, Insightful
    Raw Xlib? Almost nobody. And yes, GTK and QT on X11 do depend on it. The fd.o stuff looks really promising, since the stuff from X.org is starting to show it's age.

    And X is NOT slow. For what it does, it does it quite efficiently, and it even has network transparancy thrown in for "free", because of the way it works. Just because the code base of XFree86 is a bit aged and has accumulated a lot of cruft over the years, doesn't mean the initial design is flawed. It was ahead of it's time, and it's still relevant.

    Oh, and X works pretty good for me. Haven't seen a crash because of X in years. Maybe it's something else (buggy driver? broken hardware?) that's plagueing you. It's not X, in any case.

  9. Erm... by Bohemoth2 · · Score: 1, Redundant

    Ok how can they be litle used and yet power my whole desktop? I'm confused.

    1. Re:Erm... by JohnFluxx · · Score: 1

      It was badly done sarcasm.

      I missed it too at first.

    2. Re:Erm... by Carewolf · · Score: 1

      Libraries are "used" by developers. Practically no one uses Xlib nowadays, the uses widgets toolkits that depends on Xlib (and was written by a few people using Xlib) instead.

      So it powers your whole desktop, and your whole desktop depends on it. But still it is very little used.

  10. XFree86 Has Not Merged With X.Org ?? by cyber_rigger · · Score: 4, Informative


    XFree86 Has Not Merged With X.Org (see News)

    [23 January 2004] http://www.xfree86.org/

    So have they merged or not merged?

  11. MODS: EXPLAIN by Anonymous Coward · · Score: 0, Funny

    Why is this a "troll"? Offtopic, perhaps marginally - but a troll? Please, don't be silly.

    1. Re:MODS: EXPLAIN by Anonymous Coward · · Score: 1, Funny

      Does it really matter? It was always going to get downmodded anyway.

      You think it was only marginally offtopic? I think troll is the best fit for this utterly meritless posting, lacking a 'crap' option as we do.

      I wasn't the moderator though.

    2. Re:MODS: EXPLAIN by Beek · · Score: 2, Funny

      Meritless? It was a lot more amusing than the robotic cliches that modded up to +5.

      "DRM infringes on my freedom." +5 BORING!!!!!

  12. Re:Who uses Xlib by sloanster · · Score: 1

    You say X crashes twice a week? How bizzarre - perhaps you have hardware problems. I use X all day every day and I can't remember it ever crashing.

  13. Any idea on the total size of the libaries? by saskboy · · Score: 2, Interesting

    Is there any chance of this desktop being used on a distribution small enough for a credit card sized CD? 50MB.

    From the site:

    This table represents the state of libs from XFree86 that should be brought into the Freedesktop cvs as autofooed projects. Please update these if you have any further information.

    Library current status
    GL needs to be done
    GLU FreeGlu? may be better? (don't think so, and Mesa should have the same libGLU available --EricAnholt)
    GLw
    XThrStub? would be part of libX11, but may be better not as a separate library
    XTrap
    Xaw6
    Xbsd
    Xfontcache
    Xft1 Maybe do not need this
    Xinerama Multiscreen unified display
    Xp X print
    Xss X screen saver A newer smarter version of this may be nice
    Xtst
    XvMC?
    Xxf86dga Probably does not need to be done.
    Xxf86misc getting and setting of input device attributes possible ideas for better device handling
    Xxf86rush
    Xxf86vm VidMode? extension that allows modifying video attributes on the fly
    apple
    dps There may be a GNU package for this, but it may be old.
    dpstk See dps
    expat Should be depended upon
    font
    fontconfig
    fontenc
    freetype2 Should be depended upon
    libxutil
    libxml2 Should be depended upon
    misc
    oldX
    psres See dps
    regex
    xkbfile
    xkbui
    zlib Should be depended upon

    --
    Saskboy's blog is good. 9 out of 10 dentists agree.
    1. Re:Any idea on the total size of the libaries? by caseih · · Score: 4, Informative

      The fd.o xserver is about 1 mb, and the X11 libraries to drive your apps weigh in at around 1 mb or so stripped, I think. At least on my fd.o installation they do. Also kdrive + libs + gtk2 + apps runs comfortably on a device like the Zaurus. Of course that's with no openGL stuff, or xinerama or xprint. But it does include freetype, xft, xrender, xdamage, composite, etc. The basic libraries are quite compact. If you really look at it, 1mb for kdrive, 1mb for libraries, plus maybe 5 mb for gtk2, an X11-based enbedded environment (supporting just one kind of display hardware) is very light and competitive with the Qtopia framebuffer system. Given that, I can't see any reason do use qt-embedded or gtk-fb for most things.

      Some of those things in your list are not really libraries providing an api, but rather utilities, many of which on an embedded environment aren't needed.

  14. Re:Who uses Xlib by bad_sheep · · Score: 4, Funny

    Don't forget to remove the line containing "killall X" in your crontab !

  15. Xlib... by Anonymous Coward · · Score: 0

    Xlib, what's it all about? Is it good, or is it whack?

    1. Re:Xlib... by Anonymous Coward · · Score: 0

      it is good.

    2. Re:Xlib... by Anonymous Coward · · Score: 0

      one might even say "on teh spoke".

    3. Re:Xlib... by Anonymous Coward · · Score: 0

      Hahahahhahah :D

    4. Re:Xlib... by stor · · Score: 0, Offtopic

      Someone's running a dodgy useless Perl script...

      Cheers
      Stor

      --
      "Yeah well there's a lot of stuff that should be, but isn't"
  16. vs XFree86 ? by noselasd · · Score: 4, Interesting

    One more question. Whats the diffrence between the freedesktop xlibs, and the xlibs in XFree86 ? I understand they forked from XFree at one point. What did they change/improve ?

    1. Re:vs XFree86 ? by CoolVibe · · Score: 2, Informative

      They got rewritten from scratch. :)

    2. Re:vs XFree86 ? by be-fan · · Score: 3, Informative

      The XServer got rewritten from scratch*. The xlibs are an evolution of the XFree86.org code.

      *> Well, not really. The FD.O X server is based on Keith Packard's KDrive (AKA TinyX) server, which is a vastly restructured and rewritten XFree86.

      --
      A deep unwavering belief is a sure sign you're missing something...
    3. Re:vs XFree86 ? by dossen · · Score: 2, Informative

      If I read it correctly, they are replacing the Imake buildsystem with GNU autoconf/automake - a good thing I think. Other than that I don't know what the differences are (going to be), but they will probably try to integrate some of the other parts of the freedesktop platform.

    4. Re:vs XFree86 ? by Anonymous Coward · · Score: 1, Informative

      The plan is to eventually rewrite Xilb as well.

    5. Re:vs XFree86 ? by be-fan · · Score: 1

      It'd make a lot more sense to just use XCB instead?

      --
      A deep unwavering belief is a sure sign you're missing something...
    6. Re:vs XFree86 ? by thanasakis · · Score: 1

      they are replacing the Imake buildsystem with GNU autoconf/automake - a good thing I think

      If you are saying that autoconf/automake are better because they are being used by almost everyone, I would like to express my disagreement. Goodness should not be decided on a basis of majority consensus rather on proven technical merit.

      But if you were not reffering to the popularity of gnu autoconf/automake, please, tell us why they are superior to imake.

    7. Re:vs XFree86 ? by be-fan · · Score: 4, Informative

      Its not so much its superiority to imake, as its superiority to the imake setup of XFree86. The XFree86 build scripts are horribly complex to understand, and while autoconf/automake suck too, they suck less. Plus, more people are familier with them, so there is less of a learning curve for developers.

      --
      A deep unwavering belief is a sure sign you're missing something...
    8. Re:vs XFree86 ? by Fnord · · Score: 4, Informative

      Mostly they've just changed the build system. Someone mentioned that they're using automake/autoconf. But that's only a minor part of it. The big thing is that they're making it so that you can compile these libraries without having the entire X11 tree. X until now was this giant monolithic source tree with tons of interdependancies so you'd have to build it all at once. Their first goal is to modularize X and that means making the Xserver, Xlibs and the basic X programs all build separately.

    9. Re:vs XFree86 ? by Anonymous Coward · · Score: 1, Informative

      Yup, the freedesktop plan is to turn xlib into a compatibility shim on top of XCB for legacy stuff.

      This is pretty cool, because it means that the core of X11 is going to get overhauled, but most users won't know that it's happening (although they might notice the better performing eyecandy).

    10. Re:vs XFree86 ? by molnarcs · · Score: 1
      Good question. Also, how does one go about installing it? A few weeks ago I noticed these extensions in ports (fbsd). For instance:

      libXext 6.4.2, and they say:
      New port: Prerelease version of libXcomposite from freedesktop.org: X Extension library. Testing is encouraged, but please do not use these ports as dependencies until they are updated to release tarballs and the XFree86 ports have been updated to depend on them.

      So do these extensions work with regular XFree86-Server or will they use their own implementation of if? (I'm a bit confused with this). I also see all these extensions already installed on my system (libXcomposite, libXdamage, etc.) Which applications are going to make use of it? Are there any yet? I see kdeinit depending on some (libXrandr - old one, read non-freedesktop.org one was libXrender - for instance:)
      >>ldd /usr/local/bin/kdeinit | grep libX
      libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x28eca000)
      libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x28ed9000)
      libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x28fc1000)
      libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x2927c000)
      libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0x29292000)
      libXcursor.so.1 => /usr/X11R6/lib/libXcursor.so.1 (0x29296000)
      libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x2929f000)
      libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x297fa000)
      Any clues?
    11. Re:vs XFree86 ? by Anonymous Coward · · Score: 0

      right now the only difference is that they are autotooled. In the future they pretend to audit them, include XCB to get rid of the protocol handling in X11 and use the iconv system available in libc6 when installed in systems that have it.

    12. Re:vs XFree86 ? by mackstann · · Score: 1

      Xlibs are the libraries that clients use to talk to an X server. A client compiled against any version of xlibs should run on basically any X server implementation. Clients compiled against xfree's xlibs will work on xfree, fd.o's xserver, xdirectfb, etc. Clients compiled against fd.o's new xlibs should be the same in that regard.

      As for what they have actually improved, as I understand it, they are making their Xlibs more modular, more efficient, more modern, etc. Probably not anything that a user would notice, but it should make certain developers' lives easier. XFree86's xlibs are pretty crusty.

    13. Re:vs XFree86 ? by dossen · · Score: 2, Informative

      Pretty much where I was coming from. I have also messed around, hacking around broken stuff, with both Imake and autoconf/automak based stuff, and Imake just looks worse (maybe it would be different if I had some experience with either, but just fixing a broken link parameter and that sort of thing seems much simpler with auto*). And if it gets the options of X into a configure script instead the host.def file, then I wont complain (force of habit I guess).

    14. Re:vs XFree86 ? by aanantha · · Score: 1
      Mostly they've just changed the build system.

      I think you've gotten this confused with Xouvert. Xouvert's the one that's making the build changes. FreeDesktop is splitting Xlib into 2 pieces and writing a new server based on kdrive.

    15. Re:vs XFree86 ? by puetzk · · Score: 2, Informative

      There are lots of pieces to the recent work that's been happening on X under the freedesktop banner. Here's my understanding of what the pices are...

      Xouvert was/is also working on build changes (and quite possibly this release is based on their work - I don't really know). In any case. the freedesktop.org xlibs announced here (http://xlibs.freedesktop.org/) release has actually got them all made (quite possibly based on contributions from xouvert) and is a full set of 'split' xlibs which build with autoconf/pkg-config.

      Additionally, freedesktop has at least two other major X-related projects going (some of the same people, some different). One of these is the xcb/xcl to replace xlibs, the other is a kdrive-based xserver. Neither of these projects has yet made a full release, though both have code that works and is making excellent progress

      xcb (http://xcb.freedesktop.org/) is a new API targeted toward letting toolkit authors handle asyncronous events more effectively, without some of the compromises xlib made to ease writing apps directly to it. The rise of high-level toolkits (Qt, GTK, wxWindows, Tk, etc) has definitely changed the way the xlib API is typically used. For compatibility with existing apps and for easier programming of apps which (for whatever reason) do not want to use a high-level toolkit, xcl is a an xlib-compatible API sitting on top of xcb. Think of it as a minimal 'toolkit' which provides the 'wait-for-reply' API to error handling and return-values that xlib uses today.

      The new kdrive xserver's primary features are the DAMAGE and COMPOSITE extensions (allowing multiple apps to coordinate and share in painting what actually appears on the screen. It also features a much smaller&simpler codebase from the XFree86 server, allowing easier experimentation with still other new ideas.

      --
      The Matrix is going down for reboot now! Stopping reality: OK. The system is halted.
    16. Re:vs XFree86 ? by molnarcs · · Score: 1

      Thanks for the info :) Its what I was curious about. Nice windowmanager btw. Should replace waimea in ports.

  17. Re:Nethack X is slow ... by Deraj+DeZine · · Score: 1, Informative

    It's a message queue for programs to take advantage of. Just a simple way to communicate between desktop applications. I think they're planning on using it in the Dashboard project.

    --
    True story.
  18. Re:Who uses Xlib by chromis · · Score: 1

    as far as i know and have experienced... GDK, the lower API part of GTK+ is a thin wrapper for XLib. It provides you with basic drawing primitives also more or less available in Xlib but with less code. It also makes things easier.

  19. Re:Nethack X is slow ... by CoolVibe · · Score: 1

    Which is exactly what DCOP is. And guess what, it's not even tied to KDE and Qt. It's just bundled with KDE, and KDE depends on it. You could build dcop and use it in your apps without the need for KDE and Qt.

  20. Re:Who uses Xlib by noselasd · · Score: 1

    They use the xlibs to communicate with the X server. In simple terms, they provide a C interface to the X (and lots of releated X mechanisms) protocols.
    I see very little of the slowness everyone trolls about, though if you want to improve it, one should implement some better redrawing algorithms in the toolkits. And write some better gfx card drivers. Though that is hard, graphics is hard. And vendors do seldom hand out hardware specs to everyone.

  21. Re:Who uses Xlib by Deraj+DeZine · · Score: 0

    I believe BlackBox and FluxBox are both written on top of Xlib. I've hacked around with the source code a bit and Xlib looks pretty unwieldy. Good thing there's Gtk for all my application needs =)

    --
    True story.
  22. Too many damn x's! by joelgrimes · · Score: 3, Interesting

    I've used linux for years, but still get confused when people bring up this subject. I can't make heads or tails of all the different X's being bandied about. Half the time I can't tell if it's a group of people or a program.

    X11, x.org, xfree86, X Consortium, X Window(s?), not to mention freedesktop.org which is commonly mentioned in the same breath - i'm sure i'm missing some.

    I'm sure there's others that would appreciate an unscrambling of the relationships between the x's

    1. Re:Too many damn x's! by twoslice · · Score: 1
      I'm sure there's others that would appreciate an unscrambling of the relationships between the x's

      I dunno about other people but the relationship between my eX girlfriend will only be rekindled when scientists figure out how to get brimstone to freeze ...

      --

      From excellent karma to terible karma with a single +5 funny post...
    2. Re:Too many damn x's! by Narchie+Troll · · Score: 5, Informative

      x.org == X Consortium
      X11 == X Window System 11
      X Window System == A windowing system, consisting of a client and a server that communicate via an open protocol. Many different vendors distribute X clients and servers, commercial and free.

      The X Consortium manages the X protocol and distributes a reference implementation of clients and servers. XFree86 is a fork of the X Consortium implementation that was originally intended to run on x86-class machines -- thus the name. Freedesktop.org is a loose coalition attempting to corral all the competing *nix desktop software into a cohesive whole by setting up standards. They also provide support for a project that is working on an improved client and server for X11.

    3. Re:Too many damn x's! by allanc · · Score: 3, Informative

      X11 and The X Window System (not, they stress "X Windows" because that sounds too much like MS Windows) are the same thing. Just different names for it. It's the base window system.

      The group that releases the standard X code distribution, specifications for new versions of X, etc is the X Consortium, X11 is, more fully, X11R6--X Window System version 11 release 6. If X11R7 happens, it'll come from the X Consortium. Their web site is x.org.

      XFree86 is the group that does the free version of the X Window System, originally for Intel x86 systems (hence the name) but nowadays for pretty much every system that'll run a free OS.

      Freedesktop.org works on higher level standards, like drag and drop and such. Stuff that lets the various apps running under X11 to interact but not low enough to be under the jurisdiction of the X Consortium.

      --AC

    4. Re:Too many damn x's! by Anonymous Coward · · Score: 0

      Nice, now the difficult part :-)

    5. Re:Too many damn x's! by be-fan · · Score: 4, Informative

      X11 - The protocol spoken by modern X servers.

      x.org - Formerly the X Consortium, an organization of X-using businesses, like the OpenGL ARB. They are responsible for changes to the spec.

      X Windows - Shorthand for X Window System --- refers to the whole thing, servers, libs etc.

      freedesktop.org - A new organization dedicated to making standards for the *NIX desktop. For example, they have specified a common MIME framework, common menu format, common window manager specification, etc. Many of these, (ex. the window manager specification) have already been adopted. They are also an umbrella project for other projects for improving the X desktop. For example, D-BUS which is the new messaging system developed for KDE and GNOME, is a freedesktop.org project. Keith Packard and others are also developing a new X server under the freedesktop.org umbrella. This new X server already supports complete-back buffering of windows (each window gets its own buffer, like OS X, to make moving windows smooth and free of redraw) and window compositing (for transparency, shadows, other effects). They are also restructuring the driver API to support OpenGL independent of X, so the X server can sit on top of OpenGL and use it to accelerate drawing. At the same time, they are also introducing new extensions (Xfixes, XDamage, etc) to allow applications to access the extended features for the new server, as well as working on existing extensions (XRender) to improve their implementation (add acceleration via OpenGL, for example).

      --
      A deep unwavering belief is a sure sign you're missing something...
    6. Re:Too many damn x's! by Lozzer · · Score: 1

      Eh? Brimstone is a solid at room temperature. Do I win a Nobel prize? :-)

      --
      Special Relativity: The person in the other queue thinks yours is moving faster.
    7. Re:Too many damn x's! by Anonymous Coward · · Score: 0

      Uh... thanks for clearing that up.

      Now can someone explain what he just said?

    8. Re:Too many damn x's! by haroldhunt · · Score: 2, Insightful

      Actually, the line about X.Org was mostly true until a few days ago. X.Org has just been reformed as a group that individuals can join and contribute too without any sort of monetary contribution. The new X.Org is essentially like the GNOME Foundation. Open elections will be held within the next coming months and anyone is free to participate in the elections and/or run for a seat. freedesktop.org is actually involved in the reformation of X.Org; there is a lot of overlap between the two projects and who is working on them. The xlibs release is something that the memebers of the new X.Org are interested in and are moving to as the future of X.

      Harold

    9. Re:Too many damn x's! by Anonymous Coward · · Score: 0

      XWindows = Your Win98 box after you instaled Linux.

      X Protocol = The way the judge told you should behave in the presence of your X Wife.

    10. Re:Too many damn x's! by ndogg · · Score: 1

      A summary of the parent post for those that don't understand:

      xxxxxfreedesktop.orgxxxxxx

      --
      // file: mice.h
      #include "frickin_lasers.h"
    11. Re:Too many damn x's! by odie_q · · Score: 1

      You might have misunderstood the client/server part. X is just a server. Programs that want to display things connect to the X server. Thus, applications like xterm, mozilla or quake are the clients.

      Please disregard this post if this is what you meant.

      --
      ...ceterum censeo Carthaginem esse delendam.
    12. Re:Too many damn x's! by Daengbo · · Score: 1

      No, you get his eX-GF.

  23. Re:XFree86 Has Not Merged With X.Org ?? by Anonymous Coward · · Score: 0

    This is all political bollocks from Havoc. What do you expect?

  24. Re:Who uses Xlib by iabervon · · Score: 4, Informative

    Every single X program uses xlib directly or indirectly. So GTK always uses it, and QT uses it except when using a framebuffer directly or using some other underlying mechanism (like non-X11 Mac, IIRC).

    Chances are that X isn't what's crashing for you, but rather some program running under X (unless you have hardware problems, a bad driver, a corrupted X server, or something like that). X is also generally quite fast, but most programs (such as any that use GTK or QT, except for really recent ones) use it extremely badly.

    Actually, what is generally slow about X is that is doesn't have the drawing primitives that modern interfaces want to use, so they have to implement them inefficiently with the available primitives. Present development is helping to rectify this situation, however.

  25. Re:X is too bloated! by Narchie+Troll · · Score: 1

    It IS modular, you idiot.

  26. Actually,.... by Anonymous Coward · · Score: 0

    Actually, dBus is a very small bus. It get a full sized bus, you need to integrated it with Linux.

    (Ya, Ya, I've got way too much calculus on my mind these days....)

    1. Re:Actually,.... by Anonymous Coward · · Score: 0

      Wouldn't dBus, in that mindset, be the change between two busses?

    2. Re:Actually,.... by Anonymous Coward · · Score: 0

      Sorry, this bus doesn't accept change;-)

  27. Re:Who uses Xlib by evvk · · Score: 1

    Gdk easy versus Xlib? In your dreams. Have you ever tried raw Xlib? Gdk? Anything that uses gobject and the typical G-overengineering approach is awful.

  28. Re:Who uses Xlib by BrookHarty · · Score: 5, Insightful

    And X is NOT slow.

    He is right about X not being slow. The problem is the perception thats X is slow. X is what is visual to the user, users either blame KDE/Gnome or X.

    Take a pre-emptive low latency linux kernel and run X on it, its like night and day, its smooth, fast, which proves its not X but the kernel.

    Windows cheats and loads the gui extremely fast, but if you watch your hardrive light, and tool tray, you will noticed things are still being loaded in the background. The system is busy for a few more seconds. You can load an application, and it waits till after the services start.

    So, X seems slow compared to other OS's.
    1. Long delays to get into KDE/Gnome, and actually use the system.
    2. Slow response on user input.
    3. Multitasking, switching apps pause the system.
    4. Loading directories in ICON/Image view takes longer than windows.
    5. Lindows has everything running as Root for a speed boost.

    I predict we will see pre-emptive, low lantency kernels as standard on Mandrake and Suse. Preemptive kernels are now standard on 2.6.x (well, if you check the box). And even more pre-linking to help boot time.

    BSD has the same issues. Apple's X server does seem faster than both Linux & BSD. I'm only running window maker on it, so its not an exact match, but task switching and running gimp does seem more reponsive.

    Could the answer be the mach kernel osx uses? Maybe we need a new suite of benchmarks for user interaction. (os+X+wm/etc).
    -
    I code in my SecondLife

  29. Re:Nethack X is slow ... by Anonymous Coward · · Score: 3, Informative

    From The DCOP site:

    DCOP is built on top of the Inter Client Exchange (ICE) protocol, which comes standard as a part of X11R6 and later. It also depends on Qt, but beyond that it does not require any other libraries.

    So DCOP does depend on Qt. Also, it is written in C++, whereas the GNOME libraries are almost always written in C (I'm not saying this is better, this is just how it's been done). Until DCOP doesn't depend on Qt and gets a binding to C, I see no reason why the GNOME project shouldn't pursue DBUS. (Had to post as AC because I have bad karma...)

  30. yuo sunk my battleship! by Anonymous Coward · · Score: 0
  31. Re:Who uses Xlib by sfraggle · · Score: 2, Informative
    I'm not sure GTK/QT depends on Xlib. Correct me if I'm wrong.
    You are wrong.

    fraggle@yaffle:~$ ldd /usr/lib/libgtk-x11-2.0.so
    ...
    libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x402e8000)
    ...

    fraggle@yaffle:~$ ldd /usr/lib/libqt.so.3
    ...
    libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4081f000)
    ...
    --
    were you expecting to see a sig here? perhaps you'd rather see the inside of an ambulance!
  32. Re:3d interfaces are a joke. by temojen · · Score: 3, Informative

    Now, I know I'm responding to an Offtopic troll, but...

    OpenGL is an API for talking to a Vector and/or Raster drawing subsystem. It works for 3d and 2d drawing. Where hardware acceleration for vector drawing exists (ie most modern desktops) OpenGL can send the drawing commands direct to the Video Card, without rasterizing the result first. This means that vector applications (such as SVG rendering) can operate a whole lot faster, and are simpler to code.

    Where the application is not running on the same machine as the display, sending GLX vector commands rather than rasterized images can be much faster. Also, it does not load the machine significantly more than having application-side rasterization where acceleration hardware doesn't exist.

    So by working on OpenGL (which is mostly a server issue, not an XLib issue), developers are working on SVG, Animated Everything, and faster 2d.

  33. Not that you didn't search ... by _iris · · Score: 1

    ... but this page was the third result in a search for "D-BUS Linux."

  34. Re:Who uses Xlib by Anonymous Coward · · Score: 0

    Remember the ldd command:

    $ ldd /usr/local/kde/lib/libgt-mt.so
    $ ldd /usr/lib/libgtk.so

    The output will show you all the libs these depend on. libX11 is included.

  35. Re:Who uses Xlib by 13Echo · · Score: 1

    Alternately, many people are using crappy video drivers which make things slow (like vesa or fbdev). On my ATI Radeon, with proper drivers, X (with Gnome 2) is as fast as Win 2k ever was.

  36. Re:Who uses Xlib by Curtman · · Score: 2, Informative

    GTK on the framebuffer is quite nice. Aside from the nice transparency effects in the screenshots, it's really quick. Hopefully we'll see a LiveCD come along soon with GTK on DirectFB so people can evaluate it without jumping through a great many hurdles. I bet a great many GNU/Linux/BSD users don't need or even know about the many features of X11 like network transparency, let alone use them.

    I like to think DirectFB is to X11 as Hurd is to Linux. ( in design - not availability :) I could be wrong about that, but it seems to be more modular, and lightweight.

    With that said, congrats to freedesktop.org. They are becoming more and more valuable to our little community every day it seems.

  37. Re:Who uses Xlib by be-fan · · Score: 2, Informative

    Everyone. Right now, there are two ways to communicate with X-server.

    XCB - A new, low-level binding designed for big toolkits like Qt/GTK+ that can handle their own caching, buffering, etc.

    XLib - An older, higher-level binding originally released with X.

    Currently, almost all apps still use Xlib, as do all toolkits.

    --
    A deep unwavering belief is a sure sign you're missing something...
  38. Re:Who uses Xlib by Temporal · · Score: 0, Troll

    X is slow sometimes, and crashes to often at my site (twice a week)

    Impossible! Nothing unix-based ever crashes! You must be thinking of Windows.

  39. weird naming by abe+ferlman · · Score: 3, Funny

    Nothing happens when I issue the following command

    mount /dev/fd.o /mnt/floppy

    Am I using this wrong?

    --
    microsoftword.mp3 - it doesn't care that they're not words...
    1. Re:weird naming by Anonymous Coward · · Score: 0

      Completely OT, but I'll answer anyway.

      It's: mount /dev/fd0 /mnt/floppy

    2. Re:weird naming by rmsousa · · Score: 1

      fd.o is not the device. fd.o is the kernel module. The correct command would be:

      modprobe fd.o

      mount /dev/fd0 /mnt/floppy

      Xlibs depends on fd.o because of the FXS (Floppy X Server), which uses an array of floppy disk LEDS for display.

      BTW, if you are using 2.6, the name is fd.ko. Gnome people still rename it to fd.go though...

    3. Re:weird naming by kelnos · · Score: 1

      hear that? that's the sound of the joke flying _completely_ over your head ^_~

      --
      Xfce: Lighter than some, heavier than others. Just right.
    4. Re:weird naming by unborn · · Score: 1

      And yours as well!

      Proof:
      There is no FXS (Floppy X Server ) that uses floppy LEDs for display ( instead of a monitor )

    5. Re:weird naming by Anonymous Coward · · Score: 0

      Actually, it seems you're the one who missed the boat.

    6. Re:weird naming by kelnos · · Score: 1

      touche... that'll teach me to read only the first couple lines of a post and make assumptions...

      --
      Xfce: Lighter than some, heavier than others. Just right.
    7. Re:weird naming by ndogg · · Score: 1

      Actually, the correct command is:

      mount /dev/joke /mnt/funny

      --
      // file: mice.h
      #include "frickin_lasers.h"
  40. Re:Who uses Xlib by Anonymous Coward · · Score: 0

    That ought to make all the "X: no process killed" messages in your logs go away. kill needs a signal to send. ;)

  41. Re:Who uses Xlib by Curtman · · Score: 1

    Alas some of the world still doesn't see the benefit of free software. Apparently some people actually use the binary only video drivers from ATI and nVidia. If you do, you'll be crashing a lot more.

  42. Re:Who uses Xlib by xanadu-xtroot.com · · Score: 1

    Alternately, many people are using crappy video drivers which make things slow

    Thanx for bringing this up. I was about to say this exact thing (until I scrolled further and saw your post...).

    Throwing a crappy 5 year old PCI vidcard in a box to "try out" "Linux"* will indeed give a person a rather negative opinion of X. Personally, I had a nVidia TNT-2 in this machine and X ran far better than Windows ever dreamed of running on the exact same hardware (dual boot just for testing Windows). Got a lot better frame rates in q3a and RTCW as well. Now I have a gf4-ti4600 in this machine. I honestly have no idea how much Windows likes it, and personally don't care enough to find out, but this machine is really damn fast with teh card in. Had I shoved my old PCI VooDoo 3 card in here (where ever the hell it is), even with this being a PIV-2.4Ghz machine, X would be noticably slower.


    * I say "Linux", I'm really meaning anything other than Windows.

    --
    I'm not a prophet or a stone-age man,
    I'm just a mortal with potential of a super man.
  43. Re:Who uses Xlib by sloanster · · Score: 1

    never? um no - that's not quite right - Unixy OSes can crash in certain circumstances, including faulty hardware. In general though, Unixy OSes crash far less often than microsoft OSes.

    A typical unix/linux system running on sound hardware will simply run nonstop, as long as you want - for instance our linux mail/dns servers ran for about 2 1/2 years without a reboot, while the windows servers around them were not only rebooted scores of times, but had the OS reinstalled a few times as well.

    Just a data point for your consideration

  44. Re:Who uses Xlib by Anonymous Coward · · Score: 0

    the worse impression is given by opaque window resizing because there is not synchronization between the window manager and the application.

    So it works like this:

    (a) Xserver send resize command to WM

    (b) WM wakes up

    (c1) WM draws new windows border and send redraw event to the APP.

    (c2) During (c1), the mouse moved again so the Xserver send a new resize event to the WM.

    (d) There are now waiting events for the WM and the APP. The system is 'clever' and, most of the time select, the last active process which is the WM. Go to (b) and repeat ...

    So basically, during an opaque resize, the borders are redrawn 50 times per seconds while the count is redraw maybe 2 3 times par second.

  45. Share and WHAT?! by Feztaa · · Score: 1

    Share and enjoy!

    Are you Sirius?

    1. Re:Share and WHAT?! by akejay · · Score: 1

      After all, freedesktop.org *is* almost, but not quite, completely unlike Xfree86.

      --
      one, two, one two like a duck
    2. Re:Share and WHAT?! by Anonymous Coward · · Score: 0

      Sure, we're sirius. Sirius that you'll enjoy our product.

  46. How does this relate to XFree86 (Is it a fork?) by rmsousa · · Score: 3, Interesting

    Are the people at XFree86 maintaining xlibs also? Will this be imported back at XFree86? The release email says xlibs is actively maintained by fd.o (does this mean it is not actively maintained by xf86.org?), but does this mean fd.o will become the official version (i.e., the version bundled in the mainstream distros)? Or will they be two competing implementations?

    IIRC, Debian already uses libXft from fd.o (which is a bit obvious, as Keith Packard is in fd.o).

  47. Re:Nethack X is slow ... by Carewolf · · Score: 4, Informative

    AFAIK DCOP doesn't depend on Qt directly and has C-bindings. The problem is with depending on C++, and depending on Qt for communicating with KDE-programs. Many KDE-programs uses the Qt-internal structures to stream over DCOP, that makes it very difficult to communicate with them without Qt.

  48. Re:Who uses Xlib by Anonymous Coward · · Score: 0

    NT4 and above cheat even more than you think. They run the gui driver subsystem in ring 0, same level as the kernel. Happened around NT3.51. This is a lot of where the perception that windows is 'buggy' comes from. A bad video driver in this area can take out a system FAST. Before this the gui was a PIG in NT. It ran at the same level as the user. It was a trade off, Speed for 'stability'. At one time you could actually crash the gui subsystem and restart it. Now where its at if it crashes its BSOD time.

    I would be willing to bet Apple did something similar as NT4. But they have an advantage. They have like 4 different video chipsets to support? They can afford to make the gui stable with a bit of time. Windows and Linux have hundreds. So it would take them quite a bit longer to make it work right. Which is why you see things like 'certified' drivers.

    With the newer kernels linux giving up more time to user space it should help quite a bit.

    Also perception sometimes can work for you. People after about 4-10 seconds start wondering what the computer is doing. So putting something in front of the user is sometimes a good thing for long operations. Even though it will still take the same amount of time or even a tad longer. The user 'feels' like it is faster. Even though you can take a stopwatch out and time it and takes exactly the same amount of time.

    I agree with you on the X is not slow thing. That is a perception. Not sure where it came from. I have seen NO numbers that prove one way or the other that X is slow. In relation to what? To take a measurement but have it in no sort of relation to anything is dumb. Even then you have to be carefull as to what you are comparing against.

  49. Re:XFree86 Has Not Merged With X.Org ?? by asobala · · Score: 2, Informative

    The way I understand it, Havoc Pennington said that several X.org and XFree86 developers were working together. This was misinterpreted by journalists as the projects working together.

    Hmmm.

  50. Re:Who uses Xlib by Anonymous Coward · · Score: 0

    I'm afraid that your sarcasm detector seems to be broken.

  51. Re:Who uses Xlib by be-fan · · Score: 1

    I've been using my binary NVIDIA drivers for years, on a number of different platforms, and only with the earliest releases did I have X server crashes.

    --
    A deep unwavering belief is a sure sign you're missing something...
  52. Re:Who uses Xlib by furballphat · · Score: 1

    DESCRIPTION
    killall sends a signal to all processes running any of the
    specified commands. If no signal name is specified,
    SIGTERM is sent.

    manpages win again

  53. Re:Who uses Xlib by Curtman · · Score: 1

    You're lucky then. The smallest of changes to my setup broke mine. I bought a ATI with an R100 because of it, and life has been good ever since.

  54. Re:XFree86 Has Not Merged With X.Org ?? by mark_space2001 · · Score: 1
    It sounds more like they forked to me.

    As in: "Somebody stuck a fork in XFree86, I think they're done." ;)

  55. Re:Who uses Xlib by Anonymous Coward · · Score: 0

    Please take your Linux-centricity and shove it up your ass, kind sir.

  56. Re:Who uses Xlib by kelnos · · Score: 1

    having and understanding a sense of humour is good for your mental health. seriously, is this "i don't get sarcasm" day on /.?

    just a data point for your consideration ^_~

    --
    Xfce: Lighter than some, heavier than others. Just right.
  57. Re:Who uses Xlib by be-fan · · Score: 1

    I'm curious, what kind of hardware have you used it on?

    I have used it on:

    Pentium II 440LX chipset (Riva TNT)
    Athlon XP SiS 730 chipset (GeForce2 MX)
    Pentium 4 845M chipset (GeForce4 Go 440)

    I don't use Xinerama or TV out very often.

    --
    A deep unwavering belief is a sure sign you're missing something...
  58. Re:XFree86 Has Not Merged With X.Org ?? by Nahor · · Score: 1

    I don't know, what day is it?

  59. Accelerated Desktop by Anonymous Coward · · Score: 0

    I've read that OSX and Windows XP (perhaps NT/95/98/2K also?) have a "hardware accelerated desktop". Can someone define what that means and how it compares to X? I've noticed that regardless which drivers I use with Linux (built-in or downloaded), my window movement and resizing is (at times) still kind of choppy whereas with Windows, it's instant.

    1. Re:Accelerated Desktop by sirReal.83. · · Score: 2, Informative

      i don't know about windows, but osx uses GL for most/all graphics. fdo's xserver aims to do the same thing. it's a completely new X server based on keithp's kdrive. afaik xfree doesn't use GL for anything 2D.

    2. Re:Accelerated Desktop by be-fan · · Score: 1

      Argh.

      OS X uses GL only for window compositing!!! Its in Apple's Siggraph presentation! All drawing is done via Quartz 2D, which is rendered in software. Bit-blit acceleration is used for scrolls and drawing pixmaps.

      --
      A deep unwavering belief is a sure sign you're missing something...
    3. Re:Accelerated Desktop by sirReal.83. · · Score: 1

      Argh. Thanks ;)

  60. Re:Who uses Xlib by Curtman · · Score: 1

    I don't recall the motherboard, it was in a box at my former employer. I contacted nVidia support, who told me I was experiencing a "known bug", and it would probably be fixed in a future release. Three months later, I tossed the card and got one with free drivers.

    My next experience with binary drivers in Linux was last month, with the ATI one trying to help a friend who was trying Linux out. (That one was a Gigabyte board with the KT400 chipset) After a week in, he told me "Linux sucks because it crashes more than Windows ever did", and his TV tuner didn't work. I switched him to Gatos, and he's very happy now.

    Once bitten, twice shy. Twice bitten, I'm full of spite.

  61. Nyet! by Anonymous Coward · · Score: 0

    Non!

  62. Re:XFree86 Has Not Merged With X.Org ?? by haroldhunt · · Score: 4, Insightful

    The headline that got put on the press release was misleading. The reality is that X.Org has been reformed to be more like the GNOME Foundation. There will be open elections to appoint a board. Votes will no longer be obtained through monetary contributions; in other words, any one can have a vote and be elected, no matter their affiliation. The actual information handed out by X.Org should be posted on their site in the next few days, which includes the mission statement and aims of the project.

    Some developers that have at one time or another been associated with XFree86 are participating in the reformation of X.org. How that translated into "XFree86 and X.org have mereged" in the headline is beyond me.

    Harold

  63. Re:Who uses Xlib by bonch · · Score: 1

    Windows cheats and loads the gui extremely fast, but if you watch your hardrive light, and tool tray, you will noticed things are still being loaded in the background. The system is busy for a few more seconds. You can load an application, and it waits till after the services start.

    So, you're saying X by itself is as slow as both Windows AND its services loading up?

    I don't know about you, but my Linux services get loaded before X starts up.

  64. Longhorn by bonch · · Score: 1

    Longhorn's GUI will be Direct3D-accelerated. They haven't unveiled the new "3D photorealistic" interface yet and don't plan to until release--to avoid copiers, they claim.

  65. Re:XFree86 Has Not Merged With X.Org ?? by bonch · · Score: 1

    You're kidding, Slashdot got it wrong?

    I'm going to go now and boot up my Windows Media Center PC more quickly using Linux!

  66. Re:Who uses Xlib by molnarcs · · Score: 1

    ...Could the answer be the mach kernel osx uses?...

    Besides having drivers, as others have mentioned, Apple also did some (proprietary: not available for the publick) work on their implementation of the X server. Could be that. I can't be more specific (read: don't know more), but there was a link to an article here on ./ about OS X some time ago (search apple section, its a long but very detailed article) where this was mentioned.

  67. Re:Who uses Xlib by cheesybagel · · Score: 1

    The worst thing about X is colour management. GDK does it better, but it still isn't good enough. Also, most of the time you just want to draw in RGBA format and X11 is a pig for this sort of thing.

  68. Things That Happen When You Say X-Windows by SimHacker · · Score: 3, Offtopic
    I was digging through some old papers, and ran across a 15 year old "XNextEvent" newsletter, "The Official Newsletter of XUG, the X User's Group", Volume 1 Number 2, from June 1988. Here's an article that illustrates how far the usage of the term "X Windows" has evolved over the past 15 years. (Too bad The Window System Improperly Known as X Windows itself hasn't evolved.)

    Someone on slashdot asks, " Why is it still called X-Windows?".

    Predictably, the first reply says: "It isn't. It's called 'The X Window System.' Or simply 'X'. 'X Windows' is a misnomer."

    He didn't ask why it is "X-Windows". He asked why it's called "X-Windows". You're wrong that it isn't called "X-Windows". It is! It's just that it isn't "X-Windows". Being something is independent of being called something.

    The answer to the question 'Why is it still called X-Windows?' is: It's still called X-Windows in order to annoy the X-Windows Fanatics, who take it upon themselves to correct you every time you call it X-Windows. That's why it's called X-Windows.

    The following definitive guide to the consequences of saying "X Windows" is from the June 1988 "XNextEvent" newsletter, "The Official Newsletter of XUG, the X User's Group", Volume 1 Number 2:

    Things That Happen When You Say 'X Windows'

    THE OFFICAL NAMES

    The official names of the software described herein are:

    X
    X Window System
    X Version 11
    X Window System, Version 11
    X11

    Note that the phrases X.11, X-11, X Windows or any permutation thereof, are explicitly excluded from this list and should not be used to describe the X Window System (window system should be thought of as one word).

    The above should be enough to scare anyone into using the proper terminology, but sadly enough, it's not. Recently, certain people, lacking sufficient motivation to change their speech patterns, have fallen victim to various 'accidents', or 'misfortune'. I've compiled a short list of happenings, some of which I have witnessed, others which remain heresay. I'm not claiming any direct connection between their speech habits and the reported incidents, but you be the judge... And woe betide any who set the cursed phrase into print!

    You are forced to explain toolkit programming to X neophytes.

    Bob Schiefler says, "You should know better than that!"

    The Power Supply (and unknown boards) on your workstation mysteriously give up the ghost.

    Ditto for the controller board for the disk on your new Sun.

    Your hair falls out.

    xmh refuses to come up in a useful size, no matter what you fiddle.

    You inexplicitly lose both of your complete Ultrix Doc sets.

    R2 won't build.

    Bob Schiefler says "Type 'man X'".

    Your nifty new X screen saver just won't go away.

    The window you're working in loses input focus. Permanently

    -Don

    --
    Take a look and feel free: http://www.PieMenu.com
  69. Re:Not that X is slow ... BUT IT IS! by SimHacker · · Score: 1
    Don't you think that after 15 years somebody would have gotten around to doing some "optimisation and consolidation", if there was any possible way to fix how broken X-Windows is without also breaking all the horrible client programs that use it?

    -Don

    --
    Take a look and feel free: http://www.PieMenu.com
  70. Re:Who uses Xlib by Anonymous Coward · · Score: 0

    Someone send this to NASA engineers, they forgot it in Spirit.

  71. X-Windows: The 1st Fully Modular Software Disaster by SimHacker · · Score: 0, Troll
    Uhhh, yeah, whatever you say, Narchie Troll:

    X is modular.

    George W Bush is a Compassionate Conservative.

    Iraq has stockpiled of Weapons of Mass Destruction.

    The British government has learned that Saddam Hussein recently sought significant quantities of uranium from Africa.

    Nobody ever bothers to check the facts that Bush says in his State of the Union Address, so all emphatic misstatements of fact are purely accidental, and certainly not intended to mislead.

    You're Unamerican for suggesting that Bush is a liar.

    The Iran/Contra scandal wasn't about trading Arms for Hostages.

    OJ Simpson didn't do it.

    Got any more good ones for us?

    -Don

    --
    Take a look and feel free: http://www.PieMenu.com
  72. What is X-Windows? by SimHacker · · Score: 0, Flamebait
    No duh. I've heard of all that stuff. But you forgot to define X-Windows! So what is this X-Windows thing that everybody's been talking about???

    -Don

    --
    Take a look and feel free: http://www.PieMenu.com
    1. Re:What is X-Windows? by afree87 · · Score: 2, Funny

      It's a stupid graphical system that inverts the meaning of client and server. It needs a client (or is it server?) like XFree86 to run on your computer and display an ugly, useless black-and-white screen. It needs software like xterm to do anything with. It needs a window manager like TWM, FVWM or Metacity to actually move around windows. It needs a windowing system like KDE or GNOME to be presentable.

      What it does by itself is anyone's guess. Probably low-level graphics calls.

    2. Re:What is X-Windows? by Narchie+Troll · · Score: 1

      X-Windows is what ignorant idiots call the X Window System.

      And to the sibling post, it is only "stupid" if you're a fucking cocksucker.

  73. Re:Not that X is slow ... BUT IT IS! by be-fan · · Score: 1

    But its not. X is very fast. You can run benchmarks yourself. For stuff like bitblits, X is as fast as DirectDraw (quite an accomplishment for a generalized graphics system!) On my machine, X can copy around ~2GB of 100x100 pixmaps per second, which makes for a bandwidth utilization of about ~4GB/sec. That's pretty close to the maximum memory bandwidth of my graphics card, which is 6.4GB/sec.

    X has been quite fast in practice too. SGI shipped a very high-performance X implementation. The main issue is that until recently, there wasn't a lot of interest on X machines on the desktop, even that little interest was in the workstation market, where absolute performance matters more than the responsiveness of the UI. Now that there is interest on putting X on the desktop, people are working on making it more suitable for that role.

    --
    A deep unwavering belief is a sure sign you're missing something...
  74. X is extremely inefficient on the network. by SimHacker · · Score: 1
    You completely miss the point by bringing up the red herring of your graphics card performance, and ignoring the distributed architecture of X-Windows, and how it was designed to be used.

    X-Windows was designed to be a distributed window system, to operate over the network.

    Yet it was foolishly not designed to support extensibility: dynamically downloading code to the server to perform local input processing, feedback and graphics, and to vastly reduce the amount of network traffic.

    If your web browser had to perform a round trip to the web server each time you press a key, would you say that's a good efficient design? Nope. Would it matter that your graphics card can blit ~2GB of 100x100 pixmaps per second? Nope.

    -Don

    --
    Take a look and feel free: http://www.PieMenu.com
    1. Re:X is extremely inefficient on the network. by be-fan · · Score: 1

      X-Windows was designed to be a distributed window system, to operate over the network.
      ---
      Yep.

      Yet it was foolishly not designed to support extensibility:
      ---
      Yes it was. Might want to clarify your definition of "extensibility."

      dynamically downloading code to the server to perform local input processing
      ---
      Input processing is handled by the application. There is no need to download code into the server to do this. You need a safe language to do this (to avoid crashing the server with bad downloaded code), and I don't know if a lot of people would be willing to write their X code in Lisp.

      feedback and graphics, and to vastly reduce the amount of network traffic.
      ---
      X is an immediate-mode graphics API. Experience with OpenGL has shown that the rendering needs of applications are just too varied for canned, server-side drawing routines to be practical. Plus, you're just moving the bottleneck. A server-side widget handling, say, the display of a spreadsheet needs extensive data from the application, so if the display widget is server-side, you have to ship all that data over the network.

      If your web browser had to perform a round trip to the web server each time you press a key,
      would you say that's a good efficient design?
      ---
      I wouldn't say that, but X doesn't do that. Input and output are both heavily buffered. Applications still perform lots of roundtrips, but many of those are needless, and the problems are being fixed in the toolkits. For example, there used to be a lot of problems with round-trips while interning atoms at apps startup, and now, toolkits like Qt buffer atom interning during app startup, and intern them all at once with one round-trip. Further down the road, XCB is being designed to be very low-level, to allow toolkits to take maximum advantage of the protocol.

      --
      A deep unwavering belief is a sure sign you're missing something...
    2. Re:X is extremely inefficient on the network. by SimHacker · · Score: 1
      Input processing is handled by the application.
      What do you mean by "is"? "Should always be in every case"? Or "X-Windows has always forced us to do it this way"?
      There is no need to download code into the server to do this.
      Says who? I certainly see a need. Would you want to run an X-Windows server on a cell phone, where you have to pay for bandwidth and wait for round trips? Nope.

      A NeWS-like architecture is much more efficient for implementing distributed applications on cell phones, because it permits the application to download executable code to the phone, saves the user time and money, as provides a high quality, responsive user interface.

      X-Windows simply makes no economic sense, unless you're a workstation or network switch vendor, intent on tricking your customers into gobbling up all of their resources, so they have to buy more equipment from you.

      You need a safe language to do this (to avoid crashing the server with bad downloaded code), and I don't know if a lot of people would be willing to write their X code in Lisp.
      Have you ever heard of a language called "JavaScript"? In case you never heard of it, believe me: there are a lot of people willing to download JavaScript code. Why, you may even be downloading and running JavaScript code right now, and not even realize it! Why yes, JavaScript is quite a lot like Lisp, thank you. Welcome to 2004!

      X-Windows Fanatics simply don't realize that the world has moved on and left them far behind, years ago.

      In case it's not obvious: The web browser / http server model IS a NeWS-like architecture. NeWS proved James Gosling's point years ago. He was right. He went on to develop Java, but ironically, in the end JavaScript won out as the client-side extension language of the web, while Java is popular on the server side. (Note that the definitions of "client" and "server" have switched place, which may explain why it's not obvious to some people that NeWS's architecture won).

      So now we're all using HTML and JavaScript instead of PostScript, web browsers instead of NeWS servers, web servers instead of NeWS clients, http instead of the NeWS Wire Service.

      Microsoft learned and understood the lessons of NeWS, which were lost on the X-Windows Fanatics, who thought they had killed it off for good, and that nothing like NeWS would ever happen again.

      Then it happend: the World Wide Web.

      Fast-Forward to 2004...

      Linux is a failure on the desktop because of X-Windows. Anyone who truly loves Linux should hate X-Windows, for the tragic harm it's done to our beloved Linux.

      Linux is the victim in this relationship. Where X-Windows has succeeded as a Geigeresque Parasite firmly strapped to the face of the Linux desktop, the victim has suffed grave harm and lost potential, and is in deadly danger of becoming irrelevant.

      SCO needs no business plan, no products, no court case, no legal briefs: Microsoft and SCO need only stand by and cheer as X-Windows slowly strangles the life out of Linux's last hope on the desktop.

      Even if the effort to remove the X-Windows Parasite from Linux were to succeed, what mutated monsterous mechanisms (not policies!) will come bursting out of Linux's chest, once the evil eggs it's laid in the hearts and minds of Linux programmers hatch?

      -Don

      --
      Take a look and feel free: http://www.PieMenu.com
    3. Re:X is extremely inefficient on the network. by Anonymous Coward · · Score: 0

      You'd better shut your mouth, because when you disagree with Don Hopkins, he sues you for libel and subpoenas all your friends!

      Ymmv, but that's the way i've seen it in the past.

    4. Re:X is extremely inefficient on the network. by be-fan · · Score: 2, Insightful

      What do you mean by "is"? "Should always be in every case"? Or "X-Windows has always forced us to do it this way"?
      ---
      X makes you do input-processing application-side, but that doesn't really introduce an inefficiency. The data rate of a mouse/keyboard even uncompressed never approaches more than 100 bytes/second. That's really not a bottleneck for the roles X is aimed at.

      Says who? I certainly see a need. Would you want to run an X-Windows server on a cell phone, where you have to pay for bandwidth and wait for round trips? Nope.
      ---
      Probably not. But nobody is trying to remote X over a cell-phone link. However, X is quite usable over a low-bandwidth link, given an appropriate compression technology.

      A NeWS-like architecture is much more efficient for implementing distributed applications on cell phones, because it permits the application to download executable code to the phone, saves the user time and money, as provides a high quality, responsive user interface.
      ---
      Maybe, but cell-phone applications would necessarily have to be a lot-more limited than general-purpose desktop apps.

      Have you ever heard of a language called "JavaScript"?
      ---
      Yes.

      In case you never heard of it, believe me: there are a lot of people willing to download JavaScript code.
      ---
      If you can convince app developers to write their code in Javascript, than more power to you. But that's where I was getting at with the Lisp comment. To be really practical for modern desktop apps, you'd have to use something a lot faster than Javascript. For stuff like HTML rendering, there is a large computational bottleneck. Thus, you'd need a safe, yet fast language.

      In case it's not obvious: The web browser / http server model IS a NeWS-like architecture.
      ---
      To tell the truth, the web-browser, http-server model is working just fine on top of X. The needs of an internet-based system are very different from a local/network-based system, and I really see little advantage to a NeWS style system targeted at the markets X is aimed at.

      The main problem with your HTML/Javascript example is that it only works well because all applications use the same basic display logic (HTML/CSS). However, desktop applications in general do *not* use the same basic display logic. The display logic of a text-editor is very different from the display-logic of a photo editor. If you want to implement this differing display logic in a NeWS-style system, you end up loading large amounts of complex display code into the server. And to feed that display logic, you end up shipping large amounts of data over the wire.

      - additional ranting deleted -
      ---
      There is no indication that X is holding back Linux on the desktop. What's holding back Linux on the desktop are ease of use and application support. X is quite competitive with the other two desktop systems out there (OS X's and Win XP's). With the freedesktop.org work, it'll be highly competitive with future UIs like Longhorn.

      --
      A deep unwavering belief is a sure sign you're missing something...
  75. Re:X-Windows: The 1st Fully Modular Software Disas by Anonymous Coward · · Score: 0

    I assume you're not the real don hopkins, because he would know that X is modular...

  76. 4Sight by SimHacker · · Score: 2, Interesting
    "SGI shipped a very high-performance X implementation."
    You must be talking about 4Sight, SGI's window server that integrated both X11 and NeWS 1.1 (Network extensible Window System). Thanks the NeWS, clients could make efficient use of the network bandwidth by downloading PostScript programs into the server, which executed locally and only sent responses over the network when absolutely necessary.

    In 1988, I helped develop the NeWS driver for UniPress Emacs. James Gosling wrote UniPress's version of Emacs, as well as the NeWS window system itself. UniPress Emacs ran quite nicely on 4Sight. Emacs downloaded code to handle all the pop-up menus (pie menus or linear menus -- you could decide) and text selection feedback locally in the server.

    After Emacs draws the text on the screen, it downloads a short array of numbers telling the server how many characters wide each line is, so the code running in the server knows just what it needs to give local text selection feedback.

    So when you press down and drag to select text in emacs, the selection feedback is instantaneous even if you're running over a low speed dial-up connection. When you release the button or move the cursor outside of the scroll region, only then does it send a message back up to Emacs telling it to select the text, or initiate autoscroll.

    How would you do that in X-Windows? Please explain your approach to extending the X-Windows server to support local text selection in emacs (and local pop-up menus while you're at it), without any unnecessary network traffic?

    -Don

    --
    Take a look and feel free: http://www.PieMenu.com
    1. Re:4Sight by be-fan · · Score: 1

      How would you do that in X-Windows? Please explain your approach to extending the X-Windows server to support local text selection in emacs (and local pop-up menus while you're at it), without any unnecessary network traffic?
      ---
      You most likely cannot do it in X Windows. But the needs of applications have changed a great deal since then. Consider doing text and graphics highlighting on an HTML page. HTML layout is extremely complex, and the layout data can be very large. Instead of a simple array of integers, you'd have to send all that layout data over the wire.

      Or, consider modern widget-sets. All of them use a layout-engine architecture. It would be impractical to put that logic server-side, because that moves a whole lot of code out of the client into the server. Thus, modern applications would end up using a NeWS-style system just as they use X11, as a simple graphics engine.

      --
      A deep unwavering belief is a sure sign you're missing something...
    2. Re:4Sight by SimHacker · · Score: 1
      You most likely cannot do it in X Windows. But the needs of applications have changed a great deal since then. Consider doing text and graphics highlighting on an HTML page.
      Which brings us back to my point, that "doing it on a web page" is using a NeWS-like architecture.

      So what possible advantage is there to have the enormously complex layer of X-Windows in there, between the web browser and the operating system?

      X-Windows is not solving any problems, if it's just introducing another huge layer that gets you nowhere towards you goal of "doing it on a web page".

      X-Windows was a failure as a distributed window system. The fact that you're using this realtime interactive distributed multiuser application called Slashdot via HTTP instead of X Protocol, illustrates my point.

      -Don

      --
      Take a look and feel free: http://www.PieMenu.com
    3. Re:4Sight by be-fan · · Score: 1

      Which brings us back to my point, that "doing it on a web page" is using a NeWS-like architecture.
      ---
      Huh? I'm talking about rendering the web-page itself. Consider doing text-highlighting of an HTML page server-side. Its doable if you build-in all the logic of displaying a web-page into the server. For every application that has different display logic (word processor, spreadsheet, etc), you have to download all that display logic into the server. And you have to send large amounts of data over the wire to feed that display logic.

      So what possible advantage is there to have the enormously complex layer of X-Windows in there, between the web browser and the operating system?
      ---
      Because people want to run more than just web browsers? HTML is essentially a form of (flexible) structured graphics. Structured graphics are very appropriate for certain types of applications, but history has shown that the rendering needs of apps are just too different for a structured API to be the primary graphics interface.

      X-Windows is not solving any problems, if it's just introducing another huge layer that gets you nowhere towards you goal of "doing it on a web page".
      ---
      X is just a rendering layer. It draws graphics on the screen. You have to put pixels in the framebuffer somehow, and X is as good a way of doing it as any.

      --
      A deep unwavering belief is a sure sign you're missing something...
    4. Re:4Sight by Daengbo · · Score: 3, Insightful

      I think, right now, you're looking more like the fanatic.

  77. Great, now what? by XMichael · · Score: 0

    Ok I'm thrilled about this! So can anyone tell me, what or why I'd want to use these libs? (-:

  78. Unified OO system by Anonymous Coward · · Score: 0

    What about a unified OO system?
    Mozilla & OpenOffice use separate systems.
    Seems overkill.
    Use 1 CORBA system, built XFree upon it and then Mozilla, OpenOffice.

  79. Sort of like 'Quartz Extreme'? by MarcQuadra · · Score: 1

    That's how Quartz Extreme works, the entire screen is rendered by OpenGL, and the windows themselves are OpenGL textures. This is a lot faster (on modern video busses and cards) than trying to do all the eyecandy and GUI-related tricks on the CPU and drawing to the video card.

    What I can't wait for from OSX, Longhorn, and is an OpenGL/DirectX rendered display that also implements a vector-based system, so I can run my 19" display at maximum resolution and get finer, smoother text and widgets, not unreadably small ones.

    The way display managers should work in this day and age is to set the maximum resolution that works on your display, pop a rectangle on screen and say 'measure this rectangle with a ruler and enter it's real legnth in this text box'.

    --
    "Sometimes, I think Trent just needs a cup of hot chocolate and a blankie." -Tori Amos on Nine Inch Nails
    1. Re:Sort of like 'Quartz Extreme'? by bonch · · Score: 1

      Apparently Longhorn is supposed to do that. Even older pre-Longhorn apps will be properly scaled, though I'm sure Longhorn-compiled apps will enjoy much richer visual improvements.

    2. Re:Sort of like 'Quartz Extreme'? by MarcQuadra · · Score: 1

      I wonder if screen artifacts like lines, rectangles, and font letters will be rendered as polygons by the GPU or if they'll be rendered by the CPU to a texture. I guess put another way, will the vector scaling be handled by the GPU or the CPU?

      --
      "Sometimes, I think Trent just needs a cup of hot chocolate and a blankie." -Tori Amos on Nine Inch Nails
  80. Re:Who uses Xlib by Spoing · · Score: 1

    Who modded this up? It's 90% hooey!

    --
    A firewall can not protect you from yourself. Turn off what you do not need. Do not use the firewall to do your work.
  81. Re:Who uses Xlib by Anonymous Coward · · Score: 0

    The correct troll is "I don't use Linux... you insensitive clod!"

  82. Re:Who uses Xlib by Anonymous Coward · · Score: 0

    Such a friendly community.

  83. That's the point by brunes69 · · Score: 1

    IMHO, every major C project should use glib

    ..which is why DBUS should *certainly* not depend on it, if they want the C++ projects like KDE to use it. Using Glib in KDE is pointless, since you have Qt which can do everything GLib can do already, arguably better.

    1. Re:That's the point by Pseudonym · · Score: 1

      In C++, the standard library does almost everything that GLib does, and arguably better.

      While there are a few things which are not so platform-agnostic which GLib does that the C++ standard library doesn't (like handling dynamic libraries), there are a lot more things that the C++ standard library does that GLib doesn't. Just typing "sort" and letting the library optimise it depending on whether it's called on a dynamically-sized array, doubly- or singly-linked list or a funky container which you just wrote at compile time is kinda funky.

      --
      sub f{($f)=@_;print"$f(q{$f});";}f(q{sub f{($f)=@_;print"$f(q{$f});";}f});
    2. Re:That's the point by ajs · · Score: 3, Insightful

      A C++ program can rely on a glib-based C library just as easily (perhaps somewhat easier, due to the consistent object model) as on any other C library. There is no problem here at all.

      "Using Glib in KDE is pointless"

      Using glib in DBUS is not however, and using DBUS in KDE is not... moot point. Also keep in mind that KDE's reliance on C++ and C++'s platform difficulties (SOME of which went away with the finalization of the ANSI standard a few years back) was exactly the reason that Sun had to choose Gnome as their desktop, even though they prefered KDE at the time. They had to support two compilers though, and if you can't lock customers into a compiler, C is the only way to fly (Java is as close as it gets otherwise, and it might be ok after another decade or two to mature).

      I'm not language zeloting here... I see the value of C++ accedemically, but building software in it DOES cut you off from the rest of the world in the sense that the many, many thousands of C-based software projects and products in the world then have a hard time making any use of you at all.

    3. Re:That's the point by Carewolf · · Score: 1

      No apparently the rest of the world cuts is itself off from you.

      It is as easy to use C++ libaries in C as it is to use glib in C++. Both has a foreign object model that needs to be bridged.

      Only problem with C++ from C is name-mangling, but it can be overcome by simple C-bindings.

    4. Re:That's the point by ajs · · Score: 1

      There is no glue code required for a C++ program to use a C program, but there is (potentially extensive) glue required before I can use a C++ API from C. Let's just assume that we're not even talking about C++ that dips deeply into the STL, since then it gets even harder.

      Not saying that you don't want to write C++ that is C++ rather than C-compiled-by-a-C++-compiler, I'm just saying that you introduce a layer of diffuculty in using libraries.

      I use Perl a lot, so I understand when and where you want to decide that you don't care about all of that, and you just want to write the code fast.

  84. Mod parent down... -1 Incorrect by brunes69 · · Score: 1

    This is hogwash. DBUS is written in pure C (not C++), it does not depend on GLib *OR* Qt. It just ships with bindings for GLib (and soon Qt as well).

  85. Re:Nethack X is slow ... by Anonymous Coward · · Score: 0

    What are you talking about? Look at the API documentation for dcop, and pay attention to everything with a Q in front of it, things like QString, QCString, QByteArray, QDataStream, etc. These are all from Qt. You can tell this yourself, because they all link back to Trolltech's documentation. If you are more adventurous you can look at the dcop source in kdelibs-3.x.y/dcop and see that it directly relies on Qt.

  86. Re:Who uses Xlib by sloanster · · Score: 1

    Actually I DO use nvidia drivers - best drivers available for linux BTW. and I just don't see the crashes, sorry - it's solid, on 2 machines at home and 1 at work - and that's giving X a good workout - mozilla all day, OpenGL screensavers when I'm away from my desk, occasional quake 3 arena, ut2003, videos with mplayer, lather rinse, repeat - and no crashes.

  87. Mod parent down... -1 Illiterate by Anonymous Coward · · Score: 0

    WTF? The post you referenced was talking about DCOP being written in C++ and depending on Qt. It later implied that D-BUS was written in C (like the rest of GNOME).

    RTFC

  88. It maybe fast on your 1.5ghz 512mb computer by Via_Patrino · · Score: 1

    I'm not flame baiting, it depends what you're using to say it's fast.

    I ran X on a 300mhz computer, i use blackbox (you can't blame desktop) X takes sometime to load.

    Now a second proof, run Xfree 3.3.6 4.1.0 and 4.3.0 , run top each time, and you see how bloated it became, 4.3 use at least 4 times more memory than 3.3.6. that dramaticly reduces speed on a 128MB machine (mine) and is a nightmare for a 32MB one (i administer 4 of them, poor country).
    A lot of friends have similar machines to mine: about 350mhz 128ram

    If developers use high end machines and not real word machines, anything will be fast for them, even MSWindows XP

  89. Re:Nethack X is slow ... by puetzk · · Score: 1

    Although the KDE implementation of the dcopserver and the kdelibs client libs both use Qt data types, dcop data is carried over libICE (which is an X lib), and the wire protocol is also quite easy to deal with from C-only - unless you want to send a complicated Qt object to a KDE app (ie, something more complex than a simple string/int/bool/struct of such - QPixmap is the one that occasionally comes up). It would not be terribly hard to write a C-only client lib (instead of the existing C bindings that still indirectly use the KDE implementation) that didn't use Qt at all, and writing a C-only dcopserver would be easier than something entirely new.

    Nothing fundamental about DCOP relies on Qt, just the current implementation (understandable since it came from KDE - same as it would use glib if it had come from GNOME). Rewriting things that your toolkit provides for free is bad practice, though keeping them out of your wire protocol is good for compatibility and future-proofing.

    On the other hand, freeing DCOP from X would be harder, since libICE is a more fundamental dependency. And one of the cooler possibilities of dbus is the prospect of hooking in kernel events, events from other system daemons, etc. So on the whole dbus looks like it has some promise, if enough of the new possibilities it opens up for integration between GUI and non-GUI tasks actually materialize..

    --
    The Matrix is going down for reboot now! Stopping reality: OK. The system is halted.
  90. Re: Not that X is slow by Foktip · · Score: 1

    What happens when DBUS is speeding? It doesn't get pulled over! Thats because DCOP is too slow to catch DBUS!

  91. Re:Who uses Xlib by Anonymous Coward · · Score: 0

    How on earth did you get X to run that slow?

    X/Linux on my 600 MHz PC at home ran faster than Windows 2000 on my old 850 MHz PC at work.

    X/Linux on my 600 MHz PC at home runs faster than Windows XP on my new 2400 MHz PC at work.

  92. Re:Who uses Xlib by Curtman · · Score: 1

    Best of luck to you when nvidia's support stops, Xfree upgrades, and you've got no driver though. No source is no good.

  93. About window system architecture by SimHacker · · Score: 1

    X makes you do input-processing application-side, but that doesn't really introduce an inefficiency.

    You are quite incorrect, sir.

    The data rate of a mouse/keyboard even uncompressed never approaches more than 100 bytes/second. That's really not a bottleneck for the roles X is aimed at.

    It's the round trip time, not the data rate, that causes the delay. Sluggish mouse tracking is very noticeable, and makes interactive applications impossible to use. Try running GIMP over a modem -- it's unusable!

    The application also has to send graphics commands back down to the server in response to mouse motion, which you have neglected to account for in your bytes/second calculation.

    So why not just download a graphics editor into the window server, so any other application can easily reuse it as a plug-in component? Then any trivial application (like the clock) could incorporate a fully functional graphics editor (so you could edit the graphics used for the face and hands). You could use a customizable clock over a slow network connection, because it would not have to send the same complex graphics commands each second to redraw the face and hands -- in fact the entire clock could run in the window system itself without requiring another process like XClock.

    Am I crazy for suggesting incorporating a graphics editor into the window server, just for a silly clock? Well why not? It's been done before.

    The HyperLook user interface system, which was based on NeWS, had a fully functional PostScript graphics editor component that ran in entirely within the NeWS server.

    You could implement distributed objects with PostScript graphics that download data to the NeWS server, where it's locally rendered as scalable PostScript graphics, without generating any unnecessary network activity.

    Ordinary users could use the graphics editor to create custom skins with structured PostScript graphics. With the built-in user interface editor, you could totally reconfigure the user interface while it was running.

    HyperLook illustrates why I think it's important to be able to download code into the user interface and process input locally.

    But nobody is trying to remote X over a cell-phone link. However, X is quite usable over a low-bandwidth link, given an appropriate compression technology.

    You illustrate my point for me. You kids take free infinite bandwidth for granted these days, so I bring up cell phones to remind you that bandwidth is neither infinite nor free.

    X is simply not useable over a low-bandwidth link such as a cell phone, compression technology or not. The ultimate compression technology is executable code, which is the basis of NeWS architectures.

    If you can convince app developers to write their code in Javascript, than more power to you.

    What year are you living, in 1994? Zillions of app developers write their code in JavaScript every day. I've written many JavaScript components and applications that incorporate them, and I love it. Fasteroids, Run-On-Sentence and Pie Menu Schema Editor are some simple examples, but it's easy to write much more complex desktop applications, and even entire desktop windowing interfaces, in JavaScript.

    But that's where I was getting at with the Lisp comment. To be

    --
    Take a look and feel free: http://www.PieMenu.com
    1. Re:About window system architecture by 10Ghz · · Score: 1
      X is simply not useable over a low-bandwidth link such as a cell phone, compression technology or not.


      Really???
      --
      Lesbian Nazi Hookers Abducted by UFOs and Forced Into Weight Loss Programs - -all next week on Town Talk.
    2. Re:About window system architecture by be-fan · · Score: 1

      It's the round trip time, not the data rate, that causes the delay. Sluggish mouse tracking is very noticeable, and makes interactive applications impossible to use. Try running GIMP over a modem -- it's unusable!
      ---
      I think we are talking about efficiency on two different scales. I'm not trying to argue that X is the most efficient way to do distributed graphics. But that is not what you originally said. You said it was "slow." Over an broadband, a local network network, and locally, X is quite fast. And while I haven't tried running Gimp over a modem Linux, I do know that interactive applications are quite usable over a low-bandwidth (128kbps) broadband link, given good compression technology (like NX).

      The application also has to send graphics commands back down to the server in response to mouse motion, which you have neglected to account for in your bytes/second calculation.
      ---
      Only if the application is actually drawing something in response to motion. IIRC, the mouse is handled server-side on X11.

      So why not just download a graphics editor into the window server, so any other application can easily reuse it as a plug-in component?
      ---
      You are just moving the bottleneck. Whether your method is a net win or not depends on whether it takes more bandwidth to feed the display logic or more bandwidth to render the UI. If you are working on a high-resolution image, which can reach into the hundreds of megabytes, it'll take a lot more bandwidth if your application logic is server-side than if it is client-side.

      You could implement distributed objects with PostScript graphics that download data to the NeWS server, where it's locally rendered as scalable PostScript graphics, without generating any unnecessary network activity.
      ---
      That's a very simplified situation. If we are talking about a real app like the Gimp editing professional-quality images, the data rate required to send those pixels over the wire would dwarf the data rate required to send the UI over the wire.

      Ordinary users could use the graphics editor to create custom skins with structured PostScript graphics. With the built-in user interface editor, you could totally reconfigure the user interface while it was running.
      ---
      That's really not an advantage of putting stuff server-side, but having dynamically loadable UIs. GNOME allows for that sort of thing via SVG themes.

      You illustrate my point for me. You kids take free infinite bandwidth for granted these days, so I bring up cell phones to remind you that bandwidth is neither infinite nor free.
      ---
      But its readily available and cheap enough. It does no good to criticize X for not being good over cell-phone links, especially when X does not claim to be a competitor in the cell-phone market, and when the original discussion was about desktop OSs.

      What year are you living, in 1994? Zillions of app developers write their code in JavaScript every day.
      ---
      There is a big difference between getting web developers to do their UIs in Javascript and getting application developers to do things in Javascript. Applications developers see Javascript as a "scripting language." I think they're full of crap too, but applications are still mostly written in C for god's sake! Application developers have an absolute phobia about embracing new languages. applications, and even entire desktop windowing interfaces, in JavaScript.

      Find a friend who has a Windows computer, and see for yourself how fast Fasteroids runs.
      ---
      Fasteroids is quite a leap from, say, Quake III.

      When I'm writing a desktop application in JavaScript and dynamic HTML, and I need to do something that requires speed, unorthadox graphics or access to native libraries, I simply write an ActiveX control in C++, and go to town.
      ---
      You miss the whole point. ActiveX controls are not safe! If you load a control written in C++ into the display server, a crash of the control can easily crash the display server. Most desktop apps need custom display log

      --
      A deep unwavering belief is a sure sign you're missing something...
    3. Re:About window system architecture by be-fan · · Score: 1

      Preemptive comment about (2). If you were using a safe language (ML, Dylan, Scheme, etc) you could not only get rid of the server, but most of the OS as well. Just put everything in one address space running as seperate threads. Everything ends up being a lot faster --- you get rid of system call overhead, protocol overhead, excessive copies between protection domaians, etc. Because of this, X certainly isn't the best possible windowing system, even for the local case. However, it'll be a cold day in hell before we see a mainstream OS and its apps written in Dylan, and within the constraints of the current system, where the competitors are things like Aqua and the Windows GDI, X is quite good.

      --
      A deep unwavering belief is a sure sign you're missing something...
  94. Fanatic -vs- Freaks by SimHacker · · Score: 1
    I'm still a die-hard NeWS Freak.

    X-Windows has Fanatics. NeWS has Freaks.

    IBM-PC has Fanatics. Amiga has Freaks.

    Flash has Fanatics. SVG has Freaks.

    Fanatics all agree with each other, follow the same popular trends and religions, and support the status quo. Thus: X-Windows Fanatics. IBM-PC Fanatics. Flash Fanatics.

    NeWS Freaks, Amiga Freaks and SVG Freaks have a lot in common, and tend to share a special bond.

    -Don

    --
    Take a look and feel free: http://www.PieMenu.com
  95. Re:Who uses Xlib by Anonymous Coward · · Score: 0

    Well gee, maybe then we'll all revert to the nv driver instead?

  96. That's Dr. Fucking Cocksucker, to you. by SimHacker · · Score: 1
    I've got a PhD in Faggotry. ;-)

    -Don

    What, you were't refereing to me? But I've been waiting for years to use that line!

    --
    Take a look and feel free: http://www.PieMenu.com
  97. Modular in the Monolithic sense by SimHacker · · Score: 1
    X is modular in the sense that Module means Monolithic.

    And 1 + 1 = 4, as 1 approaches 2.

    -Don

    --
    Take a look and feel free: http://www.PieMenu.com
  98. Re:Who uses Xlib by IamTheRealMike · · Score: 1
    Could the answer be the mach kernel osx uses? Maybe we need a new suite of benchmarks for user interaction. (os+X+wm/etc).

    Hahah, no, Mach sucks donkey ass. The slowdown in performance given heavy IO based benchmarks (like compiling things) is noticeable. Mach-O is one of the most primitive binary formats around.

    No, the reason the MacOS X GUI feels fast is that it's entirely double buffered and given priority over practically everything else on the system. The freedesktop.org X server has double buffering working nicely, but it's not ready for wide-spread usage yet.

  99. Re:Who uses Xlib by Temporal · · Score: 1

    As a server, Linux is more stable. As a desktop, Windows (2k or XP, not 9x) is more stable. This is why I use Linux on my servers and Windows XP on my desktop. (However, I intend to switch to FreeBSD on the servers and Mac OSX on the desktop when I get the chance.)