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."
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.
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.
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.)
In this context it's a programming language for the Objective-C runtime developed by Apple.
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.
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.
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.
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
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.
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. .Net/C# mess.
contrary to all the lies, damn lies and hideous marketing bullshit that went into the
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
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.
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.
It's an argument for why Apple should do it, not that Apple must do it.
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."
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
"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.
Comment removed based on user account deletion
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.
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.
I've heard Apple uses it....
Well.. maybe. Or Maybe not. But Definitely not sort of.
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!!!"
Don't blame me, I voted for Baltar.