Loading [MathJax]/extensions/MathMenu.js

2025-04-10 at

Rust a/sync drama + survivalist solution statement

 my turn to TIL : the drama around Rust a/sync issues - such long chat threads on forums


1. fairly recent problem statement : https://corrode.dev/blog/async/

TLDR: avoid async; if async, and need multi threads, use tokio; if tokio, use axum; if async, and no need multi threads, then use smol; otherwise dragons


2. a 2-year-old solution statement : https://news.ycombinator.com/item?id=37644616

TLDR: if async, don't use someone else's runtime; write your own minimal reactor; avoid any crate/library that depends on someone else's runtime; otherwise dragons

No comments :

Post a Comment