Developers can now build and run Swift code on Windows

Posted:
in General Discussion
Apple's Swift programming language officially landed on Windows this week, with Swift toolchain images now available for download from the open source project.

Swift


Announced in a blog post on Tuesday, the release of Swift tools enables developers to build, run and debug code directly on Windows 10.

The toolchain includes the compiler, standard library, and core libraries, all key ingredients for creating functional apps.

"With these core libraries and the flexible interoperability of Swift with C, it is possible to develop applications on Windows purely in Swift while taking advantage of the existing corpus of libraries on the Windows platforms," writes Saleem Abdulrasool, Swift Core Team member and software engineer at Google Brain.

A basic calculator app was created with Swift and Visual Studio 2019 to demonstrate the toolkit's capabilities. The app was built with CMake, but Abdulrasool notes Swift Package Manager support on Windows is in the works.

Some major developers are already experimenting with Swift on Windows. Readdle, a longtime developer of iOS and Mac software, has been tinkering with a cross-platform version of its Spark email platform since 2019 and is seeing good results.

Developers interested in contributing to the project are welcomed to download the toolchain and report issues to the Swift Bug Tracker.

Comments

  • Reply 1 of 4
    Do we remember the ~2007 interview of Steve Jobs and Bill Gates in AllDigital?
    Steve said the ‘iTunes for Windows’ was like a ‘glass of water in hell.’

    Now, we got ‘a gallon of water in hell’!
    watto_cobra
  • Reply 2 of 4
    Swift is out for a long time so not sure what prevented this long porting to Windows platform ?
    watto_cobra
  • Reply 3 of 4
    wood1208 said:
    Swift is out for a long time so not sure what prevented this long porting to Windows platform ?
    Chances are they were waiting for the language and standard frameworks to stabilise before beginning the porting work.

    Then after that, you've got to come with the bindings to the Windows API.

    All in all, it's quite a big job.


    edited September 2020 StrangeDayswatto_cobra
  • Reply 4 of 4
    MacProMacPro Posts: 19,254member
    lmasanti said:
    Do we remember the ~2007 interview of Steve Jobs and Bill Gates in AllDigital?
    Steve said the ‘iTunes for Windows’ was like a ‘glass of water in hell.’

    Now, we got ‘a gallon of water in hell’!
    This isn't the same Microsoft (TG!).
    watto_cobra
Sign In or Register to comment.