Slashdot Mirror


Motif's Not Dead

Kailden writes: "O'Reilly has an interview with Antony Fountain, co-author of Volume 6B: Motif Reference Manual, 2nd Edition, in which he claims that both QT for KDE and GTK+ for GNOME don't compare to Motif (and mentions that Java is the only thing that comes close). " The interview's old -- but the response from user comments adds more to it. Yeah, I know the article's a couple of weeks old -- but it's a good one.

14 of 127 comments (clear)

  1. Re:This is linux's biggest problem w.r.t. companie by Blue+Lang · · Score: 3

    Hi Michael!

    This is a huge problem for linux. We need a standard API for companies to seriously be able to develop software in linux.

    Linux has a lot of problems, and this is not a member of that set. Strictly speaking, X is not part of linux. You might mean, "We had some problems getting our product to work in a linux environment," but I would appreciate if you would say that. It would be one thing if you were Netscape, and not some extreme late-comer with a high priced product. I disagree that having companies develop seriously for linux is any particular help (see: jouraling file systems, web servers, the OS itself), but, let me see if I can offer some solutions.

    You can: buy a copy of.. MOTIF!

    Or you can use GTK, (which runs on unix, windows, and beos) or Qt, (runs on unix and windows). As someone else pointed out, any distro that has X is prolly gonna include both of these toolkits.

    Also, you fail to mention which sort of API you're looking for, but I'm assuming the gui-toolkit kind of thing. Please clarify a little if I'm wrong.

    To preserve our freedoms by convincing corporations to free their software, we need to have a unified, standard, rock solid API for developing large scale applications.

    Are you just trolling here? :P

    way to implement Canvas, so of course they asked me about the API. The response - that there is no really standard XFree86 api that is supported by the linx community

    Now I know this is a troll. Management asked you about an API? Uh uh, no way. Managers don't ask about things like APIs. :P And, duh, giving them the response 'there isn't one' is dumb on two counts. Dumb one, because it's just plain false - you can certainly use the athena widget set if you need guaranteed compliance, and dumb two because, even if it was true, you coulda just lied about it. Lucky for you, it wasn't true, just wrong.

    ut, if we could've gone straight into the API and began hacking away, I'm sure those months could've been spent porting to a native app.

    Look, are you suggesting that porting something from the MSFC to X should be as easy as a recompile? I mean, aren't you ignoring the fact that what you're REALLY facing is not 'lack of a standard linux/X api" but rather "the quagmire of bullshit one must deal with when porting ANY application to Win32 to Unix (or vice versa)?" I mean, come on, does your application run on some X emulation layer in windows? Noooo, it doesn't (wild guess, there), so it doesn't use any sort of X API, so having one for linux would have saved you exactly dick.

    And of course whatever we decide on as a standard will have to be GPL'd..

    From the canvas download page:

    4.You may not modify, rent, resell for profit, distribute or create derivative works based on the Software or any part thereof.

    So you can include it as part of your $375.00 gimp clone? No thankee.

    Also, on mention of netscape, does anyone know how the original netscape did it? Did they write their own toolkit for each OS?

    --
    blue

    --
    i browse at -1 because they're funnier than you are.
  2. For the ambitious... by warrior · · Score: 3

    If you have problem with your GUI toolkit, simply make your own. Here was my situation: I was working on a graphics app. I was using motif. I updated to newer compilers, etc. My motif library didn't work anymore. So I looked at other toolkits. I didn't like them. I read more about X than the knowledge I needed to blit graphics to the screen. In four weeks, I had push buttons, toggle buttons, scale sliding thingies, scrollbars, and text widgets. And it can be themed with nice png images. It's easily extendable, whatever I can dream up. What I can't believe is that it took so many years for someone to get sick of Motif and write their own toolkit (Gtk). Now I know I'll hear people say "you're reinventing the wheel, why not use something that's out there gtk! qt!" Well, I don't like them so kiss off. I like my own little tk, 2208 lines of code, 56k, and it does everything motif did in 75% less lines of gui code. So, if you're bitching, do it yourself!

    Mike

    --
    Intel transfer the difficult from Hadware to software, for get more power, programmer need more technology. -- chinaitn
  3. Take a look at job listing then... by ^BR · · Score: 3

    Now try to fing a job e.g. in the finance area with your wonderful Qt of GTK+ experience.

    Motif is certainly a PITA to program but certainly is certainly the more powerful toolkit of the three. One thing that I can't stand with GTK+ is that preferences are host centric and not display centric... That's plain stupid, I can access the same app from many displays and certainly want preferences specific to the display, what if one is small and B&W and the other large and TrueColor, I certainly don't want the same font size and icons on both...

    GTK+ completely lost the network part of X... If I want a non network centric window system I can simply use Windows...

  4. If you substitute "MFC" for "Motif"... by dlc · · Score: 3
    bash $ lynx -dump http://unix.oreilly.com/news/motif_0400.html | sed -e 's/motif/MFC/ig'

    Hmmm....

    darren


    Cthulhu for President!
    --
    (darren)
  5. This is linux's biggest problem w.r.t. companies by neowintermute · · Score: 3

    This is a huge problem for linux. We need a standard API for companies to seriously be able to develop software in linux. To preserve our freedoms by convincing corporations to free their software, we need to have a unified, standard, rock solid API for developing large scale applications. I do value the programmer's freedom in choosing from a selection of APIs but there is no reason we can't have a standard API and still have other choices.

    When I was finally able to convince my management to port to linux, the first thing we had to do was select a way to implement Canvas, so of course they asked me about the API. The response - that there is no really standard XFree86 api that is supported by the linx community - was just one more obstacle standing in the way of their acceptance. While we were still in this phase of planning, one of the managers suggested porting with WINE. WINE has been extremely helpful to us and has allowed us to port a major graphics application to linux from windows/mac in just 6 months. But, if we could've gone straight into the API and began hacking away, I'm sure those months could've been spent porting to a native app.

    And of course whatever we decide on as a standard will have to be GPL'd...

    ___________________________
    Michael Cardenas
    http://www.fiu.edu/~mcarde02
    http://www.deneba.com/linux

  6. Re:Dead? It's not, but it should be. by net-fu · · Score: 3
    I see commercial applications that are written in Motif all the time. There is nothing more painful than watching someone untrained in the zen of the Motif file selection box.

    Motif strikes me as an academic project-- it's too hierarchical. Top level programming is good, but not when its taken to the extreme. You end up with components that don't have a clue as to the function of the whole. It's the result of trying to be too many things to too many people, not beating a solid path to the goal, trying to be expandable in nonsensical ways, and desperately trying to avoid the eventual re-write.

    I'm sorry, but in my honest opinion, Motif is ugly, slow, and a bear to program. I think that it single handedly scared people away from writing X programs for a long time.

    The world is a much better place for having GTK and Qt, which were not designed with such lofty goals, but are much better products. What's more, they are still improving. I have a real issue with the 'innovation' that's taken place with Motif, when every time I see a program written with it, I feel like I've been magically transported back to 1991.

    Furthermore, any modern installation of HP/UX or Solaris that doesn't contain any GNU tools is being maintained by people whose lives are more difficult than they realize. Once you've got GNU gcc, make, bison, gzip (!), etc. no compilation (thanks to autoconf) is too difficult. Those programs are available as packages as well. GTK compiles well on Solaris (.. Qt was a pain the last time I tried, but that was over a year ago.)

    Really. Motif should die. CDE should die. Desktop environments aren't really necessary for most of these Motif applications. Just statically link them with Qt or GTK if you're that worried about what you're customers do and don't have.

    While we're on the subject, who are these open group people anyway? Their software development strategy is crap. X is the worst compile ever, follows none of the standard rules ("make World"?!?!). Why do they even bother using make when they recompile every .c file anyway?

    Just keep in mind-- these are the same people who invented the Imakefile!!

    gimp - the program that started it all

  7. He doesn't get it... by Ami+Ganguli · · Score: 4

    He's latched on to some features that Motif has that haven't been fully realized in Qt or GTK+ and makes it seem as if these are the only ones that matter.

    Motif, being older, has all the little things worked out. It's a mature toolkit. GTK+ and Qt are newer and are naturally missing lots of little features.

    Motif will fall behind for two reasons:

    1) The developers of Qt and GTK+ have the benefit of hindsight. They've used Motif, Win32, and Mac and are able to learn from the mistakes of the past. While the toolkits themselves aren't entirely mature, the foundations are very strong and well designed. These guys know what they're doing.

    2) The proprietary attitude of the Motif developers. GUI development is driven by desktop applications and Linux is the hottest market for Unix desktops. Since Motif's licensing makes it difficult to support well under Linux, but GTK+ and Qt both work well under commercial Unix, Motif will die out. It makes no sense to use Motif when GTK+ apps will work better on Linux and be fully portable.

    Interestingly, many of the shortcomings that were pointed out in GTK+ (I don't really follow Qt) are currently under active development. Pango, for example, addresses the internationalization issues and is real software. It's not finished, but it's far from being vapour.

    --
    It is tempting, if the only tool you have is a hammer, to treat everything as if it were a nail. - Abraham Maslow
  8. Motif's failure by jetson123 · · Score: 4
    I used to use Motif. It had an enormous number of bugs, which took vendors forever to fix. Even many years into its supposedly "stable" releases, it required turning off Purify error reporting because it simply had too many runtime errors and leaks. Motif was also complex, but the complexity wasn't justified by the limited functionality it had out of the box.

    The one advantage Motif could have had, a thriving component market didn't really work out. For any big project, licensing commercial software components for redistribution is a major hassle and expense. And any additional third party component that gets incorporated into a C/C++ program is a major risk because in C/C++ errors in any such component can show up in completely unrelated program parts. Generally, it's easier just to dedicate a programmer to building something equivalent in-house.

    To me, Motif represents everything that can go wrong with commercial software. Today, there are lots of excellent, high quality toolkits out there, many of them free. I can't imagine circumstances under which I would choose Motif ever again for either an open source or a new commercial project. In fact, I can't imagine choosing any toolkit that isn't covered under LGPL, BSD, or some other, similar license.

  9. Crazy. by be-fan · · Score: 4

    This guy's slightly off his rocker. Motif in no way compares to Qt and GTK. First of all, it's ugly as shit. That might not be technically important, but it can make or break software designed for mass consumption. Second, it is not nearly as feature filled as Qt and GTK. In addition to the base toolkit, KDE and GNOME have extended Qt and GTK to provide a great deal of application infrastructure. These are closely tied to the toolkit and for most intents and purposes, can be considered a part of them. Does Motif have COM? I didn't think so. Third, I find his attitude towards software appaling. I'm not a big fan of the Free Software community (I have nothing against it, but some of the people behind it like Stalin, err I mean Stallman piss me off) but I feel compelled to defend it. Free software can work great in the right environment, and is not against the grain of commercial (in his opinion "high quality") software. Lastly, what is this anonimity bullshit. I want to know who wrote this piece of junk so I can flame him! (Just kidding!) However, he explicitly says that they do not put their reputations and selves into the software. That is condusive to bad software. If you're going to write a program for a year, you damn better put yourself in there. By not staking their reputations, they wash their hands of the entire matter and show themselves as not caring about the quality of the software. Utter craziness.

    --
    A deep unwavering belief is a sure sign you're missing something...
  10. GUI Builders?? Please? by X · · Score: 5

    I find it amusing that Motif is equated as a good GUI toolkit because it allows one to build great GUI builders.

    I guess that makes Visual programming languages better than anything else as well?

    Seriously, the job of a GUI library is NOT to make life easy for GUI builders. Just like every other library on the planet is not judged by how well a RAD tool can be intergrated with it. I particularly liked his comments about Java. I can tell you that Sun's own experts on Java's AWT and Swing will tell you that the first thing you should do if you want to have decent GUI code is NOT to use a GUI builder.

    The truth is, a modern GUI is much more sophisticated than what existed when Motif was originally put together. Motif was a great "internationalization capable" Forms package, but now we have this thing called HTML which does that job for us quite nicely. If you are going to use a GUI today you have to be far more sophisticated and flexible than that, and that requires having a good GUI programming library.

    I also was amused by his comments about how you could make C++ wrappers for Motif and suddenly Qt has no benefit: he couldn't be more wrong!! As Qt developers have said time and time again, there is a HUGE difference between a GUI library build from the ground up using C++ objects verses a functional library with C++ wrappers tacked on (this is usually said in reference to GTK+, but that's another story). Anyone who's looked at how Motif's "inheritence" works can appreciate this. Anyone who's used Qt before can also appreciate this.

    His comments about "support" for Motif vs. Open Source stuff shows complete ignorance of the support benefit derived from being open source. I can tell you from personal experience that I've been screwed over by bugs in various Motif libraries and I have NOT been able to get them fixed, partially because of the dwindling commercial support for them.

    His comments about not being able to have a cross platform GUI were also silly, particularly given how much he likes Java! While Java is indeed very cool, there are tons of circumstances under which it does not make sense (silly example: do you really want that clock in your Gnome Panel to require a huge Java VM to work?), which at the same time have nothing to do with being cross platform or not. If a cross-platform GUI library is really that useless then TrollTech must have excellent sales people given that they can sell Qt for Windows for thousands of dollars, despite the fact that everyone knows it's such an excellent Xwindows library. The funny thing is, the whole notion of how X was built came from the idea that you should be able to have ANY widget set applied to it. All you have to have to support Xwindows is conformance with the X protocol and it's various extensions.

    I've seen apps built with HTML, Tk, Qt, and wxWindows, and I tell you, they look pretty damn good to me on both platforms. I've also seen MFC apps that work pretty well on the MacOS (at least as well as they work on Windows... ;-).

    He commented about the 650 controls that are available for Motif, which sounds impressive. However, a lot of those are tons of proprietary (yes, that means they AREN'T interoperable) implementations of table views, because the existing table support is basically pathetic. Qt and GTK+ have the advantage of being open source which means that when you have N different implementations of a control, you tend to have the code migrate into just a few well supported controls rather than having tons of semi-functional commercial products. Then there's a bunch of graphing controls. Once you drop those, well, there just aren't that many interesting controls left.

    His comment about companies who won't touch GNU tools are COMPLETELY out of touch with reality (which may indeed describe some of these companies as well). While there might be a perception problem, there is not a real one, either technical or legal. First off, Qt isn't a GNU tool, so I guess that ends that part of the argument. Indeed, if you really feel compelled to pay money to feel good about a library, TrollTech charges extensive hunks of money to developers who want to pay for the tool kit (again, amazingly on multiple platforms!!). GTK+ is covered by the LGPL, which means there's no risk of losing proprietary technology unless you're extending the library.

    Finally, his comments about how everyone using Motif "in secret" are laughable. First off, there is nothing about open source that requires that you stand on the top of a hill and shout that you're using it. Indeed, so long as you aren't distributing your binaries, NOBODY need know what you're doing, because you're not necessarily even BUYING it from someone. Qt can be purchased under a license which does not require you to distribute your code. The cry of "lots of people are using this technology in secret" has been around for quite some time, and it's always that of an underrated technology (indeed, it's normally associated with startups). There was a time when people proudly shouted that they were using Motif. There was a time when people proudly shouted that they were using C compiler X or GUI toolkit Y. This is the kind of thing that commercial companies do in order to promote the idea that everyone is using your product. While there are companies who want to use technology in secret, if you really are popular, successful and growing there will be plenty of companies who will be happy to have you mention their names in a press release.

    I hate to say it, but this guys seems to be suffering from a bad case of NIH syndrome.

    --
    sigs are a waste of space
  11. Dead? It depends on your point of view by David+Jao · · Score: 5
    From Fountain's point of view, Motif is probably alive and well. The problem is that his world is one of proprietary software, proprietary Unix, and proprietary vendors, all of which have mean absolutely nothing to the new generation of users who have been raised on Linux/BSD and free software.

    One needs only examine some of his comments to see how badly out of touch Fountain is with the open source world:

    Motif has become the prima facie native toolkit on Unix. Every single major operating-system vendor supports and supplies it.
    Most Linux distributions don't supply Motif. The free *BSDs don't supply it. I'm certainly not about to pay for it, and even if I did, it's not really the same if you don't get source code.
    It does not matter how elegant a toolkit is in terms of programmer taste if at the end of the day the product derived from the toolkit is shorn of [list of cool features]
    It does not matter how cool a toolkit is if I can't obtain it. The closed nature of Motif means it is completely cut off from the free software community: even the small minority of people willing and able to pay for it aren't able to enjoy the freely licensed source code that they have come to value and expect.
    [Qt/GTK] fails to guarantee any kind of continuance, stability, or development. Compare this with the Open Group's license for maintaining Motif, guaranteed by contract. Continued development is absolutely guaranteed.
    He's got it exactly backwards from the way the free software community views things. Does he really think a closed, select group of NDA-d people can develop proprietary software faster than all the programmers in the world can develop open source software? As explained in The Cathedral and the Bazaar, software improves faster when development is open to all.

    I actually agree with Fountain that Motif isn't dead, but his reasons are all bass-ackwards. Motif owes its future life to corporate inertia, and not to any intrinsic advantages. In the free software world Motif suffers from the most crippling drawback of all: I can't get it, and I can't hack it.

  12. Motif not dead? AIEEE! HOW DO WE KILL IT? by 1010011010 · · Score: 5

    Motif set about to capture the 'visual elegance' of Windows (pre-95), and has been stuck there ever since. The stupid drop-down fly-out menus (as opposed to drop down - scroll) Motif has are grounds enough for shooting someone. Motif does not "provide a GUI for Unix applications" -- it makes UNIX look retarded! It says, "Warning! This system is unusable! Try your toaster instead!"

    http://yawara.anime.net/gaijinFAQ/n etscape.html
    It being the case that Motif sucks beyond belief, and that Netscape Navigator uses Motif, you basically have to maim it to let it display Japanese in things like the Menu-bar, Bookmarks, and Forms.

    http://www.catalog.com/hopkins/ simcity/keynote.html
    It wouldn't have been possible to port SimCity to X11 using Open Software Foundation's Motif toolkit. It just absolutely sucks. It's not open, and you have to pay for the source code, and it's not being maintained.

    http://www.mandrakeuser.org/connec t/cbrowse.html
    The interface sucks. It is built with the legacy Motif library.

    http://shadowrun.html.com/ubb /Forum2/HTML/000007.html
    And I programmed in C/X-windows/Motif for ten years. The most far away I can stand from that monster, the happier I am :)

    http://www.motifzone.com/resources/sta rt.htm
    Let's face it, X/Motif are sophisticated pieces of system software with lots of flexibility and power.

    http://slashdot.org/articles/99 /03/01/0644222.shtml
    I'm a professional X11 programmer, and GTK+ is one of the nicest widget sets about. Combined with GNOME it has the potential to beat even the object frameworks produced by Less Palatable Companies. For people who have never done professional X11 programming, Motif is CRAP. Everybody hates it. It was designed by a committee, and damn it shows. There's a reason it's called Bloatif. Even the addon packages to make Motif more usable (by giving it workable file dialogs, tree views, and a drag and drop you don't have to implement 90% by hand) are buggy, slow and memory hungry.

    http://slashdot.org/books/99/03/22 /0826250.shtml
    If it weren't for GTK I'd probably be programming Motif (well, OK, actually I'd be programming in QT, but that's besides the point). Motif is much like raw X Window System calls, except that Motif is MUCH MUCH WORSE! Motif is much like the stinky dead fish that your dog insists on digging up every time you try to throw it away. The world needs more Motif applications like I need a hole in my head. I can go on and on about this. Really, I can. Moral of the story: Learn a toolkit. Believe me on this one. I've made dumber comments, but few have been more true. Just don't do Motif. :^)
    [...]
    BTW, I agree about Motif. I think it was the worst thing to happen to Unix, ever. I think it did more to harm Unix as a platform than anything else that ever occurred during the 30+ years that Unix has been in existence.
    [...]
    Motif/Lesstif is arguably worse than gtk, and I programmed a lot of Motif.


    If the designers of X-Windows built cars, there would be no fewer than five steering wheels hidden about the cockpit, none of which followed the same principles -- but you'd be able to shift gears with your car stereo. Useful feature, that. - Marus J. Ranum, Digital Equipment Corporation

    http://ecco.bsee.swin.edu.au/un ix/uh/x-windows.html
    The Motif Self-Abuse Kit
    X gave Unix vendors something they had professed to want for years: a standard that allowed programs built for different computers to interoperate. But it didn't give them enough. X gave programmers a way to display windows and pixels, but it didn't speak to buttons, menus, scroll bars, or any of the other necessary elements of a graphical user interface. Programmers invented their own. Soon the Unix community had six or so different interface standards. A bunch of people who hadn't written 10 lines of code in as many years set up shop in a brick building in Cambridge, Massachusetts, that was the former home of a failed computer company and came up with a "solution:" the Open Software Foundation's Motif. What Motif does is make Unix slow. Real slow. A stated design goal of Motif was to give the X Window System the window management capabilities of HP's circa-1988 window manager and the visual elegance of Microsoft Windows. We kid you not. Recipe for disaster: start with the Microsoft Windows metaphor, which was designed and hand coded in assembler. Build something on top of three or four layers of X to look like Windows. Call it "Motif." Now put two 486 boxes side by side, one running Windows and one running Unix/Motif. Watch one crawl. Watch it wither. Watch it drop faster than the putsch in Russia. Motif can't compete with the Macintosh OS or with DOS/Windows as a delivery platform.

    --
    Napster-to-go says "Fill and refill your compatible MP3 player", which is a lie. It's not MP3. It's WMA with DRM.
  13. Red Hat and Lesstif by bero-rh · · Score: 5

    the only reason you don't see [Lesstif] more is because RH don't like LessTif since it pretty much killed one of their early profit-making schemes, which was selling a commercial Linux Motif implementation

    Please don't make such claims without verifying them. What you're saying is not quite true.
    We are actually shipping Lesstif in the Red Hat Linux Powertools (which is included in the Deluxe and Professional versions of Red Hat Linux and can be downloaded from your favorite mirror of redhat.com).

    We aren't putting it on the main CD simply because there are not many applications that use it anymore (name 3 interesting open-source projects using Motif/LessTif for anything), and because there are (almost?) no reasons to start a new project that makes use of it when toolkits like Qt and Gtk+ are available. Another big problem with Lesstif is the closed nature of Motif - despite the fact that the LessTif developers are obviously good people, they have to stick with the outdated Motif stuff and can't change stuff where it makes sense, the way Qt and Gtk people can. Lesstif is one of the many packages we'd probably include if we had infinite space on the CDs - but given the fact that CDs don't come with infinite space, we have to limit the choice of packages to those that make most sense to us.

    We don't dislike Lesstif - if it had been started or anywhere usable a couple of years ago, Red Hat would never have shipped a commercial Motif version. Open source tools are ALWAYS preferable over non-free ones.

    I also hate the Qt signal/slot kludge

    Why, and how do you think it should be implemented?

    --
    This message is provided under the terms outlined at http://www.bero.org/terms.html
  14. Motif C++ OpenGL by small_dick · · Score: 5

    ...i program all three, together, almost every day.

    i admit it's butt ugly if the programmer is clueless. but a programmer who has used it for awhile can get by most of the visual issues by setting resources properly, etc.

    Netscape isn't a terrible looking application, after all -- Motif.

    Sun's awt doesn't look too bad -- Motif.

    it's amazing how much hate can be directed toward a product by the ignorant.

    that said, all you have to do is read Doug Young's book on C++/Motif or Kilgard's book on OpenGL and X, and you quickly learn that mistakes were made in the visual inheritance hierarchies. but they are well-known, and the tricks are documented.

    pls. remember that motif was out before most teenagers were born, before win95...i think it predates win3.1

    i've built up a small set of software components that simply replace a form -- it's as easy as subbing the form, and realizing the component. we have a lot of standard things we do here, and i can crank out a new app in days that runs much faster than anything scripted or interpreted.

    give motif a break. it has lived a long life and had a successful career, and donated a lot of good infrastructure into all the toolkits that came after.

    --


    Treatment, not tyranny. End the drug war and free our American POWs.
    See my user info for links.