Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to stable #10

Merged
merged 5 commits into from
Dec 2, 2015
Merged

Move to stable #10

merged 5 commits into from
Dec 2, 2015

Conversation

skade
Copy link
Contributor

@skade skade commented Dec 1, 2015

This PR removes unnecessary use of feature flags that bar using Rust on stable([1])([2]) compilers.

Reasons being:

Finally, I must admit that I didn't get the test suite running quickly.

([1]) Outstanding: this doesn't quite work on stable yet, as some APIs in use are currently making their way through beta, so they are not feature gated, but also not available in 1.4.0. 1.5.0 beta works and as 1.5.0 is 2 weeks away, this is probably not worth the effort.
([2]) rblas is not on stable yet, see mikkyang/rust-blas#12 for that. You can use that version of rust-blas by checking it out from my https://github.com/skade/rust-blas/ and dropping the following .cargo/config in your repository:

paths = ["/path/to/rblas/checkout"]

Replace associated ID consts by a static function.

This allows removal of the associated_consts feature flag.
This feature is unused and can be removed
Replace StaticMutex by the stable `lazy_static!`
@hobofan
Copy link
Member

hobofan commented Dec 1, 2015

That looks really nice! Running on stable wasn't really a focus, but if we can it with such noninvasive changes, why not? :)

I didn't know about lazy_static, but I think it can also be used for a few other areas in Collenchyma, like the compilation of OpenCL/CUDA kernels which usually have to happen at runtime.

Concerning test, they should be fixed on the latest develop, which I'll merge into master later today.

Do you think that we should add some instructions concerning rblas for running on stable to the README? Apart from that it looks good to merge.

@skade
Copy link
Contributor Author

skade commented Dec 2, 2015

I wouldn't add instructions regarding rblas to the README, as mikkyang/rust-blas#12 is merged and the version bumped, but no release cut yet. I would wait for that.

@skade
Copy link
Contributor Author

skade commented Dec 2, 2015

mikkyang/rust-blas#12 (comment) rblas is now on 0.0.11, I added the changed cargo-file.

@hobofan
Copy link
Member

hobofan commented Dec 2, 2015

Nice! 👍

@hobofan
Copy link
Member

hobofan commented Dec 2, 2015

@homu r+

@homu
Copy link
Collaborator

homu commented Dec 2, 2015

📌 Commit f14c1fc has been approved by hobofan

@homu
Copy link
Collaborator

homu commented Dec 2, 2015

⚡ Test exempted - status

@homu homu merged commit f14c1fc into autumnai:master Dec 2, 2015
homu added a commit that referenced this pull request Dec 2, 2015
Move to stable

This PR removes unnecessary use of feature flags that bar using Rust on stable([1])([2]) compilers.

Reasons being:
* associated consts (Tracking issue: rust-lang/rust#29646) are currently buggy and can be replaced by an fn in that case.
* associated_type_defaults can be removed without breakage
* unboxed_closures can be removed without breakage
* StaticMutex has an uncertain future (rust-lang/rust#27717) and can be emulated in that case by using `lazy_static!` (correct me if I'm wrong)

Finally, I must admit that I didn't get the test suite running quickly.

([1]) Outstanding: this doesn't _quite_ work on stable yet, as some APIs in use are currently making their way through beta, so they are not feature gated, but also not available in 1.4.0. 1.5.0 beta works and as 1.5.0 is 2 weeks away, this is probably not worth the effort.
([2]) rblas is not on stable yet, see mikkyang/rust-blas#12 for that. You can use that version of rust-blas by checking it out from my https://github.com/skade/rust-blas/ and dropping the following `.cargo/config` in your repository:

```
paths = ["/path/to/rblas/checkout"]
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants