News for hackers. Stuff that matters.
Re:iPhone, meet Haskell by laureny on Thursday August 29, 2013 @09:00PM (#6299618)
I'm going to withhold my excitement until I get proof that Apple will approve GHC compiled binaries.
Re:iPhone, meet Haskell by carterschonwald on Thursday August 29, 2013 @10:39PM (#6299936)
Apple already approves applications written using the Xamarin tools (C#/F# compiled with LLVM), and RubyMotion. They are ok with other tools. Haskell is a more compiled language than any of F#, C# or RubyMotion (if thats even possible). There is no reason to worry about that.

Worry about the normal reasons for getting an app rejected :)

its also worth noting that XCode 5 (as of Dev Preview 5 or 6) has some patches backported from Clang HEAD via the Clang 3.3 Point release that fix bugs that have only ever been triggered by GHC, namely http://llvm.org/bugs/show_bug.cgi?id=16371 and http://llvm.org/bugs/show_bug.cgi?id=16363 (and I'm incredibly grateful to the engineers who work on Clang for helping get those patches backported to the pending Clang 3.3 bugfix release, and thence to apple Clang, I owe them all a beer or something like that)

I think Apple, as a business, wants every community of smart Developers to write amazing, profitable applications for their Desktop and Mobile ecosystems. Haskell targeting iOS immediately grows the pool of smart developers who might write iOS applications, and hopefully also just make writing certain very interesting applications much less painful! This is exciting!

tl;dr the latest xcode 5 Apple Clang dev previews have backported patches from Clang HEAD fixing bugs only ever triggered by GHC. Interpret that however you please :)

Re:iPhone, meet Haskell by dljsjr on Thursday August 29, 2013 @09:59PM (#6299810)
What would prevent them? Didn't they relax the cross-compile restrictions like, 3 years ago? Adobe has a cross-compiler, that I know for sure.

In fact, I did a quick Google search before submitting this reply. Relevant quote, from an Apple press release in 2010:

> In particular, we are relaxing all restrictions on the development tools used to create iOS apps, as long as the resulting apps do not download any code. This should give developers the flexibility they want, while preserving the security we need.

Re:iPhone, meet Haskell by krichman on Thursday August 29, 2013 @11:18PM (#6300069)
At least one of Ruby Motion or Xamarin Studio is compiling source code into iPhone apps.

Furthermore iPhone apps are definitely allowed to embed interpreters (caveat: no JITC's) and run scripts included with the binary or downloaded as part of an in-app purchase.

Re:iPhone, meet Haskell by jonsterling on Thursday August 29, 2013 @09:49PM (#6299782)
A formal proof? ;-)
Re:iPhone, meet Haskell by shelf on Friday August 30, 2013 @12:34AM (#6300281)
A constructive proof would satisfy!
Re:iPhone, meet Haskell by tomasien on Thursday August 29, 2013 @10:24PM (#6299883)
They won't have a problem with it, I'd bet on it. That's not their concern really at all - the people who look at confirming apps look at human interface guidelines, functionality, crashes (although we've had an app that doesn't even launch it just crashes everytime approved), and if it meets their guidelines.
Re:iPhone, meet Haskell by aaronbrethorst on Friday August 30, 2013 @03:45AM (#6300669)
You would be amazed by how many top-tier iOS games were written in C#.
Re:iPhone, meet Haskell by tluyben2 on Friday August 30, 2013 @03:05AM (#6300580)
There now are many interpreted as well as compiled non Objective-C languages around; from .NET languages to Object Pascal, Ruby, Java, Lua, Python, Javascript and others used to create iOS applications and they all are happily allowed in the Appstore. You are just not allowed to dynamically load 'new code' from servers and execute it on the device unless it's via the Safari Javascript engine.

Compiling to ARM and then running on the device is perfectly fine with Apple.

Re:iPhone, meet Haskell by Nekorosu on Saturday August 31, 2013 @03:34AM (#6306110)
That's not an issue for a long time already.