Live data from Hacker News

iPhone, meet Haskell

groups.google.com

41–50 of 53 posts

Re: iPhone, meet Haskell

#42
post #4

Earlier quoted context omitted.

Howdy! I've been using https://github.com/jspahrsummers/ObjectiveHaskell/ as my bridge between the two worlds (with some modifications for iOS that I'll be posting soon). Haskell has a wonderful FFI that lets you easily call C/Objective-C from Haskell and vice versa. There's also Manuel Chakravarty's extremely exciting "Inline Objective-C" project (coming soon) that allows you to embed Objective-C code directly into…

Is it related to Fujimoto et al's space-time memory? There was also a project called Stampede that that used a similar name to mean something completely different. Or is it just a name?

No; it's probably based around using confluent data structures.

Re: iPhone, meet Haskell

#43

This is brilliant news! Would it be possible to drop a cross compiled Haskell library into a Xamarin project and call into it from the .Net (F#) world? That would be the killer feature for me! Also not much mention of android here - is it possible to target android with Haskell at the moment?

I believe this is the relevant project: https://github.com/neurocyte/ghc-android

Joey Hess has been using it to build git-annex for Android. http://git-annex.branchable.com/install/Android/

And much of the work we did simply improved support for cross-compilation in general, so Android support should be better than ever! : )

Re: iPhone, meet Haskell

#44
post #43

This is brilliant news! Would it be possible to drop a cross compiled Haskell library into a Xamarin project and call into it from the .Net (F#) world? That would be the killer feature for me! Also not much mention of android here - is it possible to target android with Haskell at the moment?

I believe this is the relevant project: https://github.com/neurocyte/ghc-android Joey Hess has been using it to build git-annex for Android. http://git-annex.branchable.com/install/Android/ And much of the work we did simply improved support for cross-compilation in general, so Android support should be better than ever! : )

Awesome! Any of you guys in London by the way?

Re: iPhone, meet Haskell

#45

This is brilliant news! Would it be possible to drop a cross compiled Haskell library into a Xamarin project and call into it from the .Net (F#) world? That would be the killer feature for me! Also not much mention of android here - is it possible to target android with Haskell at the moment?

[deleted]

Re: iPhone, meet Haskell

#46
post #5

Anybody here know, off the cuff, if the GHC packaged in Homebrew is compiled correctly to utilize the wrapper scripts out of the box, or if I'd need to build the cross-compiler myself as described in the linked documentation?

Nope. I also strongly recommend against using the normal "brew" formulas for haskell tools, its only by PROACTIVE efforts by mac using haskellers that the standard brew aren't a complete disaster (or at least, wont' be a disaster, soonish). I strongly recommend using standard haskell binary distributions, such as those prepared by GHC HQ, or the Haskell Platform folks, or perhaps any brew Tap that Darin Morrison or L…

Hmm. Well, looking at the Github repo activity, Darin is actively involved in the GHC formulae these days. In fact he's actively involved in getting Homebrew's GHC formula prepped for OS X Mavericks, which you note as an upcoming issue below. So that's encouraging.

And while the stability of GHC/Haskell Platform was indeed questionable during 2012.2.0.0 and the beginning of 2012.4.0.0, they cleaned it up as time went along and I haven't noticed any issues with it for the past 4 or 5 months. You make a comment below about Haskell Platform being associated with specific GHC releases, and AFAIK Homebrew actually freezes GHC at versions compatible with the current release of Haskell Platform now. The reason I prefer to use the package manager instead of the pre-distributed binaries is because it provides for a deterministic and (theoretically) testable/repeatable upgrade path.

Re: iPhone, meet Haskell

#47
post #6

I would love to also run the interpreter inside iOS to learn Haskell from a tablet. I will support a crowdfunding campaign.

That would be nice... and remember, Carmack mentioned that he felt guilty about not doing "real work" when he was doing Haskell, but because there was Lisp on his iWhatever, he could play with Lisp when he couldn't get to his main computer to do "real work", so spent more time on Lisp.

Re: iPhone, meet Haskell

#48
post #46

Earlier quoted context omitted.

Nope. I also strongly recommend against using the normal "brew" formulas for haskell tools, its only by PROACTIVE efforts by mac using haskellers that the standard brew aren't a complete disaster (or at least, wont' be a disaster, soonish). I strongly recommend using standard haskell binary distributions, such as those prepared by GHC HQ, or the Haskell Platform folks, or perhaps any brew Tap that Darin Morrison or L…

Hmm. Well, looking at the Github repo activity, Darin is actively involved in the GHC formulae these days. In fact he's actively involved in getting Homebrew's GHC formula prepped for OS X Mavericks, which you note as an upcoming issue below. So that's encouraging. And while the stability of GHC/Haskell Platform was indeed questionable during 2012.2.0.0 and the beginning of 2012.4.0.0, they cleaned it up as time went…

1) you can very easily have multiple ghc's installed and have them not clobber each other 2) use the binary packages if you want a default that just works. If you look at the relevant ghc ticket on brew, they're very keen on modifying the formulae against the recommendations of Darin very very easily. 3) I use brew for many things, and even donated quite a bit to their kickstarter, but I do not trust brew to do Haskell right.

Re: iPhone, meet Haskell

#50
post #8
post #6

I would love to also run the interpreter inside iOS to learn Haskell from a tablet. I will support a crowdfunding campaign.

Apple wouldn't permit this in the AppStore

I installed this from the App Store two days ago on John Carmack's recommendation:

http://slidetocode.com

Post reply on HN