-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Concurrency fixes #2118
Open
mgeisler
wants to merge
16
commits into
main
Choose a base branch
from
concurrency-fixes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Concurrency fixes #2118
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
bd270fb
Create setup pages for the one-day classes
mgeisler 1a86faf
Links in channel pages
mgeisler ee1bdf3
Speaker notes for unbounded channels
mgeisler 62f426c
Align smart pointer descriptions and links
mgeisler 71b6d5c
Link more consistently to stdlib on mutex page
mgeisler 0ffcb48
Simplify language, add links, formatting fixes
mgeisler ba7821b
Make async code testable
mgeisler 2cb8b9f
Test solution to async Dining Philosophers
mgeisler 87f504e
Consistently use lowercase for “async Rust”
mgeisler c506af4
Mention class format on 1-day classes
mgeisler 9412254
Rephrase slide on “fearless concurrency”
mgeisler 512878a
wip: async dining philosophers simplification
mgeisler 8d8a8b6
Simplify `join_all` example
mgeisler 3175751
Simplify async channel example
mgeisler c4958b6
Simplify pin example slightly
mgeisler 9d5daf8
wip
mgeisler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Setup | ||
|
||
For the microcontroller part of the course we will use the | ||
[BBC micro:bit](https://microbit.org/) v2 as an example. It's a | ||
[development board](https://tech.microbit.org/hardware/) based on the Nordic | ||
nRF52833 microcontroller with some LEDs and buttons, an I2C-connected | ||
accelerometer and compass, and an on-board SWD debugger. | ||
|
||
To get started, install some tools we'll need later. | ||
|
||
## Linux | ||
|
||
Please run the following on gLinux or Debian: | ||
|
||
<!-- mdbook-xgettext: skip --> | ||
|
||
```bash | ||
sudo apt install gcc-aarch64-linux-gnu gdb-multiarch libudev-dev picocom pkg-config qemu-system-arm | ||
rustup update | ||
rustup target add aarch64-unknown-none thumbv7em-none-eabihf | ||
rustup component add llvm-tools-preview | ||
cargo install cargo-binutils cargo-embed | ||
``` | ||
|
||
And give users in the `plugdev` group access to the micro:bit programmer: | ||
|
||
<!-- mdbook-xgettext: skip --> | ||
|
||
```bash | ||
echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="0d28", MODE="0664", GROUP="plugdev"' |\ | ||
sudo tee /etc/udev/rules.d/50-microbit.rules | ||
sudo udevadm control --reload-rules | ||
``` | ||
|
||
## MacOS | ||
|
||
Please run the following on MacOS: | ||
|
||
<!-- mdbook-xgettext: skip --> | ||
|
||
```bash | ||
xcode-select --install | ||
brew install gdb picocom qemu | ||
brew install --cask gcc-aarch64-embedded | ||
rustup update | ||
rustup target add aarch64-unknown-none thumbv7em-none-eabihf | ||
rustup component add llvm-tools-preview | ||
cargo install cargo-binutils cargo-embed | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[package] | ||
name = "async-control-flow" | ||
version = "0.1.0" | ||
edition = "2021" | ||
publish = false | ||
|
||
[[bin]] | ||
name = "channels" | ||
path = "channels.rs" | ||
|
||
[[bin]] | ||
name = "join" | ||
path = "join.rs" | ||
|
||
[[bin]] | ||
name = "select" | ||
path = "select.rs" | ||
|
||
[dependencies] | ||
anyhow = "1.0.81" | ||
async-trait = "0.1.79" | ||
futures = { version = "0.3.30", default-features = false } | ||
reqwest = { version = "0.12.1", default-features = false } | ||
tokio = { version = "1.36.0", features = ["full"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this fixes #567. Thanks!!