News for hackers. Stuff that matters.
Re:Why Python 4.0 might never arrive, according to its creator by monkeybutton on Thursday June 03, 2021 @10:17AM (#27381712)
I just want to be able to deploy a flask app that responds to a lot of CPU-intensive requests (making inference from ML models) that takes advantage of modern CPUs that have a stupid number of cores, without having to pay the memory overhead of duplicating the entire process' memory space N-times. Native threads would totally fix this inefficiency but the GIL breaks it. Java and .Net would be more appropriate in this production environment but they don't have the same eco-system of packages and we also don't want to pay the development cost of re-writing people's notebooks into another language and all the problems that entails. So instead, our server VMs consume a ton of unnecessary memory. /rant
Re:Why Python 4.0 might never arrive, according to its creator by d0mine on Saturday June 05, 2021 @03:30AM (#27403011)
Is the interpreter own memory size a real concern in ML application?
Re:Why Python 4.0 might never arrive, according to its creator by andrepd on Thursday June 03, 2021 @02:58PM (#27385813)
Then consider writing your application in something other than a scripting language. If you're too “lazy” to write in a lower-level language don't complain when you're application is several times slower and takes several times more memory than it could.