Блог*
#prog #rust #rustasync #article Async Rust Challenges in Iroh Хороший обзор текущих проблем с асинком в Rust (особенно разделяю негодование автора по поводу API tokio с эффектом, зависящим от глобального состояния). Вопреки названию, к конкретной кодовой…
#prog #rust #rustasync
Panic! At The Async Runtime Shutdown
TL;DR: многопоточный рантайм tokio в процессе завершения работы может дропать одни таски одновременно с опросом других, зависящих от них, что может привести к возникновению паник из-за условных
Panic! At The Async Runtime Shutdown
TL;DR: многопоточный рантайм tokio в процессе завершения работы может дропать одни таски одновременно с опросом других, зависящих от них, что может привести к возникновению паник из-за условных
unwrap там, где они, вроде как, вообще не должны быть по логике программы.😱5😁4🤯2
#prog #rust #rustasync
Async Closures MVP: Call for Testing!
Разработчики Rust призывают тестировать
Async Closures MVP: Call for Testing!
Разработчики Rust призывают тестировать
#![feature(async_closure)] и рассказывают о текущих ограничениях этой фичи🔥11
#prog #rust #rustasync #article
Async Rust can be a pleasure to work with (without Send + Sync + 'static)
<...> How? Through a combination of Structured Concurrency and thread-per-core async runtimes.
Async Rust can be a pleasure to work with (without Send + Sync + 'static)
<...> How? Through a combination of Structured Concurrency and thread-per-core async runtimes.
Evan Schwartz
Async Rust can be a pleasure to work with (without `Send + Sync + 'static`)
Async Rust is powerful. And it can be a pain to work with (and learn). Async Rust can be a pleasure to work with, though, if we can do it without `Send + Sync + 'static`.
👍7🥰1
#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
Блог*
#prog #rust #article Офигенно! Rust's standard library on the GPU GPU code can now use Rust's standard library. We share the implementation approach and what this unlocks for GPU programming. This works because of our custom hostcall framework. A hostcall…
Vectorware
Async/await on the GPU
GPU code can now use Rust's async/await. We share the reasons why and what this unlocks for GPU programming.
🔥8😱3❤1😭1
#prog #rust #rustasync #article
Async Rust never left the MVP state
Заголовок кликбейтный, да. Рассказывается о недостатках текущей кодогенерации машин состояний для async-функций и async-блоков, причём недостатках вполне устранимых
Async Rust never left the MVP state
Заголовок кликбейтный, да. Рассказывается о недостатках текущей кодогенерации машин состояний для async-функций и async-блоков, причём недостатках вполне устранимых
tweedegolf.nl
Async Rust never left the MVP state - Blog - Tweede golf
I've previously explained async bloat and some work-arounds for it, but would much prefer to solve the issue at the root, in the compiler. I've submitted a Project Goal, and am looking for help to ...
👍5