Thomas Fischbacher wrote:
> Anyway, for something like random number generation, you may well think 
> about alien-funcalling C. But you probably should turn off GC while C is 
> in control.

On x86, the main part of the random number generator is in hand-coded 
assembly.  I'm pretty sure the part that converts them to double-floats 
is also pretty efficient.

> 
> 
>>It seems like declarations can get rid of boxing and unboxing inside
>>of functions, but in general not across function calls, unless
>>functions are inlined, maybe-inlined, or block compiled.  Is this the
>>case?
> 
> 
> More or less. At least with (complex double-float) you may also run into 
> trouble if you run out of FPU registers. Then again, the system will 
> cons numbers.

As I understand it, this doesn't happen.  When you run out of registers, 
the numbers are placed on the number stack, which doesn't cons.  But I 
might be wrong about this.

Ray


Reply via email to