On 29 October 2015 at 22:28, Waldek Hebisch <hebi...@math.uni.wroc.pl> wrote:
> Bill Page wrote:
>>
>> On 29 October 2015 at 21:31, Alasdair McAndrew <amc...@gmail.com> wrote:
>> > ...
>> > calls the gsl function defined in /usr/local/src/gsl-1.16/integration/qag.c
>>
>> I see nothing wrong with this strategy since just calling C from Lisp
>> is the hardest part.  GSLL solves many (but not all) of the problems
>> with type conversions.
>
> Not exactly.  There are types in C and they map reasonably to
> Spad types.  Lisp encourages things which are awkward in
> Spad.

Surely less awkward than C.

> In both cases one needs to declare types at Spad
> level and some cases needs wrappers.  One needs to ensure
> that libraries can be found, which for Lisp means that
> we need to find bot Lisp library and C library.

Well, Kurt showed how to call 'qng.c' will just 3 lines of code.  I
would be happy to see a similar demonstration that involved Spad and
C.

Bill.

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to fricas-devel+unsubscr...@googlegroups.com.
To post to this group, send email to fricas-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to