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

Ok I understand that you can switch to a larger stack to call C code, although as I said you can't "just call normal C function directly". You can even discount the cost to acquire it by having it stick with the thread using it (no locking, alloc, etc after the first use).

That might be ok for Rust where many 'tasks' might be computational only and never call a C function. But with Google Go, I think they said "we want to have a million threads each reading a socket" or some other arbitrary limit which isn't possible in 32-bit using system threads (even with segmented stack).

Does Rust do it's own threading, and if so what are the advantages you perceive to doing so?



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

Search: