News for hackers. Stuff that matters.
Re:Why I’m Learning Perl 6 by askvictor on Wednesday July 26, 2017 @08:45AM (#14855697)
There is native support for threads, it's just that they don't run concurrently.
Re:Why I’m Learning Perl 6 by nothrabannosir on Wednesday July 26, 2017 @09:53AM (#14856171)
At this point the word is so far removed from the meaning in this thread you might as well say a haberdasher supports threads.
Re:Why I’m Learning Perl 6 by askvictor on Wednesday July 26, 2017 @04:53PM (#14860241)
There are valid reasons for programming with threads with only a single CPU (indeed when I learnedb thread programming in the 90s pretty much only single core cpus were available). For instance, IO blocking.
Re:Why I’m Learning Perl 6 by dragonwriter on Wednesday July 26, 2017 @12:46PM (#14857836)
They do run in parallel, so long as all but one are running low-level library code which has released the GIL, but you can't call back into the runtime without grabbing the GIL.
Re:Why I’m Learning Perl 6 by weberc2 on Wednesday July 26, 2017 @10:19AM (#14856345)
While we're being pedantic, they do run concurrently (for example, dispatching a dozen concurrent HTTP requests), they just the GIL prevents most CPU work from executing in parallel.