<div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
Someone has written a large Java library (QuickFIX/J) which speaks a gnarled, ugly protocol (FIX).</blockquote><div> </div><div>They&#39;ve also written a large C++ library for the same purpose called QuickFix[1].</div><div>
You could try wrapping it directly via the Haskell FFI.</div><div><br></div><div>Travis</div><div><br></div><div>[1] <a href="http://www.quickfixengine.org/">http://www.quickfixengine.org/</a></div><div><br></div><div><br>
<div class="gmail_quote">On Thu, Jul 8, 2010 at 6:35 PM, Daniel Cook <span dir="ltr">&lt;<a href="mailto:danielkcook@gmail.com">danielkcook@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
Someone has written a large Java library (QuickFIX/J) which speaks a<br>
gnarled, ugly protocol (FIX).  There don&#39;t appear to be any FIX<br>
protocol libraries in Hackage.  I need my Haskell program to talk to a<br>
3rd-party system that only speaks FIX.<br>
<br>
Should I:<br>
<br>
a) Reimplement the protocol directly Haskell?  (This appears to be non-trivial)<br>
<br>
b) Wrap the Java library with some code to use a lightweight message<br>
queue (zeromq) to send messages to my Haskell program?  (This would<br>
require essentially re-implementing an abstracted subset of the the<br>
protocol into 0MQ messages)<br>
<br>
c) Find a way for Haskell to interact directly with Java? (the various<br>
JNI bridges seem very unmaintained...)<br>
<br>
To me, (b) seems like the best approach, but I&#39;d like to hear what the<br>
cafe thinks..<br>
<br>
Cheers,<br>
- Dan<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br></div></div>