Hacker News new | ask | show | jobs
by the_duke 700 days ago
Async != concurrency.

One of the major wins of Rust is encoding thread safety in the type system with the `Send` and `Sync` traits.

2 comments

> Async != concurrency.

Right, but tasks are sharing the same thread which is fine, but when we need to expand on that with them actually working async, i.e non blocking, fire and quasi-forget, its tricky. That's all I'm saying.

The Rust async experience indeed has lots of pitfalls, very much agree there.
s/The Rust/All/
async == concurrency, concurrency != parallelism.
async == concurrency in the same way square == rectangle - that is it's not an associative '==' since there are plenty of rectangles that are not squares.