rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
97.46k stars 12.6k forks source link

Add Haiku as officially supported operating system #15368

Closed aarroyoc closed 9 years ago

aarroyoc commented 10 years ago

Haiku is a open source operating system based on BeOS that runs pretty fast in a POSIX environment plus BeAPI. It's licensed under the MIT license and it isn't Linux, Hurd, Solaris or something like that. At the moment Haiku has LLVM, Clang, GCC4, Python, Perl, GNU make, curl and git. Other languages also have support for Haiku like FreePascal. So it will be great if Rust runs natively on Haiku.

Thiez commented 10 years ago

Does Rust currently run on Haiku?

aarroyoc commented 10 years ago

No, but it shouldn't be too difficult when we have a cross compiler for Linux (Android). Haiku uses the ELF binary format.

thestinger commented 10 years ago

The fact that it uses ELF doesn't really mean anything because Rust doesn't implement any of that. I doubt it will run on Haiku without a significant amount of work, and official support implies adding a new Haiku builder and gating master on it. It would require a whole bunch of new stuff in the libc crate thanks to the lack of support for reading that from C headers, among other complexity.

aarroyoc commented 10 years ago

True, I just get that Rust uses LLVM for that. But LLVM and Clang run on Haiku as you can see a build script here: https://bitbucket.org/haikuports/haikuports/src/7d277e73766bd0366f8da0bc8e2b13e1011a0ac6/sys-devel/llvm/llvm-3.4.1.recipe and a binary package here: http://packages.haiku-os.org/haikuports/master/hpkg/

2014-07-03 14:41 GMT+02:00 Daniel Micay notifications@github.com:

The fact that it uses ELF doesn't really mean anything. Rust doesn't implement any of that.

— Reply to this email directly or view it on GitHub https://github.com/rust-lang/rust/issues/15368#issuecomment-47924230.

thestinger commented 10 years ago

You're asking for the standard library to gain Haiku support and for every pull request on master to be gated on a Haiku builder. The underlying support in LLVM means it's possible to support it as a target, but it isn't currently supported as one (that requires work) and promoting it to one of the first tier officially platforms is unlikely.

MatejLach commented 10 years ago

@AdrianArroyoCalle As a Rust community member who tried Haiku a couple of years back, this is my perspective on adding Haiku as an officially supported target for Rust; While Haiku is interesting, it is immature and no one I know ever used it full-time outside of a virtual machine and I don't know of any Rust developers using it. Given that Rust itself is still under heavy development, (although 1.0 is nearing...), I would say it is unreasonable to ask the Rust developers for Haiku support at this time. If you look at the README, it says that Windows, OSX and Linux are officially supported as of now. One can compile Rust for *BSD but even that doesn't seem to be an officially supported environment and given that the BSDs have unquestionably larger user-base compared to Haiku...

An unofficial port however, would certainly be more than welcome, I just wouldn't ask for an official support as of yet.

bstrie commented 10 years ago

As has been mentioned, the only "official" platforms for Rust are Linux, Mac OS X, and Windows. (Android is in a pseudo-official state). By "official" we mean that all changes to the compiler are required to pass the test suite on those platforms. We love receiving patches for supporting new platforms, but we won't guarantee that they won't break, and if they do break we won't guarantee that it will be a priority to fix them.

aarroyoc commented 10 years ago

Ok, I understand the situation, so it's better to wait a few years until Rust has became mature. Thanks for your attention. I really like Rust and I think that you're doing the right job.

steveklabnik commented 9 years ago

I'm pulling a massive triage effort to get us ready for 1.0. As part of this, I'm moving stuff that's wishlist-like to the RFCs repo, as that's where major new things should get discussed/prioritized.

This issue has been moved to the RFCs repo: rust-lang/rfcs#799

aarroyoc commented 9 years ago

Niels Sascha Reedijk is working on it http://rust-on-haiku.com/