News for hackers. Stuff that matters.
Re:Go and Swift take another step up the programming languag... by bigtunacan on Thursday December 04, 2014 @04:41PM (#8701831)
I see this and I just think of the Joe Armstrong post on education.

http://erlang.org/pipermail/erlang-questions/2013-January/07...

So many languages to choose from; so much fragmentation while we are already experiencing a shortage of developers.

I appreciate that Apple made something available other than Objective-C. I've done my share of it and personally I don't think it's a bad language, but the foreign syntax makes it less approachable to some. The sandbox mode in Xcode with Swift is great too.

I just wish that instead of suffering from "Not Invented Here" syndrome that they would have chosen something that already exists. Ruby, Python, Lua, Scala, Clojure. There are so many choices, can't at least one fit the bill?

Re:Go and Swift take another step up the programming languag... by sanderjd on Thursday December 04, 2014 @04:53PM (#8701911)
I think Swift is a great language, and that creating something new that incorporates some very good ideas into a package that works well with their existing and extensive runtime made a lot of sense, but that tying it to their platform is a damn shame (though not unsurprising).

I don't think the languages you list would have been a great fit, but D would have been a really good and interesting choice. Were it more mature, Rust could have also been a good fit.

Re:Go and Swift take another step up the programming languag... by bjz_ on Thursday December 04, 2014 @07:16PM (#8702477)
One of the big things for Apple was Objective-C compatibility, which is surprisingly hard to get right. I know because I have been trying to wrap the APIs for Rust. Don't get me wrong: I still would prefer to use Rust on iOS, but Apple has too much invested in their Objective-C APIs to force a subpar experience and migration path onto their developers.
Re:Go and Swift take another step up the programming languag... by sanderjd on Friday December 05, 2014 @10:36AM (#8705002)
You certainly know more about this than me. Do you think Rust would have been fundamentally more difficult to make compatible with Objective-C than Swift was, assuming Apple had invested the same amount of time and effort? My sense is "no", but I really don't have any clue, and I'm genuinely curious.
Re:Go and Swift take another step up the programming languag... by adamnemecek on Thursday December 04, 2014 @05:09PM (#8701996)
None of the languages you listed are in the same space as Obj-C.
Re:Go and Swift take another step up the programming languag... by bigtunacan on Thursday December 04, 2014 @05:38PM (#8702164)
Compiled Ruby is not new to Apple. First there was RubyCocoa, then MacRuby and now RubyMotion. So I think RubyMotion fits into the same category.

I really wasn't trying to point to any particular language here though. As one commenter pointed out, maybe D would be a closer match up. I'm not trying to say any particular language is the right decision. I'm also not trying to point the finger at Apple.

I just wonder if some of this explosion of languages that is happening right now isn't harmful in the long run.

Re:Go and Swift take another step up the programming languag... by adamnemecek on Thursday December 04, 2014 @05:54PM (#8702224)
I'm not sure what exactly you mean by "compiled Ruby". AFAIK at no point is RubyCocoa, MacRuby or RubyMotion compiled, it's still an interpreter with the Cocoa APIs exposed to Ruby.

> I just wonder if some of this explosion of languages that is happening right now isn't harmful in the long run.

I'm not sure how that would happen. I'm also guessing that someone said something similar back when say COBOL was THE programming language.

Re:Go and Swift take another step up the programming languag... by mcphage on Thursday December 04, 2014 @07:00PM (#8702434)
> I'm not sure what exactly you mean by "compiled Ruby". AFAIK at no point is RubyCocoa, MacRuby or RubyMotion compiled, it's still an interpreter with the Cocoa APIs exposed to Ruby.

MacRuby and RubyMotion are absolutely compiled.

Re:Go and Swift take another step up the programming languag... by adamnemecek on Thursday December 04, 2014 @07:04PM (#8702451)
Seems like you are right. TIL I guess.
Re:Go and Swift take another step up the programming languag... by jeorgun on Thursday December 04, 2014 @04:57PM (#8701930)
None of the languages you listed have Objective-C interoperability, which is pretty crucial for their purposes.
Re:Go and Swift take another step up the programming languag... by bigtunacan on Thursday December 04, 2014 @07:31PM (#8702519)
RubyMotion is compiled, benchmarks similarly to Objective-C, is interoperable and already running in production apps for both iOS and Mac OSX.

Laurent Sansonetti also has extensive history with Apple.

Re:Go and Swift take another step up the programming languag... by joshstaiger on Thursday December 04, 2014 @05:00PM (#8701950)
I get this argument for any other company.

But at this point Apple has gone to great lengths to control the entire toolchain from the OS to the compiler to the chips that run the instructions the compiler produces.

It’d seem odd if they didn’t go with something home-grown as their language of choice.

Re:Go and Swift take another step up the programming languag... by jbergens on Thursday December 04, 2014 @07:12PM (#8702468)
But it would be better for a lot of developers who don't want to spend a lot of time learning ObjC just for iPhones. It might also have been a safer choice for Apple since they now are in a bit of a danger if iPhone and iPad sales goes down. Then the number of developer learning their languages might fall fast and then the app ecosystem might start to fall too.
Re:Go and Swift take another step up the programming languag... by fleitz on Thursday December 04, 2014 @05:36PM (#8702152)
ObjC is about as homegrown as it gets. There are few major uses of ObjC outside of Apple/NextSteps's ecosystem.