Live data from Hacker News

Porting Swift to Haiku

haiku-os.org

11–20 of 53 posts

Re: Porting Swift to Haiku

#13
post #4

the bare minimum it needs is an IDE that can be used to code apps for the OS itself. and after that being able to run all kinds of programming languages. Personally i'd like to see the latest version of ruby work and postgres. But also docker support would suffice too.

> IDE that can be used to code apps for the OS itself

I'm pretty sure Haiku has exactly that already? Pretty sure it did last time I ran it...

Re: Porting Swift to Haiku

#15
post #5
post #2

I just feel like this project has lost track of priorities, or doesn't want to be a credible alternative OS anymore. As a long time fan of the project - who cares about Swift? Where's the next release?

> who cares about Swift? Someone, obviously, cares. They took the time to port it. These same sentiments were said about another alternative open source OS 20 years ago. And yet, here we are 20 years later and it powers everything from supercomputers to mobile phones and TVs

> Someone, obviously, cares. They took the time to port it.

Yeah, and I have to figure that with Swift being Apple's darling right now that there's the opportunity to attract more interest from idle developers that otherwise wouldn't have given Haiku a moment's thought.

Re: Porting Swift to Haiku

#16

Earlier quoted context omitted.

If I had to guess, it looks like someone wanted a really fast language with high level features. They could've also ported D, Rust, Nim...etc, but Swift is not a bad one to port. What is most of Haiku written in, C++? I think Swift would be a good app language now that it is Open Source.

I believe there is also a working Rust port. Still, more options is nice.

If they have LLVM up and running then any language that depends on it (swift, rust) should be doable.

Re: Porting Swift to Haiku

#17
post #7

I wonder what the plan is for getting swift interop with C++, given that all the Be/Haiku APIs are C++ (IIRC) and swift has no ability to call into C++ code directly.

If you want to see one way of doing this, have a look at how D does it: The function mangling and v-table (for single inheritance) are matched between the two languages.

Re: Porting Swift to Haiku

#18
post #2

I just feel like this project has lost track of priorities, or doesn't want to be a credible alternative OS anymore. As a long time fan of the project - who cares about Swift? Where's the next release?

This is a Google Summer of Code project. So in essence this is an R&D project that is "free" for the community. The Haiku devs are busy working on getting a Beta 1 release that should be here real soon now.

Package management is in and the infrastructure around it is being worked on.

Re: Porting Swift to Haiku

#19

Earlier quoted context omitted.

If I had to guess, it looks like someone wanted a really fast language with high level features. They could've also ported D, Rust, Nim...etc, but Swift is not a bad one to port. What is most of Haiku written in, C++? I think Swift would be a good app language now that it is Open Source.

I believe there is also a working Rust port. Still, more options is nice.

https://forge.rust-lang.org/platform-support.html

* i686-unknown-haiku

* x86_64-unknown-haiku

They're basically cross-compile only, Tier 3 supported at the moment.

Post reply on HN