What does HackerNews think of swift?

The Swift Programming Language

Language: C++

Two examples from Apple:

• The Swift Programming Language: https://github.com/apple/swift

• FoundationDB - the open source, distributed, transactional key-value store: https://github.com/apple/foundationdb

Apple's Swift source looks nice[0]. So does Darwin[1].

They have done a lot of work on structure and documentation, since the docs are auto-generated.

I have taken a lot of inspiration from them.

The Adobe APIs[2] were also excellent, but I'm not sure they are open for browsing, anymore.

[0] https://github.com/apple/swift

[1] https://github.com/apple/darwin-xnu

[2] https://developer.adobe.com/photoshop/api/

I'm guessing you mean something other than FOSS (free / open source software) in your critique of FOSS. Reason being, Swift is FOSS (https://github.com/apple/swift), both the compiler and the standard library. Likewise, the Microsoft C# compiler is also FOSS (https://github.com/dotnet/roslyn).

You seem to enjoy closed-source platform libraries (WinForms, AppKit), and want to promote developing software that relies on them. The survival characteristics of this approach don't seem very strong. Good luck!

Perhaps Apple's contributions aren't as visible, but just off the top of my head here's two major open source contributions from them: Swift[1] and FoundationDB[2]

[1] https://github.com/apple/swift

[2] https://github.com/apple/foundationdb

> rather than GitHub?

Just to note that Swift is on GitHub[0] and has a very inclusive community.

The impression I get is that Apple isn't really interested in soliciting outside contributions for their OS/kernel code, which is why they're just code dumps.

[0] https://github.com/apple/swift

Apple's Swift programming language is on GitHub -- the full history AFAIK.

https://github.com/apple/swift

Apple is a big fan of GitHub, you can see evidence of that with the Swift project (https://github.com/apple/swift), but not everything is suitable for that sort of treatment.

It could be workflow related. The OS team has been around for decades and pivoting to a new RCS for a whole OS is not easy.

Some people are far more specialized in what they work on.

- Apple's Swift codebase is 54.8% c++ [0]

- Microsoft's CNTK codebase is 57.6% c++ [1]

- Bitcoin's codebase is 68.6% c++[2]

- XBMC's codebase is 84.7% c++[3]

If you work on certain or specific types of projects, like ones making the tools that others use do their projects, then you are typically working more in only 1-2 languages at a time.

[0] https://github.com/apple/swift

[1] https://github.com/Microsoft/CNTK

[2] https://github.com/bitcoin/bitcoin

[3] https://github.com/xbmc/xbmc

The Swift Open Source community is quite vibrant. They're already building it on Linux + macOS. See: https://github.com/apple/swift

Edit: They also have a Platform Support page, where they discuss their goals/intentions on cross-platform: https://swift.org/about/#platform-support

Swift is FLOSS, Apache Licensed and built and collaborated on GitHub: https://github.com/apple/swift

Objective C has not had an official open source release, so far as I know.

ETA: Arguing of course how close the gcc/clang implementations of Objective C may or may not be to the Xcode compilers, of course.

>perfect examples of Pieter's point.

Please consider the precise argument I was responding to.

Pieter's point is a stronger statement than just the existence of "different styles". (Every significant codebase by multiple people has multiple styles -- e.g. see Linux distribution.) He was stating that there was a cause and effect such that the different styles ("dialects") cause "isolation".

If so, it means Apple's Swift compiler written in C++ on github[1] should be getting near zero forks and pull requests. In his theory, Chris Lattner and his dialect of C++ should be "isolated". It's also possibly unintelligible C++ (although I haven't looked at it yet).

If it was just one of those throwaway sentences to troll people, then fine. My first impression was that he wanted his programming guide to be taken seriously.

I enjoy reading C++ criticisms. The criticisms in the C++ FQA by Yossi Kreinin has interesting points. I'd prefer it if the faults of C++ were accompanied by evidence.

[1]https://github.com/apple/swift

Right now there is!: https://github.com/apple/swift Also, the dependencies to build swift looks fine to build it on other architectures. I'll try to build it for the Raspberry Pi 2 to see.
Until the source code is made publicly available, title should be changed to 'Soon to be'.

https://github.com/apple/swift still is a 404

EDIT: repo is now live!

https://github.com/apple/swift wouldn't appear non-existent due to traffic.