Slashdot Mirror


Why Apple Should Open-Source Swift -- But Won't

snydeq writes: Faster innovation, better security, new markets — the case for opening Swift might be more compelling than Apple will admit, writes Peter Wayner. "In recent years, creators of programming languages have gone out of their way to get their code running on as many different computers as possible. This has meant open-sourcing their tools and doing everything they could to evangelize their work. Apple has never followed the same path as everyone else. The best course may be to open up Swift to everyone, but that doesn't mean Apple will. Nor should we assume that giving us something for free is in Apple's or (gasp) our best interests. The question of open-sourcing a language like Swift is trickier than it looks."

183 comments

  1. Apple not in my best interests either by Anonymous Coward · · Score: 0, Troll

    > Nor should we assume that giving us something for free is in Apple's or (gasp) our best interests.

    I don't know about yours, but Apple isn't in (gasp) my best interests either. All about user control.

    1. Re: Apple not in my best interests either by kthreadd · · Score: 4, Interesting

      I don't know about that necessarily. Some has contributed a nontrivial amount of work to LLVM and especially the clang project. That has certainly been appreciated outside the Applesphere.

    2. Re: Apple not in my best interests either by Bogtha · · Score: 5, Informative

      Some has contributed a nontrivial amount of work to LLVM and especially the clang project.

      To be clear: Apple aren't just a contributor, they created Clang and employ one of the LLVM project's founders to work on LLVM, Clang, and Swift.

      --
      Bogtha Bogtha Bogtha
    3. Re: Apple not in my best interests either by Anonymous Coward · · Score: 0

      Also to be clear: There are hints that Apple may eventually open source Swift.

    4. Re: Apple not in my best interests either by Bob+Uhl · · Score: 1

      Yeah, but as I recall wasn't the whole reason for clang that they wanted to stop using GCC, as it's truly free software? Perhaps my recollection is incorrect.

    5. Re: Apple not in my best interests either by Goaway · · Score: 1

      It's the Slashdot Reality Distortion Field in effect, I think.

    6. Re: Apple not in my best interests either by NotInHere · · Score: 1

      Don't forget Webkit and Darwin. Does anybody actually use Darwin?

    7. Re: Apple not in my best interests either by Bogtha · · Score: 1

      Not really. GCC is inconvenient in several ways. See this comparison for details. Most of them are technical, but a couple are related to the license being GPL. Clang and LLVM are "truly free software" as well, so Apple clearly aren't averse to "truly free software".

      --
      Bogtha Bogtha Bogtha
    8. Re: Apple not in my best interests either by Anonymous Coward · · Score: 0

      No.

    9. Re: Apple not in my best interests either by Bill,+Shooter+of+Bul · · Score: 2

      I've heard Apple uses it....

      --
      Well.. maybe. Or Maybe not. But Definitely not sort of.
    10. Re: Apple not in my best interests either by UnknowingFool · · Score: 1

      No they wanted to stop using GCC because it's GPL v3. Apple generally prefers BSD type licenses and GPL v2 licenses. Add to that the GNU Project wasn't devoting much time or resources to Objective-C.

      --
      Well, there's spam egg sausage and spam, that's not got much spam in it.
    11. Re: Apple not in my best interests either by ArcadeMan · · Score: 1

      Steve Jobs said that FaceTime was going to be open source when he introduced it.

      But it never happened.

    12. Re:Apple not in my best interests either by Anonymous Coward · · Score: 0

      Then you can go ahead and stop printing from any non-Windows system you might have, because clearly CUPS isn't in your best interest, being an Apple project.

      Dipshit.

    13. Re: Apple not in my best interests either by Anonymous Coward · · Score: 0

      Webkit was a fork of KDE's HTML renderer, mostly over maintenance issues.

      Darwin came from CMU and Apple has mutilated it terribly.

      I don't think Apple has ever open sourced anything because they actually believed in open source ideals, namely that open sourcing something has a positive-sum outcome.

    14. Re: Apple not in my best interests either by justcauseisjustthat · · Score: 1

      Yeah, no body use WebKit, wait what.

    15. Re: Apple not in my best interests either by angel'o'sphere · · Score: 1

      They stopped using gcc for various reasons, the project was stagnant, ridden by core developers that could not agree on a road map, it forked a few times I believe and it was always not only buggy but years behind modern C++ standards. Not to mention gcc is slow and the code it produces was not really fast or small in the recent years.
      No idea how it is faring right now.

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    16. Re: Apple not in my best interests either by kthreadd · · Score: 1

      They stopped using gcc for various reasons, the project was stagnant, ridden by core developers that could not agree on a road map, it forked a few times I believe and it was always not only buggy but years behind modern C++ standards. Not to mention gcc is slow and the code it produces was not really fast or small in the recent years.
      No idea how it is faring right now.

      You should really take a look at gcc 4.9 because your viewpoint is seriously out of date.

    17. Re: Apple not in my best interests either by Anonymous Coward · · Score: 0

      No, he didn't.

      He said it would be based on open standards. That's not the same thing.

    18. Re: Apple not in my best interests either by Anonymous Coward · · Score: 0

      Almost everything you said is wrong. At the time clang was born GCC was not stagnant, it was moving along quite well, and it was busting out C++ improvements.

      Today, clang is no better than GCC in any of the things you mentioned. Actually, GCC code tends to run faster, mostly because it has a more mature and featureful optimization frsmework.. Clang compiles a little quicker. GCC arguably has better C++ suppprt. Error messages are on par: it only took GCC two releases to close that gap, which was never that big of a deal. But really the only significant difference between these projects are their respective communities. Everything else is FUD and my this by people who don't bother reading the code or the bug reports or the respective release announcements of each project.

    19. Re: Apple not in my best interests either by Anonymous Coward · · Score: 0

      They got sued over a broad patent that covered direct computer to computer communication e.g. having a direct FaceTime connection between two phones. Apple had to start using intermediary servers (with end to end encryption) to get around the patent. That imbroglio probably stopped any attempts at open sourcing it.

    20. Re: Apple not in my best interests either by Bugamn · · Score: 1

      It can be argued that gcc 4.9 is there because of clang. He said he doesn't know how it is faring right now.

    21. Re: Apple not in my best interests either by UnknowingFool · · Score: 1

      Almost everything you said is wrong. At the time clang was born GCC was not stagnant, it was moving along quite well, and it was busting out C++ improvements.

      For Objective-C it was. So Apple either had to switch to C++ or go on their own which is what they did. Now Clangs work on other languages but Apple's focus was always on Objective-C.

      --
      Well, there's spam egg sausage and spam, that's not got much spam in it.
    22. Re: Apple not in my best interests either by UnknowingFool · · Score: 1

      Webkit was a fork of KDE's HTML renderer, mostly over maintenance issues.

      So when Apple rewrote the engine in WebKit2, it was over "maintenance issues"? That's a little bit of revisionist history. When Apple forked KHTML it was for one reason: control. Apple wanted to make a lot of changes (which they did) and take it in a new direction. They could have stayed with KHTML; however, that meant they would have to rely on KHTML developers to approve and upstream changes. So they forked it which they are allowed to do.

      I don't think Apple has ever open sourced anything because they actually believed in open source ideals, namely that open sourcing something has a positive-sum outcome.

      No Apple is interested in getting things to work. If that means open source, that's what they'll do. The positive-sum is not for them but for us.

      --
      Well, there's spam egg sausage and spam, that's not got much spam in it.
    23. Re: Apple not in my best interests either by Anonymous Coward · · Score: 0

      And who do think was the main maintainer of the Objective-C compiler at the time?
      You're saying Apple switched because Apple wasn't updating the ObjC frontend fast enough?

    24. Re: Apple not in my best interests either by Anonymous Coward · · Score: 0

      And yet three years later, the spec isn't published, and there's no client for any platform other than OS X and iOS.

      So much for "open" or "standards".

    25. Re: Apple not in my best interests either by dgatwood · · Score: 1

      No, they're saying Apple switched because GCC's core wasn't designed in a way that made it easy to extend the Objective-C bits in the way that Apple wanted. And that could well be part of it—I'm not sure.

      But I think a bigger reason was that Apple could use Clang to make Xcode better, whereas GCC's parsing libraries were A. pretty tightly coupled to GCC (making it technically difficult to reuse them) and B. licensed under a license that made linking them into non-open-source software problematic at best.

      --

      Check out my sci-fi/humor trilogy at PatriotsBooks.

    26. Re: Apple not in my best interests either by UnknowingFool · · Score: 1

      Er what? The Gnu Project has always been the maintainer of gcc. Apple is the maintainer of their version of Objective-C. gcc compiles C++, Objective-C, Fortran, Ada, Java, etc. However, just because someone enhances a language that can be compiled in gcc does not mean the gcc compiler takes advantage of any changes. This is because Apple is not the Gnu project. In the same way, Oracle (or Sun at the time) making changes to Java does not mean the gcc compiler would work well with the changes or optimize the compiler. Objective-C development on gcc was pretty stagnant whereas C++ development was busy. So Apple had 2 real choices: 1) build their own compiler or 2) re-write everything in C++

      --
      Well, there's spam egg sausage and spam, that's not got much spam in it.
    27. Re:Apple not in my best interests either by Mister+Liberty · · Score: 1

      Very true. Case in point: in didn't even know about this 'language' (dialect).

    28. Re: Apple not in my best interests either by Anonymous Coward · · Score: 0

      The point is, if you look at who actually contributed most to the Objective-C frontend then you'll find a lot of apple.com email addresses. Apple effectively maintained the Objective-C frontend since it was its biggest user and developer.

    29. Re: Apple not in my best interests either by Anonymous Coward · · Score: 0

      Fortunately, it was just thrown out: http://appleinsider.com/articles/14/09/16/appellate-court-rejects-368-million-virnetx-patent-victory-over-apple

    30. Re: Apple not in my best interests either by UnknowingFool · · Score: 1

      The frontend is not the entirety of gcc. For example, if Oracle puts out a lot of enhancements to Java, they still have to get the Gnu project to modify gcc components like the parsers and back-end. Now Oracle or Apple could merely accept that performance for compilation and execution under gcc would be slower without optimization. That's where the stagnation was coming. Sure gcc could compile Objective-C but it was never optimized. It was never going to be optimized. So Apple created their own compiler. Oracle also maintains their own Java compiler.

      --
      Well, there's spam egg sausage and spam, that's not got much spam in it.
    31. Re: Apple not in my best interests either by angel'o'sphere · · Score: 1

      Why should I? I talked about stuff long ago, I'm not interested in gcc :)
      I use LLVM/clang on my Mac and professional C++'compilers for embedded (but honestly, because the customers demand it)

      That was not my 'viewpoint' but a reiteration of stuff I observed the recent years.

      However it is nice if modern gcc is back on track for standard compliance and state of the art code generation.

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    32. Re: Apple not in my best interests either by kthreadd · · Score: 1

      I use both, actually I use a couple of others as well. I often find interesting edge cases and bugs just by running my code through as many compilers as possible.

    33. Re: Apple not in my best interests either by angel'o'sphere · · Score: 1

      Yeah, that is a good practice.
      My next project will be embedded C++, likely/unfortunately I wont program, but I will set up tests and one thing is to compile with various compilers as well.

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
  2. I disagree by bazmail · · Score: 5, Insightful

    If Apple doesn't want the help of the OSS community then forget 'em.

    Why bother crying and begging them to allow you to strengthen their products? If you want to work on Swift then send your resume to Apple.

    1. Re: I disagree by kthreadd · · Score: 1

      Or create a free reimplementation. I don't know if there's anything going on there but I know there have been talks about it in the GNUstep community.

    2. Re: I disagree by Anonymous Coward · · Score: 0

      What is there to stop people from making their own implementations of compilers for swift?

      Open sourcing the future design of swift however means apple may lose control of how the language develops and could be a hindrance to it's primary use in developing software for it's OSes.

    3. Re: I disagree by bazmail · · Score: 4, Informative

      Wrong. Open source does not mean chaos or loss of control.For example Mozilla Firefox is open source but Mozilla are still firmly in control of the project.

      Its a question of good governance. Give it freedom but yet maintain direction. Not an easy balance to get right as companies like Oracle are slowly learning. How much control would Apple want to exert? My guess is a lot.

    4. Re: I disagree by kthreadd · · Score: 1

      What is there to stop people from making their own implementations of compilers for swift?

      What we've seen from other languages is that patents can potentially be a problem, but I don't know if that's applicable in this case.

      Open sourcing the future design of swift however means apple may lose control of how the language develops and could be a hindrance to it's primary use in developing software for it's OSes.

      Apple might loose control if someone else makes a better implementation, and that users switch to it. That would be a good thing and motivate Apple to improve their original implementation which might otherwise stagnate.

    5. Re: I disagree by bazmail · · Score: 4, Insightful

      No Mozilla is only in control of the implementation branded as Mozilla,

      Yes. that would be "Mozilla Firefox", the project I explicitly referred to.

      ... ironically through copyright/trademark laws.

      Ironically? How so?

      ... anyone is free to fork the product and potentially completely remove any control Mozilla has by simply doing a better job at building the browser

      Yes. Which would then be a different project

    6. Re:I disagree by gnasher719 · · Score: 1

      If Apple doesn't want the help of the OSS community then forget 'em.

      There is this part of the open source community that is quite willing to help - but requests that for their help, you are effectively losing control over your own work. That's why Apple dropped gcc. I think they can live without you.

    7. Re: I disagree by Anonymous Coward · · Score: 1

      I think it's better to prevent the entire java-bullshit from happening again (eg Microsoft vs Sun)

      It would be nice if Apple released the core sourcecode of Swift (and they still might, given the source code for OBJC is available) so that the OSS/GNU people could create a compatible implementation that runs on top of Qt in a similar manner that C#.NET/Mono operates. But if they don't, the API is still public and a re-implementation is possible, albeit loses some of the benefit of Xcode.

    8. Re: I disagree by Wootery · · Score: 1

      I presume what you're really getting as is that by not Open Sourcing Swift, Apple doesn't have to worry about someone forking Swift, making it better than the Swift mainline, and dividing the Swift universe.

      The only Firefox 'forks' I can think of are minor tweaks (even just compiling with different flags) or pure trademark-avoidance; if Apple do a good job, I doubt they'd have much to worry about. (Not to mention that, on Apple platforms, you'd have to use Apple's language; forks have no bearing on that.)

      Mono exists, but Microsoft are the unquestioned authority when it comes to the C# language.

    9. Re: I disagree by Ronin+Developer · · Score: 2

      (Not to mention that, on Apple platforms, you'd have to use Apple's language; forks have no bearing on that.)

      Incorrect. Your code has to compile using their APIs. There are multiple tools out there for writing iOS and OSX code (Embarcadero RADStudio, Titanium, FreePascal, MonoTouch, etc.) . All code must be signed before it can be accepted into the AppStore. And, the code undergoes basic checks to such things as unauthorized API calls, missing images, etc. The signing requirement still has to be done using XCode. The alternative tools are able to call it to facilitate the signing process.

      Swift and Objective-C through XCode are the PREFERRED tools that Apple supports. Outside of this realm, you are pretty much on your own with support being supplied by the alternative tool vendors.

    10. Re:I disagree by sqlrob · · Score: 2

      And they went running to another Open Source compiler. Your point?

    11. Re:I disagree by Anonymous Coward · · Score: 0

      No, they didn't go running to another Open Source compiler.

      They wrote a compiler (clang), and then Open Sourced it.

    12. Re:I disagree by UnknowingFool · · Score: 1

      Apple has created a language. And you feel they are not helping the OSS community by giving it to them, right now? That's some sense of entitlement.

      --
      Well, there's spam egg sausage and spam, that's not got much spam in it.
    13. Re: I disagree by Anonymous Coward · · Score: 0

      No. They committed to make a better compiler. It's free. It's open. It's eating gcc's lunch

    14. Re:I disagree by tlhIngan · · Score: 1

      There is this part of the open source community that is quite willing to help - but requests that for their help, you are effectively losing control over your own work. That's why Apple dropped gcc. I think they can live without you.

      No, the reason Apple invested a ton of money and development effort in LLVM (it started around 10.4/10.5 when the first Clang/LLVM compiler was offered as an alternative to gcc) was GPLv3.

      Apple was paying very close attention to what the GPL was evolving into, decided they didn't particularly like the changes and decided it would be best to part ways. They saw that LLVM offered a reasonable alternative with a nice license, but was somewhat lacking, so Apple went and invested a LOT of effort into getting LLVM to a state where it could be used for production code. Including the creation of a C front end (Clang).

      That's the reason they ditched gcc, and practically everything else. The GPLv3 was going to be an issue for Apple, so Apple ditched all the GPLv3 and soon-to-be GPLv3 code in their OS. It's why 10.6 shipped with a piss-poor SMB/CIFS stack because Apple had to rewrite it when they couldn't use Samba anymore (GPLv3).

      The last commit Apple made to gcc was to support Grand Central Dispatch. That's it.

      It's also why projects like FreeBSD have migrated away from gcc as well to LLVM - it's mature enough to switch out.

    15. Re: I disagree by Anonymous Coward · · Score: 0

      I presume what you're really getting as is that by not Open Sourcing Swift, Apple doesn't have to worry about someone forking Swift, making it better than the Swift mainline, and dividing the Swift universe.

      Yeap just like what happened with Objective C. Someone forked it made it better and divided the Objective C universe. Apple what to prevent that from happening again.

      Oh wait that never happened.

    16. Re:I disagree by shutdown+-p+now · · Score: 1

      The real irony here is that, in the meantime, Microsoft has open sourced the entirety of C# and VB.NET compilers.

    17. Re: I disagree by Wootery · · Score: 1

      Do you suffer from a condition that prevents you from reading to the end of a Slashdot comment?

    18. Re: I disagree by Wootery · · Score: 1

      You're right of course - and come to think of it, I already knew about Xamarin's offering :P

    19. Re:I disagree by Anonymous Coward · · Score: 0

      And nobody cares.

  3. Re: Feel Free to Open Source your Own Code by kthreadd · · Score: 2

    No one is demanding anything, but some of us believe that distributing your software as free and open source software is better for everyone including the original developer. There's nothing wrong in suggesting it.

  4. What for? by joh · · Score: 3, Interesting

    There's no shortage of programming languages. Swift isn't anything special. It mostly has value for its integration with Apple's environment and this isn't Open Source either, so what would Swift being Open Source actually be good for? I really can't see why anyone would want to use Swift anywhere than on OS X or iOS when the real value isn't in the language anyway but in the frameworks and the integration with them.

    (And I'm not even saying that Apple's approach is better. It's a different approach and has its own advantages and disadvantages. But if you have a closed system using its advantages makes more sense than trying to square the circle.)

    1. Re:What for? by TheRaven64 · · Score: 5, Interesting

      I maintain the GNUstep / Clang Objective-C stack. Most people who use it now do so in Android applications. A lot of popular apps have a core in Objective-C with the Foundation framework (sometimes they use GNUstep's on Android, more often they'll use one of the proprietary versions that includes code from libFoundation, GNUstep and Cocotron, but they almost all use clang and the GNUstep Objective-C runtime). Amusingly, there are actually more devices deployed with my Objective-C stack than Apple's. The advantage for developers is that their core logic is portable everywhere, but the GUIs can be in Objective-C with UIKit on iOS or Java on Android (or, commonly for games, GLES with a little tiny bit of platform-specific setup code). I suspect that one of the big reasons why the app situation on Windows Phone sucks is that you can't do this with a Windows port.

      It would be great for these people to have an open source Swift that integrated cleanly with open source Objective-C stacks. Let's not forget that that's exactly what Swift is: a higher-level language designed for dealing with Objective-C libraries (not specifically Apple libraries).

      Objective-C is a good language for mid-1990s development. Swift looks like a nice language for early 2000s development. Hopefully someone will come up with a good language for late 2010s development soon...

      --
      I am TheRaven on Soylent News
    2. Re:What for? by pklinken · · Score: 2

      Interesting post! Could you point me towards a github or two of open source apps that are written like that ?

    3. Re:What for? by K.+S.+Kyosuke · · Score: 3, Interesting

      Hopefully someone will come up with a good language for late 2010s development soon...

      Well, there's always ClozureCL with its Objective-C bridge. :D

      --
      Ezekiel 23:20
    4. Re:What for? by philip.paradis · · Score: 1

      This is the best post I've seen on /. in five years. No further comment.

      --
      Write failed: Broken pipe
    5. Re: What for? by Anonymous Coward · · Score: 0

      Meh. Respect for your runtime and clang work, but painting Objective-C as obsolete while pimping the garbage that Swift is, makes me doubt you have your sanity with you.
      I am biased.
      I love the Objective-C object model and concept. I love that it is C(minus some ugly 2.0 swifty crap). I also love ARC(so much time wasted with GC when a primitive extension to register allocation beats it to pulp).
      Still, when I say swift sucks it's because it sucks so much as a language that you couldn't do worse if you put PHP, COBOL, and vbscript into a blender and released the resulting mess.

    6. Re:What for? by jittles · · Score: 1

      The advantage for developers is that their core logic is portable everywhere, but the GUIs can be in Objective-C with UIKit on iOS or Java on Android (or, commonly for games, GLES with a little tiny bit of platform-specific setup code).

      How is this an advantage to anyone who plans ahead? I suppose if you wrote your original application in Objective-C and weren't thinking about cross platform support, then fine. But if you're planning on supporting both platforms why don't you just go completely cross platform and use C? Objective-C sucks. Swift fixes a lot of its problems but the syntax is a bit odd to me. And I've been writing iOS applications for the last 3 years, it's not like I haven't used Obj-C at all.

    7. Re:What for? by LoRdTAW · · Score: 1

      I am a bit curious. How is the objective-c compiled and ran on Dalvik? Are you doing: objective-c -> LLVM -> dalvik bytecode?

      Is the project you speak of Apportable?

    8. Re:What for? by angel'o'sphere · · Score: 1

      I'm sure GitHub has a search function ;D

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    9. Re:What for? by Kjella · · Score: 1

      How is this an advantage to anyone who plans ahead? I suppose if you wrote your original application in Objective-C and weren't thinking about cross platform support, then fine. But if you're planning on supporting both platforms why don't you just go completely cross platform and use C?

      Because C.

      --
      Live today, because you never know what tomorrow brings
    10. Re: What for? by Anonymous Coward · · Score: 1

      Another actual dev here... you're exactly right. Swift is a terrible language, designed to be more "casual accessible". In every benchmark that's been done so far, it loses to ObjC/C.

      Let's start with the core problem facing ObjC performance (vs C): no function inlining. Because Swift uses method selectors like ObjC and not true imperative functions it doesn't get inlining either. This kills what the compiler can do. So #1 problem, still there.

      Now let's look at numerics performance. Aka math. In ObJC it's easy to work in C vector intrinsics like NEON's float32x_4 or SSE's __m128. Or Apple's own Accelerate framework like float4 or vDSP_vsadd on regular C arrays.

      Swift uses boxed numeric types like JavaScript. No vector types. No Accelerate framework even.

      So just from those two things, you've got sluggish performance tainting tne language in favor of a more casual-friendly design. Well, you do care about language "accessibility" or an order of magnitude of performance?

      Finally, is Swift even more accessible to casuls? Swift's syntax is VB.Net-like, yet what is taught in programming courses is Java. Java is more like ObjC / C than Swift. JavaScript (despite "var") is more like ObjC / C than Swift.

      Swift is not a good idea.

    11. Re:What for? by TheRaven64 · · Score: 1

      How is the objective-c compiled and ran on Dalvik? Are you doing: objective-c -> LLVM -> dalvik bytecode?

      It isn't. It runs natively via the NDK.

      --
      I am TheRaven on Soylent News
    12. Re:What for? by jittles · · Score: 1

      How is this an advantage to anyone who plans ahead? I suppose if you wrote your original application in Objective-C and weren't thinking about cross platform support, then fine. But if you're planning on supporting both platforms why don't you just go completely cross platform and use C?

      Because C.

      Obj-C isn't any better than C in my opinion. But, to each their own.

    13. Re: What for? by Anonymous Coward · · Score: 0

      Even ignoring performance issues, the entire notion of making a language "casual accessible" is dubious. By making it easier to write basic apps for OS X and iOS, you inevitably increase the pollution of the app universe by bringing in all the script kiddies who write bug-ridden, security-hole-ridden PHP code. This is almost inarguably a bad thing.

      Good programmers don't need an easier language; Objective-C isn't even slightly hard. Compared with C++ templates, it's downright straightforward. What programmers need is less buggy implementations. Apple's insufficient testing of both old and new APIs causes way, way, way more problems for developers than the programming language. I literally can't work on a single simple app without hitting at least a dozen serious bugs in Apple code ranging from silent failures that shouldn't be silent all the way up to outright broken functionality.

      Instead of pissing away time on this idiotic Swift sideshow, Apple needs to focus on getting their house in order by ensuring that every bit of API code they release has been adequately tested. And no, dogfooding is not testing. It isn't even close.

    14. Re:What for? by dgatwood · · Score: 1

      Obj-C isn't any better than C in my opinion. But, to each their own.

      It is if you're doing any nontrivial amount of string manipulation.

      --

      Check out my sci-fi/humor trilogy at PatriotsBooks.

    15. Re:What for? by jittles · · Score: 1

      Obj-C isn't any better than C in my opinion. But, to each their own.

      It is if you're doing any nontrivial amount of string manipulation.

      Well okay you do have me there. Strings are much easier to manipulate in obj-c.

    16. Re:What for? by grouchomarxist · · Score: 1

      Amusingly, there are actually more devices deployed with my Objective-C stack than Apple's.

      Where do you obtain these #s? What are some of the apps running your stack?

    17. Re:What for? by Anonymous Coward · · Score: 0

      Objective-C is a good language for mid-1990s development. Swift looks like a nice language for early 2000s development. Hopefully someone will come up with a good language for late 2010s development soon...

      What are your thoughts on D?

    18. Re:What for? by LoRdTAW · · Score: 1

      I see. I am not a mobile developer nor a professional developer so I was curious how that worked.

    19. Re:What for? by pklinken · · Score: 1

      Feel free to point out to me the search query that will show me android apps that use an Obj-C core and a Java GUI :)

    20. Re:What for? by angel'o'sphere · · Score: 1

      You ask the wrong guy.
      And no one talked about a Java GUI anyway.
      We talked about an objective C core ... GUI likely also in objective C or in C/C++ ...

      So I would google for Obj-C Android and be done with it :)

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    21. Re:What for? by TheRaven64 · · Score: 1

      I'm not a huge fan. The goal of D was to produce a better C++, but if you're designing a new language then C++ really isn't where I'd choose to start. It's not as bad as Ruby (I can't imagine the kind of person who would look at Smalltalk and say 'what this language really needs is Perl-like syntax'. Actually, I can't imagine the kind of person who'd say that about any language. Including Perl). Rust is probably the modern language that I like the most.

      --
      I am TheRaven on Soylent News
  5. Re: Editors ! Explain terms, then add the story by kthreadd · · Score: 3, Informative

    In this context it's a programming language for the Objective-C runtime developed by Apple.

  6. Too much Blah in the world. by taylorius · · Score: 0, Troll

    Blah blah, here are 8 reasons why Apple should do this and that, but wont, and 5 reasons why Microsoft will never beat Google at 'X'. Blah blah, read my blah blog.

    The world has too many commentators. Go and do something useful. Stop talking about what other people are doing, and go and do something amazing yourself.

    1. Re:Too much Blah in the world. by Anonymous Coward · · Score: 0

      Take you own advice and stop commentating on useless commentators. Stop talking about what they are doing and do something amazing yourself.

    2. Re:Too much Blah in the world. by taylorius · · Score: 1

      I could say the same thing to you, Mr Coward. There's the trap you see - complain about the tidal wave of no-added-value pundits, and someone hits back accusing you of hypocrisy, for making the comment. I've tried ignoring them, I'm afraid they don't seem to be going away.

  7. Why should we care? by Anonymous Coward · · Score: 1

    Well, I'm a developer and I've never heard of Swift till now. And I'm sure there are thousands like me. And I'm sure this is a direct consequence of this language being restricted to the small happy Apple world. Apple has (had) a multitude of applications/technologies/application which could gain world popularity instead of only Apple-world popularity, so it's not something new. If Apple is okay with that, then we all should be okay with that, too.

    1. Re: Why should we care? by Anonymous Coward · · Score: 0

      Um, it's SO small, currently only developers PAYING for access are able to use it.

    2. Re:Why should we care? by gnupun · · Score: 1

      You think the iphone/ipad market (apple world) is small? They should have done this sooner because obj-c is too low level (difficult/time-consuming to code/debug) for your typical $0.99 app. This language will probably cut development time of ios apps by a factor 2 to 10.

      I don't think other platforms need it though as they already have java, python, .net, and newer languages.

  8. Re:Editors ! Explain terms, then add the story by Thanshin · · Score: 2

    You are connected to Internet. What's the point on duplicating information?

    If you don't understand a term, you can search its explanation yourself.

  9. Re:And if it was made Open Source...nothing by Anonymous Coward · · Score: 0

    Check the comment above by TheRaven64. You're pretty much wrong on everything.

  10. What is Slashdot's Relationship to InfoWorld? by Anonymous Coward · · Score: 3, Insightful

    Many click-bait, shit posts come from snydeq and they all link to how-is-it-still-in-business-rag InfoWorld.

    I know Slashdot hasn't tried in years, but damn, there are interesting stories out there that can produce good discussion.

    1. Re:What is Slashdot's Relationship to InfoWorld? by Anonymous Coward · · Score: 0

      Speaking as the original Anonymous Coward, I dislike to reply to myself but here goes:

      I really should be submitting stories that are more likely to get accepted than the click bait crap that I currently see. I guess the marketing departments have nothing better to do than to submit their sites to Slashdot. I really should not be complaining if I am not even competing by submitting stories that I have found to be more interesting and that could produce more discussion.

  11. Article shows fundamental lack of understanding by SuperKendall · · Score: 4, Interesting

    Whoever wrote that article doesn't understand Swift well, or Apple for that matter:

    Swift is designed to support a world built bottom up in Objective-C. It's meant to play well with the bazillion lines of existing Objective-C, not supplant it.

    This is totally wrong. Apple could not be more clear that Swift is built to supplant Objective-C. It will take a while to re-write the frameworks but they are encouraging everyone now to write new stuff in Swift, and as rapidly as possible making the bridge over to the Objective-C frameworks as Swift friendly as possible.

    I think Apple will not open Swift at the moment because they want to have a small core group directing where the language goes, at least at first... and then it will open up more from there. But that also supports the notion that swift is not an auxiliary language, but the primary path going forward.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
    1. Re:Article shows fundamental lack of understanding by disambiguated · · Score: 5, Insightful

      You're both wrong/right. In order to supplant Objective-C, Swift would have to play well with the bazillion lines of Objective-C, and coexist with it for possibly a very long time. On the other hand, even if Apple "could not be more clear" that swift is built to supplant Objective-C, that doesn't mean it will succeed, and doesn't mean Apple won't change their mind. It's a gamble and they certainly know it. They keep that to themselves in order to encourage you to drink the cool-aid.

      See also: Microsoft and .NET

    2. Re:Article shows fundamental lack of understanding by gnasher719 · · Score: 3, Insightful

      Type-casting -oh my lord type casting- is so astoundingly bad in Swift it really beggars belief that in the 21st century anyone could design something that bad!

      Then I'd say you didn't understand it.

    3. Re:Article shows fundamental lack of understanding by gnasher719 · · Score: 1

      This is totally wrong. Apple could not be more clear that Swift is built to supplant Objective-C.

      Right now a problem with Objective-C is that it exists on top of C. For an experienced C or C++ programmer that's no problem. But for someone who is learning Objective-C as their first and only language, there are some very strange things going on. They are all quite logical if you know C or C++, but not at all if you don't.

      That's one thing that Swift gets rid of. There is nothing that is weird for historical reasons. (There are things that look weird to the C programmer though). Another thing that's gone is automatic type conversions, which are trouble for inexperienced programmers (what happens if you compare signed int and unsigned int), and pointers. So I'd say it's very much aimed at the programmer who starts from scratch.

      Not at the beginner; you'll have to learn and understand it to use it properly. But at someone who starts from scratch and learns it thoroughly, and there are no silly surprises. (Like why is 010 not a ten? )

    4. Re:Article shows fundamental lack of understanding by angel'o'sphere · · Score: 1

      If you need a typecast in an object oriented languga, the chance is 99.9x% that you did something wrong.
      A guy does not like a new language and complains about their type casts ... wow I'm speachless.

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    5. Re:Article shows fundamental lack of understanding by Anonymous Coward · · Score: 0

      Java on Android; .Net on Windows; Swift on Mac: it does seem c and c++ programmers are in denial...

    6. Re:Article shows fundamental lack of understanding by Anonymous Coward · · Score: 0

      Java Runtime Written in C and C++ .Net Runtime Written in C and C++
      Swift Runtime Written in C and C++

      Who's in denial?

    7. Re:Article shows fundamental lack of understanding by disambiguated · · Score: 1

      That's a lot of languages and platforms. Know what they all have in common? I'll give you a hint; it starts with C.

    8. Re:Article shows fundamental lack of understanding by Anonymous Coward · · Score: 0

      Not only this, but Apple has nothing to gain from opening up Swift. Right now Swift code is bound to Apple's platforms. Open it up and you may see other platforms starting to support it. Of course, it could be that it never happens, or that the port is as unusable as Mono, but why take the risk at all?

      There is no way to monetize people developing an open Swift, and there is a significant risk that opening up Swift compromises existing monetization strategies, so Apple won't open up Swift any time soon.

    9. Re:Article shows fundamental lack of understanding by iluvcapra · · Score: 2

      Go back to 2002 or so and s/Objective-C/Java. They're committed for the time being, but if they see people switching to Swift uniformly they'll dump Obj-C like a bad habit.

      --
      Don't blame me, I voted for Baltar.
    10. Re:Article shows fundamental lack of understanding by dgatwood · · Score: 2

      They won't see people switching to Swift uniformly. There are trillions of lines of code written in Objective-C, and programmers already know it and are comfortable with it. There are no tools for migrating code from Objective-C to Swift, much less the hodgepodge of mixed C, Objective-C, and sometimes C++ that quite frequently occurs in real-world apps, so for the foreseeable future, you'd end up just adding Swift to your existing apps, which means you now have three or four languages mixed in one app instead of two or three, and now one of them looks completely different than the others. I just don't see very many developers seriously considering adopting Swift without a robust translator tool in place.

      I do, however, expect to see Swift become the language of choice for new programmers who are coming from scripting languages like Python and Ruby, because it is more like what they're used to. In the long term, they'll outnumber the Objective-C developers, but the big, expensive apps will still mostly be written in Objective-C, simply because most of them will be new versions of apps that already exist.

      BTW, Apple never really treated Java like a first-class citizen; it was always a half-hearted bolt-on language. My gut says that they added Java support under the belief that more developers knew Java than Objective-C, so it would attract developers to the platform faster. In practice, however, almost nobody ever really adopted it, so it withered on the vine. Since then, they have shipped and subsequently dropped bridges for both Ruby and Python.

      Any implication that Swift will supplant Objective-C like Objective-C supplanted Java requires revisionist history. Objective-C supplanted C, not Java. Java was never even in the running. And Objective-C still hasn't supplanted C. You'll still find tons of application code for OS X written in C even after nearly a decade and a half of Apple encouraging developers to move away from C and towards Objective-C. (Mind you, most of the UI code is in Objective-C at this point.) And that's when moving to a language that's close enough to C that you don't have to retrain all your programmers.

      Compared with the C to Objective-C transition, any transition from Objective-C to Swift is likely to occur at a speed that can only be described as glacial. IMO, unless Apple miraculously makes the translation process nearly painless, they'll be lucky to be able to get rid of Objective C significantly before the dawn of the next century. I just don't see it happening, for precisely the same reason that nine years after Rails, there are still a couple orders of magnitude more websites built with PHP. If a language doesn't cause insane amounts of pain (e.g. Perl), people are reluctant to leave it and rewrite everything in another language just to obtain a marginal improvement in programmer comfort.

      --

      Check out my sci-fi/humor trilogy at PatriotsBooks.

  12. Re:Deliberate incompatibility by Kalium70 · · Score: 4, Informative

    Applle didn't adopt Objective-C. Objective-C came with the package when Steve Jobs returned to Apple and brought NeXTSTEP/OpenStep with him from NeXT. Objective-C is an attempt to graft SmallTalk style object oriented programming onto standard C without breaking too many other things.

  13. What I like ... errrm, respect about Apples Swift by Qbertino · · Score: 4, Insightful

    What I respect about Apples Swift (not to be mistaken for the other PL Swift) is that it/Apple doesn't claim Swift to be anything other than it actually is. An improvement on PLs already exisiting in Apples Ecosystem tailored *specifically* for developing in that ecosystem, catering to the preferences and addressing the pet peeves of their developer community. AFAICT with no downsides and measurable upsides if you intend to develop native iOS Apps exclusively.

    *This* all IMHO is a new lock-in PL done right - as far as you can do those right.
    contrary to all the lies, damn lies and hideous marketing bullshit that went into the .Net/C# mess.

    Apple did it right again in the way that they actually let the engineers take care of the language, the designers layout a nice free iBook on it and basically kept marketing out of it. ... Not that Apples marketing is really that bad.

    If I ever do native iOS development and embrace the golden cage, I might even look into it - the syntax does look less scary than that of the classic C family.

    My 2 cents.

    --
    We suffer more in our imagination than in reality. - Seneca
  14. I hope it crashes and burns by Crashmarik · · Score: 1, Insightful

    It took a vengeful God to confound the languages of man the first time around. This time around we have gone into do it ourselves mode as everyone who wants to either segment markets, is too lazy to improve an existing language, or just wants a monument to their ego creates a new language.

    Swift is little more than a potential attractive nuisance and it's hardly in Apple's (The great creator of attractive nuisances) to open source it. They want it to become as popular as possible without becoming universal. That way they will have the largest possible code base and developer base trapped in their system without easy ways to exit.

    1. Re:I hope it crashes and burns by washort · · Score: 1

      Wow. You like Objective-C that much?

    2. Re:I hope it crashes and burns by Anonymous Coward · · Score: 0

      You think the Nam-Shub of Enki wore out the first time it was applied? This further confusion of languages is a lingering curse...

    3. Re:I hope it crashes and burns by phantomfive · · Score: 1

      Other problems:

      1) The Swift compiler is buggy. A language with compiler bugs is painful to use.
      2) Locked in to a single platform.
      3) Apple has a habit of eliminating support for languages/tools on a whim.

      I would be very careful before dedicating resources to Swift.

      --
      "First they came for the slanderers and i said nothing."
    4. Re:I hope it crashes and burns by Vitriol+Angst · · Score: 1

      Your choice on iOS is javascript + HTML, Objective C, or using some third party like Unity. The iOS has been able to eke out an advantage over other phones for battery life and the ability to run large games ONLY BECAUSE they forced this "writing to hardware" with Objective C.

      Objective C is difficult and the other options are for low performance apps that are little more than cobbled web pages.

      The need for Swift is great, and I've been using it to jump back into programming; it is well thought out and straight forward. Instead of making it appear on all platforms and support the lowest common denominator, I'd rather it mature a bit and get some good libraries.

      I can understand an automatic distrust for new languages -- but it's not like the platform is riddled with adequate alternatives. And Swift appears to solve a lot of real usability problems without sacrificing power.

      --
      >>"ad space available -- low rates!!!"
    5. Re:I hope it crashes and burns by Vitriol+Angst · · Score: 2

      Well doesn't Objective C lock a developer into a single platform? Where else are these iOS apps going to run without a recompile and platform dependencies?

      Is the Java based Android running apps on other platforms like iOS or Microsoft's?

      The Open Phone platform is either low performance apps with middleware, or a Unicorn parade. I do see that you should be careful of lockin -- but isn't everyone already locked in anyway?

      --
      >>"ad space available -- low rates!!!"
    6. Re:I hope it crashes and burns by Anonymous Coward · · Score: 0

      >eke out an advantage over other phones for battery life
      What battery advantage? My iPhone runs about as long as my Droidphone. Even back in the day, my clumsy original Droidphone ran about as poorly as my iPhone 3g, depending on whether I was on wifi or 3g or both. And neither of them could hold a candle to a dumbphone, so if your primary concern was battery life, why get a smart one?

      >the ability to run large games
      Back in the day the largest game I could run on my iPhone wasn't impressive enough to warrant that being an "advantage". These days that advantage is basically moot, as I can run games with the same shitty battery life on my Droidphone as I can on my iPhone. I still fail to see the benefits.

      Swift is an incremental improvement over objC, albeit a fairly large increment. So while Apple is still hiding iOS behind their little proprietary walled garden, you have no logical choice but to use Swift for newer projects or stick with the aging objC you're used to. That doesn't make Swift a godsend as a language, it makes it a godsend to irate iOS devs who wish Apple would stop being so damn protective of their mostly-second-rate mobile OS.

    7. Re:I hope it crashes and burns by phantomfive · · Score: 1

      Well doesn't Objective C lock a developer into a single platform?

      No, there's been an open source implementation of OpenStep (the real name of Cocoa) for decades. Some of the platform stuff is Apple specific, but that is true of Linux and OpenBSD as well. You can handle it the same way you handle any other platform incompatibility: encapsulate the incompatibility into as small a piece as possible.

      Believe it or not, you can actually compile Objective-C code for Android and run it. Of course, you will have to recompile it, but that's not an issue when you have the source code.

      --
      "First they came for the slanderers and i said nothing."
  15. Re:Deliberate incompatibility by Anonymous Coward · · Score: 2, Informative

    It was probably 5-10 years from the NeXT acquisition until Objective-C became mainstream in the Mac development community. It was all C++ and Carbon until then.

  16. Please no by StripedCow · · Score: 0

    I'd like to keep my OSS free of U2-spam, thank you!

    --
    If Pandora's box is destined to be opened, *I* want to be the one to open it.
    1. Re:Please no by iluvcapra · · Score: 2

      enum Vertigo {
        case Uni
        case Dos
        case Tres
        case Catorce // FIXME
      }

      --
      Don't blame me, I voted for Baltar.
  17. Article shows fundamental lack of understanding by CountBrass · · Score: 0

    Agreed.

    And I think Swift is rather disappointing.

    Given the opportunity to make a clean sweep and introduce a modern language for OSX and iOS Apple decided to make one that is so fatally flawed in so many ways.

    Type-casting -oh my lord type casting- is so astoundingly bad in Swift it really beggars belief that in the 21st century anyone could design something that bad!

    --
    Bad analogies are like waxing a monkey with a rainbow.
  18. Your post is a non-sequitur. by CountBrass · · Score: 0

    That Objective-C "came as a package" does not mean Apple "didn't adopt Objective-C".

    Nor does your statement that "Objective-C is an attempt to graft SmallTalk style... blah blah blah"

    --
    Bad analogies are like waxing a monkey with a rainbow.
    1. Re:Your post is a non-sequitur. by putaro · · Score: 3, Interesting

      The point being that Apple didn't adopt Objective-C just to be weird. Next used Objective-C to build NextStep and there's certain things in Objective-C that made NextStep moderately cool.

      I actually worked at Apple, on the operating systems team, around that time. Apple was in no position to be arrogant in 1997 and wasn't actively looking for ways to be incompatible. Today, that's a very different story.

    2. Re:Your post is a non-sequitur. by Anonymous Coward · · Score: 1

      Some parts of the NextStep UI layer was built in Objective-C. Most of the actual operating system was written in C, and still is.

  19. Apple never about open anything by Anonymous Coward · · Score: 0

    Apple prides itself as a closed ecosystem. Yes it may have adopted some open source projects like WebKit in Safari. But Apple is all about creating a system that relies on its users to adopt a all Apple strategy and for Apple that results in a nice profit margin. I used to think a closed system like Apple's was good. But that was until you buy hardware out side of Apple's walled garden or attempt at using apps that do not accept anything Apple. Just try and work with iCloud and your pictures, or files on a PC or Android device. Yea, its a joke for sure. Apple is not about open, its about as closed as you can get.

    1. Re:Apple never about open anything by UnknowingFool · · Score: 1

      Apple prides itself as a closed ecosystem.

      Apple prides itself on an integrated system. That does not always mean closed. For example, their music is AAC which is the successor to MP3. This is not a format of their design.

      Yes it may have adopted some open source projects like WebKit in Safari.

      And by adopted do you mean made it the de facto engine for many different web browsers? When Apple forked KHTML, it was not used by Google or Opera etc. If you want to ignore that they created OpenCL, LLVM, Bonjour, etc.

      --
      Well, there's spam egg sausage and spam, that's not got much spam in it.
    2. Re: Apple never about open anything by Anonymous Coward · · Score: 0

      Also, first modern unit

  20. Re: Feel Free to Open Source your Own Code by Anonymous Coward · · Score: 0

    They are demanding it: see "Should Open-Source" in the title.

  21. Re: Feel Free to Open Source your Own Code by kthreadd · · Score: 2

    It's an argument for why Apple should do it, not that Apple must do it.

  22. Re: Editors ! Explain terms, then add the story by K.+S.+Kyosuke · · Score: 1

    In another context, it's a family of Forth-based software by FORTH, Inc. Just to make things less complicated. :-)

    --
    Ezekiel 23:20
  23. Let me try fixing the summary for you by halivar · · Score: 2

    Faster innovation, better security, new markets — the case for opening Swift (an innovative new programming language for Cocoa and Cocoa Touch [high-level APIs that make it easy to create OS X (a series of Unix-based graphical interface operating systems developed and marketed by Apple Inc.) apps (applications; computer programs that run on PC [personal computer] or mobile device) with just a few lines of code (collection of computer instructions written using some human-readable computer language, usually as text)]) might be more compelling than Apple (American multinational corporation headquartered in Cupertino, California, that designs, develops, and sells consumer electronics, computer software, online services, and personal computers) will admit, writes Peter Wayner (contributing editor of the InfoWorld Test Center and the author of more than 16 books on diverse topics including open source software, autonomous cars, privacy-enhanced computation, digital transactions, and steganography). "In recent years, creators of programming languages (a formal constructed language designed to communicate instructions to a machine, particularly a computer) have gone out of their way to get their code running on as many different computers as possible. This has meant open-sourcing (applying an open-source [a development model promotes a universal access via a free license to a product's design or blueprint, and universal redistribution of that design or blueprint, including subsequent improvements to it by anyone] license [authorization to use intellectual property] to) their tools and doing everything they could to evangelize their work. Apple has never followed the same path as everyone else. The best course may be to open up Swift to everyone, but that doesn't mean Apple will. Nor should we assume that giving us something for free (as in beer) is in Apple's or (gasp) our best interests. The question ( linguistic expression used to make a request for information, or the request made using such an expression) of open-sourcing a language like Swift is trickier than it looks."

  24. Crap article by Bogtha · · Score: 1

    Half of it doesn't make sense and the rest is factually inaccurate. For instance, Apple won't open-source Swift because people don't want to buy cheap iPad clones? Huh? The foundation of Swift began in the open-source world? Nope.

    Any article like this that doesn't mention Apple are the primary driving force behind the open-source LLVM/Clang tools is missing a big part of the puzzle. Apple have a track record of working on this sort of stuff openly once it gets to production quality.

    --
    Bogtha Bogtha Bogtha
  25. Re: Article shows fundamental lack of understandin by Anonymous Coward · · Score: 0

    No, he understands it. It's just very badly designed.

  26. Article shows fundamental lack of understanding by cornicefire · · Score: 2

    "We have no plans to do anything like that. Swift is a new option for developing on the platform. We have no plans to drop C, C++ or Objective-C. If youÃ(TM)re happy with them, please feel free to keep using them."

    https://lists.apple.com/archiv...

    "Swift is Apple's modern, type-safe language for Cocoa development But Objective-C remains a first-class citizen too"

    http://devstreaming.apple.com/...

    Seems like it's not meant to supplant but to live alongside it.

  27. Why should programmers help Apple make billions? by Anonymous Coward · · Score: 0

    If Swift was "open source", programmers would make it better. Then Apple would exploit their work to make another billion dollars. This is the flaw in "open source" - why would I work for free to make Apple another billion? Note they call it "open source" not free software - just like "consumers" used to be human beings and "resources" used to be employees.

  28. Comment removed by account_deleted · · Score: 2

    Comment removed based on user account deletion

  29. Re:Why should programmers help Apple make billions by SpzToid · · Score: 1

    Not only that, but why as a developer would you want to limit yourself to a single OS, never-mind that this one has an evil overlord with its own interests at heart? And FWIW, how come no one in their right mind uses Active X web extensions either?

    -"A man has got to know his limitations." -Clint Eastwood's Dirty Harry, mocking the guy who said it to him first.

    --
    You can't be ahead of the curve, if you're stuck in a loop.
  30. One thing Swift will address... by tlambert · · Score: 3, Informative

    One thing Swift will address... There are currently 3 memory management models in use in Objective-C, and for some of those models, you don't get a retain count automatically (for example, this is the case for a number of collection objects when doing an insertion).

    Swift has the opportunity to rationalize this, which is not something you could do with the Objective-C libraries themselves, since doing so would change historical APIs and thus break old code.

    It wasn't really until Metrowerks basically became incompatible with the Intel switchover and the 64 bit support had to drop certain types of support from Finder due to 64 bit inode numbers, and while I happily would have made them new header files so that they would have continued to work with the UNIX Conformance work, where Ed Moy and I basically broke their local private copies of their header files, since Motorola sold off the Intel version of the Metrowerks C the week because Apple announced Intel, it was pretty much DOA at that point.

    So it basically took an Act Of God to get some people to get the hell off some of the old APIs we had been dooming and glooming about for half a decade.

    Swift is another opportunity for that type of intentional non-exposure obsolescence to clean up the crappy parts of the APIs and language bindings that haven't been cleaned up previously due to people hanging onto them with their cold, dead hands. Hopefully, they will advantage themselves of this opportunity.

  31. The FSF overreached with GPL v3 ... by perpenso · · Score: 5, Interesting

    Yeah, but as I recall wasn't the whole reason for clang that they wanted to stop using GCC, as it's truly free software? Perhaps my recollection is incorrect.

    Or perhaps you are viewing things through political filters.

    Apple, and others, stopped using the "truly free" gcc because GPL v3 became quite restrictive.

    The FSF overreached with GPL v3, they tried to be too forceful, they overestimated their importance and irreplaceability. The market responded by moving towards LLVM, a less restrictive option.

    1. Re:The FSF overreached with GPL v3 ... by jedidiah · · Score: 1

      > Apple, and others, stopped using the "truly free" gcc because GPL v3 became quite restrictive.

      There's nothing in there that should scare off anyone. If someone is bothered by the GPL3 in a project like C++ compiler, then you should be very suspicious of their motives. They clearly aren't interested in playing nice or being a good citizen.

      They clearly want to be free to f*ck you over later.

      --
      A Pirate and a Puritan look the same on a balance sheet.
    2. Re:The FSF overreached with GPL v3 ... by Anonymous Coward · · Score: 0

      GCC is not a dictatorship the op should heave the freedom to leave...

    3. Re:The FSF overreached with GPL v3 ... by Anonymous Coward · · Score: 0

      > Apple, and others, stopped using the "truly free" gcc because GPL v3 became quite restrictive.

      There's nothing in there that should scare off anyone. If someone is bothered by the GPL3 in a project like C++ compiler, then you should be very suspicious of their motives. They clearly aren't interested in playing nice or being a good citizen.

      They clearly want to be free to f*ck you over later.

      No, Apple wants to make shit-tons of cash, and its not shy about it.

        Under GPL2, It was perfectly happy to pick and choose from among the Free software it wanted, occasionally throwing back some incidental patches and libraries here and there. Not out of the generosity of its non-existant heart; just because Apple had already done the work and considered it to be of no special advantage to keep them private. Enlightened self-interest on Apple's part.

      FSF said no, we don't want your occasional leavings. You will abandon your money-grubbing ways and work with us towards a utopia of Free software, or you will leave, and be left to your own devices. No more picking and choosing. It's all or nothing.

      Apple said fine, we would be happy to give you absolutely nothing.

    4. Re:The FSF overreached with GPL v3 ... by phantomfive · · Score: 2

      They were primarily worried about the patent clause in the GPL3.

      --
      "First they came for the slanderers and i said nothing."
    5. Re:The FSF overreached with GPL v3 ... by phantomfive · · Score: 2

      Under GPL2, It was perfectly happy to pick and choose from among the Free software it wanted, occasionally throwing back some incidental patches and libraries here and there.

      That's not legal. Under the GPL2 they must release all changes they make to any binary they release (and Apple did release their changes). You're going to have to re-think your hypothesis.

      --
      "First they came for the slanderers and i said nothing."
    6. Re: The FSF overreached with GPL v3 ... by Anonymous Coward · · Score: 0

      I want an to use the libraries on my system in my ide.

      Gcc muy no bueno.

    7. Re: The FSF overreached with GPL v3 ... by Anonymous Coward · · Score: 1

      Possibly premature seeing how software patents are encountering a rough patch.

      Changing your business strategy because your lawyers have hypothetical fears is almost always the wrong move. The legal system in the US isn't yet that messed up. But the problem is that too many lawyers have high-level executive positions. And their hammer is esoteric legal knowledge, which biases their approach to business strategy.

    8. Re:The FSF overreached with GPL v3 ... by perpenso · · Score: 1

      > Apple, and others, stopped using the "truly free" gcc because GPL v3 became quite restrictive.

      There's nothing in there that should scare off anyone.

      GPL v3 includes language to thwart anti-circumvention efforts, anti-tivo'ization requiring installation information like signing keys, etc.

      I believe Linus has spoken against the anti-tivoazation clause in the GPL v3.

      If someone is bothered by the GPL3 in a project like C++ compiler, then you should be very suspicious of their motives. They clearly aren't interested in playing nice or being a good citizen.

      They played nice and were good citizens with GPL v2 for many years.

      Plus Apple was a good citizen by supporting many FOSS projects and releasing various internal projects as FOSS.

      http://www.opensource.apple.co...

      They clearly aren't interested in playing nice or being a good citizen. They clearly want to be free to f*ck you over later.

      I'm suspicious of people who see things so "clearly". :-)

    9. Re:The FSF overreached with GPL v3 ... by perpenso · · Score: 1

      They clearly want to be free to f*ck you over later.

      Quite the opposite. As an AC reminds us LLVM/clang is modular and better integrates into Integrated Development Environments and other development tools. Its quite the technical win in that respect.

      Gcc intentionally thwarts such integration to avoid exposing various internals and creating a possible path around the GPL. I.e. politics is limiting the engineering, integration and usability of gcc.

      So there are technical motivations to move to LLVM as well.

    10. Re:The FSF overreached with GPL v3 ... by EmeraldBot · · Score: 2

      > Apple, and others, stopped using the "truly free" gcc because GPL v3 became quite restrictive.

      There's nothing in there that should scare off anyone. If someone is bothered by the GPL3 in a project like C++ compiler, then you should be very suspicious of their motives. They clearly aren't interested in playing nice or being a good citizen.

      They clearly want to be free to f*ck you over later.

      Go tell that to the BSD guys. No, they don't want to screw you over, their definition of freedom differs. To them, freedom is defined as having as absolutely few restrictions as possible. GCC vs Clang is a perfect example. GCC is intentionally made as opaque as possible to prevent you from working around it, and it's far worse in this respect then many of the proprietary compilers. Clang is more interested in being as useful to the user as it can. If you really want it summed up in one sentence, here it is: GNU projects put the license first, functionality second. THAT's what drove Apple (and pretty much everything other then Linux) away from GCC, not "They clearly want to be free to f*ck you over later".

      --
      "Set a man a fire, he'll be warm for the rest of the night. Set a man afire, he'll be warm for the rest of his life."
    11. Re:The FSF overreached with GPL v3 ... by sydneyfong · · Score: 1

      It is legal paranoia. Just like how IT-types have network security paranoia and ban a bunch of software/tools that *could* *potentially* introduce security issues to the company network...

      I mean, sure, if you spend time looking at an individual license it could be OK. But why spend the time to investigate? Just blanket deny, and if somebody thinks it's worth fighting the bureaucracy to use a damn piece of software, *then* it might be worth looking into making an exception...

      --
      Don't quote me on this.
  32. Swift is a LANGUAGE by Anonymous Coward · · Score: 0

    You may as well write an article called "Why Oxford Should Open-Source English -- But Won't" but then the absurdity of the premise would be revealed. Someone is going to come up with a Swift compiler to handle basic items on any platform. Someone is going to come up with multi-platform libraries. Someone is going to put the two items together. Plus the assertion "Apple owes it to open source" because "Apple didn't accomplish all of Swift's glory on its own. It stood on the shoulders of giants. It's not like Apple built gcc or LLVM itself," must be the most idiotic reason I have heard in favor of open sourcing: I didn't build My car on My own; I bought one built on the "shoulders" of "innovation giants"; it's not like I built Honda by Myself; therefore, by the Author's logic, I owe something to the automobile industry. The Author is an Idiot.

  33. Re: Feel Free to Open Source your Own Code by gnasher719 · · Score: 1

    No one is demanding anything, but some of us believe that distributing your software as free and open source software is better for everyone including the original developer. There's nothing wrong in suggesting it.

    You can add some reasons why you think that open sourcing Swift would be good for Apple. When you do that, it would be good to look at it from Apple's point of view. Try to find arguments that would convince Tim Cook.

  34. Apple Fanboy by DaMattster · · Score: 1

    Yes, I am an Apple fanboy and use their stuff. But, I find that Apple is just as guilty as Microsoft in "embrace, extend, and close" They essentially did this with Darwin. Sure their are parts of Darwin that are open source but a lot of the add on stuff is closed up. I would think it would be advantageous for Apple to open Swift up.

  35. Re: Feel Free to Open Source your Own Code by kthreadd · · Score: 1

    Because someone else will do cool things with it that you wouldn't.

  36. Rust as Open Source counterpart? by drewm1980 · · Score: 1

    Even if Apple decides to keep Swift proprietary, Rust is a language under development by Mozilla (with some help from Samsung) that ~is open source, that has somewhat similar goals, and is listed by Chris Lattner as one of the main influences on Swift. It has a type system similar to Haskell, but is a (primarily) imperative language with full control over memory layout and management. My understanding is that their compiler outputs LLVM IR code, but is self-hosting above that level.

    1. Re:Rust as Open Source counterpart? by Anonymous Coward · · Score: 0

      Rusts documentation is complete garbage. Its adoption is extremely poor and frankly, very few developers I know trust Mozilla anymore.

    2. Re:Rust as Open Source counterpart? by silfen · · Score: 1

      It's easy to throw together a new language and compiler. The question is whether it has the credibility and features to build a large user community. I see nothing in Rust that makes me believe that it does. Whether Swift is a better or worse programming language doesn't matter as much as that its adoptions by Apple pretty much guarantees that there will be programmers, books, tools, and libraries.

    3. Re:Rust as Open Source counterpart? by iluvcapra · · Score: 1

      It's easy to throw together a new language and compiler.

      It happens often enough, but I don't know if I'd describe it as "easy."

      --
      Don't blame me, I voted for Baltar.
    4. Re:Rust as Open Source counterpart? by shutdown+-p+now · · Score: 1

      Rust does not have similar goals at all. Rust aims to be the 21st century C++, with a sane design that ditches back-compat with C and adds safety-by-default. Swift is Obj-C redone Java-style.

  37. Re:What I like ... errrm, respect about Apples Swi by jellomizer · · Score: 1

    My main issue is we are entering a post desktop world. (No the desktop isn't dyeing, but it isn't the center of our computing world)
    So we need the following.
    1. A platform to create moble apps.
    2. Being able to create these apps on different systems.

    It is actually very lame to have to have a Mac to build an iOS app. You really should be able to do it on at least the Big three OS Windows,Mac,Linux. Because we are not desktop centrist anymore and people will go around with different Desktops and OS's freely.

    --
    If something is so important that you feel the need to post it on the internet... It probably isn't that important.
  38. TFA has no idea what he's talking about? by Torp · · Score: 1

    Swift is a programming language. Anyone can write a different compiler for it. Open sourcing Apple's LLVM frontend would be nice, but is not required.
    If it's not open sourced and no one does a Swift implementation, we'll be exactly in the same situation as before. You had to write Java for Android and Objective C for iOS. Now you'll have to write Java for Android and Swift for iOS. I fail to see how that changes anything, except Swift being slightly less annoying thatn ObjC.

    90% of the article serves to show that the author doesn't understand the difference between a programming language and the libraries provided by OS X. The other 10%... well I didn't notice what it was about.
    And this crap makes Slashdot...

    --
    I apologize for the lack of a signature.
    1. Re:TFA has no idea what he's talking about? by angel'o'sphere · · Score: 1

      You can write iOS and Android code in any language, as long as you port the runtime and package it with your application. On iOS HTML5 and JavaScript e.g is popular, but so is Qt and C++.

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
  39. Re:Editors ! Explain terms, then add the story by Andrewkov · · Score: 1

    You could have binged it in the time it took to ask that question..

  40. Re: Feel Free to Open Source your Own Code by jedidiah · · Score: 0

    > They are demanding it: see "Should Open-Source" in the title.

    You are a delusional idiot.

    "Should" does not imply or indicate a demand.

    It's time to step out of the Cupertino reality distortion field.

    You fanboys are like a bunch of fundies.

    --
    A Pirate and a Puritan look the same on a balance sheet.
  41. Re:Editors ! Explain terms, then add the story by Anonymous Coward · · Score: 0

    It takes me longer than that to binge eat... I try not too, but donuts.... well, what can I say, I'm weak :(

  42. The FSF overreached with GPL v3 ... by Anonymous Coward · · Score: 0

    Posting anon from work:

    The FSF overreached with GPL v3, they tried to be too forceful, they overestimated their importance and irreplaceability. The market responded by moving towards LLVM, a less restrictive option.

    I actually wonder about this. At my mid-size tech company we use free software and open source tools whenever we can. However, on my first day I was told I shouldn't do anything with GPLv3. I assumed they meant say using a GPLv3 library in my work, or something of that sort.

    However, when I asked permission to use a GPLv3 based editor for a language with a different (non-GPL) license, it was denied. Is this just extreme paranoia/FUD on my organization's part, or is there a valid concern?

  43. What a useless article by MassacrE · · Score: 1

    Languages don't get open sourced - language implementations do. So a real informative article would talk about why apple would or wouldn't propose Swift to a standards body as a new language.

    My understanding (from Apple employee comments, including by Chris Lattner who created Swift) is that the language is evolving in the open now. Version 1.0 is going to be supported by iOS 8 tools, but that doesn't mean there may be several updates even over the next year to fundamental language concepts. Languages evolve from use; the best way to make Swift better is to have people both inside and outside of Apple start using it and providing feedback.

    They actually designed the swift implementation to make more rapid evolution of the language possible; there are no components at the OS level or shared by applications. Instead, you bundle your application and dependent libraries with the swift runtime corresponding to the compiler version used to compile every swift thing in that bundle. In exchange for more space used by duplicating libraries, they can actually let you ship and support older swift code that might not even compile with the newest tools due to language changes.

    In that environment of rapid innovation, attempting to standardize the language or to promote alternate implementations would be insane. However, these are both things which I've seen hints are desired once the language calms down. If Swift is proposed as a new language to a standards body, it is incredibly likely that Apple would also give components of their Swift implementation to the LLVM project.

  44. Tricked me into thinking this was relevant by Anonymous Coward · · Score: 0

    But then i realized we weren't talking about openstack swift storage engine, but its just some more apple bullshit

  45. Re:Why should programmers help Apple make billions by Anonymous Coward · · Score: 0

    If Swift was "open source", programmers would make it better. Then Apple would exploit their work to make another billion dollars. This is the flaw in "open source" - why would I work for free to make Apple another billion?

    Try asking these people.

  46. Re:Why should programmers help Apple make billions by monkeyhybrid · · Score: 1

    That's not a flaw with open-source, that's one of the beauties of it. Whoever has a vested interest in it, can benefit from it. If I can get something out of it, why should I care if someone else can profit from it more than I do?

  47. Re: Feel Free to Open Source your Own Code by Anonymous Coward · · Score: 0

    And you're an illiterate moron. See definition of "should" from google:

    verb
    modal verb: should

            1.
            used to indicate obligation, duty, or correctness, typically when criticizing someone's actions.

    Words like obligation and duty do not make it seem like a request, more like a demand.

  48. The type-casting is good by SuperKendall · · Score: 1

    Type-casting -oh my lord type casting- is so astoundingly bad in Swift

    What don't you like about it?

    I like it because it precludes a lot of stuff from going wrong unless you are very explicit in telling swift how you would like to be shot in the foot.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
  49. Re:What I like ... errrm, respect about Apples Swi by Anonymous Coward · · Score: 0

    what the fuck are u talking about? Lies about c#/.Net? explain...

  50. Static Analyzer? by glennrrr · · Score: 1

    So, you can build a proper static analyzer with GCC libraries now?

  51. Re: Feel Free to Open Source your Own Code by kthreadd · · Score: 1

    I don't see anything about demand there.

  52. interesting, except... by Anonymous Coward · · Score: 0

    since apple already said they'd open source Swift, this whole thread is a little odd. But whatever.

    1. Re:interesting, except... by Bogtha · · Score: 1

      Apple haven't said that they will open-source Swift. The only thing they've said so far is that they've been concentrating on getting it to 1.0 first and haven't made a decision about open-sourcing it yet.

      --
      Bogtha Bogtha Bogtha
  53. There is no point by Anonymous Coward · · Score: 0

    I don't see why anyone would choose it over C++, since the built in support for arrays and maps is clearly inferior to the C++ alternatives. C++ has proper support for the template programming paradigm. Performance in Swift also looks to be reasonably bad, with Apple's own benchmarks showing things like object sorting to be only 4x faster than python. If this is true, we are talking about a runtime that may in some cases struggle to compete with scripting languages, let alone compiled languages. It maybe looks easier for a less competent programmer, but the power of C++ in the hands of a good developer will always be preferable to giving stupid people inferior tools to keep them safe. Anyway, we have better alternatives for less capable programmers, that are also excellent tools in the hands of capable programmers. These languages are called C# and Java, and they already have mature and well maintained class libraries (at least C# does - java under oracle has languished somewhat). It also raises questions over support for iOS in future, if it becomes no longer possible to write in a language that is also supported properly on other platforms. I know that no competent development organisation will ever write their application core in a non-portable language. That is just stupid in the modern world, where your host platform could rapidly go downhill and vanish, just like some mobile platforms have (and others like windows for phones have never even got started at all)

  54. I was reading about Taylor Swift before this by JasonGoatcher · · Score: 0

    Free associating for the win.

  55. Article shows fundamental lack of understanding by Anonymous Coward · · Score: 0

    Apple also once claimed that Carbon and Cocoa were both first-class citizens on OS X. They also once claimed that Java and Objective-C were both first first-class languages for writing Cocoa code.

    Rule number one: The Apple lies.

  56. A.Nobody tells A.Somebody they're doing it wrong. by BitZtream · · Score: 1

    So lets summarize the authors babbling: Apple has no actual incentive to OSS Swift other than appeasing people like the author who think Apple should do what they want even though they don't care for Apple.

    Basically, he's a freeloader and thinks Apple should support him.

    He seems to think his opinion of whats good for Apple matters, and that Apple doesn't know what they are doing. Ironically, Apple is sitting on ridiculous amounts of cash, and the author is a writer for Infoworld.

    Now, I'm not even bothering to address the technical reasons the author is a moron, just the plain old common sense things. This guy's just grumpy he can't install some sort of Swift capable IDE/Environment on his windows machine for free, thats the only reason the article exists.

    From a technical perspective he doesn't seem to understand that Swift, as done by Apple, without Cocoa ... is fucking pointless. The whole point of swift is a language that works perfectly for a nextstep/cocoa style universe. Trying to shoehorn the rest of the computing world into swift is just pointless.

    --
    Persistent Volume manager for Kubernetes - https://github.com/dwimsey/openshift-pvmanager
  57. Mind the gap between free speech and free beer by Anonymous Coward · · Score: 0

    You write
    "Nor should we assume that giving us something for free is in Apple's or (gasp) our best interests."
    You also write
    "Faster innovation, better security, new markets Ã" the case for opening Swift might be more compelling than Apple will admit"

    Here is the thing, to have all these you have to make it free as in speech, so ppl could write their programs and develop libraries without the fear of
    Apple suing them just for using their product. It's not about price.

    We can argue if a program in general should be opensource etc, but programming languages are a special case of programs. They don't fall in the general category of applications.
    Look what happened with C#. It's less popular than JavaScript.

    Anyway, I believe that being free (as in speech) is essential for a language in order to be widely adopted. Especially today when you can create a programming language with Swift's features and syntax similarity very quickly. This, by itself hints that the right way today is to open/free a programming language.

  58. Not thrown out by Anonymous Coward · · Score: 0

    Sent back for retrial.

  59. What for? Swift isn't anything special by taharvey · · Score: 1

    I completely disagree Swift VERY special. I'm a embedded systems programmer, and I most to use Swift. There is no other serious contender right now for a modern systems language than can replace C, C++ or objC.

    Swift ia very unique language is that it:
    1) Has the high level language syntactical goodness of a scripting language like Python or Ruby
    2) Has the native performance of a systems language like C
    3) Has strong support for multiple paradigms including Functional Programming, Object, and procedural
    4) Can morph from a JIT language during compile time for faster programmer efficiency (Like Java), and compile fully native like C
    5) Has a hot-coding environment like I've never seen anywhere else

    There is only one language that come close to this, and that is Rust. But Rust is probably 5 years from being production ready. And it lacks the JIT-y hot coding goodness.