File:Crust of Rust- Dispatch and Fat Pointers.webm

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

Crust_of_Rust-_Dispatch_and_Fat_Pointers.webm(WebM audio/video file, VP9/Opus, length 2 h 12 min 52 s, 640 × 360 pixels, 213 kbps overall, file size: 201.98 MB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description
English: In this episode of Crust of Rust, we go over static and dynamic dispatch in Rust by diving deep into generics, monomorphization, and trait objects. As part of that, we also discuss what exactly the Sized trait is, what it's for, and how it interacts with Dynamically Sized traits.

0:00:00 Introduction 0:03:08 Monomorphization 0:16:13 (Static) Dispatch 0:22:49 Trait Objects 0:27:13 The Sized Trait 0:39:34 Sizing Unsized Types 0:46:47 Can I Recover The Concrete Type? 0:47:56 Dynamic Dispatch 0:53:08 Vtables 1:02:13 Limitation: Multiple Traits 1:08:32 Limitation: Associated Types 1:10:30 Limitation: Static Trait Methods 1:15:48 Disallowing Trait Objects 1:20:58 Limitation: Generic Methods 1:30:53 Limitation: No Non-Receiver Self 1:33:00 Partial Object Safety 1:39:54 Dropping Trait Objects 1:43:03 Dynamically Sized Types 1:48:30 Manual Vtables in std 1:51:45 Q&A: Making Your Own DST 1:53:41 Box([u8]) vs. Vec(u8) 1:55:18 dyn Fn() vs. fn() vs. impl Fn() 2:02:00 No Coherence This Stream 2:03:00 Runtime Trait Detection 2:04:41 Double-Dereferencing dyn Fn() 2:06:55 Unsafe Vtable Comparions 2:09:06 Slice of Trait Objects 2:10:05 Codegen Units and Vtables 2:10:55 The Any Trait

You can read more about Rust monomorphization in the Rust book at https://doc.rust-lang.org/book/ch10-01-syntax.html?highlight=performance#performance-of-code-using-generics. It also has some good discussion about Trait Objects (https://doc.rust-lang.org/book/ch17-02-trait-objects.html) and Dynamically Sized Types (https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait). For more details, the Rust reference also has more details on Trait Objects (https://doc.rust-lang.org/nightly/reference/types/trait-object.html) and Object Safety (https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety), and so does the Rustonomicon (https://doc.rust-lang.org/nomicon/exotic-sizes.html).

Live version with chat: https://www.youtube.com/watch?v=TOwiCW8zXzU
Date
Source YouTube: Crust of Rust: Dispatch and Fat Pointers – 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:32, 29 September 20242 h 12 min 52 s, 640 × 360 (201.98 MB)Momiji-Penguin (talk | contribs)Imported media from https://www.youtube.com/watch?v=xcygqF5LVmM

The following page uses this file:

Transcode status

Update transcode status
Format Bitrate Download Status Encode time
VP9 360P 196 kbps Completed 22:50, 29 September 2024 55 min 35 s
VP9 240P 144 kbps Completed 22:37, 29 September 2024 45 min 2 s
WebM 360P 517 kbps Completed 22:33, 29 September 2024 35 min 22 s
Streaming 144p (MJPEG) 997 kbps Completed 21:55, 29 September 2024 3 min 6 s
Stereo (Opus) 84 kbps Completed 22:03, 29 September 2024 2 min 23 s
Stereo (MP3) 128 kbps Completed 22:02, 29 September 2024 3 min 2 s

Metadata