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

Async impl example #1

Merged
merged 4 commits into from
Oct 5, 2023
Merged

Async impl example #1

merged 4 commits into from
Oct 5, 2023

Conversation

dhollman
Copy link
Contributor

@dhollman dhollman commented Oct 5, 2023

  • uses future to hold both the async result and exception, allowing us to get rid of expected
  • moves the bounds checking to the mapping where it's more appropriate (it's a pedantic thing for a 1D mdspan, but it makes the example more idiomatic)

(Sorry this took so long; also sorry I haven't incorporated changes you made since I started playing with this)

- uses future to hold both the async result and exception,
  allowing us to get rid of expected
- moves the bounds checking to the mapping where it's more
  appropriate (it's a pedantic thing for a 1D mdspan, but it
  makes the example more idiomatic)
@dhollman
Copy link
Contributor Author

dhollman commented Oct 5, 2023

(Okay, now I merged in your changes. I can also go to your 2x3 version also if you want)

Note to self: don't merge directly on GitHub
@dhollman
Copy link
Contributor Author

dhollman commented Oct 5, 2023

Okay generalized to multidimensional to match where your example is now. This is so cool! Thanks for involving me!

@griswaldbrooks
Copy link
Owner

I brought a 6 pack of beer for the robot to check and am going to attempt a love demo, so, you're call.

@griswaldbrooks
Copy link
Owner

This looks really clean. It's really cool to see the layout bounds checking code, and it never occurred to me that the reference type can be a value type. I really like using expected and will probably refactor that later.

@griswaldbrooks griswaldbrooks merged commit af5148b into griswaldbrooks:main Oct 5, 2023
8 checks passed
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.

2 participants