Live data from Hacker News

Swift 5.3 Will Be Supported on Windows and Additional Linux Distributions

infoq.com

11–20 of 308 posts

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

#11

Wonder if some macOS only software will get ported to Windows once this happens. That if course is assuming there’s good support for the Windows APIs for building apps

More likely Apple will just write server-side Swift code that we never see. I really hope they open some, the linux ecosystem for Swift is a little small

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

#13
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 know it's had some mixed support for other platforms for a while, but it's hard to really invest time and effort into a language before you know it has official support.

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

#14

Wonder if some macOS only software will get ported to Windows once this happens. That if course is assuming there’s good support for the Windows APIs for building apps

It’s really the extensive Apple frameworks that make a Mac or iOS app — the layer written in Swift that’s not using UIKit or AVFoundation, etc, is probably minimal in comparison.

So, direct ports are unlikely to be made that much easier, but it definitely opens the door to more code sharing.

Plus, Swift is a really nice language — great to see it getting more adoption.

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

#15
They need objc2swift, something like c2rust[1], to speed up the legacy code upgrade. Transpiler and code refactoring tool, all while preserving the ability to run tests. Or, on the other side, c2rust should get an Objective C support as an input.

[1] https://github.com/immunant/c2rust

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

#16

Wonder if some macOS only software will get ported to Windows once this happens. That if course is assuming there’s good support for the Windows APIs for building apps

Apple is strengthening their services revenue. They week profit from the extra reach. Also, people will continue to but their hardware because the alternatives aren’t that great Simple example.... the MacBook trackpad

Ten years ago when I was offered a choice, I told the office manager I wanted a MacBook because of the trackpad.

Apple’s trackpads are even better now. How has nobody figured out Apple’s 2010s trackpad technology?

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

#17
post #12

Also worth noting that Saleem has also been working on a wrapper of Windows GDI for Swift. While it's not a port of SwiftUI, it looks pretty similar. https://github.com/compnerd/swift-win32

Thanks for sharing that, very exciting.

If by some stretch that means Swift can then make complete Windows programs, that could be good for consumers but particularly good for enterprise developers.

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

#18

Wonder if some macOS only software will get ported to Windows once this happens. That if course is assuming there’s good support for the Windows APIs for building apps

Apple is strengthening their services revenue. They week profit from the extra reach. Also, people will continue to but their hardware because the alternatives aren’t that great Simple example.... the MacBook trackpad

So true.

I was talking to someone also in lockdown and she's in the market for a new laptop or iPad/keyboard.

She also wants to play games with family and friends and that's when she realized multiplayer and games in general on iOS and Mac were not a strength at all.

IMO, Apple's above-average hardware (at times, not all keyboards) is severely hurt by the lack of real gaming options on Mac or iOS.

I think that is even more glaring now in our present circumstances.

Post reply on HN