Live data from Hacker News

Swift is Open Source

swift.org

241–250 of 458 posts

Re: Swift is Open Source

#242

I see this as an hilarious welcome joke from the community : https://github.com/apple/swift/pull/17 Its developer's way to say FIRST

No. This is a childish joke, and inappropriate. As a community of professionals, we should do everything we can to discourage this kind of crap. Joe Cumbo (mooman219), I hope you never apply for a job I'm the hiring manager for, because I would never hire you after seeing this kind of unprofessionalism in your Github profile.

I wouldn't want to work for a company that cannot take a joke. The PR was sent around apple software engineering today and they got a kick out of it.

Re: Swift is Open Source

#243
I love this! I got say, that I've been a fan of Swift since the day Apple announced it. It's a such a beautiful language, with so many new paradigms implemented, safe and easy to learn.

I really hope this boosts the widespread of Swift. I'd love to use it for back-end dev for instance.

Re: Swift is Open Source

#245

Any news regarding Swifts ability to interoperate with CPP, like Objective C++?

Yes, it is currently out of scope for Swift 3.0[1] 1. https://github.com/apple/swift-evolution#out-of-scope

Great to know this now instead of having to wait until next WWDC.

Re: Swift is Open Source

#246

Earlier quoted context omitted.

I'm glad they didn't write it in Objective-C, as this would probably make compilation on Linux much harder (I have no idea what the state of Linux support for Objective-C is). As for writing it in Swift itself, that's not possible until Swift is sufficiently stable and with enough library support. Which it may or may not have now, but certainly didn't have when they started ;)

Linux support for ObjC is great on the compiler side (GCC supports the full language), but none of the core libraries are available. You can get some stuff (NSString, NSDictionary and so on) through GNUstep, but last I checked it was an uphill battle to be truly productive with ObjC on Linux.

GCC doesn't support the full language anymore, since the stuff that Apple added after finishing the migration to Clang hasn't been ported to GCC (e.g. generics and array/dictionary literals) and there doesn't appear to be anyone interested in doing so.

Re: Swift is Open Source

#248
post #112

Github repo is live now. https://github.com/apple/swift First ever commit found here https://github.com/apple/swift/commit/afc81c1855bf711315b8e5...

Interesting there is no link to add issues to those repositories !

Probably because they will want to use radar for bugs and general discussion might be done like Linux mailing lists.

Edit yeah. that's basically how they are handling it but with the exception that they are using a public jira instance for language bugs, radar for xcode and nda bound bugs and a mailing list for general discussion.

Re: Swift is Open Source

#249
post #28

Wonders about the state of Swift on Linux? Was expecting this to be timed with the open source announcement.

Looks like they have builds for Ubuntu 14.04 and 15.10. I expect they would work on other debian-based linuxes (linuces?) but haven't tried.

Here are my results on a Debian jessie box:

If you just want to play with the REPL (usr/bin/swift in the Ubuntu 14.04 snapshot), all you have to do is:

  apt-get install python-dev
If you want to actually compile swift files (usr/bin/swiftc in the Ubuntu 14.04 snapshot), it appears extremely basic programs will compile with jessie's clang-3.5, so all you have to do is:

  apt-get install clang
Note that the swift.org instructions claim you need clang-3.6, and you probably do for more complex programs. For that, you'll need to temporarily add a sid/unstable source and upgrade clang:

  echo 'deb http://ftp.us.debian.org/debian/ unstable main' >> /etc/apt/sources.list
  apt-get update
  apt-get install clang
(don't forget to remove the unstable line afterwards).

Re: Swift is Open Source

#250
post #49

A lot of folks to thank at Apple right now, can't wait until all of this propagates so we can take a look at what's new in Swift 3. Two thoughts: - VERY happy to see the open sourcing of much of the Foundation libraries (which includes strings, dates, networking primitives, concurrency/task queues, I/O, etc). It'll provide a very strong start and make working with Swift immediately productive. - Holy crap, there's a…

It doesn't look like they've opened any of the existing Foundation framework we all know and love and that's written in Objective-C. The swift-corelib-foundation repo contains a bunch of .swift files, and those contain lots of calls to NSUnimplemented().

The Core Foundation stuff (included in swift-corelib-foundation) has been open for a while: http://www.opensource.apple.com/source/CF/

Post reply on HN