Swift will add support for Windows and other Linux distributions

Swift development team said that its upcoming 5.3 version of the objectives include "to add support for Windows and other Linux distributions."

They mentioned Swift 5.3 will include significant quality and performance enhancements. More importantly, this release will also expand the number of available Swift and supported platforms, in particular, to increase support for Windows and other Linux distributions.

Apple's open source programming language Swift, but in addition to its own platform, it seems that there is no incentive to expand support for other platforms, so progress is slow Swift cross-platform, currently only supports macOS and Ubuntu.

For this reason, many members of the community will be very positive Swift ported to more platforms. For example, IBM in the server-side aspects contributed to Swift Kitura framework, but because it is the use of disappointing, IBM in December 2019 to give up most of the support for it. Nevertheless, there is still an official  Swift Server Working Group (SSWG), its leading projects include Swift NIO (event-driven networking framework). In addition, there are known  Vapor  framework, which is a Web development framework that can run on macOS and Ubuntu.

For Windows platform, there was an open source  SwiftForWindows  project to support the development environment to provide an easy to use Windows, but now seems to have been declared dead. In addition, you can use Linux subsystem for Windows (WSL) runs Swift compiler, but there is a problem - interactive command line REPL (Read Eval Print Loop) does not work in WSL 1.0 in. So, want to use the Swift for the developers on Windows, run the tool chain in Swift Docker container is a proven solution.

The good news is that the current native Swift official route for Windows has been improved. The project is called  swift-build  rather than the swift-windows, because it covers Linux and Docker and Windows. 10 the minimum supported version of Windows is 10.0.17763.0 (Updated October 2018).

In fact, as early as January release of Swift 6 development path document, the development team has pledged to expand the number of available and support the Swift platform. Swift 5.3 now announced development objectives announcement, noting in particular the "add support for Windows and other Linux distributions."

Better on Windows and Linux Swift will help to support server-side code or non-visual development, such as machine learning, modeling and Vapor Tensorflow projects such cases.

However, there is still a thorny issue, and that is a GUI application. Because SwiftUI with Apple's operating system to bind together, there may be solutions to this problem, but unfortunately, the macOS and / or iOS Swift's application to the Windows and recompile the idea of ​​it can not be achieved.

Guess you like

Origin www.oschina.net/news/114532/official-swift-programming-for-windows