Hacker Timesnew | past | comments | ask | show | jobs | submit | efoto's commentslogin

"The biggest source of problems might be multi-threaded programs with concurrency-related bugs that have been masked by the GIL until now."


> concurrency-related bugs that have been masked by the GIL

Yeah... could phrase this as "All programs written with the assumption of a GIL are now broken" instead. Wish they had done this as part of the breaking changes for python 3, I guess they'll have to wait for Python 4 for this?


GIL can remain default on. Users can simply disable it for chosen parts of their program.


No they can’t, it would have to be disabled or enabled globally at the process and/or interpreter level.


I think I read that there won’t be another big jump like there was for Python 2-3. If I understood correctly, there could be a Python 4, but it won’t indicate huge breaking changes, it’ll just be another release


Yes. I once discovered that CPickle was not thread-safe. The response was that much of the library didn't really work in multi-threaded programs.


You mean programs where you put an object into pickle and some other threads modify it while pickle is processing it? Doesn't surprise me - the equivalent written in plain Python would be very thread unsafe as well.


No, I mean several threads doing completely separate CPickle streams with no shared data or variables at the Python level.


Has it since been fixed?


Probably not. CPickle is famously shunned by anyone who has to do serious, performance-critical serialization/deserialization.


I was curious, and an issue that fits the description was fixed in Py 3.7.x here: https://bugs.python.org/issue34572 but other threading bugs remain: https://bugs.python.org/issue38884


What’s the most performance critical alternative? Pickle is tied to the VM, so it’s not a generally good persistence option in a prod setup, but it can mighty convenient.


What do people use instead?


JSON, protocol buffers, thrift, etc. Saving python-native objects such as functions, class instances etc is usually not the right thing to do in production code.


It would appropriate to quote one old saying, possibly originated in armed forces of a certain country: "do not rush to execute an order, it will likely be canceled"


I've lived in a couple of countries where bribes are a way of life. I'm happy it's not the case in CA.

Still, does anyone here know of a country, where artificially limiting resources do not encourage to bribes? Better yet, if somebody names a country, where bureaucrats are by law forbidden to limit the resources artificially, I'll strongly consider immigrating.


I'm surprised that OP didn't notice misspelled vocher prominently visible on multiple screenshots.


Very interesting indeed: "In fact, more small-particle pollution comes from the action of car brakes and tyres than from the exhaust fumes of current internal-combustion engines – a testament to the effectiveness of catalytic converters and to modern fuel-injection systems."


Then electric vehicles are not nearly as clean as the public thinks they are: every two Teslas or electric cars on the road produce more small-particle pollution from the action of their brakes and tyres than the total small-particle pollution of one internal combustion vehicle (engine, brakes, and tyres).


Regenerative braking largely minimizes conventional braking on Teslas.


Unless you look at CO2 emissions :)


Sounds like a misconfigured filter or a mistrained AI. Garbage in – garbage out.


Really? Why does it appear to be consistently happening in China/HK rather than New Zealand, Germany, Malaysia, etc?

Why is it sensitive words vs random words?


I'm inclined to agree... but to play devil's advocate, it's the sensitive ones we remember and talk about.


I would not be this dismissive, considering the studies showing starkly different effects of acute vs chronic stress, for example [1].

[1] https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3788324/


Not that fast. Unfortunately, "Why We Sleep" appears to be rather controversial.

[1] https://guzey.com/books/why-we-sleep/

[2] https://www.wired.com/story/stop-obsessing-over-sleepyour-br...


"I study sleep. While some of walker's claims may be hyperbolic, I think they are within reason and justified by the important message he is trying to convey. Too many people have begun to forego sleep in their health choices, and he has helped raise awareness of sleep's role in our health.

Many of these criticisms are quite unfair or misunderstanding the science."

https://www.reddit.com/r/slatestarcodex/comments/dwtr0m/matt...


Maybe, but we do sleep for roughly 1/3rd of our life. Something might be in there.


"Studies have shown quality control of this supplement to often be low." [1] -- which one are you using?

[1] https://www.mayoclinic.org/drugs-supplements-dhea/art-203641...


That Mayo Clinic link has a giant red light "avoid" rating.


Natrol. No particular reason, just got it off Amazon.


Feeding the licence plate databases junk is a neat, but rather expensive idea.

Here is link to the recent Defcon presentation: https://adversarialfashion.com/pages/defcon-27-crypto-privac...


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

Search: