[Haskell-cafe] Interfacing Java/Haskell

Kristopher Micinski krismicinski at gmail.com
Tue May 28 20:59:27 CEST 2013


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 <cj at vdbonline.com> wrote:

> 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
> idiomatic Haskell GUI libraries for Android on top of the API bindings.
>
> On 2013-05-28 15:37, Kristopher Micinski wrote:
> > 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 wrong.  I have seen people that write apps in
> > native / managed code integrating in a reasonable way, but it's very
> > ugly afaik.
> >
> > Kris
> >
> >
> > On Tue, May 28, 2013 at 9:35 AM, Kristopher Micinski
> > <krismicinski at gmail.com <mailto:krismicinski at gmail.com>> wrote:
> >
> >     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 it up somewhere so I could hack on it too.
> >
> >     Kris
> >
> >
> >     On Mon, May 27, 2013 at 8:07 PM, Manuel M T Chakravarty
> >     <chak at cse.unsw.edu.au <mailto:chak at cse.unsw.edu.au>> wrote:
> >
> >         CJ van den Berg <cj at vdbonline.com <mailto:cj at vdbonline.com>>:
> >         > 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 any complete apps that you
> >         built that way? Are they in the Google Store?
> >
> >         Manuel
> >
> >
> >         _______________________________________________
> >         Haskell-Cafe mailing list
> >         Haskell-Cafe at haskell.org <mailto:Haskell-Cafe at haskell.org>
> >         http://www.haskell.org/mailman/listinfo/haskell-cafe
> >
> >
> >
>
>
> --
> CJ van den Berg
>
> mailto:cj at vdbonline.com
> xmpp:neurocyte at gmail.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130528/5f2fdd2d/attachment-0001.htm>


More information about the Haskell-Cafe mailing list