📌 Rust Asíncrono: Desmitificando Pinning
Segunda parte de la serie. Descubre el concepto clave para la programación asíncrona segura.
https://thenewstack.io/async-rust-pinning-demystified/
#RustLang #AsyncRust #SystemsProgramming #RoxsRoss
Latest posts tagged with #AsyncRust on Bluesky
📌 Rust Asíncrono: Desmitificando Pinning
Segunda parte de la serie. Descubre el concepto clave para la programación asíncrona segura.
https://thenewstack.io/async-rust-pinning-demystified/
#RustLang #AsyncRust #SystemsProgramming #RoxsRoss
Embassy excels in applications requiring long-lived device tasks and complex state machine implementations. Its async nature simplifies managing concurrent operations without the overhead of traditional RTOSes. #AsyncRust 4/6
Rust's async design, with 'inert' lazy futures and no green threads, prioritizes control & zero-cost abstractions for embedded/high-perf. This design choice, however, introduces complexities like 'futurelock' due to explicit future management. #AsyncRust 3/6
On Ep.9, we explore:
- How #Linkerd, built on Finagle, inspired #Tower, #Hyper & #Tokio — the base of Rust’s async ecosystem.
- Why Tonic was created, what makes its #gRPC design unique.
- And why async abstractions in #Rust remain an unfinished story.
#RustLang #CloudInfra #OpenSource #AsyncRust
A core challenge is achieving "cancel-safety" in async Rust: ensuring resources are properly released and state remains consistent when a future is cancelled. Simply dropping a future can lead to subtle bugs. #AsyncRust 2/6
Last chance to sign up for workshops at #rustconf25, Sept 2 in Seattle: Learn Async Design Patterns, Async Fundamentals, or Rust at the Edge from experts. Register before seats sell out! Some only have ONE seat remaining ti.to/rustconf/202...
#RustConf #AsyncRust #AI #rustlang
The difficulty stems from io_uring's raw memory management, which clashes with Rust's safety guarantees. Ensuring memory is valid across async operations, especially during cancellation, is a significant hurdle for robust abstractions. #AsyncRust 3/6
Small classes. Expert instructors. Practical skills you can use immediately. Join Async Day at #rustconf25, Sept 2 in Seattle: Async Design Patterns, Async Rust & C++, Async Fundamentals, and Rust at the Edge. Sign up! ti.to/rustconf/202...
#rustlang #asyncrust #opensource
Rust STM32 GPIOs Tutorial
#RustLang #EmbeddedRust #STM32 #GPIO #AsyncRust #EmbassyRs #ProbeRs #RetroROM #Microcontrollers
theoasisbbs.com/rust-stm32-g...
The Statue of Liberty
Day after Lady Liberty: sore feet, full heart, still losing arguments with the borrow checker. Freedom never felt so semantically strict. 🫖🗽🦀 #RustLang #ProgrammingHumor #DevLife #100DaysOfCode #AsyncRust #SystemsProgramming #TeaTimeCoding
Just published a guide on tackling the hard mode of systems programming: Async Rust
Covers common pitfalls, tokio, concurrency, channels, performance, and when to use async in the first place.
🔗 tinyurl.com/4wvuyrrw
#RustLang #AsyncRust
Is there a #rust crate that provides an "async timer"?
Basically a future wrapper that records the total busy and idle times of the future it wraps and then returns those times together with the ready result of the wrapped future.
#rustlang #asyncRust
An async function, when called, returns a Future because the Future is return type. This is just returning its return type like any regular function. The only change is Future wraps the declared return type in async function, to make the full return when the async function is called. #asyncrust
The common point between Rust's standard library (std) and Tokio is the Future trait (doc.rust-lang.org/std/future/t...) .
#rust #rustlang #asyncrust #tokio_rs
An async block directly creates a Future
An async function, when called, returns a Future.
Note `when called` in async function...
#Rust #Async #Rustlang #AsyncRust
The word `await` perfectly captures async essence: actively anticipating results while staying productive!
await = waiting in anticipation
wait = passive waiting
That's why #AsyncRust (and some other languages) chose await - it's all about productive anticipation! #RustLang
In select!:Multiple branches compete/race like diverging paths;Only one branch "wins" and gets executed
In join!: Different branches merge back together; Like tributaries joining into a main river; All branches must complete to form the whole
#AsyncRust #Rustlang #tokio_rs
Did you know that the meaning of all the columns in Tokio Console is documented?
Someone asked about this today, and being able to point to the docs was great!
docs.rs/tokio-consol...
#rust #rustlang #asyncRust #tokioConsole
Last year I wrote a series of blog posts about how I had finally understood async/await in #rustlang. If that’s a topic that you’re learning, they might help fill in some gaps.
hegdenu.net/posts/unders...
#rust #asyncRust
This leads into the new instrumentation in Tokio 1.41.0 and new lints in Tokio Console 0.1.13.
And of course there's a link to the Clippy lint that can do much of this statically!
#rust #asyncRust #tokio #tokioConsole
I wrote up a post on the size of Futures in #rustlang, why they can be big, why we care and how you can check the size.
hegdenu.net/posts/how-bi...
#rust #asyncRust #tokio #tokioConsole
🌐#7Days7RustProjects Day 6: Rust TUI Chat Application 🖥️ 🦀
🔥 Difficulty Level: 🌲 Advanced
🔗Blog Post: www.genxjourney.online/blog/rust-tu...
🔗GitHub Repository: github.com/dexter-xD/7D...
#RustLang #TerminalUI #AsyncRust #Networking #CodeLearn
🌐#7Days7RustProjects Day 4: Rust Web Scraper with Actix Web 🦀
🔗 Check it out: www.genxjourney.online/blog/rust-we...
🔗 GitHub Repository: github.com/dexter-xD/7D...
🔥 Difficulty Level: 🍃 Intermediate
#RustProgramming #WebScraping #ActixWeb #AsyncRust #LearnToCode
Ohh, okay. If I just implement a tower service that understands the Embedded Zip format, I'll get integration with frameworks that understand Tokio Services for free. Huh. That... might be a lot easier. After learning a little bit more. #RustLang #AsyncRust