SR-34


(Xuejun Yang) #1

Hi all,

I wonder if anybody is working on SR-34: porting Swift to Windows, and if
so, whether we could join the efforts. On my side, I have ported most of
the Swift code to Windows so that I am able to create Visual Studio
projects with cmake and build/debug swiftc inside VS. The major missing
piece is the runtime library, which requires many platform specific
hacking. Some of them are due to the inherent limitations of Windows.

I'd also like to hear other's suggestions on this subject.

Regards,

-Xuejun


(Shawn Erickson) #2

Note I have some changes inflight to better isolate use of aspects of
pthreads in the runtime behind a mutex, etc. abstraction (about to open
another pull request).

I was thinking about looking into Windows native implementations.

-Shawn

···

On Mon, Mar 28, 2016 at 11:18 AM Xuejun Yang via swift-dev < swift-dev@swift.org> wrote:

Hi all,

I wonder if anybody is working on SR-34: porting Swift to Windows, and if
so, whether we could join the efforts. On my side, I have ported most of
the Swift code to Windows so that I am able to create Visual Studio
projects with cmake and build/debug swiftc inside VS. The major missing
piece is the runtime library, which requires many platform specific
hacking. Some of them are due to the inherent limitations of Windows.

I'd also like to hear other's suggestions on this subject.

Regards,

-Xuejun
_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


(Xuejun Yang) #3

Yes, many times during the porting I have to resort to Windows native
implementations. Just to name a few: posix_memalign, UUID, dlopen.

-Xuejun

···

On Mon, Mar 28, 2016 at 11:23 AM, Shawn Erickson <shawnce@gmail.com> wrote:

Note I have some changes inflight to better isolate use of aspects of
pthreads in the runtime behind a mutex, etc. abstraction (about to open
another pull request).

I was thinking about looking into Windows native implementations.

-Shawn

On Mon, Mar 28, 2016 at 11:18 AM Xuejun Yang via swift-dev < > swift-dev@swift.org> wrote:

Hi all,

I wonder if anybody is working on SR-34: porting Swift to Windows, and if
so, whether we could join the efforts. On my side, I have ported most of
the Swift code to Windows so that I am able to create Visual Studio
projects with cmake and build/debug swiftc inside VS. The major missing
piece is the runtime library, which requires many platform specific
hacking. Some of them are due to the inherent limitations of Windows.

I'd also like to hear other's suggestions on this subject.

Regards,

-Xuejun
_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev