News for hackers. Stuff that matters.
Re:Let's Remove the Global Interpreter Lock by make3 on Monday August 14, 2017 @10:39AM (#15008867)
There are many cases where the objects are too big to be passed around. Python is used a huge amount in Machine learning and datascience, where being able to do parallel work on stuff already in memory would be great.
Re:Let's Remove the Global Interpreter Lock by smaddox on Monday August 14, 2017 @12:09PM (#15009734)
Can't this already be handled by calling out to a C/C++ or FORTRAN procedure that processes the data in multiple threads? For number crunching, Python is almost exclusively used as glue.
Re:Let's Remove the Global Interpreter Lock by foobarchu on Monday August 14, 2017 @12:25PM (#15009887)
You CAN handle it, but why should you have to? If it's possible to remove that barrier, then it absolutely should be removed. If the only answer to a problem is "use another language", then the language in question has a limitation that needs to be addressed.
Re:Let's Remove the Global Interpreter Lock by Drdrdrq on Monday August 14, 2017 @02:44PM (#15011322)
It is not a limitation at all in this case. Python is just a front to Tensorflow and similar libraries/frameworks so GIL doesn't matter there.
Re:Let's Remove the Global Interpreter Lock by ams6110 on Monday August 14, 2017 @12:13PM (#15009780)
Today's machine learning and data science students don't know how to code in those languages. They know python, and maybe java.
Re:Let's Remove the Global Interpreter Lock by orangejewce on Monday August 14, 2017 @02:32PM (#15011200)
Don't forget R... shudders
Re:Let's Remove the Global Interpreter Lock by sin7 on Monday August 14, 2017 @02:47PM (#15011367)
What's wrong with R? I know it's not a programmers language but it's great for getting things done.
Re:Let's Remove the Global Interpreter Lock by dec0dedab0de on Monday August 14, 2017 @10:47AM (#15008925)
So work on data that can not be broken down into smaller chunks? That makes sense, and is something I never come across.
Re:Let's Remove the Global Interpreter Lock by chrisseaton on Monday August 14, 2017 @11:08AM (#15009136)
I'm sure they can be broken down into smaller chunks, but is it more efficient if they aren't broken down and instead shared memory is used? If you want parallelism you're obviously already worried about performance.
Re:Let's Remove the Global Interpreter Lock by fulafel on Monday August 14, 2017 @12:40PM (#15010061)
Something like the web worker primitives might work there (transferables & sharing read only data).
Re:Let's Remove the Global Interpreter Lock by leereeves on Monday August 14, 2017 @10:44AM (#15008903)
Are those applications often bottlenecked by the CPU, as opposed to GPU or data transfer?
Re:Let's Remove the Global Interpreter Lock by rspeer on Monday August 14, 2017 @11:05AM (#15009105)
The world of algorithms that run well on a CPU is still much, much bigger than the world of algorithms that run well on a GPU, even in machine learning.

And even if you're fortunate enough that Nvidia designs their GPUs to solve your problem, why should the CPU cores sit idle?