On 10/22/07, Cale Gibbard <[EMAIL PROTECTED]> wrote:
>
> Uh, not quite. My code essentially treats mathematica as a function on
> strings, (and involves some additional shell wrapping), since there's
> essentially no processing to do on the Haskell side there. If you
> wanted to do it right, you'd probably want to write an FFI binding to
> MathLink.
>
> On 22/10/2007, Stefan O'Rear <[EMAIL PROTECTED]> wrote:
> > On Mon, Oct 22, 2007 at 07:20:47AM -0400, Brent Yorgey wrote:
> > > * returning a lazy infinite list for infinite sequences via an
> embedded
> > > general AI and Mathematica interpreter.
> >
> > Assuming you have a licensed copy of Mathematica, get in touch with Cale
> > Gibbard; he has done all the work for interfacing Mathematica with
> > Haskell (cf 'mbot' on freenode).


well, at any rate, I was mostly joking about the embedded Mathematica
interpreter. =)   The point is, what you'd *like* (say) extendSequence
[1,2,5,14,42] to do is return the *infinite* list of Catalan numbers, but
that's very, very difficult to do in general! Interpreting the Mathematica
code given for some sequences would require a lot of effort (I'm not even
sure that the Mathematica code for different sequences is generally
organized in some standard way), and still wouldn't really get you all that
much anyway.

Now, if the OEIS stored *Haskell* code to generate sequences...

-Brent
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to