Live data from Hacker News

iPhone, meet Haskell

groups.google.com

1–10 of 53 posts

Re: iPhone, meet Haskell

#3
This is interesting. I've been keen on experimenting with FRP for a while, and now I can use it for 'real world' stuff on a platform I know I just might have the push I need to jump into Haskell.

Re: iPhone, meet Haskell

#4

Wow, this looks super interesting. Would this be the first step in creating a Haskell wrapper for doing native UI work, or is it more useful for games and the like?

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 Haskell, which would make it nearly effortless to speak fluently with Apple's frameworks. https://gist.github.com/mchakravarty/4632567

There are tons of awesome Haskell FRP implementations, from Netwire to Elerea to Reactive-Banana: http://ocharles.org.uk/blog/posts/2013-08-18-asteroids-in-ne...

It would also be a lot of fun to get Helm running on iOS once they finish their OpenGL backend. http://helm-engine.org

I definitely couldn't have pulled off my own project (SpaceTime, a multiplayer app engine for iOS; announcement soon) without Haskell. I've been using the development versions of GHC iOS to build it for over a year and it's been a joy.

Re: iPhone, meet Haskell

#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?

Re: iPhone, meet Haskell

#7
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?

You need to build it yourself at the moment since this just went into GHC HEAD. Feel free to ask me on Twitter if you need any help (@lukexi), it's pretty easy.

This will be part of the upcoming GHC 7.8 release spectacular, at which point we'll release binaries and brew formulas!

(we'll also likely release some test binaries sooner than that if you're impatient :), stay tuned)

Re: iPhone, meet Haskell

#9
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 don't think that's quite right, if I understand correctly you could have the interpreter so long as there was no download and run of external code.

I'm sure I've seen a Lua environment like this.

Post reply on HN