zlacker

[return to "A Look at Rust from 2012"]
1. mkorna+bVl[view] [source] 2025-12-03 14:49:54
>>todsac+(OP)
> I’m happy with how Rust turned out.

I agree, with the possible exception of perplexing async stuff.

◧◩
2. echelo+01m[view] [source] 2025-12-03 15:19:50
>>mkorna+bVl
I write and use mostly async code, and I cannot for the life of me understand the async hate.

What do you want Rust to do differently?

What language does async right?

How did Rust not reach its async goals?

Rust even lets you choose the runtime you want. And most big libraries work with several runtimes.

◧◩◪
3. ori_b+VVm[view] [source] 2025-12-03 19:41:53
>>echelo+01m
> What do you want Rust to do differently?

Lean into being synchronous. Why should I have to manually schedule my context switches as a programmer?

◧◩◪◨
4. simona+jnn[view] [source] 2025-12-03 21:53:17
>>ori_b+VVm
Because async and sync programming are two fundamentally different registers. There are things you can do in one that you can’t with the other, or which have dramatically different tradeoffs.

As an example: Call N functions to see which one finishes first. With async this is trivial and cheap, without it it’s extremely expensive and error-prone.

◧◩◪◨⬒
5. ori_b+rxn[view] [source] 2025-12-03 22:46:46
>>simona+jnn
Do you mean RPCs, or dispatching to threads?

If not, your async code is a deterministic state machine. They're going to complete in the same order. Async is just a way of manually scheduling task switches.

[go to top]