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)  
(Continue reading)

Gary Byers | 5 Aug 04:54

Re: Problem with time in Slime


On Mon, 4 Aug 2008, Patrick May wrote:

> 	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?

I don't know, but CL:TIME is a macro, not a generic function.

? (find-all-symbols "TIME")

Is there more than one ?  If so, are you calling something other than
CL:TIME ?

? (macro-function 'cl:time)

Does this return a (macroexpansion) function ?

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

Patrick May | 5 Aug 18:20

Re: Problem with time in Slime

On 4 Aug 2008, at 22:54, Gary Byers wrote:
> On Mon, 4 Aug 2008, Patrick May wrote:
>
>> 	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?
>
> I don't know, but CL:TIME is a macro, not a generic function.
>
> ? (find-all-symbols "TIME")
>
> Is there more than one ?  If so, are you calling something other than
> CL:TIME ?
>
> ? (macro-function 'cl:time)
>
> Does this return a (macroexpansion) function ?

	Thanks, I should have checked that myself.  I seem to have  
inadvertently stomped on time.  Definitely a user issue.

Thanks again,

Patrick

Gmane