Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1.  ghc and android (Nathan H?sken)
   2. Re:  ghc and android (Kim-Ee Yeoh)
   3. Re:  ghc and android (Brandon Allbery)


----------------------------------------------------------------------

Message: 1
Date: Sun, 30 Dec 2012 14:19:32 +0100
From: Nathan H?sken <[email protected]>
Subject: [Haskell-beginners] ghc and android
To: "[email protected]" <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hey,

I know, this question has been asked in the past and there is a lot 
information one can find in the net.
But in all of this information, I can not find definite answers for this.

Is it currently possible to build haskell programs for android using the 
android NDK?
If course, I know, bindings have to be written and android GUIs have to 
be written in Java. But if I would write the bindings for the things I 
need...?

Via C/gcc? Its not the fastest, but should work, should it not?
Via llvm?
If not, what is the problem in doing this?

Thank you!
Nathan



------------------------------

Message: 2
Date: Sun, 30 Dec 2012 21:36:07 +0700
From: Kim-Ee Yeoh <[email protected]>
Subject: Re: [Haskell-beginners] ghc and android
To: Nathan H?sken <[email protected]>
Cc: "[email protected]" <[email protected]>
Message-ID:
        <CAPY+ZdSG+607unMmzpDw2btsh3W=7+pccmjb8wzxylsfdus...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Nathan, it's better to redirect such questions to haskell-cafe. I've seen
people DIY'ing various mobile/ARM projects there. Suffice to say, that's
way out of beginner territory, unfortunately.

-- Kim-Ee


On Sun, Dec 30, 2012 at 8:19 PM, Nathan H?sken <[email protected]>wrote:

> Hey,
>
> I know, this question has been asked in the past and there is a lot
> information one can find in the net.
> But in all of this information, I can not find definite answers for this.
>
> Is it currently possible to build haskell programs for android using the
> android NDK?
> If course, I know, bindings have to be written and android GUIs have to be
> written in Java. But if I would write the bindings for the things I need...?
>
> Via C/gcc? Its not the fastest, but should work, should it not?
> Via llvm?
> If not, what is the problem in doing this?
>
> Thank you!
> Nathan
>
> ______________________________**_________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/**mailman/listinfo/beginners<http://www.haskell.org/mailman/listinfo/beginners>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20121230/2a4b2a22/attachment-0001.htm>

------------------------------

Message: 3
Date: Sun, 30 Dec 2012 09:43:47 -0500
From: Brandon Allbery <[email protected]>
Subject: Re: [Haskell-beginners] ghc and android
To: Nathan H?sken <[email protected]>
Cc: "[email protected]" <[email protected]>
Message-ID:
        <cakfcl4xatf23zyzfl1hix5+hy-xcua5rwadrhg10ovofzrx...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On Sun, Dec 30, 2012 at 8:19 AM, Nathan H?sken <[email protected]>wrote:

> Is it currently possible to build haskell programs for android using the
> android NDK?
> If course, I know, bindings have to be written and android GUIs have to be
> written in Java. But if I would write the bindings for the things I need...?
>

GUIs can be written without requiring Java/Dalvik, at least on the more
recent versions of Android.  It's the basic runtime support that is still a
bit lacking, last I checked.


> Via C/gcc? Its not the fastest, but should work, should it not?
>

It's nonexistent for ARM; to get a working -fvia-C you have to go back to
ghc versions that don't have any clue about ARM (if you want to scare
yourself, check out via-C's Evil Mangler sometime).  And I think the hosted
build isn't working at the moment?


> Via llvm?
>

I believe this is how current ARM development is doing it, rather than try
to code up a native code generation backend.  (I also get the impression
that the NCGs are going to be deprecated in favor of -fllvm at some point,
although they want to clean up some lingering optimization issues first;
llvm wins for many things but does somewhat poorly for a few.)

An additional issue:  ghci (and Template Haskell because it uses the
bytecode interpreter of ghci internally) currently(?) requires its own
custom linker instead of being able to use the system linker.  Said linker
has no support for ARM.  The correct fix for this is to redesign ghci so it
doesn't need its own linker; there has been some work in this direction,
but I don't know how complete it is, and it interacts with other issues
such as building Haskell libraries as shared objects.

-- 
brandon s allbery kf8nh                               sine nomine associates
[email protected]                                  [email protected]
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20121230/2a2eacfa/attachment-0001.htm>

------------------------------

_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 54, Issue 49
*****************************************

Reply via email to