Pardon the utterly naive newbie question, but I'm brand new to McClim, have never used ASDF (and barely understand what it is), etc.
Say I want to get from zero (not even an installed Common Lisp) to running a McClim demo on my machine (running Ubuntu Linux) in short order. What do I need to do to get there?
On 2/21/07, Perry E. Metzger perry@piermont.com wrote:
Pardon the utterly naive newbie question, but I'm brand new to McClim, have never used ASDF (and barely understand what it is), etc.
Welcome!
Say I want to get from zero (not even an installed Common Lisp) to running a McClim demo on my machine (running Ubuntu Linux) in short order. What do I need to do to get there?
First, install the SBCL lisp compiler. Ubuntu has a package called "sbcl", and you can install it either through the package manager or with the command "sudo apt-get install sbcl".
Second, you would be well advised to install emacs and SLIME if you don't have them already. Both are available in the Ubuntu package repository, so you can install them the same way you installed SBCL.
Next, you'll need to download McCLIM and set it up. The easist way for you to do this would probably be to open SBCL and enter the following lines of Lisp code:
(require :asdf-install) (asdf-install:install :mcclim)
When it asks you for the installation location, type "2" to install it in "~/.sbcl". You will probably get some message about PGP keys; type ":c 0" to dismiss the warning and continue anyway.
This will install McCLIM on your system, along with the necessary dependencies. When you want to get a demo running, here's some Lisp code that should do it:
(require :mcclim) (require :clouseau) (clouseau:inspector #'length)
This will bring up the inspector, inspecting the function LENGTH. It can inspect other things, too, so go ahead and play around with it. Instructions for the other demos can be found in "~/.sbcl/site/mcclim-0.9.4/INSTALL".
Good luck!
-Peter
"Peter Scott" sketerpot@gmail.com writes:
On 2/21/07, Perry E. Metzger perry@piermont.com wrote:
Pardon the utterly naive newbie question, but I'm brand new to McClim, have never used ASDF (and barely understand what it is), etc.
Welcome!
Thanks for the assistance.
A few notes:
1) The section of INSTALL that describes demos is very strangely formatted - way more than 80 column lines, and if you more the file out in an xterm everything you need to type in is more than one line so you can't cut and paste the stuff in. That's the only part of the file that is messed up in this manner. 2) It would be cool if you could pop up a "master demo window". When tcl/tk was still new and exciting, there was a single app you could launch that would let you walk through a large set of interesting demos. 2) I popped up a Clouseau window, and (being ignorant) tried to do a few things like, say, expanding the bottom pane with the usual modern method of clicking and dragging on the frame between the panes. No dice -- such a thing doesn't work. In the address book demo, you can't tab between entry fields. I recognize that the UI is very much in the image of the lisp machine, but in the intervening 25 years since Genera was state of the art the "common expectations" of the naive user community have changed -- at the very least, it might be useful if there was a short document explaining to a user what the expectations of the UI they're using are (though perhaps ultimately it might be valuable to make the UI feel a bit more like what people are now used to.)
Second, you would be well advised to install emacs and SLIME if you don't have them already. Both are available in the Ubuntu package repository, so you can install them the same way you installed SBCL.
I'm an old Emacs user so that was the first thing I install on any box I set up. However, I've yet to play much with SLIME -- is there an intro to SLIME somewhere?
Next, you'll need to download McCLIM and set it up. The easist way for you to do this would probably be to open SBCL and enter the following lines of Lisp code:
(require :asdf-install) (asdf-install:install :mcclim)
That's rather neat. It downloads and installs mcclim pretty much on its own. Is there an asdf web page that explains how the whole thing works and what it can do?
On 2/22/07, Perry E. Metzger perry@piermont.com wrote:
- It would be cool if you could pop up a "master demo window". When tcl/tk was still new and exciting, there was a single app you could launch that would let you walk through a large set of interesting demos.
There is the "demodemo", though it applies only to things in the clim-examples system (and not Clouseau, the listener, etc). After executing (asdf:oos 'asdf:load-op :clim-examples), it will print a message advising you to run (clim-examples::demodemo). Most of them aren't particularly interesting, however :). As have others, I would recommend running the CVS version.
Quoting Perry E. Metzger (perry@piermont.com):
- I popped up a Clouseau window, and (being ignorant) tried to do a few things like, say, expanding the bottom pane with the usual modern method of clicking and dragging on the frame between the panes. No dice -- such a thing doesn't work. In the address book demo, you can't tab between entry fields.
It is probably a good idea to focus on specific applications and demos to make sure that they work well. (And separate them from those without practical use or visual appeal.)
Clouseau seems like one application worth that attention. Perhaps you would like to submit a patch adding a BOX-ADJUSTER between application pane and interactor?
In contrast, the address book is a classic demo that typifies "traditional" CLIM applications, but nobody actually uses it to manage their contacts, so it receives no attention at all.
I recognize that the UI is very much in the image of the lisp machine, but in the intervening 25 years since Genera was state of the art the "common expectations" of the naive user community have changed -- at the very least, it might be useful if there was a short document explaining to a user what the expectations of the UI they're using are (though perhaps ultimately it might be valuable to make the UI feel a bit more like what people are now used to.)
It is probably easier to take those parts of CLIM that work like a normal toolkit and make them perfect than to take exotic CLIMy features and turn them into something every user will be familiar with immediately.
Take the address book as an example. Even with the Gtkairo backend, menus and scroll bars are implemented as native widgets, but overall, the application still does not look like other GUI applications today.
So if you wanted to write an address book example that looks and feels more modern, I would suggest building it out of gadgets. Get rid of the interactor. Use list panes and buttons, perhaps even add a button bar.
(Alternatively, you could take the ESA approach and build something with a look and feel familiar to Emacs users.)
Of course, it is also great to see improvements in the area of the more traditional features. Drei seems like one such step forward. Perhaps accepting-values as used for the input fields you mentioned could also use a face lift.
d.
On 2/21/07 9:49 PM, "Perry E. Metzger" perry@piermont.com wrote:
Pardon the utterly naive newbie question, but I'm brand new to McClim, have never used ASDF (and barely understand what it is), etc.
Say I want to get from zero (not even an installed Common Lisp) to running a McClim demo on my machine (running Ubuntu Linux) in short order. What do I need to do to get there?
Luke Gorrie wrote a script called "clbuild" for this purpose. You can find it at:
http://common-lisp.net/~crhodes/clbuild/
(That's Christophe's temporary fork, while Luke is away on work safari :-)
Luke documents the usage here: http://lukego.livejournal.com/2530.html
Perry E. Metzger wrote:
Pardon the utterly naive newbie question, but I'm brand new to McClim, have never used ASDF (and barely understand what it is), etc.
Say I want to get from zero (not even an installed Common Lisp) to running a McClim demo on my machine (running Ubuntu Linux) in short order. What do I need to do to get there?
It may be a bit dated - haven't checked lately - but you might find this useful if you want the latest cvs versions of things (first install sbcl via you OS packaging system):
C Y wrote:
Perry E. Metzger wrote:
Pardon the utterly naive newbie question, but I'm brand new to McClim, have never used ASDF (and barely understand what it is), etc.
Say I want to get from zero (not even an installed Common Lisp) to running a McClim demo on my machine (running Ubuntu Linux) in short order. What do I need to do to get there?
It may be a bit dated - haven't checked lately - but you might find this useful if you want the latest cvs versions of things (first install sbcl via you OS packaging system):
If it *is* dated --- well, it's a wiki, please fix it!
Also, I would *not* recommend asdf-installing McCLIM. It's not very stable, and releases are not that frequent. I run it out of CVS, but don't update the working copy that frequently.
Best, R