Comment

Comment by api

Such an insane amount of work to avoid fixing the real problem: the inefficiency of threads.

All async code -- all of it -- is a hack to implement lightweight threads through a lot of syntactic sugar for state management. In a language like Rust it adds a ton of complexity that simply doesn't need to exist without it.

Fixing the efficiency and scaling issues of threads would make all of this just go away. Poof. Gone.

It's a bit like the trillion dollar mistake of "null" in languages like Java-- a ton of complexity that results from one design decision (or in this case lack thereof).

parent api 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton