https://www.youtube.com/watch?v=2IxQgXQl_Ws
ну впрочем тоже самое но для #rust , stack/heap ownership+borowwing
ну впрочем тоже самое но для #rust , stack/heap ownership+borowwing
YouTube
Rust Memory Management - Ownership and Borrowing
#Rust #TensorProgramming #OwnershipAndBorrowing
In this video we take a look at Rust's memory management model. That is the Ownership and Borrowing Model. We talk about the Stack and the Heap as well as Stack frames and pointers.
Source Code: https:…
In this video we take a look at Rust's memory management model. That is the Ownership and Borrowing Model. We talk about the Stack and the Heap as well as Stack frames and pointers.
Source Code: https:…
ну а тут уже чуть поглубже https://doc.rust-lang.org/1.22.0/book/first-edition/the-stack-and-the-heap.html stack/heap в #rust
https://www.youtube.com/playlist?list=PL7Y5Yox90r8M9yVblJ2ey_2RHo0frcUsX неплохой курс по основам #rust. все базовые понятия и структуры данных. хороший понятный английский
YouTube
Rust Programming Language - YouTube
https://www.youtube.com/playlist?list=PLVvjrrRCBy2JSHf9tGxGKJ-bYAN_uDCUL вот и еще один плэйлист по основам #rust. ютюб решил мне начать советовать их все =)
YouTube
RUST PROGRAMMING TUTORIALS
Follow this playlist to learn the basics of the Rust Programming Language.
AsRef и AsMut трэйты в #rust для упрощения кода. доку поправили, сейчас стало понятней
https://doc.rust-lang.org/std/convert/trait.AsMut.html
https://doc.rust-lang.org/std/convert/trait.AsRef.html
https://doc.rust-lang.org/std/convert/trait.AsMut.html
https://doc.rust-lang.org/std/convert/trait.AsRef.html
doc.rust-lang.org
AsMut in std::convert - Rust
Used to do a cheap mutable-to-mutable reference conversion.
Dynamic storage allocation: A survey and critical review. In (1995)
http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.143.4688
достаточно глубокий обзор на динамическую аллокацию памяти, фрагментацию, алаймент тп
http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.143.4688
достаточно глубокий обзор на динамическую аллокацию памяти, фрагментацию, алаймент тп
https://www.youtube.com/watch?v=skos4B5x7qE Zero-Cost Async IO #rust. достаточно простое описание и сравнение
YouTube
RustLatam 2019 - Without Boats: Zero-Cost Async IO
Boats is a member of the language design, library, and cargo teams of the Rust Project. They are Senior Research Engineer working on Rust for Mozilla Research. Contributing to Rust since 2014, they've done design work for significant language extensions like…
https://deterministic.space/secret-life-of-cows.html
статья про Cow в #rust. забавляет название "тайная жизнь коров" =)
статья про Cow в #rust. забавляет название "тайная жизнь коров" =)
Pascal’s Scribbles
The Secret Life of Cows
A lot of people at RustFest Paris mentioned Cows– which may be surprising if you’ve never seen std::borrow::Cow!
https://llogiq.github.io/2020/03/14/ootb.html прикольная техника резервирования места, и для этого не нужно боксить (ложить явно в хип) а можно сделать просто резервацию
let t_holder;
let opt_t = if has_t {
t_holder = get_t();
Some(&t_holder)
} else {
None
}
https://llogiq.github.io/2017/06/01/perf-pitfalls.html
#rust Performance Pitfalls
когда то нарвался на пару путктов отсюда
#rust Performance Pitfalls
когда то нарвался на пару путктов отсюда
собственно для стэйт машин хорошо подойдет замена прямо из памяти, что бы не аллоцировать лишний раз в промежуточную переменную https://github.com/rust-unofficial/patterns/blob/master/idioms/mem-replace.md
GitHub
patterns/mem-replace.md at main · rust-unofficial/patterns
A catalogue of Rust design patterns, anti-patterns and idioms - patterns/mem-replace.md at main · rust-unofficial/patterns
во. шикарная статья про оптимизацию кода коровами (как же меня забавляет этот тип =)) в #rust
https://oribenshir.github.io/afternoon_rusting/blog/copy-on-write
https://oribenshir.github.io/afternoon_rusting/blog/copy-on-write
oribenshir.github.io
Optimizations That Aren't, Or Are They?
This blog is designed to cover topics related to both Rust & C++ languages. This blog has emphasis on strong typing and design choices.
https://oribenshir.github.io/afternoon_rusting//blog/enum-and-pattern-matching-part-1
https://oribenshir.github.io/afternoon_rusting/blog/enum-and-pattern-matching-part-2
про инамы и паттерн матчинг в #rust
https://oribenshir.github.io/afternoon_rusting/blog/enum-and-pattern-matching-part-2
про инамы и паттерн матчинг в #rust
oribenshir.github.io
Rust for OOP - Enums & Pattern Matching - Part 1
This blog is designed to cover topics related to both Rust & C++ languages. This blog has emphasis on strong typing and design choices.
https://oribenshir.github.io/afternoon_rusting/blog/closures и еще про замыкания в #rust определения Fn/FnMut/FnOnce мне нравится больше чем то что я читал в официалной доке
oribenshir.github.io
Rust for OOP - Closures
This blog is designed to cover topics related to both Rust & C++ languages. This blog has emphasis on strong typing and design choices.
https://articles.bchlr.de/traits-dynamic-dispatch-upcasting шикарная статья про dyn типы, vtable, про полиморфизм и даже путь #rust в отношении имплементации наследования в C++ и апкастинг. сразу видна и проблема и то как явно это решается
https://anssi-fr.github.io/rust-guide/01_introduction.html небольшой гайд по секьюрному #rust. тут про библиотеки что помогают искать проблемы, утечки памяти, систему типов и ffi
anssi-fr.github.io
Introduction - Secure Rust Guidelines
Recommendations for secure applications development with Rust
https://medium.com/@pailee.wai/how-we-migrate-our-framework-into-async-await-c67b160e16be немного про миграцию старых фьюч на async/await в #rust
Medium
How we migrate our framework into async/await
The logs of async/await migration in Obsidian-rs
https://doc.rust-lang.org/edition-guide/rust-2018/module-system/path-clarity.html чтото мимо меня промчался тот факт что больше в #rust не нужен mod.rs в каждой субдериктории
https://rust-lang.github.io/async-book/01_getting_started/01_chapter.html видел эту книгу, забыл про то что она есть. И как оказалось некоторые сложности с асинхронщиной в #rust, что я героически решил, в ней хорошо описаны 🙈
