[Haskell-iPhone] FFI for living in C
Casey Basichis
caseybasichis at gmail.com
Sat Dec 1 18:28:28 CET 2012
Hi,
I've been reading about the FFI for getting Haskell to communicate with C
code (C++ really).
My intention is to handle most of the app - the GUI events in C++ and
sending all of the processing logic in Haskell - including a database etc.
Is the FFI the right tool for a situation where, while used extensively,
Haskell is more or less there to take in data, like lists and spit out data
like vectors etc back to C.
I am looking to get a few test running where I can pass data in an out of
Haskell like vectors of floats.
Also, I noticed on the wiki example:
Haskell start
c_main
I was a little confused by this. Does Haskell load up first because its a
library? I couldn't figure out where it was being called in the C code or
why Haskell loads first. Not a biggie just a bit of an impediment in
understanding how it all works.
Thanks,
Casey
--
Casey James Basichis
Composer - Cartoon Network
http://www.caseyjamesbasichis.com
caseybasichis at gmail.com
310.387.7540
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/iphone/attachments/20121201/7a8bbc35/attachment.htm>
More information about the iPhone
mailing list