News for hackers. Stuff that matters.
Re:Haskell in the Datacentre by asb on Wednesday December 14, 2016 @07:41AM (#13175527)
Interesting, could you say more about your desire for 1:1 threading in Go? Do you feel that there are few users who need a huge number of goroutines, or that 1:1 is sufficiently lightweight for many of those users?
Re:Haskell in the Datacentre by 4ad on Wednesday December 14, 2016 @09:38AM (#13176215)
I routinely write programs that require a huge number of goroutines. Many programs in Go require a huge number of goroutines. Good thing modern kernels deal with large numbers of threads just fine. People misjudge how cheap kernel threads really are, because there was a time where they were expensive. That time was long ago. Today, threads are very light weight. For example, the solaris kernel schedules interrupts as threads, they are really that light weight.

There is a reason POSIX threading is implemented in the kernel on every operating system, even if they all started as N:M or 1:M implementations.

Re:Haskell in the Datacentre by asb on Wednesday December 14, 2016 @09:54AM (#13176346)
Related to this discussion, this talk on user-scheduled OS threads is really interesting. It's a shame no proposed implementation or experimental patches have appeared https://www.youtube.com/watch?v=KXuZi9aeGTw
Re:Haskell in the Datacentre by imtringued on Thursday December 15, 2016 @01:55AM (#13182960)
Can I start a thread and have it run code on a different core within one microsecond?
Re:Haskell in the Datacentre by paulddraper on Thursday December 15, 2016 @10:02PM (#13190750)
If you can, I hope you won't.

What could you be hoping to accomplish?