Live data from Hacker News

Swift 5.3 Will Be Supported on Windows and Additional Linux Distributions

infoq.com

71–80 of 308 posts

Re: Swift 5.3 Will Be Supported on Windows and Additional Linux Distributions

#71
> It is hard to think that any Windows programmer would prefer Swift as a language over .NET languages,

It's not hard for me to think that. I've never been interested in .Net languages, and I write stuff for both Linux and Windows. If it was just Swift the language and compiler, and I had to wrap Win32 API calls by hand, I'd happily use it.

Re: Swift 5.3 Will Be Supported on Windows and Additional Linux Distributions

#72

linux builds of ios apps would lead to general improvement in the state of build tooling for mobile (IMO) I take it this isn't that?

This will never happen. Part of the reason programmers or aspiring programmers buy MacBooks is they think they will be working on iApps at some point in time. This is an example of the most intolerant minority winning[1]. I may have to use Windows to make games, but I can install Windows on a MacBook. I cannot install MacOS on a laptop with Windows or Linux pre-installed.

[1] https://medium.com/incerto/the-most-intolerant-wins-the-dict...

Re: Swift 5.3 Will Be Supported on Windows and Additional Linux Distributions

#73

> . It is hard to think that any Windows programmer would prefer Swift as a language over .NET languages, as many commenters pointed out on Reddit, but a port of Swift UI on Windows could be a game changer. Everybody would jump to Swift [for new projects] if it meant a cross-platform GUI framework.

Creating a good cross-platform GUI framework is probably harder than creating a good cross-platform language.

100% correct

Re: Swift 5.3 Will Be Supported on Windows and Additional Linux Distributions

#74
post #47
post #40

> It is not clear at the moment if Apple has any plans to port Swift UI to Windows and/or Linux It seems pretty clear they have 0 plans on doing that. They could've open sourced it in the first place, along with Combine. Not open sourcing Combine seems like a pretty short sighted decision to me.

Swift wasn't originally open-source, either.

Not only did they announce that it would be open source immediately, unlike the source code dump they did with WebKit, Apple made the entire git commit history public from the initial commit.

Re: Swift 5.3 Will Be Supported on Windows and Additional Linux Distributions

#75

> . It is hard to think that any Windows programmer would prefer Swift as a language over .NET languages, as many commenters pointed out on Reddit, but a port of Swift UI on Windows could be a game changer. Everybody would jump to Swift [for new projects] if it meant a cross-platform GUI framework.

Creating a good cross-platform GUI framework is probably harder than creating a good cross-platform language.

Possibly, but that's if you include the part about making it look/feel native. If you just provide the tools the are just focused on the language and framework and let the people who care about making it look native on whichever platform it's running focus on that then I think it's doable.

Unlike things like react native you wouldn't be actually using the native components necessarily unless you can implement the UI frameworks components in terms of them. Otherwise they would need to be written from scratch.

Re: Swift 5.3 Will Be Supported on Windows and Additional Linux Distributions

#76
This is extremely exciting for me. I started writing a toy application for my iPhone using SwiftUI a few months ago and have been very impressed by Swift (coming from C#). So far, SwiftUI has felt exactly like what I wished XAML would become.

The documentation and error messages are a complete disaster though (https://nooverviewavailable.com/)

Re: Swift 5.3 Will Be Supported on Windows and Additional Linux Distributions

#77
post #9

Earlier quoted context omitted.

That's an outdated but sadly common perception. TensorFlow for example is pushing Swift pretty hard: https://www.tensorflow.org/swift/ Disclaimer: I work at Google but not on TensorFlow.

Is tensoflow for swift even still a thing?

Some of the first bits of research using it just started coming out last month

Re: Swift 5.3 Will Be Supported on Windows and Additional Linux Distributions

#78

XCode (and hence most of the useful parts of using the Apple development ecosystem) as of v11.4 won't install on Macs running Mojave it's actually better, in my view, to use Mono/C# and things like Xamarin than start off with Swift and think you can port the other way and not be forced into upgrading your laptop for the privilege of writing apps for Apple systems.

[deleted]

Re: Swift 5.3 Will Be Supported on Windows and Additional Linux Distributions

#79
post #28

Earlier quoted context omitted.

No OP, and I don't know much about game development, but "without any change at all" is too strong. SDL only does so much, and you still need platform-specific APIs for file access, networking (if applicable), threading, etc. So you'll still need platform-specific code until someone writes those abstractions in Swift.

not OP either. but i think the problem is simple. apple said no to opengl, which any other platform out there supports. btw, they are even deprecating opengl! i have no idea what that means for the tons of games written with an opengl backend. probably not an issue for the iOS ecosystem though. so that's what is going on...

Why would you want an old API like OpenGL when you can use Vulkan and Metal
Post reply on HN