News for hackers. Stuff that matters.
Re:Swift on Windows by oscargrouch on Tuesday September 22, 2020 @08:30PM (#24561617)
SwiftUI is an attempt to stop the spread of people coding for things like React and instead focus in a Apple only SDK so they accomplish their goals of developer lock in.

Knowing why Apple is doing this is important to understand why this will never happen.

Apparently the feature they are using is function builders (1) and its already working on the current versions of Swift. So at least now, nothing is preventing other people to try to replicate in a open source manner those features.

By the way, there are some projects on Github that already implements the same functionalities.

Don't wait for Apple to open source this kind of stuff, because one way to enforce lock in, is through API. And Apple is far away from being a benevolent big other as some people might naively assume.

1 - https://www.swiftbysundell.com/articles/the-swift-51-feature...

Re:Swift on Windows by setr on Tuesday September 22, 2020 @08:41PM (#24561696)
If you look at it benevolently, then it seems like they tried to force out the API they wanted, and made it publicly available to verify, and then worked backwards to implement it in the compiler properly

That is, "So at least now, nothing is preventing other people to try to replicate in a open source manner those features." was always the intent

Similar to rust implementing magic features and APIs, and macros, in nightly, before the API is verified and the implementation is ready.

In which case, you'd expect all of SwiftUI to be eventually possible by anyone else.

Re:Swift on Windows by wool_gather on Wednesday September 23, 2020 @11:38AM (#24568301)
> function builders [are] already working on the current versions of Swift. So at least now, nothing is preventing other people to try to replicate in a open source manner those features.

Function builders are still not a public feature, and therefore subject to breaking revisions without warning.