Live data from Hacker News

Swift 5.3 Will Be Supported on Windows and Additional Linux Distributions

infoq.com

151–160 of 308 posts

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

#151
post #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.

To specify, it does contain what SwiftUI calls a List. And each row in the list can of course contain a number of widgets, so you can approximate a table.

However for the desktop, a good real table, with columns, would be nice.

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

#152

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

Trying to pull a reverse os/2, interesting.

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

#153
post #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

In my opinion, the integration between Objective-C and Swift is so incredibly seamless, that there's no need to translate existing Objective-C code.

When I started working at my current client, there was a huge existing Objective-C code base to talk to an internal HTTP API. I just started coding. When I needed to add functions, I subclassed Objective-C classes in Swift.

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

#154

But why? Sure, there are people who want to tinker with it for fun, but outside of that what is the point in having Swift on Linux and Windows? You can't use it to build mac or iOS apps on Linux because the important libraries aren't there. There is no cross platform UI and Apple isn't likely to port and support theirs from macOS. If you are into servers then you have plenty of better languages options with establish…

It's a fully fledged programming language. An open-source programming language, at that, with a lot of community input and involvement.

Not a macOS or iOS app creation DSL.

It's also quite pleasant to use, and has already seen a few uses beyond macOS and iOS apps, including some backend development (Vapor, Kitura, SwiftNIO, probably others).

So you could use it to write command line tools. To write Linux or Windows apps. Or to write servers. Just like any other programming language.

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

#155

But why? Sure, there are people who want to tinker with it for fun, but outside of that what is the point in having Swift on Linux and Windows? You can't use it to build mac or iOS apps on Linux because the important libraries aren't there. There is no cross platform UI and Apple isn't likely to port and support theirs from macOS. If you are into servers then you have plenty of better languages options with establish…

I've begun using Swift for Linux to build sites on Publish (https://github.com/JohnSundell/Publish) on my CI.

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

#156

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)

Hate to say it, but the sanest thing to do if you need a cross platform UI is use Java. Your other choice is Electron, which is way slower and uses many times as much ram

I wonder whether GraalVM native image will play a bigger role in desktop apps in the future.

Kotlin + TornadoFX + native-image (if it is supported) sounds like a pretty comfortable to use UI stack.

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

#158
post #154

But why? Sure, there are people who want to tinker with it for fun, but outside of that what is the point in having Swift on Linux and Windows? You can't use it to build mac or iOS apps on Linux because the important libraries aren't there. There is no cross platform UI and Apple isn't likely to port and support theirs from macOS. If you are into servers then you have plenty of better languages options with establish…

It's a fully fledged programming language. An open-source programming language, at that, with a lot of community input and involvement. Not a macOS or iOS app creation DSL. It's also quite pleasant to use, and has already seen a few uses beyond macOS and iOS apps, including some backend development (Vapor, Kitura, SwiftNIO, probably others). So you could use it to write command line tools. To write Linux or Windows a…

I'd say swift is currently probably the best languages out there. Language features, standard library, performance, memory management.

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

#159
I don't think this is evidence for a move to cross plattform UI apps, but I hope it's a move to make Swift more useful on the server side.

As I've understood it, Foundation support is pretty good these days? But it would be cool if Apple ported even more frameworks that could be useful for server side applications. Recently I would have loved to have had AVFoundation available when doing some HLS parsing server side, for example.

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

#160
post #154

Earlier quoted context omitted.

It's a fully fledged programming language. An open-source programming language, at that, with a lot of community input and involvement. Not a macOS or iOS app creation DSL. It's also quite pleasant to use, and has already seen a few uses beyond macOS and iOS apps, including some backend development (Vapor, Kitura, SwiftNIO, probably others). So you could use it to write command line tools. To write Linux or Windows a…

I'd say swift is currently probably the best languages out there. Language features, standard library, performance, memory management.

Just checking my notes...and the answer is no.
Post reply on HN