ycliper

Популярное

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

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

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

Топ запросов

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

The Unsafe Chronicles: Exhibit A: Aliasing Boxes

Автор: Jon Gjengset

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

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

Описание: In this new series we take deep-dives into the world of unsafe Rust. These chronicles aren't necessarily aimed at teaching you how to write unsafe code, but instead try to showcase particular things to keep in mind when it comes to safety in Rust. In particular, in each episode we'll look at a specific (and usually tricky) source of unsoundness, and how to work around it.

This particular episode focuses on the journey to aliasing boxed values in the left-right crate (https://docs.rs/left-right/), which we developed in a previous stream, and was augmented in https://github.com/jonhoo/rust-evmap/.... left-right wishes to alias types between two different copies of a data structure, but doing so leads down an interesting rabbit hole around the safety of aliasing and casting.

0:00:00 About this new series
0:01:48 left-right and evmap
0:06:31 Expressing the problem in code
0:15:28 Why is aliasing a Box not okay?
0:19:09 Aliasing Box with MaybeUninit
0:39:48 Dropping aliases
0:55:15 The cast is unsound
1:00:45 Making the cast sound
1:10:47 Q&A
1:26:43 Unsoundness from non-determinism
1:28:25 More Q&A
1:35:14 Outroduction

Some relevant issues:

evmap unsoundness issue: https://github.com/jonhoo/rust-evmap/...
Aliasing rules for Box{T}: https://github.com/rust-lang/unsafe-c...
Deterministic layout: https://github.com/rust-lang/unsafe-c...
Deterministic Eq+Hash: https://github.com/jonhoo/rust-evmap/...


You can watch the live version with comments at    • The Unsafe Chronicles: Exhibit A: Aliasing...  

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
The Unsafe Chronicles: Exhibit A: Aliasing Boxes

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

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

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

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

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

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

Струны до ужасны!

Струны до ужасны!

Crust of Rust: The Drop Check

Crust of Rust: The Drop Check

Decrusting the axum crate

Decrusting the axum crate

Rust’s most complicated features explained

Rust’s most complicated features explained

Impl Trait aka Look ma’, no generics! by Jon Gjengset

Impl Trait aka Look ma’, no generics! by Jon Gjengset

Основы информатики и вычислительной техники. Школьный компьютер (1989)

Основы информатики и вычислительной техники. Школьный компьютер (1989)

A Simpler Way to See Results

A Simpler Way to See Results

Rust Functions Are Weird (But Be Glad)

Rust Functions Are Weird (But Be Glad)

Decrusting the serde crate

Decrusting the serde crate

Использовать дугу вместо вектора

Использовать дугу вместо вектора

Crust of Rust: Send, Sync, and their implementors

Crust of Rust: Send, Sync, and their implementors

A Firehose of Rust, for busy people who know some C++

A Firehose of Rust, for busy people who know some C++

Crust of Rust: Iterators

Crust of Rust: Iterators

Самый маленький Trinitron

Самый маленький Trinitron

Черты характера и вы: подробный анализ — Нелл Шамрелл-Харрингтон

Черты характера и вы: подробный анализ — Нелл Шамрелл-Харрингтон

Rust NYC: Jon Gjengset - Demystifying unsafe code

Rust NYC: Jon Gjengset - Demystifying unsafe code

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

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

Rust's Most Important Containers 📦 10 Useful Patterns

Rust's Most Important Containers 📦 10 Useful Patterns

Implementing Rust's Vec From Scratch

Implementing Rust's Vec From Scratch

Тёмный космос: что нам не рассказывали о советской космонавтике

Тёмный космос: что нам не рассказывали о советской космонавтике

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



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



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