Re: [Haskell-cafe] Interfacing Java/Haskell

2013-05-28 Thread Kristopher Micinski
Awesome! I was hoping that someone would do this, and I'd be really happy to see what could be done here. This is the big crutch of using Haskell on Android is obviously that the API sort of sucks for Haskell... Kris On Tue, May 28, 2013 at 2:01 PM, CJ van den Berg wrote: > No, you can go bo

Re: [Haskell-cafe] Interfacing Java/Haskell

2013-05-28 Thread CJ van den Berg
No, you can go both ways. You can call Haskell from Java and Java from Haskell. Write Android Apps in Haskell will of course be just the same as writing Android Apps in Java. That’s just the price you pay for having full API access. There is of course nothing preventing someone from creating more

Re: [Haskell-cafe] Interfacing Java/Haskell

2013-05-28 Thread CJ van den Berg
The RTS was ported to Android, yes. But not by me. I just wrote ghc-android, which is just a build script to help people with setting up the somewhat complex cross-compiler build. IIRC Nathan Hüsken did most of the porting work. Everything you need should be on github. ghc-android and foreign-jni

Re: [Haskell-cafe] Interfacing Java/Haskell

2013-05-28 Thread CJ van den Berg
On 2013-05-28 02:07, Manuel M T Chakravarty wrote: > CJ van den Berg : >> I have successfully written Java/Haskell programs using the Java >> Native Interface. You can find my JNI to Haskell binding library at >> https://github.com/neurocyte/foreign-jni. I am primarily using it to >> write Androi

Re: [Haskell-cafe] Interfacing Java/Haskell

2013-05-28 Thread Kristopher Micinski
I guess you can't really go from native -> framework code like this, so this would really make sense only for native methods that are self contained. Is this right? It seems like this would imply that you can only write parts of an app's computation in Haskell, not the whole thing. But maybe I'm

Re: [Haskell-cafe] Interfacing Java/Haskell

2013-05-28 Thread Kristopher Micinski
I'm also interested in seeing this. Have you ported the Haskell runtime to Android? It seems like this should be able to be done, and through the JNI it seems like you should be able to get the system API (albeit, ugly). However, I'd be really happy to see this setup if you were willing to put i

Re: [Haskell-cafe] Interfacing Java/Haskell

2013-05-27 Thread Manuel M T Chakravarty
CJ van den Berg : > I have successfully written Java/Haskell programs using the Java > Native Interface. You can find my JNI to Haskell binding library at > https://github.com/neurocyte/foreign-jni. I am primarily using it to > write Android Apps with Haskell, Just out of curiosity, have you got a

Re: [Haskell-cafe] Interfacing Java/Haskell

2013-05-10 Thread CJ van den Berg
On 2013-05-09 17:04, Hans Georg Schaathun wrote: > Does anyone have experience with integrating Haskell and Java? > I have done some searching, finding a lot of pointers but hardly > anything in terms of evaluation, successes, or caveats. > > From what I see Frege looks promising, arguably not

Re: [Haskell-cafe] Interfacing Java/Haskell

2013-05-09 Thread Dominic Espinosa
Hello, I've had some success with the Thrift library (http://thrift.apache.org/). See this blog post (http://mortenib.wordpress.com/2009/10/29/thrift-and-haskell/) for a basic tutorial on getting started. My project was interfacing a haskell library of machine learning algorithms (which I wrote) w

Re: [Haskell-cafe] Interfacing Java/Haskell

2013-05-09 Thread Hans Georg Schaathun
On Thu, May 09, 2013 at 11:29:19AM -0400, Dan Mead wrote: > if you're on the jvm already why not consider clojure? This is why (from the clojure site you referenced): «Clojure is impure, in that it doesn't force your program to be referentially transparent, and doesn't strive for 'provable' progra

Re: [Haskell-cafe] Interfacing Java/Haskell

2013-05-09 Thread harry
Hans Georg Schaathun schaathun.net> writes: > Does anyone have experience with integrating Haskell and Java? > I have done some searching, finding a lot of pointers but hardly > anything in terms of evaluation, successes, or caveats. > > From what I see Frege looks promising, arguably not hask

Re: [Haskell-cafe] Interfacing Java/Haskell

2013-05-09 Thread Dan Mead
(oops, forgot to reply all) if you're on the jvm already why not consider clojure? it lacks static typing, but S expressions can stand in for haskell types if you really need them to. otherwise you'll have to do some fancy JNI calls and worry about calling haskell from C, like this http://www.

[Haskell-cafe] Interfacing Java/Haskell

2013-05-09 Thread Hans Georg Schaathun
Hi all, I am rather new to the café, so I just hope my question fits in. Does anyone have experience with integrating Haskell and Java? I have done some searching, finding a lot of pointers but hardly anything in terms of evaluation, successes, or caveats. >From what I see Frege looks promisin