#prog #rust #rustasync #suckassstory #article
How to deadlock Tokio application in Rust with just a single mutex
(спойлер: мьютекс не async-aware)
How to deadlock Tokio application in Rust with just a single mutex
(спойлер: мьютекс не async-aware)
turso.tech
How to deadlock Tokio application in Rust with just a single mutex
Battlefield story of how we managed to deadlock Tokio program with just a single mutex
😁7👌1
#prog #rust #rustasync #article
How big is your future?
О способах отслеживания больших футур, и в рантайме, и на этапе компиляции. Кстати, вы знали, что
How big is your future?
О способах отслеживания больших футур, и в рантайме, и на этапе компиляции. Кстати, вы знали, что
tokio::spawn автоматически боксит большие футуры, и через tokio-console можно получить информацию об этом?👍3
#prog #rust #rustasync
Async Rust is about concurrency, not (just) performance
(Alternative title: In defense of async (Rust))
TLDR: I think that the primary benefit of async/await is that it lets us concisely express complex concurrency; any (potential) performance improvements are just a second-order effect. We should thus judge async primarily based on how it simplifies our code, not how (or if) it makes the code faster.
Async Rust is about concurrency, not (just) performance
(Alternative title: In defense of async (Rust))
TLDR: I think that the primary benefit of async/await is that it lets us concisely express complex concurrency; any (potential) performance improvements are just a second-order effect. We should thus judge async primarily based on how it simplifies our code, not how (or if) it makes the code faster.
Kobzol’s blog
Async Rust is about concurrency, not (just) performance
TLDR: I think that the primary benefit of async/await is that it lets us concisely express complex concurrency; any (potential) performance improvements are just a second-order effect. We should thus judge async primarily based on how it simplifies our code…
😁3👍2🤔1
#prog #rust #rustasync #rustlib
async-std официально deprecated. Взамен советуют использовать smol и смежные крейты.
ДАВНО ПОРА
async-std официально deprecated. Взамен советуют использовать smol и смежные крейты.
ДАВНО ПОРА
👍7😭5🔥2🥰1😁1
#prog #rust #rustasync #article
Unlocking Tokio's Hidden Gems: Determinism, Paused Time, and Local Execution
О менее известных фичах tokio
Unlocking Tokio's Hidden Gems: Determinism, Paused Time, and Local Execution
О менее известных фичах tokio
Pierre Zemb's Blog
Unlocking Tokio's Hidden Gems: Determinism, Paused Time, and Local Execution
Discover lesser-known Tokio features like current-thread runtimes for !Send futures, seeded runtimes for deterministic tests, and paused time for precise temporal control in your Rust applications.
👍6