https://www.youtube.com/channel/UC_iD0xppBwwsrM9DegC5cQQ/videos очень много годного в его видео про #rust
https://www.youtube.com/watch?v=lJ3NC-R3gSI Rust's Journey to Async/Await #rust
YouTube
Rust's Journey to Async/Await
Video with trannoscript included: http://bit.ly/2XcjHbj
Steve Klabnik gives an overview of Rust’s history, diving into the technical details of how the design has changed, and talks about the difficulties of adding a major new feature to a programming language.…
Steve Klabnik gives an overview of Rust’s history, diving into the technical details of how the design has changed, and talks about the difficulties of adding a major new feature to a programming language.…
https://en.wikipedia.org/wiki/Loop_unrolling
стандартная оптимизация компилятором циклов.
делают почти все компиляторы
кроме голанга (пока что)
стандартная оптимизация компилятором циклов.
делают почти все компиляторы
кроме голанга (пока что)
https://www.youtube.com/watch?v=Dbytx0ivH7Q про Futures хорошо рассказано #rust
YouTube
Rust Concurrency Explained
The Rust programming language purports the bold claim that it guarantees thread safety while retaining the ability to write zero-cost abstractions. In this talk we'll explore precisely how Rust can make such a claim. We'll also explore the ecosystem that…
https://www.youtube.com/watch?v=alzJsaOuUF8
https://www.youtube.com/watch?v=8uoPNVPUrpQ
https://www.youtube.com/watch?v=bOKXqrk2mTc
https://www.youtube.com/watch?v=LMX41PYguzs
https://www.youtube.com/watch?v=37hFaYAzlKU
Async/Await + Futures + Tokio + TCP server in #rust
https://www.youtube.com/watch?v=8uoPNVPUrpQ
https://www.youtube.com/watch?v=bOKXqrk2mTc
https://www.youtube.com/watch?v=LMX41PYguzs
https://www.youtube.com/watch?v=37hFaYAzlKU
Async/Await + Futures + Tokio + TCP server in #rust
YouTube
Async/await server pt.1 - accepting TCP connections
A gentle exploration of building an identd for Linux using async/await, tokio 0.2 and Rust 1.39. This first part includes creating a TCP listener and accepting clients, and demonstrates various ways to get it wrong.
https://www.youtube.com/watch?v=xnIDyMJZ4ws async/await #rust
YouTube
Demo: Rust Async/Await
Demo of the new async/await support released in Rust 1.39.
GitHub project with my demo code is here: https://github.com/tjpalmer/async-demo
Other important links:
https://blog.rust-lang.org/2019/09/30/Async-await-hits-beta.html
https://github.com/tokio…
GitHub project with my demo code is here: https://github.com/tjpalmer/async-demo
Other important links:
https://blog.rust-lang.org/2019/09/30/Async-await-hits-beta.html
https://github.com/tokio…
https://www.youtube.com/watch?v=YEKjSzIwAdA про каналы, блокирующие и неблокирующие операции, паники и тп в #go
https://deterministic.space/high-performance-rust.html мелочи оптимизации #rust но про
lto=fat не знал.Pascal’s Scribbles
Cheap tricks for high-performance Rust
So you’re writing Rust but it’s not fast enough?Even though you’re using cargo build --release?Here’s some small things you can do to increase the runtime speed of a Rust project– practically without changing any code!
https://github.com/flamegraph-rs/flamegraph профайлинг #rust с помощью флэймграфов как в хром девтулс, напоминает
GitHub
GitHub - flamegraph-rs/flamegraph: Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3
Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3 - flamegraph-rs/flamegraph
https://likebike.com/posts/How_To_Write_Fast_Rust_Code.html про профайлинг с
забавно, но
perf, эффективный код на #rustзабавно, но
indexing: When you use the index operator (a[i]) on an array/slice/Vec/etc., bounds checks are performed, and a panic can be raised. For most situations, if let + get() tends to outperform other indexing techniques (including the unsafe ones!) because it cannot panic and has excellent compiler optimization:думал что эта дурь с индексом
arr[i] работает лучше чем через let Some(el) = arr.get(i). а оказалось что наоборотну наконец ктото собрал это воедино https://rufflewind.com/img/rust-futures-cheatsheet.html #rust futures cheatsheet с ссылочками, удобненько
нарвался на прекраснейший блог Yoshua Wuyts (контрибьютер Tids) про #rust и про асинхронщину в нем там много
https://blog.yoshuawuyts.com/
чувствую много отсюда прочитаю в скором времени
https://blog.yoshuawuyts.com/
чувствую много отсюда прочитаю в скором времени
Yoshuawuyts
Yoshua Wuyts — Blog
про стэйтмашины в #rust. тот синтаксис который он предложил это чтото на подобии перегрузок для инамов. https://blog.yoshuawuyts.com/state-machines/
Yoshuawuyts
State Machines: Introduction
https://www.youtube.com/watch?v=_8-ht2AKyH4
неплохо для базового обьяснения stack/heap в C/C++
неплохо для базового обьяснения stack/heap в C/C++
YouTube
Pointers and dynamic memory - stack vs heap
See complete series on pointers here
http://www.youtube.com/playlist?list=PL2_aWCzGMAwLZp6LMUKI3cc7pgGsasm2_
In this lesson, we describe the concept of dynamic memory allocation in c or c++ and explained how memory is managed for an application. We have…
http://www.youtube.com/playlist?list=PL2_aWCzGMAwLZp6LMUKI3cc7pgGsasm2_
In this lesson, we describe the concept of dynamic memory allocation in c or c++ and explained how memory is managed for an application. We have…
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