Тёмный
No video :(

Stream on Rust Safe Transmute 09 - April 

Ryan Levick
Подписаться 14 тыс.
Просмотров 2,1 тыс.
50% 1

In this stream, I gave an overview of what safe transmute is all about and we then started implementing some helper traits for dealing with transmute safely.

Опубликовано:

 

22 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 5   
@asaaki
@asaaki 4 года назад
Links/References (for crates I preferred the crates.io page): - doc.rust-lang.org/std/mem/fn.transmute.html - internals.rust-lang.org/t/pre-rfc-v2-safe-transmute/11431 - gankra.github.io/blah/rust-layouts-and-abis/ - crates.io/crates/zerocopy - crates.io/crates/bytemuck - crates.io/crates/typic - github.com/rust-secure-code/mem-markers - doc.rust-lang.org/reference/procedural-macros.html - crates.io/crates/quote - crates.io/crates/syn - marketplace.visualstudio.com/items?itemName=serayuzgur.crates - github.com/dtolnay - github.com/dtolnay/trybuild - github.com/dtolnay/proc-macro-workshop Honorary mentions: - rust-analyzer.github.io/
@torch2424
@torch2424 4 года назад
Dude dope stream! :) Stoked to see you doing well, and building cool stuff! :)
@michapiotrowski4591
@michapiotrowski4591 3 года назад
@Ryan I'm trying to read and understand "Notes on Type Layouts and ABIs in Rust". There is a paragraph "Here's a slightly better solution: right before performing the call, the caller saves all the registers it actually cares about to the stack. Then the callee can assume it can do whatever it wants with the registers, and the caller just assumes the callee has stomped over all the registers, and reinitializes them as it sees fit. This is caller saving or volatile registers. By default, this is a lot better because the caller generally won't actually be using many of the registers (especially because most of the register size is in harder-to-use SIMD). Another advantage of this approach is that it now completely frees up all the registers to be used for argument/return value passing!" I wonder if this could not lead to some vulnerability on CPU level?
@BramGeron
@BramGeron 4 года назад
19:30 Do you know if MIR has some sort of a transmute instruction? Or is memory safety already out the window by the time we're at MIR?
@RyanLevicksVideos
@RyanLevicksVideos 4 года назад
Once you're in MIR I believe the borrow checker has already run so all bets are off. But I know very little about MIR
Далее
Stream: Basic Redis Client in Rust
1:48:08
Просмотров 10 тыс.
Rust Stream: Iterators
2:00:31
Просмотров 9 тыс.
PEDRO PEDRO INSIDEOUT
00:10
Просмотров 2,7 млн
Rust and RAII Memory Management - Computerphile
24:22
Просмотров 224 тыс.
Rust FFI: Microsoft Flight Simulator SDK Part 1
1:56:16
Rust Stream: String it All Together!
1:46:35
Просмотров 10 тыс.
Linux Executables: From Assembly to C and Rust
1:13:47
Rust FFI: Microsoft Flight Simulator SDK Part 2
1:33:13
Просмотров 3,3 тыс.
Compilers, How They Work, And Writing Them From Scratch
23:53
Rust Stream: The Guard Pattern and Interior Mutability
1:04:53
The New Option and Result Types of C#
15:05
Просмотров 58 тыс.
Rust for the impatient
10:43
Просмотров 693 тыс.