News for hackers. Stuff that matters.
Re:New iPhone Agreement Bans Flash-to-iPhone Compiler & Others by tumult on Thursday April 08, 2010 @05:11PM (#1250970)
This is unsavory in the extreme. I had been writing an iPhone app in Haskell, and now I have to can it? What the fuck? Fuck you, Apple! Blowhards.

Hope you guys enjoy the mass exodus of decent developers from your dumbass platform with kiddie languages.

Re:New iPhone Agreement Bans Flash-to-iPhone Compiler & Others by zefhous on Thursday April 08, 2010 @07:35PM (#1251411)
"your dumbass platform with kiddie languages."

That's ironic.

Objective-C, C, and C++ are kiddie languages?

I seriously doubt that there will be any sort of exodus away from iPhone development because of this. Apple provides some awesome development tools, and they want developers to use them because they improve the quality of the applications that people write.

Re:New iPhone Agreement Bans Flash-to-iPhone Compiler & Others by plinkplonk on Thursday April 08, 2010 @10:55PM (#1251722)
"I seriously doubt that there will be any sort of exodus away from iPhone development because of this. "

You are right, though there maybe an impact on more developers coming into IPhone Dev. That said I would be surprised if at least some developers have had enough of Apple's high handedness and move away from it, like they did from Windows long ago because of Microsoft doing evil things.

Just an anecdotal datapoint, but I for one was toying with the idea of buying a MacBookPro (though not yet an IPhone or IPad) and learning Objective C, but not any more.

Objective C on Apple is now the programming language for Orcs, working for the fulfilment of Steveron the Dark Lord's World domination plans. What does developer unfriendliness matter if you get "teh new shiny" to play with every year?

    Ash Objective C durbatulûk, ash Objective C gimbatul,
    Ash Objective C thrakatulûk, agh burzum-ishi krimpatul.
Re:New iPhone Agreement Bans Flash-to-iPhone Compiler & Others by tumult on Thursday April 08, 2010 @08:27PM (#1251506)
Have you ever written software? You'd be surprised what isn't written in C or C++. I bet this clause disqualifies the majority of serious applications in the app store. Anything with a generated parser, for example, can now be rejected. Objective-C is definitely a kiddie language, it's highly dynamic and mostly suitable for creating a OO interface to lower-level code written in C, which is how almost all of OS X and Apple software works. I personally believe C is not suitable for writing large GUI applications in, and many people would agree. C++ is unwieldy and more difficult to map onto UIKit without it just ending up looking like C again.

Apple is telling people, "write software like this, because we say so."

Re:New iPhone Agreement Bans Flash-to-iPhone Compiler & Others by zefhous on Thursday April 08, 2010 @10:49PM (#1251715)
My main problem with your comment was that in your anger you seemed to be acting pretty immaturely about the situation. I'm sorry for being harsh.

Yes, I'm sure it sucks. Your project is collateral damage from Apple's efforts to thwart Adobe and other makeshift cross-platform efforts that generally create sub-par products.

I'm not saying Apple's development tools are perfect or that I like Objective-C, but Apple makes it pretty easy to write great apps their way.

Re:New iPhone Agreement Bans Flash-to-iPhone Compiler & Others by tumult on Thursday April 08, 2010 @11:40PM (#1251797)
Easy is not always powerful or expressive.
Re:New iPhone Agreement Bans Flash-to-iPhone Compiler & Others by catch23 on Friday April 09, 2010 @12:59PM (#1253194)
ObjC is more expressive than you think. It has the same metaphors of duck typing that ruby/python/javascript have come to adopt. You can do mixins & monkey patching very easily with ObjC as well. I would say ObjC rates very well in terms of flexibility of development.

ObjC is definitely more enjoyable than Java or C++ and just slightly less efficient than ruby/python. ObjC feels closer to ruby/smalltalk than it does to python. If I had my choice of language, I'd probably choose javascript or ruby, but ObjC comes close in second.

Even if you hate Apple, you should consider looking at ObjC on GNUStep.

Re:New iPhone Agreement Bans Flash-to-iPhone Compiler & Others by tumult on Friday April 09, 2010 @02:09PM (#1253379)
I've written an Objective-C compiler and runtime myself, so I think I am familiar with its limitations. Monkey patching is a terrible idea and you should avoid ever seeing that stuff in production. Objective-C is 'flexible' but dangerous in that it does not offer much in the way of type safety, and relies on handling unrecognized messages at runtime to deal with both unexpected conditions (exceptions) and also errors made by the programmer (type errors, undefined behavior, null objects, etc).

Objective-C has only a small fraction of the potential performance of C++ so should not even be compared with it. They are in completely separate categories. Objective-C is used primarily as a higher-level glue for routines written in C. You cannot write all of your routines in Objective-C all the way down, because the performance is dynamic and often worse than languages with smart VMs. LuaJIT, MacRuby, and several others all have better performance (in terms of function dispatch, calling, etc) than Objective-C. If you want Objective-C code to perform well, you just start using C stuff instead of Objective-C classes and methods.

Re:New iPhone Agreement Bans Flash-to-iPhone Compiler & Others by travisjeffery on Thursday April 08, 2010 @09:02PM (#1251545)
I agree with you; but don't hurt your argument by saying that C, C++ and Obj-C are kiddie languages.
Re:New iPhone Agreement Bans Flash-to-iPhone Compiler & Others by mkramlich on Friday April 09, 2010 @03:39AM (#1252152)
When he said 'kiddie' I interpreted his intent as saying there were insufficiently advanced or sophisticated. While on one hand I agree they are 'hardcore' languages (pointers, memory management, compiled, type declarations, header files, #includes, etc.) on the other there are more higher-level, more expressive, less ritualistic and verbose languages available today. I loved C and used it for many years, back when the alternatives were BASIC, Pascal, COBOL, Fortran, etc. but today when the alternatives are Python, Clojure, Haskell, etc. yes in some sense I consider C/C++/ObjC as 'kiddie' languages. Maybe 'paleo' languages would be a better term. C for OS development may still be a good choice but for applications? No way.

With Apple's change to the dev license they are basically saying, "We only want you to use paleo languages. Put away your shiny modern toys and come back to the creaky past with us."

Re:New iPhone Agreement Bans Flash-to-iPhone Compiler & Others by jrockway on Thursday April 08, 2010 @05:40PM (#1251087)
GHC has a C backend. Just claim that you wrote that code yourself. Problem solved.
Re:New iPhone Agreement Bans Flash-to-iPhone Compiler & Others by chromatic on Thursday April 08, 2010 @06:02PM (#1251165)
The sort of company that would restrict the original source language of applications in a developer agreement doesn't strike me as the sort of company that would laugh and applaud the linguistic cleverness necessary to justify adhering to the letter of the agreement and not the spirit.
Re:New iPhone Agreement Bans Flash-to-iPhone Compiler & Others by tumult on Thursday April 08, 2010 @05:52PM (#1251132)
I don't want to invest months of my life, only to be told, "sorry, if you can't prove it's C, your app is rejected. Bye."
Re:New iPhone Agreement Bans Flash-to-iPhone Compiler & Others by jrockway on Thursday April 08, 2010 @06:26PM (#1251215)
Yeah, then stop supporting their hardware. If you just bend over in front of them, of course they're going to fuck you.
Re:New iPhone Agreement Bans Flash-to-iPhone Compiler & Others by steveklabnik on Thursday April 08, 2010 @07:08PM (#1251343)
It's being phased out in the next version.
Re:New iPhone Agreement Bans Flash-to-iPhone Compiler & Others by sparky on Thursday April 08, 2010 @09:59PM (#1251626)
In favor of an LLVM backend; LLVM, in turn, has a C backend :P
Re:New iPhone Agreement Bans Flash-to-iPhone Compiler & Others by joubert on Thursday April 08, 2010 @07:34PM (#1251408)
Have you tried writing your Haskell-based app for Android? Or perhaps Windows Mobile? or Palm?
Re:New iPhone Agreement Bans Flash-to-iPhone Compiler & Others by tumult on Thursday April 08, 2010 @07:53PM (#1251449)
Android requires use of the Dalvik VM. Native code cannot make API calls to create interfaces etc. WebOS is the same deal, must use JavaScript and their framework for a native interface (and WebOS is a dying platform.) Windows Mobile is garbage, maybe 7 will be better, but it's half a year away and likely Microsoft will just copy Apple blindly and ban languages other than C# and C++.
Re:New iPhone Agreement Bans Flash-to-iPhone Compiler & Others by Tichy on Friday April 09, 2010 @03:32AM (#1252140)
There is a native interface for Android. While it isn't intended to be used for GUI development, maybe it is doable? I could imagine it could work like PhoneGap, except for C: write a wrapper in Java that exposes the required methods to C, then write your app in C.
Re:New iPhone Agreement Bans Flash-to-iPhone Compiler & Others by joubert on Thursday April 08, 2010 @08:06PM (#1251471)
So, for iPhone/iPad development, you can use C, C++, Objective-C, or JavaScript (4 languages).

But on the other platforms you are in reality limited (in practice) to one or two languages? I'm looking at you, Android and BlackBerry. (Windows and Palm don't really count, since nobody's writing for them).

Re:New iPhone Agreement Bans Flash-to-iPhone Compiler & Others by toluju on Thursday April 08, 2010 @10:27PM (#1251680)
This is hilarious. People have gotten Scala, Ruby, Python, Lua, and a whole host of other languages running on Android. At least check your damn facts before posting bullshit.

http://google-opensource.blogspot.com/2009/06/introducing-an...

Re:New iPhone Agreement Bans Flash-to-iPhone Compiler & Others by joubert on Thursday April 08, 2010 @11:48PM (#1251807)
Sorry for posting bullshit.

Since I don't know much about Android, are there significant apps (in the Android Marketplace) that use some of these languages?

Re:New iPhone Agreement Bans Flash-to-iPhone Compiler & Others by mkramlich on Friday April 09, 2010 @03:46AM (#1252159)
Between this iPhone dev license change, and your claim that folks have gotten Python apps running on Android, this is probably the final straw pushing me to jump to Android.