@navi @jschauma @gantua @mirabilos @lispi314 Yeah they're both for ppl who insist on Rube Goldberg machines to express their ideological hate for threads. 🙃
Conversation
Notices
-
Embed this notice
Rich Felker (dalias@hachyderm.io)'s status on Wednesday, 09-Sep-2026 20:59:51 JST
Rich Felker
-
Embed this notice
Rich Felker (dalias@hachyderm.io)'s status on Thursday, 10-Sep-2026 02:35:40 JST
Rich Felker
@lispi314 @jschauma @gantua @navi @mirabilos Except they're not expensive. That's a myth from the 90s. The mental model should be that they're more expensive than a basic syscall but less expensive than any significant IO.
-
Embed this notice
LisPi (lispi314@udongein.xyz)'s status on Thursday, 10-Sep-2026 02:35:41 JST
LisPi
@dalias @navi @jschauma @gantua @mirabilos After using a few languages with working green threads, I do hate how OS threads are expensive and one can't just use the naive option with them without all sorts of problems.
-
Embed this notice
Rich Felker (dalias@hachyderm.io)'s status on Thursday, 10-Sep-2026 02:41:24 JST
Rich Felker
@lispi314 @jschauma @gantua @navi @mirabilos Memory overhead for a minimal thread is like 4k of kernel stack and 4k of user stack. That's not megabytes.
Even if you need a little bit of working stack space, you can get by with something like <32k, still nowhere near megabytes. But short-lived IO-only threads with signals blocked probably don't even need that much.
-
Embed this notice
LisPi (lispi314@udongein.xyz)'s status on Thursday, 10-Sep-2026 02:41:25 JST
LisPi
@dalias @jschauma @gantua @navi @mirabilos When you compare a cost in megabytes between kilobytes, it means at least an order of reduction less available on my systems (despite machines with terabytes of memory existing, I do not have one).
-
Embed this notice