Hacker News new | ask | show | jobs
by woah 1475 days ago
Why would you assume that all software is written for servers in datacenters? Rust tends to be used in embedded devices, WASM, and other weird contexts where there might not be as many resources available.

If you're writing a CRUD app, sure, do it in PHP and spin up a thread per request.

2 comments

Because he is talking about massive concurrency, not embedded or wasm or other contexts where there not be as many resources available.
Since when is 50k threads massive?
Embedded is much less likely to need async in the first place at all.
Having written wifi router firmware in rust, I would disagree
I use async extensively in my embedded application. The design is a joy to extend and maintain.
cooperative multitasking sounds way more embedded than preemptive...
Not necessarily. A lot of embedded projects use realtime operating systems (RTOS). And those make use of preemptive schedulers in order to actually provide realtime guarantees.

There's obviously also some projects which just use a bare-metal loop to do everything - that probably counts as cooperative.