ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

A Cool Generic Concurrency Primitive in Rust

Автор: Jon Gjengset

Загружено: 2020-11-21

Просмотров: 41244

Описание: A few years ago, I built a concurrent hash map designed specifically to support highly concurrent reads: https://github.com/jonhoo/rust-evmap. It is part of what gives Noria, my PhD thesis work, such great read performance. The concurrency primitive that enables evmap to be so fast isn't really specific to maps though, and it's bothered me for a while that the particular datastructure I used it for in Noria was the only available way to use it.

In this stream, we explore an idea I came up with a few weeks ago to make a generic version of just the concurrency primitive that can then be re-used for other datastructures as well. You can see the outline of the plan here: https://github.com/jonhoo/rust-evmap/.... This entailed slicing out just the concurrency stuff from evmap, and making it into its own reusable crate, and then reworking evmap to use that library. We got more or less all the way there, and you can see the final result in this PR: https://github.com/jonhoo/rust-evmap/....

0:00:00 Introduction
0:10:15 How evmap works
0:42:56 The change
0:53:58 Reorganizing the code
0:58:46 Stripping out the concurrency primitive
3:01:01 Biobreak
3:03:42 Make evmap use LeftRight
4:52:38 Fixing up evmap unit tests
5:15:15 Associated types vs. generic traits
5:18:36 Fixing up more evmap unit tests
5:21:47 Fixing up the full test suite
5:37:15 Making ReadHandle take &self
6:02:18 Outro

You can see the unsafe code guidelines comment I made about transmuting a type that contains T to ManuallyDrop T here: https://github.com/rust-lang/unsafe-c....

You can watch the live version with comments at    • A Cool Generic Concurrency Primitive in Ru...  

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
A Cool Generic Concurrency Primitive in Rust

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

The Unsafe Chronicles: Exhibit A: Aliasing Boxes

The Unsafe Chronicles: Exhibit A: Aliasing Boxes

Crust of Rust: std::collections

Crust of Rust: std::collections

«Проектирование API на основе типов в Rust» Уилла Крайтона

«Проектирование API на основе типов в Rust» Уилла Крайтона

Crust of Rust: async/await

Crust of Rust: async/await

Параллелизм — это не то же самое, что многопоточность (Роб Пайк).

Параллелизм — это не то же самое, что многопоточность (Роб Пайк).

The Why, What, and How of Pinning in Rust

The Why, What, and How of Pinning in Rust

How Much Memory for 1,000,000 Threads in 7 Languages | Go, Rust, C#, Elixir, Java, Node, Python

How Much Memory for 1,000,000 Threads in 7 Languages | Go, Rust, C#, Elixir, Java, Node, Python

Making a Rust crate compile faster

Making a Rust crate compile faster

Crust of Rust: Atomics and Memory Ordering

Crust of Rust: Atomics and Memory Ordering

Understanding Rust – Or How to Stop Worrying & Love the Borrow-Checker • Steve Smith • YOW! 2024

Understanding Rust – Or How to Stop Worrying & Love the Borrow-Checker • Steve Smith • YOW! 2024

Kubernetes — Простым Языком на Понятном Примере

Kubernetes — Простым Языком на Понятном Примере

Implementing Rust's Vec From Scratch

Implementing Rust's Vec From Scratch

Crust of Rust: Channels

Crust of Rust: Channels

Почему AI генерит мусор — и как заставить его писать нормальный код

Почему AI генерит мусор — и как заставить его писать нормальный код

Crust of Rust: Smart Pointers and Interior Mutability

Crust of Rust: Smart Pointers and Interior Mutability

Crust of Rust: Send, Sync, and their implementors

Crust of Rust: Send, Sync, and their implementors

𝟭𝟵𝟵𝟵 𝗠𝗘𝗠𝗢𝗥𝗬 𝗡𝗢𝗧 𝗙𝗢𝗨𝗡𝗗 // Synthwave, Vaporwave, Cyberpunk, Chillwave, Retrowave, Dreamwave, Phonkwave

𝟭𝟵𝟵𝟵 𝗠𝗘𝗠𝗢𝗥𝗬 𝗡𝗢𝗧 𝗙𝗢𝗨𝗡𝗗 // Synthwave, Vaporwave, Cyberpunk, Chillwave, Retrowave, Dreamwave, Phonkwave

Маленькие языковые модели | Open source, локальный ИИ, SLM | Podlodka Podcast #468

Маленькие языковые модели | Open source, локальный ИИ, SLM | Podlodka Podcast #468

Crust of Rust: Iterators

Crust of Rust: Iterators

Музыка для работы за компьютером | Фоновая музыка для концентрации и продуктивности

Музыка для работы за компьютером | Фоновая музыка для концентрации и продуктивности

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]