Live data from Hacker News

“Swift will be open source later this year”

apple.com

491–500 of 573 posts

Re: “Swift will be open source later this year”

#491

This places Swift right along Golang and Rust as the new interesting language.

I toyed with implementing Swift on the JVM (which is very doable by the way). The problem I've found with Swift is the minute size of the standard library. This has forced a large amount of Swift libraries to make calls to Objective-C/Cocoa classes libraries which makes it very non-portable. I haven't checked any time recently, but if a large, stable, swift-specific stdlib were to emerge then I believe it could defin…

>I toyed with implementing Swift on the JVM (which is very doable by the way).

It's already been done :D

https://leverich.github.io/swiftislikescala/

Re: “Swift will be open source later this year”

#492
post #108

Earlier quoted context omitted.

It's designed to give it hype, it's not a systems language. The first question you should ask for any systems language is how to I integrate assembler, when the answer is to use C / C++ then you know it's not a systems language. Also, how you can tell a language is a systems language, it has an operating system written in it used by a large user base. How do you layout a struct in Swift so that it's the exact size an…

To write an OS you simply need to be able to compile code that can be launched by a bootloader. That's it. You don't need explicit control over the layout of your data structures in memory. I'd hazard that the engineers at Apple are perfectly qualified to identify what is and isn't a "systems language" working for one of the few companies that has actually developed several from scratch (I am referring to A/UX, Mac O…

You do need to control the layout of structures in memory if you want to write a filesystem or a TCP/IP stack.

Re: “Swift will be open source later this year”

#493
post #429
post #301

Earlier quoted context omitted.

I'm confusing types and 'Java-like interfaces and design patterns' to the same degree that you're confusing swift's type system with 'what great type systems can do for you.' The type system of swift is much closer to java than to that of haskell. (Or whatever language you think has a 'great' type system) For example in F# if you just use one method the type system will infer that you need an object that has that met…

You mistake me: I wasn't talking about Swift, a language I'm barely familiar with. I was puzzled by your more general assertion about "the kind of apps where a great type system would really shine". So far you haven't explained what you meant by this; you seemed to be complaining about enterprise software, but a lot of enterprise software isn't built with programming languages featuring great or even particularly mod…

[deleted]

Re: “Swift will be open source later this year”

#494

Earlier quoted context omitted.

The same was said about FaceTime... http://www.fiercedeveloper.com/story/facetime-open-standard-... Sadly, this never came to fruition, supposedly due to legal complications. Since they own Swift, and the underlying compiler infrastructure this may be simpler to pull off.

FaceTime was my first thought, too. An awesome promise that failed to deliver. It'll be really interesting to see if a video chat format ever becomes a standard, or if we're all forced to keep accounts with multiple vendors for interoperability (skype, hangouts, facetime, etc).

Matrix looks very promising. Check them out at matrix.org

Re: “Swift will be open source later this year”

#495

Swift for me is what Python3 should've been. For me as a Python user, this development is huge. I've been watching for the language to move to instead of Python3. Of Rust, Go, Swift and other new languages, Swift always seemed to me the most appealing language. Being the 1st class citizen on iOS makes learning this for serverside development very appealing. An ideal server language that enables single language client…

... or you could just move to coffeescript and have something even more clay-like than python running everywhere.

Re: “Swift will be open source later this year”

#496

Earlier quoted context omitted.

This cannot happen soon enough. I'm not saying this because of anything to do with Apple's Swift announcement. I'm saying this because it'll be a huge benefit to Android.

> I'm saying this because it'll be a huge benefit to Android. reply How so? The language has a weaker type system than Java, doesn't support exceptions and requires error checking every other line, has very poor tool support (because the compiler was not designed with IDE's in mind). Except maybe add a few developers who refused to write code on Android because of Java, I really don't see what Go would bring to Andro…

Type system strength does not correlate with language adoption. Else, nobody would use C, Python, PHP, Javascript, Perl, Ruby ; C++, C#, Java would be outsiders and almost everybody would use Ada, Haskell, OCaml.

I agree with your last sentence, however.

Re: “Swift will be open source later this year”

#497

Earlier quoted context omitted.

I had the same opinion as you until I started some code with it. The true is that I had never been so productive writing code. The friction from what is in your head and the code is almost 0. It is true that I ended writing a few functions that were there only because the lack of generics, the type system and other stuff being "built-in". But at the end, I think it was an order of magnitude less often than I was expe…

Your comment is interesting, it has made me want to look at the language, so thanks. But I think that the "friction from what is in your head to code" probably betrays that you weren't settled in a previous language? I only say this because I have zero friction writing C++, and have to think mildly backwards when it comes to C# or Java, and definitely Objective-C. Even PHP is like simplified C++ to me, so I write eve…

> But I think that the "friction from what is in your head to code" probably betrays that you weren't settled in a previous language?

I had the same feeling as the user you're answering to. And I have used quite a bunch of languages I've been quite productive with (C, C++, PHP, Python, Java, Ada), but I've never felt with these languages as little "friction" as with Go.

I mean, that language is so dumb that you don't have to think about the right way to do stuff. It's obvious. Boring, sometimes verbose, but obvious. It doesn't stand in the way between me and the problem.

Re: “Swift will be open source later this year”

#498

Earlier quoted context omitted.

Your comment is interesting, it has made me want to look at the language, so thanks. But I think that the "friction from what is in your head to code" probably betrays that you weren't settled in a previous language? I only say this because I have zero friction writing C++, and have to think mildly backwards when it comes to C# or Java, and definitely Objective-C. Even PHP is like simplified C++ to me, so I write eve…

> But I think that the "friction from what is in your head to code" probably betrays that you weren't settled in a previous language? I had the same feeling as the user you're answering to. And I have used quite a bunch of languages I've been quite productive with (C, C++, PHP, Python, Java, Ada), but I've never felt with these languages as little "friction" as with Go. I mean, that language is so dumb that you don't…

That's really good that it's so dumb that you don't need to jump through hoops to think of the way to do it. Clever! Just code and go!

Re: “Swift will be open source later this year”

#499
post #473

Earlier quoted context omitted.

I'm going to double down on my bet that Apple will position Swift as the lingua franca to replace javascript. Front end and backend.

Good luck with that. One of the reasons JS is the lingua franca is that every browser comes with a JS runtime, all you need to get started is a plaintext text editor and all you need to publish an "app" is cheap/free web space. Mark my words: Swift won't replace JS, not even PHP. EDIT: Also, what's the point of writing Swift code in Linux if you aren't developing for iOS? As a non-iOS developer nothing at all compels…

The point on having Swift on other platforms means you can write software for things other than iOS/OSX. It's a fun, modern language that brings A LOT to the table that js/py/rb don't (type checking and the ability to distribute binaries, for starters).
Post reply on HN