Live data from Hacker News

Swift 5.3 Will Be Supported on Windows and Additional Linux Distributions

infoq.com

111–120 of 308 posts

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

#111

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.

It may be tempting to go the middleware route, but whenever I worked with middleware I had completely unrelated issues to the underlying framework which either complicated matters, or made it impossible to fix specific bugs. Then there’s the issue that Apple has a pretty aggressive release schedule. For a middleware maintainer it takes pretty long (compared to Apple’s native solutions) to adapt to these changes (I’m thinking about things like the notch on the iPhone X and safe areas). Apple’s secrecy about their upcoming release schedules doesn’t help, but it’s just how things are.

And just a minor nitpick, Apple’s development environment is called Xcode, where just the X is written uppercase.

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

#112
post #66

Off-topic, but I read the title as "Supported on Linux distributions including but not limited to Windows". Microsoft, you know what we want.

Windows switching to the Linux kernel would be wild, but I think we all know it's coming.

Why would Microsoft ever want to do that?

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

#113
post #20

I hope they also add better builtins for HTTP. Last time I worked with Swift it was difficult to get a simple server up and running without a framework.

Huh? Apple provides an example implementation at https://github.com/apple/swift-nio and I would say it’s straightforward to “get up and running”.

It’s pretty easy to take Apple’s HTTP implementation, add a router, integrate a template engine and have something working, but then the real issues start, because the ecosystem and community just aren’t there.

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

#114

> . 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.

SwiftUI lacks many basic widgets like table.

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

#115
post #9
post #2

This is really exciting. Every time I see something about Swift my thought process is "that looks like a lovely language but I don't build iOS/macOS apps, oh well". Maybe now I'll give it a real go. Fun fact: Graydon Hoare, the original inventor of Rust, now works at Apple on Swift.

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.

I don't believe TF4Swift will go anywhere.

Fortran, C++, Python and Julia drive the show and work with full tooling across UNIX flavours, Windows, macOS today.

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

#116
post #75

Earlier quoted context omitted.

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…

I’ve thought enough about this problem that I don’t think it’s possible to recreate a “native” experience with a cross-platform app. You end up compromising on the nativeness every time. It makes more sense to me to use native GUI frameworks and program your functional logic in something like Rust.

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

#117
post #84

Earlier quoted context omitted.

I'm sure licensing is a big one. It looks like SwiftUI is MIT license and Qt is dual licensed.

I think you are mixing up Swift and SwiftUI. Swift is a programming language created by Apple, it's been cross-platform for a while but is now going to be officially supported on Windows. Swift is Apache licensed. SwiftUI is a UI framework created by Apple for the Swift language, it's only available on Apple platforms, and it's proprietary.

Thanks for the correction! I knew of the distinction, but in my haste I was looking at a different repo (and I blanked that the source hasn't been released and licensed).

Swift looks to be Apache licensed. I'm fairly confident SwiftUI wouldn't have a commercial license, which is a major topic with using Qt.

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

#118

Earlier quoted context omitted.

What would it provide that Qt + QML don't right now? (if we assume that the crossplatform GUI is the killer feature)

Every time mobile cross-platform is discussed, someone brings up Qt when it's less popular for mobile development than React Native, Flutter, Xamarin, or PhoneGap/Codova. Maybe even less than Ionic, NativeScript, or Appcelerator. Why even bother with such a niche solution? Are there even live cases of mobile apps using Qt?

> Every time mobile cross-platform is discussed, someone brings up Qt

For what it is worth I can't see anyone mentioning mobile and however weird this sounds, for me at least cross platform always implicitly meant across desktop platforms.

Cross platform on mobile never really happened, thanks to Steve Jobs, and I am kind of happy for it so far.

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

#119
post #108

> . 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.

If that were true wouldn't we be seeing a big increase in Dart adoption because of Flutter as well? I'm not seeing it.

Flutter is one of the fastest growing frameworks for the past two years and therefore dart too. It most likely will succeed cause of this pace and the community growing around it.

When flutter for desktop lands into beta I think it will pick up even more pace and would be very hard to ignore for a lot of companies.

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

#120

Earlier quoted context omitted.

Every time mobile cross-platform is discussed, someone brings up Qt when it's less popular for mobile development than React Native, Flutter, Xamarin, or PhoneGap/Codova. Maybe even less than Ionic, NativeScript, or Appcelerator. Why even bother with such a niche solution? Are there even live cases of mobile apps using Qt?

> Every time mobile cross-platform is discussed, someone brings up Qt For what it is worth I can't see anyone mentioning mobile and however weird this sounds, for me at least cross platform always implicitly meant across desktop platforms. Cross platform on mobile never really happened, thanks to Steve Jobs, and I am kind of happy for it so far.

Sure it did, in all these years my only native apps have been on personal projects.

In what concerns work, we use a mix of mobile Web, Xamarin, Cordova/PhoneGap, C++ with native views, depending on the customer requirements.

Post reply on HN