Live data from Hacker News

Swift 5.3 Will Be Supported on Windows and Additional Linux Distributions

infoq.com

121–130 of 308 posts

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

#121
post #109
post #108

Earlier quoted context omitted.

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.

Although it technically has cross platform GUI, Flutter has actually reimplemented all the native OS widgets. As soon as the OS changes some look and feel your app will look out of date.

Yes it will look out of date. But whats important? A functioning app or good looking one? We all know that websites written for ie6 are out there today making millions in revenue. It always comes down to the functionality not the looks

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

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

Swift is already way more popular than dart though.

But Swift doesn't run on Android, does it?

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

#123
post #109

Earlier quoted context omitted.

Although it technically has cross platform GUI, Flutter has actually reimplemented all the native OS widgets. As soon as the OS changes some look and feel your app will look out of date.

Yes it will look out of date. But whats important? A functioning app or good looking one? We all know that websites written for ie6 are out there today making millions in revenue. It always comes down to the functionality not the looks

It probably will be good looking just wont be aesthatically consistent with new OS looks.

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

#124

Whenever I've looked at examples on Swift on Linux in the past, the code always started with (hazy memory here) `use glibc` or similar, whereas the macOS version used a different library. So for example even just to produce a random number you had to use two completely different library functions imported with completely different names. All that to say: it's always felt to me like "cross-platform" for Swift means "t…

It depends on what you're doing. Swift Foundation is cross platform for Windows/Linux/macOS and exposes apis for things like file systems, paths, process creation with the caveat that what a "Thread" is or what it means if a file is executable is a little different between platforms. If you're writing a cli tool you should be able stay mostly within the Swift stdlib and Foundation and that'll work on all platforms. A…

Sounds like things have improved in the last couple years, thanks for the information. If they get to the point where a basic database-querying microservice will usually compile on all three platforms, I could imagine a lot more server-side interest in the language. Who knows?

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

#125

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

Microsoft is working on cross platform GUI framework. I am not sure how i feel them choosing react native instead of something like Flutter.

Maybe befause React native uses OS UI components while Flutter creates everything from scratch. https://microsoft.github.io/react-native-windows/

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

#126
post #58

Earlier quoted context omitted.

OpenGL isn't relevant here, as SDL2 has a metal backend that's used by default on MacOS. See https://hg.libsdl.org/SDL/rev/1acae5590352

> OpenGL isn't relevant here oh nice, i had no idea SDL had metal support! no one in the SDL developer community tells you how to support metal or how to use it. instructions for MacOSX redirects you to another library, which has since removed their instructions. who exactly are we kidding here?

The whole point of using SDL is that the framework takes care of it for you.

Here,

https://wiki.libsdl.org/SDL_SetHint?highlight=%28%5CbCategor...

https://wiki.libsdl.org/SDL_HINT_RENDER_DRIVER

And after a 5 minute search,

https://gist.github.com/gcatlin/b89e0efed78dd91364609ca4095d...

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

#127
post #85

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

> Everybody would jump to Swift [for new projects] if it meant a cross-platform GUI framework. I wouldn't. I don't like Swift's syntax. The ecosystem would likely not be mature enough either.

What don't you like about the syntax?

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

#128
post #33

This is good news to me! I've been very interested in Swift for a long time, but mostly work doing web dev so it would only be useful to me if I could run it on Linux and it initially didn't have a great support story. I know it has been able to run on some Linuxes for a while, but it just didn't appear to be a great ecosystem. Now, there's interesting stuff happening for both backend and fronted ( https://twitter.co…

The ecosystem isn't npm or anything but it's not terrible if you don't care about targeting Windows. The standard library is pretty good, and between C and Python interop there's generally always a way to do something even if there's not great library support directly in Swift.

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

#129
post #91

Earlier quoted context omitted.

That's a big if. From what I've read, SwiftUI isn't even a great Mac/iOS GUI framework yet. And Windows and Linux are drastically more different than those two.

I really enjoy swiftUI. It appears like it tried to emulate react and succeeded on a few fronts, is better in a few fronts (child modifying parent variable), and worse in a few fronts (side effects). That being said, my experience with SwiftUI users is that they don't like it because it is so different from the standard Mac experience (props and re-renders and state...). And the documentation is poor (IMO has been Ap…

I’ve spent the last week learning SwiftUI to see how hard it would be to reimplement Notion in a performant way. It seems really ... unfinished. Like, the default List view is really hard to style. I spent 4 hours yesterday trying to get an unstyled text Button to have a hit target bigger than the characters themselves. Adding a frame with a background worked, but if the frame had no background (or a transparent background) then the hit target would stay tiny. I ended up fixing it by just reading through every property method in swiftui and guessing. It reminds me of web development in the early days of jQuery.

If the SwiftUI code were opensource it would be much more pleasant - I could paw through the code if I needed to, file issues, and so on. But the whole experience compared to writing typescript with VS Code is shockingly bad. With the preview open Xcode sometimes stutters so much that it misses key presses - so I’ll type a function name and it’ll come out missing letters, because apparently I wasn’t typing slowly enough for my $3000 computer from 2016 to keep up.

That Xcode gets trounced in developer experience by vs code - an IDE running on electron - is really a testament to the work Microsoft has put into performance. And it should be hugely embarrassing for Apple.

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

#130
post #87

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)

Pricing and not being c++

LGPL is free and there are Qt bindings in pretty much all languages now (+ I mentioned QML for that reason).
Post reply on HN