OK so I have McClim up and running on my Mac (PPC with OS X 10.4.9). I've tried it with two Lisps so far, OpenMCL (now Clozure CL) and SBCL. Some observations -
1. SBCL works best. I had some problems with the listener under OpenMCL, especially when I tried to change the path (complained that it was 'not of type LIST'). 2. I have to run it with Apple's X11 - which is not a problem for me, as I use it frequently, but I was wondering if anyone's got it running without it. I had to set the DISPLAY environment variable in my .bash_profile to 127.0.0.1:0.0. So I have to run it from the terminal or an xterm, not from Emacs Slime (my preferred set-up). 3. When an app starts (for instance, the listener, or Gsharp) it takes a while to 'come alive'. Menus aren't usable for about a minute. After that it's OK, though, and I can restart an app (in the same Lisp session) without issue. I think I've only encountered this problem with SBCL. 4. I have also tried to get McClim running on my Windows box. I can compile it for Clisp (native Cygwin version, haven't tried the Win32 port), but when I try and run the Listener or any of the demos it just hangs (even with Cygwin's X11 running). I have also tried using the Win32 port of SBCL, but for some reason CLX won't compile on that. Might give ACL a go, if I can get ASDF to work properly with it. 4. I am hoping to use McClim to build the gui for my current project. I am keen to use it because of the fact that it's Lisp all the way through, unlike other Lisp-based gui kits (Ltk, cells-gtk, lispbuilder, for example) which, while perhaps slicker, feel a bit superficial (just wrappers for Tcl/Tk, Gtk, etc.). I have been tempted to fork out for ACL or LispWorks, but then there are licensing issues when it comes to redistributing my application. So I really want to stick with McClim.
Any thoughts/comments much appreciated.
Thanks, Chris
__________________________________________________________ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
christopher melen chris_melen@yahoo.com writes:
- SBCL works best. I had some problems with the listener under
OpenMCL, especially when I tried to change the path (complained that it was 'not of type LIST').
It's no surprise that SBCL works best - it's what most McCLIM hackers use. Also, it has good performance and implements CLOS well, which is important to McCLIM. Clozure CL is also supposed to be good, so I'd be interested in hearing the specifics of the error you got (backtrace?).
- I have to run it with Apple's X11 - which is not a problem for
me, as I use it frequently, but I was wondering if anyone's got it running without it. I had to set the DISPLAY environment variable in my .bash_profile to 127.0.0.1:0.0. So I have to run it from the terminal or an xterm, not from Emacs Slime (my preferred set-up).
You can set the environment variable for Emacs (M-x setenv) if you want, but anyway, McCLIM is theoretically able to run under Clozure CL/OpenMCL with the Beagle backend, which uses Cocoa. It's not as complete as the CLX backend, though.
I hear Apples X11 server is odd in some ways, which can affect McCLIM, but I do not know the specifics.
- When an app starts (for instance, the listener, or Gsharp) it
takes a while to 'come alive'. Menus aren't usable for about a minute. After that it's OK, though, and I can restart an app (in the same Lisp session) without issue. I think I've only encountered this problem with SBCL.
It is normal for McCLIM apps to be slightly sluggish at first, because the CLOS caches need to be filled the first time generic functions are called. Successive invocations of the program should start up faster. A pause of an entire minute is highly unusual, however. Which version of SBCL is that?
- I have also tried to get McClim running on my
Windows box. I can compile it for Clisp (native Cygwin version, haven't tried the Win32 port), but when I try and run the Listener or any of the demos it just hangs (even with Cygwin's X11 running). I have also tried using the Win32 port of SBCL, but for some reason CLX won't compile on that. Might give ACL a go, if I can get ASDF to work properly with it.
How does it hang? Does it take up all available CPU time or block? McCLIM works on CLISP on Unix, so the implementation itself should not be a problem.
- I am hoping to use McClim to build the gui for my current
project. I am keen to use it because of the fact that it's Lisp all the way through, unlike other Lisp-based gui kits (Ltk, cells-gtk, lispbuilder, for example) which, while perhaps slicker, feel a bit superficial (just wrappers for Tcl/Tk, Gtk, etc.). I have been tempted to fork out for ACL or LispWorks, but then there are licensing issues when it comes to redistributing my application. So I really want to stick with McClim.
That's also one of the reasons I like McCLIM so much. You can use McCLIM to create GUIs that are somewhat similar to "normal" GUIs if you want, but you should realise that it will likely not be a "pretty" GUI unless you implement your own drawing routines for gadgets and panes. The current appearance of the McCLIM CLX backend is not a policy decision, though, so if you can come up with something prettier (the implementation of which should be relatively easy) you're very welcome.
On 17.05.2008, at 19:07, Troels Henriksen wrote:
christopher melen chris_melen@yahoo.com writes:
- I have to run it with Apple's X11 - which is not a problem for
me, as I use it frequently, but I was wondering if anyone's got it running without it. I had to set the DISPLAY environment variable in my .bash_profile to 127.0.0.1:0.0. So I have to run it from the terminal or an xterm, not from Emacs Slime (my preferred set-up).
You can set the environment variable for Emacs (M-x setenv) if you want, but anyway, McCLIM is theoretically able to run under Clozure CL/OpenMCL with the Beagle backend, which uses Cocoa. It's not as complete as the CLX backend, though.
For "not as complete", read "will crash if you look at it funny"; the beagle backend needs lots of tender loving care by someone who knows cocoa. If you want to see it in action anyway, (push :clim-beagle *features*) before loading mcclim, then load clim-examples, call (clim- demo::demodemo) and enjoy the pretty Aqua-ish buttons. You can also get a clim-listener window or start the Climacs editor; just don't expect anything to not crash.
I hear Apples X11 server is odd in some ways, which can affect McCLIM, but I do not know the specifics.
http://paste.lisp.org/display/60199 has a patch that teaches clx/sbcl the appropriate X11-on-Leopard-autostartish magic so you don't need to set DISPLAY. I don't know of any other problems with Apple's X11 server.
Cheers,
Rudi
Rudi Schlatte wrote:
On 17.05.2008, at 19:07, Troels Henriksen wrote:
christopher melen chris_melen@yahoo.com writes:
- I have to run it with Apple's X11 - which is not a problem for
me, as I use it frequently, but I was wondering if anyone's got it running without it. I had to set the DISPLAY environment variable in my .bash_profile to 127.0.0.1:0.0. So I have to run it from the terminal or an xterm, not from Emacs Slime (my preferred set-up).
You can set the environment variable for Emacs (M-x setenv) if you want, but anyway, McCLIM is theoretically able to run under Clozure CL/OpenMCL with the Beagle backend, which uses Cocoa. It's not as complete as the CLX backend, though.
For "not as complete", read "will crash if you look at it funny"; the beagle backend needs lots of tender loving care by someone who knows cocoa. If you want to see it in action anyway, (push :clim-beagle *features*) before loading mcclim, then load clim-examples, call (clim-demo::demodemo) and enjoy the pretty Aqua-ish buttons. You can also get a clim-listener window or start the Climacs editor; just don't expect anything to not crash.
I hear Apples X11 server is odd in some ways, which can affect McCLIM, but I do not know the specifics.
http://paste.lisp.org/display/60199 has a patch that teaches clx/sbcl the appropriate X11-on-Leopard-autostartish magic so you don't need to set DISPLAY. I don't know of any other problems with Apple's X11 server.
Mikel Bancroft has a version of CLX (forked from Xophe's, I believe) with some hacks I came up with to make it play nicely with the autostart magic. Reassuringly, I believe that once I kludged something together that worked, he improved it considerably...
I believe you can get this version from darcs get http://opensource.franz.com/clx/
Note, I haven't tested the latest version yet...
Robert
Yahoo! Thanks to your notes, I was able to get McClim up and running on my system. I'm running SBCL 1.0.10 on an Intel iMac with OSX 10.4.
The install runs more smoothly if you install flexichains and clx before trying mcclim.
Thank you!
Chris
On Sat, May 17, 2008 at 8:07 PM, Robert Goldman rpgoldman@sift.info wrote:
Rudi Schlatte wrote:
On 17.05.2008, at 19:07, Troels Henriksen wrote:
christopher melen chris_melen@yahoo.com writes:
- I have to run it with Apple's X11 - which is not a problem for
me, as I use it frequently, but I was wondering if anyone's got it running without it. I had to set the DISPLAY environment variable in my .bash_profile to 127.0.0.1:0.0. So I have to run it from the terminal or an xterm, not from Emacs Slime (my preferred set-up).
You can set the environment variable for Emacs (M-x setenv) if you want, but anyway, McCLIM is theoretically able to run under Clozure CL/OpenMCL with the Beagle backend, which uses Cocoa. It's not as complete as the CLX backend, though.
For "not as complete", read "will crash if you look at it funny"; the beagle backend needs lots of tender loving care by someone who knows cocoa. If you want to see it in action anyway, (push :clim-beagle *features*) before loading mcclim, then load clim-examples, call (clim-demo::demodemo) and enjoy the pretty Aqua-ish buttons. You can also get a clim-listener window or start the Climacs editor; just don't expect anything to not crash.
I hear Apples X11 server is odd in some ways, which can affect McCLIM,
but I do not know the specifics.
http://paste.lisp.org/display/60199 has a patch that teaches clx/sbcl the appropriate X11-on-Leopard-autostartish magic so you don't need to set DISPLAY. I don't know of any other problems with Apple's X11 server.
Mikel Bancroft has a version of CLX (forked from Xophe's, I believe) with some hacks I came up with to make it play nicely with the autostart magic. Reassuringly, I believe that once I kludged something together that worked, he improved it considerably...
I believe you can get this version from darcs get http://opensource.franz.com/clx/
Note, I haven't tested the latest version yet...
Robert
mcclim-devel mailing list mcclim-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/mcclim-devel