Re: [Haskell-cafe] Talking to Java from Haskell?

2010-07-20 Thread aditya siram
Besides the FFI option, I know that Haskell has pretty good Lua bindings [1] and Lua has pretty good Java bindings [2] so perhaps the law of transitivity can work for you! -deech [1] http://hackage.haskell.org/package/hslua-0.2 [2] http://www.keplerproject.org/luajava/manual.html On Mon, Jul

Re: [Haskell-cafe] Talking to Java from Haskell?

2010-07-19 Thread Travis Brady
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,

Re: [Haskell-cafe] Talking to Java from Haskell?

2010-07-19 Thread Max Cantor
I use Apache Thrift, as someone else mentioned for IPC with some java code that connects to a third party data vendor. As of version 0.2, there are some bugs that you need to be aware of. However, and possibly more of interest to you, I have already written a FIX implementation in pure

Re: [Haskell-cafe] Talking to Java from Haskell?

2010-07-09 Thread Daniel Cook
A simpler solution might be Facebook's thrift [1] This is a very interesting solution. I'll investigate Thrift further, but it may wind up being what I do. Does anyone know how solid this code is in Haskell? the Java binary directly from Haskell using System.Process and friends, and rather

Re: [Haskell-cafe] Talking to Java from Haskell?

2010-07-09 Thread John Lato
From: Daniel Cook danielkc...@gmail.com 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.

FIX Protocol in Haskell (was Re: [Haskell-cafe] Talking to Java from Haskell?)

2010-07-09 Thread Daniel Cook
1)  How stable/defined is FIX? Not very. There are several protocol versions, various vendors have their own custom message types, there are service packs released fairly regularly updating the protocol for new message types, etc. 2)  How large of a subset of FIX do you use? I will be using

Re: [Haskell-cafe] Talking to Java from Haskell?

2010-07-08 Thread Marc Weber
HI Dan, It depends on how much of the protocol you're going to use. If you only have to use some kinds of messages it may be fastest to use Scala and Actors using the Java library. Depending on the data I'd use a very simple protocol for the communication Haskell - Scala. Whether you should

Re: [Haskell-cafe] Talking to Java from Haskell?

2010-07-08 Thread Jason Dagit
On Thu, Jul 8, 2010 at 6:35 PM, Daniel Cook danielkc...@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

Re: [Haskell-cafe] Talking to Java from Haskell?

2010-07-08 Thread Daniel Cook
I would probably start by writing a JNI wrapper around QuickFIX to expose it to C and C-like languages.  Then I would write a Haskell FFI binding to that library.  In this way, C will become your glue language as odd as that may sound. vs. Depending on the data I'd use a very simple

Re: [Haskell-cafe] Talking to Java from Haskell?

2010-07-08 Thread sterl
Daniel Cook wrote: 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) A simpler solution might be Facebook's