2 ms·
At the end of his posting about UIL, WINTERP, and Lisp, Omar suggests an even Lispier alternative to WINTERP, that you: "Use LISP entirely. Don't even bother
by DonHopkins 7y ago
At the end of his posting about UIL, WINTERP, and Lisp, Omar suggests an even Lispier alternative to WINTERP, that you:
"Use LISP entirely. Don't even bother with C, C++, Pascal, FORTRAN, or anything similar. Start with LISP. Develop everything in LISP. This seems to be the most intuitive alternative, but it requires a lot of work. And it's not entirely portable, at least not yet."
Yeah, a LOT of work. There is a big problem with rewriting X-Windows in Lisp, which I learned from working on Garnet with CMU Common Lisp and CLX.
http://www-cgi.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/lisp/gui/garnet/garnet.faq http://www-cgi.cs.cmu.edu/afs/cs/project/ai-repository/ai/la...
The problem is that CLX (the Common Lisp X11 client library) doesn't support ANY of the standard XLib based libraries, or the client side libraries for X11 server extensions like Display PostScript.
And that problem has only gotten much worse over time as the X client libraries have gotten more and more bloated as they replicate and extend everything the X-Windows server does and much more.
So with CLX, which is the X-Windows protocol client side implemented in pure Lisp, you are stuck with the generic X wire protocol, no XLib based C libraries like Display PostScript (which seemed like a good idea at the time in 1992), not even the MIT-SHM the shared memory extension, no Xt, no Motif, no OLIT, no GTK, no KDE, no NOTHING! You're on your own, buddy.
You might as well just use Lisp's foreign function interface to wrap the entire MOTIF library and translate all the #defines in the .h files into Lisp code so you can refer to symbols and ids by name instead of hex numbers. And that's essentially what WINTERP did with XLisp, so you're back where you started ("client-side NeWS without the postscript imaging model", as Neils puts it).
https://www.cliki.net/CLX https://www.cliki.net/CLX
Here's Omar's posting about UIL, WINTERP, and Lisp:
Date: 19 Jan 90 09:53:11 GMT
From: umich!umeecs!anon@yale-zoo.arpa (Omar S. Juma)
Subject: Re: To UIL or not to UIL?
To: xp...@expo.lcs.mit.edu
In article <11658.632634712@hplnpm> mayer%...@HPLABS.HPL.HP.COM (Niels P. Mayer) writes:
[Heavily edited]
>
> ...rumor... ...UIL...
> ...didn't meet HP's quality...
> ...poop...
> ...UIL SUCKS... ...silly...
>...buggy... ...inelegant...
> ...doesn't make life... ...easier...
>...completely nonstandard...
>
I absolutely agree. I've only had 4 years of serious software
experience, and UIL is the worst language/compiler combination I
have ever seen. Nothing, not even working with punch cards, has left me
with a more bitter taste in my mouth. If UIL were a car, not even the
Russians would want to manufacture it. If UIL were a--but, wait a
minute, let's be objective for a minute:
* The UIL compiler does not invoke cpp before it starts its
journey. Yo, DEC!!! Even xrdb uses cpp. There are several
advantages to using cpp. Hey, guys, ever heard of macros? Huh?
What's that you say? You wanted to create your own macro
facility? Oh, I see, in the next version. When's that? Huh?
Next year? Oh. But what do we do in the meantime? Huh? Did
you say "copy and paste"? Isn't that kind of inelegant? I tried
that. It bloated the simplest UIL files to thousands of lines.
What? Yeah, thousands, not hundreds. Made them difficult to
edit. Huh? Split the files, you said? I dunno, that's kind of
old-fashioned, rather stupid. Say what? I can run the file
through cpp first? Yeah, I tried that, in fact, since I had no
intention of wading through huge UIL files; it gave me vertigo.
Huh? You want to know how that worked, you say? Well, I ran
into this problem, see. After I did a few nice macros and got
ready and all, I ran the UIL compiler. I got this strange error
message. It told me that maximum line length was 132 characters.
Huh? Well, see, some of my macros were rather long, like 140
characters, see, and I couldn't make them less than 132 short of
compressing all the whitespace out of the macro and turning it
into one huge token. Huh? You never thought anyone would ever
write macros bigger than 132 characters? Oh, well, I did.
[Quiz of the decade: Where did DEC come up with 132? What, is
it 128 and a bit?]
* Defective error reporting. What do I mean by defective? Like,
it's almost impossible to figure out what the UIL compiler means
when it complains about something. Like, if you forget a
semicolon someplace, the compiler pukes into its own food, eats
it back again, and pukes it out again, and just gets totally ill,
dude.
* Documentation. Huh? Did someone say documentation?
* Language design. Whoever designed UIL must have been heavily
involved in BASIC and FORTRAN, because that's as sophisticated as
it ever gets. The language is extremely simple-minded. No
conditional processing. No interface actions. No anything. All
UIL offers is a substitute to writing out almost the exact same
stuff in a C program. Yes, I know that writing it in C would be
even more time-consuming, but there I have access to powerful
macros and procedural mechanisms, not to mention conditional
processing, that can make life easier. Any intelligence in the
interface must be performed in the program anyway; you can't
delegate any actions to the UIL portion, as Niels says. Which
brings me to wonder why OSF never gave Open Dialogue any serious
consideration (please, don't tell me about "demonstration
technology"). If not the entire Open Dialogue system, then at
least the language, which was several generations ahead of UIL.
My personal impression is that DEC shoved UIL down OSF's throat
as its "contribution", though in effect all it's done is cause
people to waste inordinate amounts of time and effort creating
workarounds.
* Scale. You really cannot write a serious application using UIL
and its compiler. The mechanism simply cannot handle the sheer
volume of text required to describe the interface. You need an
intermediate agent, and OSF just didn't think it was necessary to
supply one. I would have settled for preinvoking cpp, but even
that is not enough.
* Elegance. If you try to develop an application using creation
callbacks and the other standard mechanisms supplied by OSF, you
will end up with a horrendous piece of noodle code on your hands.
UIL lends itself very well to kludgy solutions; I tried hard to
extricate myself from all this mess, but it was not possible
unless I adopted several coding and pre-compilation standards.
In essence, I've spent the better part of two months fighting the
UIL mechanism, trying to create a logical framework around which
I can develop several large applications, and I'm getting close
to completely throwing in the towel and starting from scratch
with WINTERP. I've looked everywhere, and all I see is square
pegs that have been shoved and squeezed into round holes. You
can't go very far with such a setup.
* Extensibility. Are you kidding me? Extend UIL? I'd rather go
gene splicing than try to tack on more crud to UIL. DEC has
supplied what can be generously called as an embryonic extension
mechanism. It's badly documented, and from what I've seen by
wading through the code, they never really thought anyone would
want to extend it. Like, dude, there's everything you'll ever
need there anyway, so why bother?
I'm really sorry to be saying all of this, but UIL is not a solution.
Unfortunately, unless OSF is willing to break with tradition and supply a
completely different mechanism for the next release of Motif, we are
stuck with UIL for quite a while. Which means we will all waste more
time and energy coming up with solutions. Here's some alternatives:
* Create a wrapper around UIL. Bury it under a ton of macros,
processing languages, prepackaged C code. Then it may be
possible to develop an interactive interface editor that uses
these mechanisms. This is what I'm currently trying to do, but
as I said, I'm thinking of giving it up.
* Get the format for UID files and develop your own UIL language
and compiler. This is fairly time-intensive, but offers the
chance to start from zero and build the system correctly.
* Use WINTERP. I'm just not sure about this now, but it's starting
to make more and more sense.
* Use LISP entirely. Don't even bother with C, C++, Pascal,
FORTRAN, or anything similar. Start with LISP. Develop
everything in LISP. This seems to be the most intuitive
alternative, but it requires a lot of work. And it's not
entirely portable, at least not yet.
I could go on...
an...@eecs.umich.edu
...anon...
- DonHopkins 7y agoHere's some great behind-the-scenes insight into how Motif and UIL came about, and the palace intrigue between DEC and other OSF member companies, from Kee Hinkley, a member of the team that created Motif, who worked for Apollo Computer before working for HP: https://guidebookgallery.org/articles/osfmotif/pics/01 https://guidebookgallery.org/articles/osfmotif/pics/01 Date: 27 Mar 90 13:36:06 GMT Subject: Re: UIL or NOT to UIL From: snorkelwacker!spdcc!tauxersvilli!alphalpha!naz...@bloom-beacon.mit.edu (Kee Hinckley) I tried to reply directly to this, but auto-trol.com doesn't seem to be around, so... In article <792@auto-trol.UUCP> marbru@auto-trol.COM (Martin Brunecky) writes: > For your case I'd need a more generic one, specifying widget ID to > to set. Easy to do. I did not think of one, since to accomplish your > task we have WsMatrixBox, which does all you need with 2-3 resources, > without all that ugly code. I don't suppose WsMatrixBox is available anywhere? > With the X resource database, there is no problem, since the > "hidden" widget always has a name (somehow constructed by the > confusion routine). And since there is a name, and a known place > in widget hierarchy, you can define any resources you wish. Ugh. Not your fault, but ugh nonetheless. >>Incidentally. OSF did at one point consider using an extended >>Xresources form as an alternative to UIL, but was convinced (I forget >>the exact reasons) that it wasn't appropriate (too hacky?). > Wasn't the real reason some OSF member was already using UIL > and wanted to make it a "standard" ? Keep in mind these are my opinions and mine alone, based on my view as part of the team that "created" Motif. There is no question in my mind that had OSF not chosen UIL, an "OSF Member" would have been upset. The results of that, I don't know - it didn't come to that. My feeling, and what I believe the consensus to have been, was that UIL, while by no means perfect or even correct, was a step in the right direction. I also felt (and I regret not examining the code more throughly in the hour or so I had it) that it could be fixed, and that no better, timely (e.g. Open Dialogue was potentially not timely (in retrospect I know that is wrong, it could have been there, but...)), solution existed. Given that something like it seemed necessary, both as a transfer language for IDTs (something the membership wanted), and as a means for supporting internationalization, it was decided that it should be included but not placed in the AES (Application Environment Specification) - in other words, the specification of UIL is open for change in the future. I, at least, was under the impression that work would begin to correct these problems as soon as Motif was released. In fact, there were several possible approaches bandied about for what the new UIL would look like and who would do the work. In my opinion OSF dropped the ball here, and frankly I feel somewhat betrayed, since what we worked out was a compromise and I feel it was tossed as soon as the transition team left. I should point out however, that I don't think, given my knowledge of the people who are at OSF, that this was done for political reasons. I suspect it has been more a matter of manpower and priorities. I do think that it's extremely regretable however, since the number of programs using UIL is (as I was afraid) increasing rapidly, and any viable UIL replacement now must support seamless translation to and from UIL files. -kee -- +-----------------------------------------------------------------------------+ | Alphalpha Software, Inc. | Voice/Fax: 617/646-7703 | Home: 617/641-3805 | | 148 Scituate St. | Smart fax, dial number. | | | Arlington, MA 02174 | Dumb fax, dial number, | BBS: 617/641-3722 | | naz...@alphalpha.com | wait for ring, press 3. | 300/1200/2400 baud | +-----------------------------------------------------------------------------+