Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is a feature, not a bug - although the situation could probably still be improved.

"multiple incompatible ways to do async" is another way of saying "you can use async on a tiny microcontroller without any OS at all, or in userspace on a 128-core Epyc CPU, or in the Linux kernel"

That's a unique feature of Rust compared to any of the languages with a single executor baked into the language like C# or Javascript. It does however come with costs, and one of those costs is that people who just want to write a web app are exposed to details they would much rather not have to see.



Technically speaking C# allows custom scheduler implementations, and internally ThreadPool is an abstraction too - e.g. AOT will use kernel-provided threadpool on Windows for size savings by default.

Practically speaking, however, you are right.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: