Porting Swift to Haiku


(William Dillon) #1

Hi Joseph,

That’s awesome!! I love BeOS back in the day.

I work on the 32-bit swift port for ARM/Linux. Swift works just fine with 32-bit systems.

Good luck!

- Will

···

On May 7, 2017 at 2:19:15 PM, Joseph Calvin Hill via swift-dev (swift-dev@swift.org) wrote:

Hello swift-dev!

I'm one of the selected GSoC 2017 students under the Haiku Project [0] and I intend to add Haiku support to the Swift compiler and its standard libraries. [1] Haiku is an open-source operating system that specifically targets personal computing and aims to be a platform that is easy to use and learn for both end-users and developers, whilst retaining BeOS ABI compatibility [2]. My plan is to only support 64 bit Haiku (x86_64-unknown-haiku) for now, 32 bit support is also a possibility but I’m not sure if this will get in the way of Swift’s goals? (IIRC there was a 32 bit Linux port that hasn’t been merged upstream.)

I have already patched the build-script and some other CMakeFiles for initial support in my swift fork, but they are based on the ’swift-3.1-branch' sources [3]. As I plan to cleanup these changes and merge them upstream, should I be targeting my porting efforts to Swift 4 rather than Swift 3.1.1? My final proposal [4] documents the project timeline for executing this porting task.

Thanks,
Joseph Hill
------------------------------------
[0] https://www.haiku-os.org
[1] https://summerofcode.withgoogle.com/projects/#5744000681115648
[2] https://www.haiku-os.org/about
[3] https://github.com/return/swift/commit/c8253ab3afa238c16ca9389d169c0659dc10b520.diff
[4] https://www.dropbox.com/s/hp9z4azdem6gume/Final_Proposal.pdf?dl=0
_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


(Joe Groff) #2

I don't think there's much to do to port Swift to a 32-bit Linux platform. The reason Swift doesn't support i386 on Mac is because that platform uses a completely different, older Objective-C runtime from all other Apple platforms that Swift doesn't interoperate with. On non-Mac platforms that shouldn't be an issue.

-Joe

···

On May 7, 2017, at 4:22 PM, William Dillon via swift-dev <swift-dev@swift.org> wrote:

Hi Joseph,

That’s awesome!! I love BeOS back in the day.

I work on the 32-bit swift port for ARM/Linux. Swift works just fine with 32-bit systems.