File:Crust of Rust- Channels.webm

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Crust_of_Rust-_Channels.webm (WebM audio/video file, VP9/Opus, length 1 h 43 min 11 s, 640 × 360 pixels, 219 kbps overall, file size: 161.65 MB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description
English: In this (fifth) Crust of Rust video, we cover multi-produce/single-consumer (mpsc) channels, by re-implementing some of the std::sync::mpsc types from the standard library. As part of that, we cover what channels are used for, how they work at a high level, different common channel variants, and common channel implementations. In the process, we go over some common Rust concurrency primitives like Mutex and Condvar.

This is a rich topic, and I highly recommend you go and try to read the crossbeam-channel or flume source code if you're hungry for more! Please also leave questions here or on Discord if you're confused, and I'll try to help explain what's going on.

You can find the final code at https://gist.github.com/jonhoo/935060885d0d832d463fda3c89e8259d and the Discord at https://discord.gg/RJdqQ9n

0:00:00 Introduction 0:08:20 Initial structure 0:14:27 Structure Q&A 0:19:20 send and recv 0:29:03 send/recv Q&A 0:34:36 Does it work? 0:40:28 Zero senders 0:46:27 Q&A 0:50:53 Why does it hang? 0:53:08 Implementation Q&A 0:58:37 Synchronous channels 1:05:55 Batch recv optimization 1:13:23 Channel flavors 1:18:48 Flavor Q&A 1:22:32 Other implementations 1:32:24 Future-aware channels 1:36:27 Where next? 1:38:24 Channels Q&A

You can find crossbeam-channel at https://github.com/crossbeam-rs/crossbeam/tree/master/crossbeam-channel, and flume at https://github.com/zesterer/flume/.

You can watch the live version with comments at https://www.youtube.com/watch?v=JvBUKsFIUKw
Date
Source YouTube: Crust of Rust: Channels – View/save archived versions on archive.org and archive.today
Author Jon Gjengset

Licensing

[edit]
This video, screenshot or audio excerpt was originally uploaded on YouTube under a CC license.
Their website states: "YouTube allows users to mark their videos with a Creative Commons CC BY license."
To the uploader: You must provide a link (URL) to the original file and the authorship information if available.
w:en:Creative Commons
attribution
This file is licensed under the Creative Commons Attribution 3.0 Unported license.
Attribution: Jon Gjengset
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
This file, which was originally posted to an external website, has not yet been reviewed by an administrator or reviewer to confirm that the above license is valid. See Category:License review needed for further instructions.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current20:57, 29 September 20241 h 43 min 11 s, 640 × 360 (161.65 MB)Momiji-Penguin (talk | contribs)Imported media from https://www.youtube.com/watch?v=b4mS5UPHh20

The following page uses this file:

Transcode status

Update transcode status
Format Bitrate Download Status Encode time
VP9 360P 189 kbps Completed 01:48, 30 September 2024 39 min 59 s
VP9 240P 134 kbps Completed 01:48, 30 September 2024 39 min 32 s
WebM 360P 503 kbps Completed 01:38, 30 September 2024 28 min 58 s
QuickTime 144p (MJPEG) 1.13 Mbps Completed 05:47, 10 October 2024 5 min 15 s

Metadata