A handy data structure for buffering input, the ring buffer (also known as a circular buffer, among a few other names) is a fun data structure to implement. In this video, we use the Rust programming language.
If you're worried about the video's length, it's not because of the complexities of the implementation. It's because I spend a lot of time in this teaching Rust!
This implementation avoids the use of raw pointers and reveals some differences between Rust and other languages, such as Java and C, that can make porting code slightly complex.
📚 Resources:
- Code: gist.github.co...
- Java reference code: www.baeldung.c...
- C reference code: en.wikipedia.o...
🦀 Rust resources:
- Rust Documentation: doc.rust-lang....
- Rust Playground: play.rust-lang...
- Rust in Action (Tim's book!) mng.bz/4MlD
- How to Learn Rust (a course I'm offering!) learning.accel...
👋 Connect with Tim:
- Twitter: / timclicks
- GitHub: github.com/tim...
- Mastodon: mastodon.nz/@t...
- DEV: dev.to/timclicks/
- Patreon (extra learning materials) / timclicks
🔔 Subscribe to the channel and click the bell icon to stay updated with the latest videos and live streams from timClicks: www.youtube.co...
👍 Like this video if you found it helpful, and share it with your friends who are also interested in Rust programming.
Негізгі бет Writing a Rust-based ring buffer
No video
Пікірлер: 32