Hi, is there any chance of having hugs compile for the iPhone? Cross-compiling? Compiling directly on the iPhone? Greets, Alberto
Alberto R. Galdo wrote:
Hi, is there any chance of having hugs compile for the iPhone?
Cross-compiling? Compiling directly on the iPhone?
Greets, Alberto
The iPhone, like most modern mobile devices, is based on the ARM processor, for which there is currently no GHC port. However, jhc outputs portable C code which can be (cross) compiled for ARM. I have succeeded in building Haskell code with jhc on my desktop (x86 Linux), then cross-compiling the resulting C code in a scratchbox environment for my Nokia N810. In short, if you can compile C code for the iPhone (cross-compiled or native), you can probably use jhc to turn Haskell into suitable C. jhc is not self-hosting, and it requires gcc as a back-end, so it isn't suitable for running on the device. See also the GHC-on-ARM project[1], an attempt to port GHC to ARM Linux devices. Braden Shepherdson shepheb [1] http://hackage.haskell.org/trac/ghc/wiki/ArmLinuxGhc
Braden Shepherdson wrote:
Alberto R. Galdo wrote:
Hi, is there any chance of having hugs compile for the iPhone?
Cross-compiling? Compiling directly on the iPhone?
Greets, Alberto
The iPhone, like most modern mobile devices, is based on the ARM processor, for which there is currently no GHC port.
However, jhc outputs portable C code which can be (cross) compiled for ARM. I have succeeded in building Haskell code with jhc on my desktop (x86 Linux), then cross-compiling the resulting C code in a scratchbox environment for my Nokia N810.
In short, if you can compile C code for the iPhone (cross-compiled or native), you can probably use jhc to turn Haskell into suitable C.
jhc is not self-hosting, and it requires gcc as a back-end, so it isn't suitable for running on the device.
See also the GHC-on-ARM project[1], an attempt to port GHC to ARM Linux devices.
Braden Shepherdson shepheb
I failed completely to mention Hugs: I don't think it exists, but I think someone managed to port it to the Nintendo DS a while back, so it should be possible. Braden Shepherdson shepheb
Seems that someone in this list got hugs working on the iPhone... http://www.nabble.com/Re%3A-xmonad-on-the-openmoko-mobile-phone-p18914746.ht... Miguel, are you out there? On Sun, Sep 14, 2008 at 4:56 PM, Braden Shepherdson < Braden.Shepherdson@gmail.com> wrote:
Braden Shepherdson wrote:
Alberto R. Galdo wrote:
Hi, is there any chance of having hugs compile for the iPhone?
Cross-compiling? Compiling directly on the iPhone?
Greets, Alberto
The iPhone, like most modern mobile devices, is based on the ARM processor, for which there is currently no GHC port.
However, jhc outputs portable C code which can be (cross) compiled for ARM. I have succeeded in building Haskell code with jhc on my desktop (x86 Linux), then cross-compiling the resulting C code in a scratchbox environment for my Nokia N810.
In short, if you can compile C code for the iPhone (cross-compiled or native), you can probably use jhc to turn Haskell into suitable C.
jhc is not self-hosting, and it requires gcc as a back-end, so it isn't suitable for running on the device.
See also the GHC-on-ARM project[1], an attempt to port GHC to ARM Linux devices.
Braden Shepherdson shepheb
I failed completely to mention Hugs: I don't think it exists, but I think someone managed to port it to the Nintendo DS a while back, so it should be possible.
Braden Shepherdson shepheb
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
At Sun, 14 Sep 2008 12:17:52 +0200, Alberto R. Galdo wrote:
Hi, is there any chance of having hugs compile for the iPhone?
Cross-compiling? Compiling directly on the iPhone?
I have successfully compiled hugs for the Nokia 770 which is ARM based. I don't remember having to do anything special. I think it just built out of the box, since hugs is just a C application and does not have many build dependencies. j.
Did that. http://migmit.vox.com/library/photo/6a00e398c5c26f000500fa9696d8c40002.html On 14 Sep 2008, at 14:17, Alberto R. Galdo wrote:
Hi, is there any chance of having hugs compile for the iPhone?
Cross-compiling? Compiling directly on the iPhone?
Greets, Alberto _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Very nice. Easy? miguelimo38:
Did that. http://migmit.vox.com/library/photo/6a00e398c5c26f000500fa9696d8c40002.html
On 14 Sep 2008, at 14:17, Alberto R. Galdo wrote:
Hi, is there any chance of having hugs compile for the iPhone?
Cross-compiling? Compiling directly on the iPhone?
As pie. Just downloaded the source and compiled it on iPhone itself (no cross-compiling). On 15 Sep 2008, at 09:25, Don Stewart wrote:
Very nice. Easy?
miguelimo38:
Did that. http://migmit.vox.com/library/photo/6a00e398c5c26f000500fa9696d8c40002.html
On 14 Sep 2008, at 14:17, Alberto R. Galdo wrote:
Hi, is there any chance of having hugs compile for the iPhone?
Cross-compiling? Compiling directly on the iPhone?
Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Cool! That's such a proof that it can be done... I had lots of problems trying to cross compile hugs from my mac to arm architecture ( seems that hugs codebase is not capable of cross compiling ) And when compiling directly on the iPhone, first there where problems with code signing, now with the configure script and C preprocessor sanity check... Any light on the topic from your experience? On 15/09/2008, at 7:24, Miguel Mitrofanov <miguelimo38@yandex.ru> wrote:
Did that. http://migmit.vox.com/library/photo/6a00e398c5c26f000500fa9696d8c40002.html
On 14 Sep 2008, at 14:17, Alberto R. Galdo wrote:
Hi, is there any chance of having hugs compile for the iPhone?
Cross-compiling? Compiling directly on the iPhone?
Greets, Alberto _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
I have the same problems. Looks like the configure script needs some updating to run on the iPhone. On Mon, Sep 15, 2008 at 6:47 AM, Alberto R. Galdo <argaldo.haskell@gmail.com> wrote:
Cool! That's such a proof that it can be done...
I had lots of problems trying to cross compile hugs from my mac to arm architecture ( seems that hugs codebase is not capable of cross compiling )
And when compiling directly on the iPhone, first there where problems with code signing, now with the configure script and C preprocessor sanity check...
Any light on the topic from your experience?
On 15/09/2008, at 7:24, Miguel Mitrofanov <miguelimo38@yandex.ru> wrote:
Did that. http://migmit.vox.com/library/photo/6a00e398c5c26f000500fa9696d8c40002.html
On 14 Sep 2008, at 14:17, Alberto R. Galdo wrote:
Hi, is there any chance of having hugs compile for the iPhone?
Cross-compiling? Compiling directly on the iPhone?
Greets, Alberto _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
My iPhone (iPod Touch, actually) have 1.1.4 firmware, so there isn't any code signing involved. I've just "configure"d and "make"d. On 15 Sep 2008, at 09:47, Alberto R. Galdo wrote:
Cool! That's such a proof that it can be done...
I had lots of problems trying to cross compile hugs from my mac to arm architecture ( seems that hugs codebase is not capable of cross compiling )
And when compiling directly on the iPhone, first there where problems with code signing, now with the configure script and C preprocessor sanity check...
Any light on the topic from your experience?
On 15/09/2008, at 7:24, Miguel Mitrofanov <miguelimo38@yandex.ru> wrote:
Did that. http://migmit.vox.com/library/photo/6a00e398c5c26f000500fa9696d8c40002.html
On 14 Sep 2008, at 14:17, Alberto R. Galdo wrote:
Hi, is there any chance of having hugs compile for the iPhone?
Cross-compiling? Compiling directly on the iPhone?
Greets, Alberto _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Hi, I finally got hugs to compile for the iPhone 2.x firmware ( pwnaged,obviously ). It was a matter of using the gcc compiler version distributed by apple in their iPhone SDK ( wich generates ARM code and suitable for cross-compiling C code in a mac ), autoconf 'configure' script tweaking and some system variables hacking here and there. So, now you ( and I ), people will be able to run your Haskell code directly on the iPhone using hugs ( hoping not to be the only one... ;-)) I'm in the process of submitting the package to one of those "public" repositories of iphone apps... you'll have notices soon. If someone can resist, and like to have cydia compatible packages, just drop me a note and I'll send them to you by mail. Greets, Alberto On Mon, Sep 15, 2008 at 6:01 PM, Miguel Mitrofanov <miguelimo38@yandex.ru>wrote:
My iPhone (iPod Touch, actually) have 1.1.4 firmware, so there isn't any code signing involved. I've just "configure"d and "make"d.
On 15 Sep 2008, at 09:47, Alberto R. Galdo wrote:
Cool! That's such a proof that it can be done...
I had lots of problems trying to cross compile hugs from my mac to arm architecture ( seems that hugs codebase is not capable of cross compiling )
And when compiling directly on the iPhone, first there where problems with code signing, now with the configure script and C preprocessor sanity check...
Any light on the topic from your experience?
On 15/09/2008, at 7:24, Miguel Mitrofanov <miguelimo38@yandex.ru> wrote:
Did that.
http://migmit.vox.com/library/photo/6a00e398c5c26f000500fa9696d8c40002.html
On 14 Sep 2008, at 14:17, Alberto R. Galdo wrote:
Hi, is there any chance of having hugs compile for the iPhone?
Cross-compiling? Compiling directly on the iPhone?
Greets, Alberto _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
And there it is! Hugs98 is now available for installation on the iphone/ipod touch. It is being served through the community sources at cydia, one the most "official" unofficial installers for pwnaged iphone/ipods. That means that if you have cydia already installed, if you look for hugs98 in the search tab, it will be there waiting for you. Just install hugs98 and/or hugs98-packages (for full library support), open a terminal console and run 'hugs', everything should be familiar from now on... If not, just install cydia, and hugs98 is included in the default source list. And, for those brave of you, here are the packages for own/custom installation: com.wordpress.argaldo.hugs98 (interpreter and minimal packages) -> http://iphone.sleepers.net/onepackage.php?bundleid=com.wordpress.argaldo.hug... com.wordpress.argaldo.hugs98-packages (full library support) -> http://iphone.sleepers.net/onepackage.php?bundleid=com.wordpress.argaldo.hug... Greets On Sat, Sep 20, 2008 at 6:03 PM, Alberto R. Galdo <argaldo.haskell@gmail.com
wrote:
Hi,
I finally got hugs to compile for the iPhone 2.x firmware ( pwnaged,obviously ).
It was a matter of using the gcc compiler version distributed by apple in their iPhone SDK ( wich generates ARM code and suitable for cross-compiling C code in a mac ), autoconf 'configure' script tweaking and some system variables hacking here and there.
So, now you ( and I ), people will be able to run your Haskell code directly on the iPhone using hugs ( hoping not to be the only one... ;-))
I'm in the process of submitting the package to one of those "public" repositories of iphone apps... you'll have notices soon.
If someone can resist, and like to have cydia compatible packages, just drop me a note and I'll send them to you by mail.
Greets,
Alberto
On Mon, Sep 15, 2008 at 6:01 PM, Miguel Mitrofanov <miguelimo38@yandex.ru>wrote:
My iPhone (iPod Touch, actually) have 1.1.4 firmware, so there isn't any code signing involved. I've just "configure"d and "make"d.
On 15 Sep 2008, at 09:47, Alberto R. Galdo wrote:
Cool! That's such a proof that it can be done...
I had lots of problems trying to cross compile hugs from my mac to arm architecture ( seems that hugs codebase is not capable of cross compiling )
And when compiling directly on the iPhone, first there where problems with code signing, now with the configure script and C preprocessor sanity check...
Any light on the topic from your experience?
On 15/09/2008, at 7:24, Miguel Mitrofanov <miguelimo38@yandex.ru> wrote:
Did that.
http://migmit.vox.com/library/photo/6a00e398c5c26f000500fa9696d8c40002.html
On 14 Sep 2008, at 14:17, Alberto R. Galdo wrote:
Hi, is there any chance of having hugs compile for the iPhone?
Cross-compiling? Compiling directly on the iPhone?
Greets, Alberto _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (6)
-
Alberto R. Galdo -
Braden Shepherdson -
Don Stewart -
Jeremy Shaw -
Lennart Augustsson -
Miguel Mitrofanov