Arthur W Cater | 26 Aug 10:46

programmatic file chooser?

Hi, I'd like to have an equivalent in ClozureCL (for Mac & Cocoa) of MCL's choose-file-dialog.

Does such a thing exist already? or would I have to roll my own, and if so can
anyone please point me to the names of useful cocoa classes & methods? I hope I don't have
to go all the way to NSBrowser.

Arthur

_______________________________________________
Openmcl-devel mailing list
Openmcl-devel <at> clozure.com
http://clozure.com/mailman/listinfo/openmcl-devel
R. Matthew Emerson | 18 Aug 22:22

announcing #ccl: a freenode irc channel for Clozure CL

We've set up an irc channel on freenode for Clozure CL.

Everyone interested in Clozure CL is welcome to participate.

The channel is hosted on freenode, so point your irc client to  
irc.freenode.net, and join channel #ccl

We log the channel traffic to http://ccl.clozure.com/irc-logs/ccl/

If you're new to IRC, http://www.irchelp.org/ is a reasonable place to  
start.
Susan Epstein | 17 Aug 13:44

Aquamacs can't find openmcl

I have the 64-bit version of openmcl installed in ~/ccl on a Mac with 
an Intel Core 2 Duo and Aquamacs distribution 1.4.

Per the instructions, I put
  (setq inferior-lisp-program "~/ccl/scripts/ccl64")
in
~/Library/Preferences/Aquamacs Emacs/Preferences.el

This should let me use SLIME from a file open in Aquamacs. But when I 
try
M-x slime
I get "no such file or directory, ~ccl/scripts/openmcl"

When I look, of course the file is there, but it is a Unix executable 
and just indicates that there was no such file or directory from line 
70 and that it logged out.

I'd be grateful for any guidance you can offer here.

Susan
Boris Smilga | 17 Aug 11:14

unstable computing times with transient classes

Hello.

I would like to ask a question concerning the inner workings of CCL, which was prompted by the following events.

I was recently experimenting with transient object classes, i.e. classes which are created dynamically
and exist only as long as they have instances. (This has some affinity with how prototype-based object
systems work.) One evident approach here is to create anonymous classes using (MAKE-INSTANCE
'STANDARD-CLASS) and operate on them using MOP capabilities. What I found out, however, was that this
approach has serious performance issues.

To abstract away unnecessary details, I conducted the following experiment:

1. Generate a grove, G, which is a list of conses (KEY . VALUE) where KEYs are symbols and VALUEs are either
strings or nested groves. A good size of groves for our purposes would be in the thousands of nodes.

2a. For G (and, recursively, for each of its subgroves), create C: an anonymous STANDARD-CLASS whose
DIRECT-SLOTS are named after G's KEYs and which is a subclass of STANDARD-OBJECT.

2b. Do (REMOVE-DIRECT-SUBCLASS (FIND-CLASS 'STANDARD-OBJECT) C), so that DIRECT-SUBCLASSES of
STANDARD-OBJECT do not bloat.

2c. Create an instance of C and set its slots to the VALUEs consed on G's respective KEYs.

3. Repeat steps 2a-2c several times (for the same G), measuring the runtime.

The Lisp code for the experiment and the transcript are attached herewith.  To summarize, the runtimes were
extremely unstable, rising from 1½ sec. on the 1st iteration to 49 sec. on the 16th, then quickly dropping
to 7 sec. and rising again, and so on.  (I have run the test in Darwin console mode to exclude that other
software appropriates processing cycles; and it doesn't look like the time was being spent on GC.)

Evidently, there is something in the underlying system that causes the runtimes to veer, and I don't quite
understand what that is.  I would truly appreciate if someone who knows the implementation satisfied my
curiosity about what is going on here.  (Whether it can be fixed on the user side is also of no little interest.)

Sincerely,
 - B. Smilga.

Attachment (test-transient-classes.lisp): application/octet-stream, 2572 bytes
Attachment (test-transient-classes.out): application/octet-stream, 15 KiB
_______________________________________________
Openmcl-devel mailing list
Openmcl-devel <at> clozure.com
http://clozure.com/mailman/listinfo/openmcl-devel
Gary Byers | 14 Aug 14:54

x86 consolidation in svn trunk

If you're not using the svn trunk, feel free to ignore this.

For the last several months, we've maintained the Darwin x86-64 version of
CCL in the subversion trunk at

http://svn.clozure.com/publicsvn/openmcl/trunk/darwinx8664/ccl

For the last few weeks, a 32-bit x86 Darwin version has also been 
available at

http://svn.clozure.com/publicsvn/openmcl/trunk/darwinx8632/ccl

A new directory (containing binaries for both 32- and 64-bit x86 Darwin,
interfaces and common sources is available at:

http://svn.clozure.com/publicsvn/openmcl/trunk/darwinx86/ccl

The old (word-size specific) directories will likely be deprecated
and removed soon.  If you've been using a working copy based on
one of these older directories, please switch to the new consolidated
directory ASAP.

This is fairly easy to do in svn:

1) cd to the ccl directory and ensure that it's up to date with respect
to the old URL.  (The latter part may not be strictly necessary, but can't
hurt.)

shell> cd ccl
shell> svn update

To be extra paranoid: ensure that your working copy doesn't contain
any files where local changes conflict with the repository's copy.
(If any conflicts exist for a given file "f", then

shell> svn revert f

will resolve those conflicts.

Then:

2) tell svn to switch URLs:

shell> svn switch http://svn.clozure.com/publicsvn/openmcl/trunk/darwinx86/ccl

If you've been using the darwinx8664/ccl URL, that'll download the 32-bit
binaries and interfaces.

As the IA32 port comes up on other OSes (Linux, FreeBSD, Solaris,
Windows), we'll likely do something similar (and drop the word-size
specific directories.)

Combining the 32-bit and 64-bit versions into a single distribution
means that there are fewer things to distribute and simplifies maintenance
and development somewhat.  It does make the distribution larger, but 
that's usually only a factor on the initial checkout/download.
Thom Goodsell | 12 Aug 03:14

Any Lisa/CCL users?

Is anyone on the list using the Lisa expert system shell under ccl?  
Lisa is roughly 5x faster under sbcl than under ccl for my application  
(out of the box), and before I spend too much time trying to figure  
out why, I figured I see if anyone else has experience with it or is  
interested in collaborating on an investigation.

(Sorry for the moderately off-topic spam; Lisa has no mailing list.)

Thanks,
Thom
Gary Byers | 10 Aug 12:12

Re: Tracking Down CFFI Problem

I just glanced at this and may be missing something, but the code
didn't look like it'd ever been built on a 64-bit system.  Just trying
to build the C library on a 64-bit Linux system (where the C compiler/
toolchain assume a 64-bit world) led to

/usr/bin/ld: betabase.o: relocation R_X86_64_32 against `a local symbol' 
can not be used when making a shared object; recompile with -fPIC
betabase.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [liblispstat.so] Error 1

and there didn't seem to be anything in the Makefile that addressed this.
(Adding "-fPIC" to CFLAGS probably isn't the last change you'd have to
make; I don't know how sensitive the rest of the code is to word-size
issues, but the fact that the linker was complaining strongly suggests
that the C code has only ever been built or run in a 32-bit environment.)

If that assumption's correct, then it may also be the case that the
lisp code (and/or CFFI glue) have word-size issues.  Someone who is
interested in this should certainly look at the code carefully and
try to determine if it's making assumptions about the size or alignment
of foreign objects.

There are lots of things to go wrong, and it's certainly possible that
foreign memory access primitives in CCL could have bugs in them (though
I don't know of any such bugs.)  It seems likely that word-size issues
would be obscuring the issue enough that any such bugs would be very
difficult to isolate.

On Sat, 9 Aug 2008, Brent Fulgham wrote:

> Hi Gary,
>
> I've been trying to get CommonLispStat working on Clozure CL 
> (http://repo.or.cz/w/CommonLispStat.git).  By and large it works fine with a 
> current copy of CFFI.  However, there is one call that is failing LU-SOLVE:
>
> (defun lu-solve (lu lb)
> "Args: (lu b)
> LU is the result of (LU-DECOMP A) for a square matrix A, B is a sequence.
> Returns the solution to the equation Ax = B. Signals an error if A is
> singular."
> (let ((la (first lu))
> 	(lidx (second lu)))
>   (check-square-matrix la)
>   (check-sequence lidx)
>   (check-sequence lb)
>   (check-fixnum lidx)
>   (let* ((n (num-rows la))
> 	   (result (make-sequence (if (consp lb) 'list 'vector) n))
> 	   (a-mode (la-data-mode la))
> 	   (b-mode (la-data-mode lb)))
>     (if (/= n (length lidx)) (error "index sequence is wrong length"))
>     (if (/= n (length lb)) (error "right hand side is wrong length"))
>     (let* ((mode (max +mode-re+ a-mode b-mode))
> 	     (a (la-data-to-matrix la mode))
> 	     (indx (la-data-to-vector lidx +mode-in+))
> 	     (b (la-data-to-vector lb mode))
> 	     (singular 0))
> 	(unwind-protect
> 	    (progn
> 	      (setf singular (lu-solve-front a n indx b mode))
> 	      (la-vector-to-data b n mode result))
> 	  (la-free-matrix a n)
> 	  (la-free-vector indx)
> 	  (la-free-vector b))
> 	(if (/= 0.0 singular) (error "matrix is (numerically) singular"))
> 	result))))
>
> ? (defvar *ABC* (lu-decomp #2A((2 3 4) (1 2 4) (2 4 5))))
> *ABC*
>
> ? *ABC*
> (#2A((2.0 3.0 4.0) (1.0 1.0 1.0) (0.5 0.5 1.5)) #(0 2 2) -1.0 NIL)
>
> This produces a 3x3 matrix with some additional stuff cons'd onto the end. 
> If I call LU-SOLVE on this, I should get the following (from SBCL):
>
> * (lu-solve *ABC* #(2 3 4))
>
> #(-2.333333333333333 1.3333333333333335 0.6666666666666666)
>
> Unfortunately, in Clozure CL I get an error.  After turning on some tracing, 
> I get the following behavior:
>
> ===============Clozure CL x86_64 
> ====================================================
> ? (lu-solve *ABC* #(2 3 4))
> 0> Calling (LU-SOLVE (#2A((2.0 3.0 4.0) (1.0 1.0 1.0) (0.5 0.5 1.5)) #(0 2 2) 
> -1.0 NIL) #(2 3 4))
> 1> Calling (LISP-STAT-MATRIX:CHECK-MATRIX #2A((2.0 3.0 4.0) (1.0 1.0 1.0) 
> (0.5 0.5 1.5)))
> <1 LISP-STAT-MATRIX:CHECK-MATRIX returned T
> 1> Calling (NUM-ROWS #2A((2.0 3.0 4.0) (1.0 1.0 1.0) (0.5 0.5 1.5)))
> <1 NUM-ROWS returned 3
> 1> Calling (LISP-STAT-LINALG-DATA:LA-DATA-TO-MATRIX #2A((2.0 3.0 4.0) (1.0 
> 1.0 1.0) (0.5 0.5 1.5)) 1)
> 2> Calling (LISP-STAT-MATRIX:CHECK-MATRIX #2A((2.0 3.0 4.0) (1.0 1.0 1.0) 
> (0.5 0.5 1.5)))
> <2 LISP-STAT-MATRIX:CHECK-MATRIX returned T
> 2> Calling (NUM-ROWS #2A((2.0 3.0 4.0) (1.0 1.0 1.0) (0.5 0.5 1.5)))
> <2 NUM-ROWS returned 3
> 2> Calling (NUM-COLS #2A((2.0 3.0 4.0) (1.0 1.0 1.0) (0.5 0.5 1.5)))
> <2 NUM-COLS returned 3
> 2> Calling (LISP-STAT-LINALG-DATA:LA-MATRIX 3 3 1)
> <2 LISP-STAT-LINALG-DATA:LA-MATRIX returned #<A Foreign Pointer #x10BF60>
> 2> Calling (LISP-STAT-LINALG-DATA::LA-GET-POINTER #<A Foreign Pointer 
> #x10BF60> 0)
> <2 LISP-STAT-LINALG-DATA::LA-GET-POINTER returned #<A Foreign Pointer 
> #x10BF70>
> 2> Calling (LISP-STAT-LINALG-DATA:LA-PUT-DOUBLE #<A Foreign Pointer 
> #x10BF70> 0 2.0)
> <2 LISP-STAT-LINALG-DATA:LA-PUT-DOUBLE returned NIL
> 2> Calling (LISP-STAT-LINALG-DATA:LA-PUT-DOUBLE #<A Foreign Pointer 
> #x10BF70> 1 3.0)
> <2 LISP-STAT-LINALG-DATA:LA-PUT-DOUBLE returned NIL
> 2> Calling (LISP-STAT-LINALG-DATA:LA-PUT-DOUBLE #<A Foreign Pointer 
> #x10BF70> 2 4.0)
> <2 LISP-STAT-LINALG-DATA:LA-PUT-DOUBLE returned NIL
> 2> Calling (LISP-STAT-LINALG-DATA::LA-GET-POINTER #<A Foreign Pointer 
> #x10BF60> 1)
> <2 LISP-STAT-LINALG-DATA::LA-GET-POINTER returned #<A Foreign Pointer 
> #x104E70>
> 2> Calling (LISP-STAT-LINALG-DATA:LA-PUT-DOUBLE #<A Foreign Pointer 
> #x104E70> 0 1.0)
> <2 LISP-STAT-LINALG-DATA:LA-PUT-DOUBLE returned NIL
> 2> Calling (LISP-STAT-LINALG-DATA:LA-PUT-DOUBLE #<A Foreign Pointer 
> #x104E70> 1 1.0)
> <2 LISP-STAT-LINALG-DATA:LA-PUT-DOUBLE returned NIL
> 2> Calling (LISP-STAT-LINALG-DATA:LA-PUT-DOUBLE #<A Foreign Pointer 
> #x104E70> 2 1.0)
> <2 LISP-STAT-LINALG-DATA:LA-PUT-DOUBLE returned NIL
> 2> Calling (LISP-STAT-LINALG-DATA::LA-GET-POINTER #<A Foreign Pointer 
> #x10BF60> 2)
> <2 LISP-STAT-LINALG-DATA::LA-GET-POINTER returned #<A Foreign Pointer 
> #x4000000000000000>
> 2> Calling (LISP-STAT-LINALG-DATA:LA-PUT-DOUBLE #<A Foreign Pointer 
> #x4000000000000000> 0 0.5)
> Unhandled exception 11 at 0x78dd22, context->regs at #xb029b980
> Exception occurred while executing foreign code
> at la_put_double + 39
> ? for help
> ====================================================================================
>
> Based on this, it looks like the problem is that the third and final 
> iteration over the matrix object, where it returns a bogus pointer.  I'm not 
> sure if the values returned from the LA-GET-POINTER calls are reasonable 
> (there seems to be a large space between them).  Row 0 is 16 bytes past the 
> pointer to the matrix structure, which sounds reasonable.  But the 1st row is 
> is 28,928 bytes past the 0th row.
>
> To compare, running this same code under SBCL produces seemingly more 
> expected behavior.  Row 0 is 128 bytes past the pointer to the matrix 
> structure, which I don't quite get.  But the 1st row is only 32 bytes past 
> the 0th row.  For 32-bit values, this would sound okay for three doubles (3 x 
> 16 ->
>
> =============== SBCL x86 32-bit 
> ====================================================
>     2: (LISP-STAT-LINALG-DATA::LA-GET-POINTER #.(SB-SYS:INT-SAP #X00100DC0) 
> 1)
>     2: LISP-STAT-LINALG-DATA::LA-GET-POINTER returned
>          #.(SB-SYS:INT-SAP #X00100D40)
>     2: (LISP-STAT-LINALG-DATA:LA-PUT-DOUBLE #.(SB-SYS:INT-SAP #X00100D40) 0
>                                             1.0)
>     2: LISP-STAT-LINALG-DATA:LA-PUT-DOUBLE returned
>     2: (LISP-STAT-LINALG-DATA:LA-PUT-DOUBLE #.(SB-SYS:INT-SAP #X00100D40) 1
>                                             1.0)
>     2: LISP-STAT-LINALG-DATA:LA-PUT-DOUBLE returned
>     2: (LISP-STAT-LINALG-DATA:LA-PUT-DOUBLE #.(SB-SYS:INT-SAP #X00100D40) 2
>                                             1.0)
>     2: LISP-STAT-LINALG-DATA:LA-PUT-DOUBLE returned
>     2: (LISP-STAT-LINALG-DATA::LA-GET-POINTER #.(SB-SYS:INT-SAP #X00100DC0) 
> 2)
>     2: LISP-STAT-LINALG-DATA::LA-GET-POINTER returned
>          #.(SB-SYS:INT-SAP #X00100D60)
>     2: (LISP-STAT-LINALG-DATA:LA-PUT-DOUBLE #.(SB-SYS:INT-SAP #X00100D60) 0
>                                             0.5)
>     2: LISP-STAT-LINALG-DATA:LA-PUT-DOUBLE returned
>     2: (LISP-STAT-LINALG-DATA:LA-PUT-DOUBLE #.(SB-SYS:INT-SAP #X00100D60) 1
>                                             0.5)
>     2: LISP-STAT-LINALG-DATA:LA-PUT-DOUBLE returned
>     2: (LISP-STAT-LINALG-DATA:LA-PUT-DOUBLE #.(SB-SYS:INT-SAP #X00100D60) 2
>                                             1.5)
> ====================================================================================
>
> I suspect this is some kind of error with the use of the 64-bit runtime; the 
> "get-pointer" call accessed through the CFFI is fairly simple.  Could the 
> "int" I'm passing from CCL be a different size than expected in the 64-bit C 
> side?
>
> typedef char *PTR;
>
> [... stuff ...]
>
> PTR
> la_get_pointer(PTR p, int i)
> {
> return(*(((PTR *) p) + i));
> }
>
> Unfortunately, the kernel failure is happening due to an earlier error, so 
> I'm afraid the backtrace is probably useless.  Still, I'll include it in case 
> it helps.
>
> =============== Clozure CL x86_64 kernel backtrace 
> ======================================
> [44938] OpenMCL kernel debugger: b
> current thread: tcr = 0x104ad0, native thread ID = 0xe703, interrupts enabled
>
>
> (#x000000000065A948) #x00003000411540FC : #<Function CCL-LA-PUT-DOUBLE 
> #x0000300041153FFF> + 253
> (#x000000000065A970) #x00003000412BCB2C : #<Function (TRACED LA-PUT-DOUBLE) 
> #x00003000412BC8CF> + 605
> (#x000000000065A9B8) #x00003000411518F4 : #<Function LA-DATA-TO-MATRIX 
> #x000030004115169F> + 597
> (#x000000000065AA08) #x000030004127101C : #<Function (TRACED 
> LA-DATA-TO-MATRIX) #x0000300041270DBF> + 605
> (#x000000000065AA50) #x0000300041172A0C : #<Function LU-SOLVE 
> #x000030004117277F> + 653
> (#x000000000065AAB0) #x00003000412AB43C : #<Function (TRACED LU-SOLVE) 
> #x00003000412AB1DF> + 605
> (#x000000000065AAF8) #x00003000404915D4 : #<Function CALL-CHECK-REGS 
> #x00003000404914EF> + 229
> (#x000000000065AB30) #x00003000404B121C : #<Function TOPLEVEL-EVAL 
> #x00003000404B0F3F> + 733
> (#x000000000065ABD0) #x00003000404B300C : #<Function READ-LOOP 
> #x00003000404B293F> + 1741
> (#x000000000065ADD8) #x00003000404910AC : #<Function TOPLEVEL-LOOP 
> #x000030004049102F> + 125
> (#x000000000065AE08) #x0000300040447094 : #<Function (:INTERNAL 
> (TOPLEVEL-FUNCTION (LISP-DEVELOPMENT-SYSTEM T))) #x000030004044702F> + 101
> (#x000000000065AE20) #x0000300040548A34 : #<Function (:INTERNAL 
> MAKE-MCL-LISTENER-PROCESS) #x00003000405487AF> + 645
> (#x000000000065AEB8) #x000030004045A21C : #<Function RUN-PROCESS-INITIAL-FORM 
> #x0000300040459F4F> + 717
> (#x000000000065AF48) #x0000300040438294 : #<Function (:INTERNAL 
> %PROCESS-PRESET-INTERNAL) #x000030004043810F> + 389
> (#x000000000065AF98) #x0000300040400E84 : #<Function (:INTERNAL 
> THREAD-MAKE-STARTUP-FUNCTION) #x0000300040400D5F> + 293
> [44938] OpenMCL kernel debugger:
> =================================================================================
>
> The first thing I tried to debug this was to run the CFFI test suite under 
> 64-bit CCL.  I don't see any errors (though there doesn't seem to be a 
> comparable test case).  The tests that do test getting and setting double 
> values all seem to work fine, but there are no 'matrix' or 'array of array' 
> type tests that I can see.
>
> Can you suggest anything as a place to start looking for the problem?
>
> Thanks,
>
> -Brent
Patrick May | 4 Aug 19:48

Problem with time in Slime

	I'm trying to time a function within Slime.  The function completes,  
but then I get the error listed below.  The same code and call to time  
works from the command line.  The value (10000 292411 50005000) is  
what is returned from the function being timed.

	Is this a Clozure issue, a Slime issue, or a user issue?

Thanks,

Patrick

No applicable method for args:
  ((10000 292411 50005000))
  to #<STANDARD-GENERIC-FUNCTION TIME #x9383FE6>
    [Condition of type SIMPLE-ERROR]

Restarts:
  0: [CONTINUE] Try calling it again
  1: [ABORT] Return to SLIME's top level.
  2: [ABORT-BREAK] Reset this process
  3: [ABORT] Kill this process

Backtrace:
   0: (#<CCL::STANDARD-KERNEL-METHOD NO-APPLICABLE-METHOD (T)>  
#<STANDARD-GENERIC-FUNCTION TIME #x9383FE6> '(10000 292411 50005000))
   1: (CCL::CALL-CHECK-REGS 'TIME '(10000 292411 50005000))
   2: ((:INTERNAL SWANK:INTERACTIVE-EVAL))
   3: (SWANK::CALL-WITH-BUFFER-SYNTAX #<CCL:COMPILED-LEXICAL-CLOSURE  
(:INTERNAL
                                      SWANK:INTERACTIVE-EVAL)  
#x9476966>)
   4: (CCL::CALL-CHECK-REGS 'SWANK:INTERACTIVE-EVAL "(time (test- 
histogram 10000 4))")
   5: ((:INTERNAL SWANK::EVAL-FOR-EMACS))
   6: (#<Anonymous Function #x856B3FE> #<Compiled-function SWANK:SWANK- 
DEBUGGER-HOOK #x861A9AE> #<CCL:COMPILED-LEXICAL-CLOSURE (:INTERNAL
                                      SWANK::EVAL-FOR-EMACS) #x9476986>)
   7: (FUNCALL 'SWANK::EVAL-FOR-EMACS '(SWANK:INTERACTIVE-EVAL "(time  
(test-histogram 10000 4))") "ita-puzzles" 783)
   8: ((:INTERNAL SWANK::HANDLE-REQUEST))
   9: (#<Anonymous Function #x856B3FE> #<Compiled-function SWANK:SWANK- 
DEBUGGER-HOOK #x861A9AE> #<Compiled-function (:INTERNAL
                           SWANK::HANDLE-REQUEST) (Non-Global)   
#x85F2FE6>)
  10: (SWANK::CALL-WITH-REDIRECTED-IO #<CONNECTION  #x867B856>  
#<CCL:COMPILED-LEXICAL-CLOSURE (:INTERNAL
                                      SWANK::CALL-WITH-CONNECTION)  
#x94769A6>)
  11: (SWANK::CALL-WITH-CONNECTION #<CONNECTION  #x867B856> #<Compiled- 
function (:INTERNAL
                           SWANK::HANDLE-REQUEST) (Non-Global)   
#x85F2FE6>)
  12: (SWANK::HANDLE-REQUEST #<CONNECTION  #x867B856>)
  13: (SWANK::CALL-WITH-BINDINGS 'NIL #<CCL:COMPILED-LEXICAL-CLOSURE  
(:INTERNAL
                                      SWANK::SPAWN-WORKER-THREAD)  
#x94769BE>)
  14: (CCL::RUN-PROCESS-INITIAL-FORM #<PROCESS worker(833) [Active]  
#x9472B9E> '(#<CCL:COMPILED-LEXICAL-CLOSURE (:INTERNAL
                                        CCL::%PROCESS-RUN-FUNCTION)  
#x9472B5E>))
  15: ((:INTERNAL CCL::%PROCESS-PRESET-INTERNAL) #<PROCESS worker(833)  
[Active] #x9472B9E> '(#<CCL:COMPILED-LEXICAL-CLOSURE (:INTERNAL
                                        CCL::%PROCESS-RUN-FUNCTION)  
#x9472B5E>))
  16: ((:INTERNAL CCL::THREAD-MAKE-STARTUP-FUNCTION))
Thom Goodsell | 4 Aug 21:52

Recent CHUD?

Has anyone tried running a recent set of CHUD profiling tools against  
a recent ccl? I get interesting looking output, but no symbol values,  
which seems to be a common problem. If there someone who might be able  
to fix in with just a bit of work, or someone who could lend some  
experience and point me to the resources I'd need to fix it, that  
would be super helpful.

This is with a ccl checkout from this morning + Shark.app 4.6.0 (which  
apparently comes with XCode 3.1).

Thanks,
Thom
Thom Goodsell | 1 Aug 22:45

Error: Unbound variable: #<error printing #<Recursive printing error #x30004001574E> #x30004045A3EE>

I'm getting this when I try to start slime, using cvs slime and svn  
ccl. I'm completely baffled as to what's going on, or even where to  
look. Has anyone seen something similar, or do you have any ideas of  
where to look?

I've tried various svn versions, back as far as r9082, which was the  
earliest one svn would fetch for me without complaint.

The problem happens when slime tries to open the connection (i.e.,  
after swank has started a server).

The *inferior-lisp* output is below.

Thanks for any ideas.

Thom

(progn (load "/Users/tgoodsell/Library/Application Support/Emacs/site- 
lisp/slime/swank-loader.lisp" :verbose t) (funcall (read-from-string  
"swank-loader:init")) (funcall (read-from-string "swank:start-server")  
"/var/folders/KP/KP1ZOAS0HuyY8QTUt0E4QU+++TI/-Tmp-/slime. 
17583" :coding-system "utf-8-unix"))

Welcome to Clozure Common Lisp Version 1.2-r9090-RC1  (DarwinX8664)!
? ;Loading #P"/Users/tgoodsell/Library/Application Support/Emacs/site- 
lisp/slime/swank-loader.lisp"...
;Loading #P"/Users/tgoodsell/.slime/fasl/2008-07-27/openmcl- 
version_1.2-r9090-rc1__(darwinx8664)-darwin-x86-64/swank- 
backend.dx64fsl"...
;Loading #P"/Users/tgoodsell/.slime/fasl/2008-07-27/openmcl- 
version_1.2-r9090-rc1__(darwinx8664)-darwin-x86-64/metering.dx64fsl"...
;Loading #P"/Users/tgoodsell/.slime/fasl/2008-07-27/openmcl- 
version_1.2-r9090-rc1__(darwinx8664)-darwin-x86-64/swank- 
openmcl.dx64fsl"...
;Loading #P"/Users/tgoodsell/.slime/fasl/2008-07-27/openmcl- 
version_1.2-r9090-rc1__(darwinx8664)-darwin-x86-64/swank- 
gray.dx64fsl"...
;Loading #P"/Users/tgoodsell/.slime/fasl/2008-07-27/openmcl- 
version_1.2-r9090-rc1__(darwinx8664)-darwin-x86-64/swank.dx64fsl"...
; Warning: These Swank interfaces are unimplemented:
;           (ACTIVATE-STEPPING ADD-FD-HANDLER ADD-SIGIO-HANDLER CALLS- 
WHO FIND-SOURCE-LOCATION MACROEXPAND-ALL REMOVE-FD-HANDLERS REMOVE- 
SIGIO-HANDLERS RESTART-FRAME RETURN-FROM-FRAME SLDB-BREAK-AT-START  
SLDB-BREAK-ON-RETURN SLDB-STEP-INTO SLDB-STEP-NEXT SLDB-STEP-OUT)
; While executing: SWANK-BACKEND::WARN-UNIMPLEMENTED-INTERFACES, in  
process listener(1).
;; Swank started at port: 51631.
51631
?
;; swank:close-connection: Unbound variable:
 > Error: Unbound variable: #<error printing #<Recursive printing  
error  #x30004001574E> #x30004045A3EE>
 > While executing: #<error printing #<Recursive printing error   
#x30004001574E> #x30004045AE1E>, in process control-thread(3).

;;;
;;; #<
 > Error: Unbound variable: #<error printing #<Recursive printing  
error  #x30004001574E> #x30004045A3EE>
 > While executing: #<error printing #<Recursive printing error   
#x30004001574E> #x30004045AE1E>, in process control-thread(3).

;;;
;;; #<
 > Error: Unbound variable: #<error printing #<Recursive printing  
error  #x30004001574E> #x30004045A3EE>
 > While executing: #<error printing #<Recursive printing error   
#x30004001574E> #x30004045AE1E>, in process control-thread(3).

[[ ... repeated numerous times until ... ]]

;;;
;;; #<
 > Error: Unbound variable: #<error printing #<Recursive printing  
error  #x30004001574E> #x30004045A3EE>
 > While executing: #<error printing #<Recursive printing error   
#x30004001574E> #x30004045AE1E>, in process control-thread(3).

;;;
;;; #<
 > Error: Stack overflow on value stack.
 > While executing: #<error printing #<Recursive printing error   
#x30004001574E> #x3000400BC07E>, in process control-thread(3).

;;;
;;; #<#<error printing #<Recursive printing error  #x30004001574E>  
#x30004007A5DE> control-thread(3) [Active] #x300040EA256D> requires  
access to Shared Terminal Input
;;;
Chris Van Dusen | 29 Jul 04:40

Error Running Currency Converter

Hi,

I'm going through the currency converter example, and got to the point of building the application.  After hitting Enter, the Clozure IDE disappears (which, even though the tutorial says, "If all goes well, BUILD-APPLICATION constructs an application bundle, copies 'CurrencyConverter.nib' into it, writes the application executable, and quits.", I don't know that this is what was meant).

Anyway, the CurrencyConverter.app shows up, but when I double-click it "nothing happens".  I looked in Console and found the following:

7/28/08 8:51:14 PM [0x0-0x8a08a].com.clozure.Clozure CL[9130] Error during early application initialization: 
7/28/08 8:51:14 PM [0x0-0x8a08a].com.clozure.Clozure CL[9130] value #<A Dead Mac Pointer> is not of the expected type MACPTR. 
7/28/08 8:51:14 PM [0x0-0x8a08a].com.clozure.Clozure CL[9130] ? for help 
7/28/08 8:51:14 PM [0x0-0x8a08a].com.clozure.Clozure CL[9130] [9130] OpenMCL kernel debugger:  
7/28/08 8:51:14 PM com.apple.launchd[73] ([0x0-0x8a08a].com.clozure.Clozure CL[9130]) Exited: Killed 

Googling for the error seemed to indicate that this tends to be a user error.  

Is this correct?  If so, I'll go back to triple check the code and the Application Builder.  If not, would anyone know where to look for possible clues?

Thanks,
Chris.
_______________________________________________
Openmcl-devel mailing list
Openmcl-devel <at> clozure.com
http://clozure.com/mailman/listinfo/openmcl-devel

Gmane