The major concern that I would have is that if GCL or any of those math libraries uses GMP behind the scenes, which they probably do, then things will just start crashing on you, because GHC hooks the GMP allocator and will just start making the limbs of their numbers disappear.<div>
<br></div><div>-Edward</div><div><br><div class="gmail_quote">On Tue, Nov 1, 2011 at 12:05 PM, Serge D. Mechveliani <span dir="ltr"><<a href="mailto:mechvel@botik.ru">mechvel@botik.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Dear GHC developers,<br>
<br>
There is a computer algebra library called DoCon and written in<br>
Haskell (+GHC).<br>
And I am considering the possibility to extend it with many new methods<br>
by joining some open libraries written in C, C++, and in<br>
Gnu Common Lisp (GCL).<br>
<br>
1. I have seen somewhere the announcement of the C library for numbers,<br>
algebraic numbers by Lenstra and may be, others.<br>
Is it real to design its interface to a Haskell program (DoCon), may be,<br>
by using some tools from GHC ? (which tools?)<br>
<br>
2. There exists a great volum of math libraries written in Lisp-s,<br>
in particular, in GCL.<br>
I believe some of them have a free enough license.<br>
But how to interface to them?<br>
For example, is there possible an interpreter for GCL written in C ?<br>
If it is, then, may be, the GCL libraries can be interfaced by joining<br>
and applying this interpreter at the C data level?<br>
<br>
Also I have looked in the GCL page, and it was not clear where to ask<br>
about such GCL interpreter.<br>
I never tried these interface tricks and never looked into the Lisp<br>
design.<br>
<br>
Thank you in advance for your advice.<br>
<br>
-----------------<br>
Serge Mechveliani<br>
<a href="mailto:mechvel@botik.ru">mechvel@botik.ru</a><br>
<br>
_______________________________________________<br>
Glasgow-haskell-users mailing list<br>
<a href="mailto:Glasgow-haskell-users@haskell.org">Glasgow-haskell-users@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/glasgow-haskell-users" target="_blank">http://www.haskell.org/mailman/listinfo/glasgow-haskell-users</a><br>
</blockquote></div><br></div>