News for hackers. Stuff that matters.
Re:Introducing Swift by kcorbitt on Monday June 02, 2014 @03:16PM (#7835425)
So it looks like the language isn't open source and won't target non-Apple runtimes?

I'm not trying to troll, I just think that it's a pity that Apple tends to limit the ecosystem and applications of its otherwise-great languages. Building against LLVM ought to make it fairly trivial to make this cross-platform.

Re:Introducing Swift by munchor on Monday June 02, 2014 @03:22PM (#7835495)
Now that Microsoft has been open sourcing so much stuff I was expecting Apple to follow the wave and release Swift as open source too. It's a shame though.
Re:Introducing Swift by davidw on Monday June 02, 2014 @03:26PM (#7835544)
I'm old enough to remember Apple suing Microsoft for "copying their look and feel". Open source is something Apple only does strategically - when they have to or it suits them - it is not part of the company's ethos.

http://en.wikipedia.org/wiki/Apple_Computer,_Inc._v._Microso....

Re:Introducing Swift by wdr1 on Monday June 02, 2014 @04:19PM (#7836046)
> Open source is something Apple only does strategically - when they have to or it suits them - it is not part of the company's ethos.

What Fortune 500 (or even 5000) systematically open sources every piece of technology? Every company I can think of -- Yahoo, Microsoft, Google, Facebook, LinkedIn, Twitter, Amazon, LinkedIn, AOL, Craigslist, Oracle, -- selectively decides what to open source.

I'm not saying that's right or wrong, but Apple is far from alone in doing so.

Re:Introducing Swift by davidw on Monday June 02, 2014 @04:42PM (#7836232)
None of them are 100% open or closed, but clearly some are more open than others.
Re:Introducing Swift by eonil on Monday June 02, 2014 @08:49PM (#7837529)
more open? what a funny joke i ever heard. please define the meaning of the more, and at least tell who is the more open one.
Re:Introducing Swift by dworzanski on Wednesday June 04, 2014 @08:54PM (#7849511)
Red Hat.
Re:Introducing Swift by andrewtbham on Monday June 02, 2014 @03:36PM (#7835645)
Yeh, I agree. I was surprised when they open sourced webkit. But like you said, it's strategic. I don't think they care that much about the browser. Their emphasis is on apps running in their ecosystem.
Re:Introducing Swift by tsuraan on Monday June 02, 2014 @03:43PM (#7835722)
They didn't have a choice about webkit; it was a fork of KHTML, which was a part of KDE (and available under the terms of the GPL).
Re:Introducing Swift by timgws on Monday June 02, 2014 @08:23PM (#7837415)
Actually, WebKit was a fork of KHTML, correct, but it is licensed under the terms of LGPL. One extra letter, but a world of difference. This is why they had to open source KHTML, but they could get away with not open sourcing Safari (if KHTML was licensed under the GPL, any app that linked against the library would need to be licensed under the GPL, too.)

Let's not forget that webkit when it was released was little more then a code dump - one big patch that had to be applied to KHTML.

Re:Introducing Swift by eduo on Wednesday June 04, 2014 @07:36AM (#7844982)
Also "they didn't have a choice" sort of ignores that they did have the choice of not using khtml and wouldn't have, if its license could've been problematic for them.
Re:Introducing Swift by msoad on Monday June 02, 2014 @03:39PM (#7835690)
You can see first chapter of the book here

http://imgur.com/a/AuzGw

I've uploaded it just now

Re:Introducing Swift by msoad on Monday June 02, 2014 @03:48PM (#7835769)
Why I get down votes? It's a free book. People on other platforms can't access it.
Re:Introducing Swift by JimmaDaRustla on Monday June 02, 2014 @03:57PM (#7835856)
Welcome to HN where it seems everyone disregards others work/opinions if they have any reasoning that may only make sense to them.

I'll get down voted for this, and it will be truly ironic.

Re:Introducing Swift by richardlblair on Monday June 02, 2014 @04:15PM (#7836015)
But it will be worth it.

Bring on the Downvotes!

Re:Introducing Swift by waterfowl on Monday June 02, 2014 @05:18PM (#7836483)
thanks for this. I clicked their link(on my less than a year old ~$2000 MBP) and it opened iBooks and sat there with a loading icon for minutes. My first and last experience opening iBooks.
Re:Introducing Swift by joezydeco on Monday June 02, 2014 @03:32PM (#7835600)
Combine this with their OpenGL replacement ("Metal") and that pretty much kills any cross-platform at all doesn't it?
Re:Introducing Swift by vincetogo on Monday June 02, 2014 @03:41PM (#7835706)
It's not too hard to write a graphic engine that abstracts out the graphics API, but it would have to be done in a language other than Swift...
Re:Introducing Swift by wmf on Monday June 02, 2014 @03:24PM (#7835517)
Realistically all the Kits aren't (officially) portable anyway.
Re:Introducing Swift by United857 on Monday June 02, 2014 @03:23PM (#7835510)
Is there anything to stop a independent implementation? Like C#/.Net and Mono?
Re:Introducing Swift by yulaow on Monday June 02, 2014 @03:31PM (#7835589)
Well if the core of the language is licensed and closed source (is it?) and they do not make a standard iso, it's really problematic to reimplement it in another platform. Both from a legal that from a technical pov.
Re:Introducing Swift by nothiggs on Monday June 02, 2014 @03:36PM (#7835644)
Just look at the latest ruling on Oracle vs. Google using Java...
Re:Introducing Swift by _random_ on Monday June 02, 2014 @03:42PM (#7835718)
No point?
Re:Introducing Swift by tenken on Monday June 02, 2014 @03:36PM (#7835655)
horrible adoption?
Re:Introducing Swift by maaaats on Monday June 02, 2014 @03:50PM (#7835795)
I can't even view the book about the language without having an Apple device or installing Apple software.
Re:Introducing Swift by eduo on Wednesday June 04, 2014 @07:39AM (#7844988)
It's available online in html:

https://developer.apple.com/library/prerelease/ios/documenta...

I assume you'd need a developer account, though.

Re:Introducing Swift by gyhbv on Sunday June 08, 2014 @02:05AM (#7864097)
The book is ePub with no DRM. You don't need an apple device. You could download it on iTunes on windows, and read it with any ePub reader. if you don't want to install itunes i guess you could get a friend to email you a copy.
Re:Introducing Swift by octopus on Monday June 02, 2014 @03:38PM (#7835683)
Open source or not, Swift will never be appealing for the world outside Apple's garden if it will be as intertwined with Cocoa as Objective-C currently is. It will be nice however to see how well Swift could be ported to Android.
Re:Introducing Swift by binarycrusader on Monday June 02, 2014 @04:13PM (#7836002)
There's no indications yet that it won't be. I suspect a large part of it will be part of a timed-release with their next merge to LLVM. But only Apple knows for sure.
[deleted]
Re:Introducing Swift by ianburrell on Monday June 02, 2014 @03:46PM (#7835752)
Different Swift language. That is a "parallel scripting language" for scientists and is written in Java.
Re:Introducing Swift by rgbrgb on Monday June 02, 2014 @03:44PM (#7835738)
That's a different Swift.
Re:Introducing Swift by jonursenbach on Monday June 02, 2014 @03:47PM (#7835762)
This link is for a previously existing Swift language.
Re:Introducing Swift by dclowd9901 on Monday June 02, 2014 @03:23PM (#7835499)
This is only a bit of a bummer because I already expected as much.