Live data from Hacker News

Apple is open sourcing Swift Build

swift.org

261–270 of 300 posts

Re: Apple is open sourcing Swift Build

#261
post #258

Apple’s software decisions over the last 15 years have created significant friction for developers trying to build on their platforms. Apple’s approach to software development has felt like it’s prioritizing business interests over the ease and flexibility that developers need to build high-quality, useful software.

And yet there has been plenty of high-quality, useful software developed on Apple's platform over the last 15 years, and there continues to be.

Re: Apple is open sourcing Swift Build

#264

Swift is a really cool language. But one thing that blows my mind is that if you ever encounter an "index out of range" error, the (massive) error message that you get doesn't tell you anything about where this error occurred... no line number... no nothing... let a = [1] print(a[1]) Is all you have to do to reproduce the error. The error looks something like that https://pastebin.com/MQV82SaR And gives you no useful…

I am getting proper error feedback,

``` swift_hello_main + 322 in swift-hello at /home/fermi/Documents/temp/swift-hello/Sources/main.swift:64:8

    62│
    63│ let a = [1]
    64│ print(a[1])
      │        ▲
    65│
```

Re: Apple is open sourcing Swift Build

#265
post #254
post #234

Earlier quoted context omitted.

Which rely on a mix of Objective-C and Swift APIs to actually interact with the platform.

What's your point? That's what Apple makes available. I'd use the C# API if that's how they provided it. If not dominating the games on those plarforms, Unity and C# have a strong footing to say the least. Swift doesn't seem to be making very much headway on platforms where APIs are available in anything else. Maybe that can chance. It seems like a neat language but "it's popular because apple forces you to use it" i…

The point is that they are guest languages on Apple ecosystem and need Apple tooling and languages as means being available.

I may also add that I dislike Microsoft doesn't give to the .NET ecosystem the same care for games developers as Apple does for Swift and existing OS SDKs.

As far as DirectX team is concerned, only C++ exists, and .NET team lets third party folks do the needful.

Had it not been for MonoGame, Unity would never picked C# in first place, gone were the days of Managed DirectX and XNA, when the decision came to be as Unity did their cross-platform rewrite out of OS X.

Re: Apple is open sourcing Swift Build

#266
post #240
post #157

Earlier quoted context omitted.

They should have been fully open source with full linux support and parity since day one. That would actually help the language get traction. At this point it's a dying language.

There's a lot more buzz and activity around Swift than many other languages. It's literally up there with Rust, in terms of excitement (perhaps not quite as high). But I think if they get excitement outside of the Apple ecosystem, things should start to get super interesting. Some are already adopting it like Ladybird browser.

If we're trading anecdotes, I'll share mine as someone's who's completely outside of Apple ecosystem and is not interested in it in the slightest: I only ever hear about Swift on HN, nowhere else. Most of my colleagues, friends and acquaintances (who is in IT, but none of whom are Apple users) don't even know it exist, while everyone has at least heard about Rust. We all live in bubbles, admit it.

Re: Apple is open sourcing Swift Build

#268
post #157

Earlier quoted context omitted.

They should have been fully open source with full linux support and parity since day one. That would actually help the language get traction. At this point it's a dying language.

Is it dying? I think it's still pretty popular for app development isn't it? I was pretty excited to hear that Ladybird is doing a lot of stuff in Swift, because I think it's a pretty decent and fast language and I think it'd be pretty neat to see a browser written in it.

It's essentially "Big in Japan" (eg on Apple platforms but nowhere else). Even on Apple platforms I winder if ObjC is actually still more popular ;)

Re: Apple is open sourcing Swift Build

#270
post #23

Swift is a nice language. I'm glad to see it being released from the clutches of Apple. I can only imagine how large of a task this is. I hope some day to be able to use it. The last time I tried a cross-platform project with it I switched languages due to `URLSession.shared.data` (a network request) being unable to compile on Linux.

Is it really being released? Although some parts of the language and build chains are technically open source (as in, you can see the code), the project is still completely controlled by Apple at the top.

Can't you fork it then? Isn't that what open source is about?
Post reply on HN