carl.tokio

4.9K posts

carl.tokio

carl.tokio

@carllerche

I work on @tokio_rs. It's serious business

Portland, OR Katılım Nisan 2007
178 Takip Edilen5.8K Takipçiler
carl.tokio retweetledi
Tokio
Tokio@tokio_rs·
dial9: a flight recorder for Tokio. It collects the Tokio runtime metrics and renders them in a useful way to debug performance issues. tokio.rs/blog/2026-03-1…
Tokio tweet media
English
0
16
165
9.2K
carl.tokio retweetledi
Tokio
Tokio@tokio_rs·
We're setting aside 20 free TokioConf tickets for contributors and open source maintainers. If you've submitted a PR to any tokio-rs, hyperium, or tower-rs repo, that's you. Know someone who qualifies? Send them our way! tokio.rs/blog/2026-03-1…
English
0
3
10
1.1K
carl.tokio retweetledi
Glauber Costa
Glauber Costa@glcst·
finished today the slides for my talk for TokioConf "I want it, you want it, we want it: Let's rewrite it in Rust!" Slides coming up great and hoping this meme will resonate. Come to the conf in Portland, Apr 21st!
Glauber Costa tweet media
English
3
7
37
5.6K
carl.tokio retweetledi
Heavybit
Heavybit@heavybit·
On episode 6 of High Leverage, Joe Ruscio (@josephruscio) joins Carl Lerche (@carllerche), the creator of Tokio (@tokio_rs), for a deep technical discussion on async programming and infrastructure design. Tune in! hubs.ly/Q040QsRg0
English
1
1
0
573
carl.tokio
carl.tokio@carllerche·
@BansodMahesh @fasterthanlime Someone else already replied, but to repeat, you don't have to run the cli tool by hand. Add it to build.rs (will have an example soon) and it will be handled automatically for you.
English
1
0
3
116
Light
Light@BansodMahesh·
@fasterthanlime m curious why you think so. I'll have to manually run the cli tool to generate code when something changes, while proc macro would just build the right thing
English
3
0
5
804
carl.tokio
carl.tokio@carllerche·
@ConradLudgate PR wen? We should discuss more before doing more work. Seriously good job.
English
1
0
7
821
Conrad Ludgate 🐀
Conrad Ludgate 🐀@ConradLudgate·
With 1 line of code added, you can get a nice breakdown automatically of where the runtime is getting blocked. All it takes is adding `Supervisor::new(&tokio::runtime::Handle::current()).spawn(Duration::from_millis(100));` at the start of async fn main().
Conrad Ludgate 🐀 tweet media
Piotr Jastrzebski@haaawk_dev

Recently at @tursodatabase we got an interesting case of a deadlock in @rustlang @tokio_rs while using just a single mutex. I described the case on our blog (turso.tech/blog/how-to-de…). Kudos to @SivukhinN for solving the issue.

English
5
12
166
19.7K
carl.tokio
carl.tokio@carllerche·
@kingprotty Tokio gives you `block_in_place` which you should use if you can guarantee you aren't multiplexing async code in a single task.
English
1
0
3
127
carl.tokio
carl.tokio@carllerche·
@kingprotty The issue (and why we don't do this) is Tokio doesn't know if there is more work to do on the current thread. Unless we tell users to *only* use Tokio primitives, anyone could use `futures::select!` and a blocking call would prevent the other branches from running.
English
2
0
3
196
Protty
Protty@kingprotty·
Spur of the moment, but I had a neat idea for efficient blocking (i.e. file IO) in multi-threaded asynchronous runtimes. This is more of a note to myself and other runtime implementors. 1/n
English
1
2
36
4.5K
carl.tokio
carl.tokio@carllerche·
@joshbuddy ChatGPT. Totally serious. It works great (at least GPT-4 does) and it is interactive.
English
0
0
0
210
carl.tokio
carl.tokio@carllerche·
If you are looking for an experienced engineer who has built a lot of core OSS libraries, give Lucio a ping ->
English
0
0
15
5.6K
carl.tokio
carl.tokio@carllerche·
A hardcore engineer shouldn’t let “locked doors” stop them from getting to the office.
English
0
1
13
0
carl.tokio retweetledi
Matt Klein
Matt Klein@mattklein123·
I find myself reaching for Rust now in places I would have previously used Python. Impressively versatile and what a gift to avoid the 🐍!
English
9
15
215
0
carl.tokio
carl.tokio@carllerche·
@davidtolnay Wasmtime isn’t too hard to figure out. I played with it a bunch following examples.
English
0
0
2
0
carl.tokio retweetledi
David Tolnay
David Tolnay@davidtolnay·
Anyone on here familiar with Wasmtime and would be willing to collaborate on a precompiled proc macros RFC based around `--target=wasm32-macro`?
English
6
20
102
0