News for hackers. Stuff that matters.
Re:Swift is a more convenient Rust by worik on Saturday January 31, 2026 @09:47PM (#46843157)
Async/await is not a solution to poor thread models.

Async/await is cooperative multitasking and is no help at all for cpu bound problems.

For i/o intensive systems it makes non-blocking i/o look like blocking i/o, and people find that helpful.

I do real-time i/o so I need more control and Async/await is unhelpful.

It is a worthy adition to Swift I agree. But they sorely lack Rust's excellent design in this area

Re:Swift is a more convenient Rust by saagarjha on Sunday February 01, 2026 @04:48AM (#46844902)
I use async/await for my CPU bound problems and it works fine
Re:Swift is a more convenient Rust by worik on Sunday February 01, 2026 @01:48PM (#46848310)
So long as you "await"

Not really concurrent

Re:Swift is a more convenient Rust by frizlab on Sunday February 01, 2026 @03:00PM (#46848871)
Not very well known, but Swift has two builtin concurrency systems (in addition to the very well known async/await for parallelism): async let (not very flexible) and task groups (much more so).
Re:Swift is a more convenient Rust by saagarjha on Sunday February 01, 2026 @06:12PM (#46850355)
You don’t have to await immediately!