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

Make it possible to disable parallel feature #495

Merged
merged 3 commits into from
Oct 19, 2018

Conversation

zakarumych
Copy link
Member

@zakarumych zakarumych commented Oct 18, 2018

This makes it possible to user specs in wasm environment


This change is Reviewable

Copy link
Member

@torkleyy torkleyy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Massive work, thank you. As mentioned before in the wasm issue, the proper solution would be threading support in wasm, but this works for now. Could you try to put some of the parallel code into a separate module so we don't need cfgs all over the place?

@zakarumych
Copy link
Member Author

threading support in wasm

Does wasm support threading at all?

@torkleyy
Copy link
Member

torkleyy commented Oct 18, 2018 via email

Copy link
Member

@Xaeroxe Xaeroxe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job!

bors r+

bors bot added a commit that referenced this pull request Oct 18, 2018
495: Make it possible to disable parallel feature r=Xaeroxe a=omni-viral

This makes it possible to user specs in wasm environment

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/slide-rs/specs/495)
<!-- Reviewable:end -->


Co-authored-by: Zakarum <scareaangel@gmail.com>
@Xaeroxe
Copy link
Member

Xaeroxe commented Oct 18, 2018

Oh just re-read @torkleyy 's comment my bad

bors r-

@bors
Copy link
Contributor

bors bot commented Oct 18, 2018

Canceled

@zakarumych
Copy link
Member Author

zakarumych commented Oct 18, 2018

Without making code super-inconsistent I managed to reduce amount of #[cfg(feature = "parallel")] slightly.
Mostly because I like ParJoin implementation to live along with Join implementations.

@Xaeroxe
Copy link
Member

Xaeroxe commented Oct 18, 2018

Go ahead and r+ if you're happy with it @torkleyy

Copy link
Member

@torkleyy torkleyy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the module.

  1. did somebody confirm this actually works on wasm now?
  2. sbould we care abouz CI coverage? (probably yes)
  3. Please bump the version so I can release.

@torkleyy
Copy link
Member

Wow.

*should we care about

@zakarumych
Copy link
Member Author

zakarumych commented Oct 19, 2018

I confirm it works with wasm now

Minor since new feature is first default feature.
@drager
Copy link

drager commented Oct 19, 2018

I can confirm this works. I tried out @omni-viral's branch with the same code that wasn't working before this PR and now it works.

@torkleyy
Copy link
Member

Great, thanks!

bors r+

bors bot added a commit that referenced this pull request Oct 19, 2018
495: Make it possible to disable parallel feature r=torkleyy a=omni-viral

This makes it possible to user specs in wasm environment

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/slide-rs/specs/495)
<!-- Reviewable:end -->


Co-authored-by: Zakarum <scareaangel@gmail.com>
@bors
Copy link
Contributor

bors bot commented Oct 19, 2018

Build succeeded

@bors bors bot merged commit 84cf2a5 into amethyst:master Oct 19, 2018
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.

5 participants