[Haskell-cafe] Talking to Java from Haskell?

Travis Brady travis.brady at gmail.com
Mon Jul 19 20:26:28 EDT 2010


>
> Someone has written a large Java library (QuickFIX/J) which speaks
> a gnarled, ugly protocol (FIX).


They've also written a large C++ library for the same purpose called
QuickFix[1].
You could try wrapping it directly via the Haskell FFI.

Travis

[1] http://www.quickfixengine.org/


On Thu, Jul 8, 2010 at 6:35 PM, Daniel Cook <danielkcook at gmail.com> wrote:

> Hi,
>
> Someone has written a large Java library (QuickFIX/J) which speaks a
> gnarled, ugly protocol (FIX).  There don't appear to be any FIX
> protocol libraries in Hackage.  I need my Haskell program to talk to a
> 3rd-party system that only speaks FIX.
>
> Should I:
>
> a) Reimplement the protocol directly Haskell?  (This appears to be
> non-trivial)
>
> b) Wrap the Java library with some code to use a lightweight message
> queue (zeromq) to send messages to my Haskell program?  (This would
> require essentially re-implementing an abstracted subset of the the
> protocol into 0MQ messages)
>
> c) Find a way for Haskell to interact directly with Java? (the various
> JNI bridges seem very unmaintained...)
>
> To me, (b) seems like the best approach, but I'd like to hear what the
> cafe thinks..
>
> Cheers,
> - Dan
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100719/e58f0be3/attachment.html


More information about the Haskell-Cafe mailing list