[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Axiom-developer] how to build functions into kernel?

From: root
Subject: Re: [Axiom-developer] how to build functions into kernel?
Date: Fri, 23 Jul 2004 18:24:15 -0400

The correct method to modify the lisp kernel would be to use UFFI
(the universal foreign function interface). This should allow you
to use C code.

The question, however, is why. With proper type optimization it
is possible to generate lisp that is nearly optimal. I've seen
CAR, CDR, and the various mathematical operations like + reduced
to a single generated machine instruction. Except for truly 
data-intensive numeric operations, like matrix multiply, there
is not much gain. The huge gains in time come from better high
level algorithms. You don't have to perform a 1000x1000 matrix
multiply if you can prove the result must be zero before you start.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]