@freemo I don't know the specifics of your situation so I may be way off base, but I often find that when people start using a new language or ecosystem they reach for the familiar idioms from their more comfortable language and don't realize that in this new language you are meant to structure things differently. I have been guilty of this myself many, many times.
@freemo I am a very active coder, what I mean to say is that I have basically never been in a situation where my code was slow enough that it was a problem (and I do a lot of low-level library programming so that's often "slow at all") and benchmarks showed that dictionary hash map lookup is the bottleneck and switching implementations would fix it.
Python has a huge amount of overhead for most operations, so often the way to get high performance when you need it is to basically call an API that is a wrapper around an optimized implementation in a low-level language (e.g. numpy).
Admittedly, it may also be that the kind of programming I do is not likely to hit this problem, but I imagine the fact that there's *not* an obvious choice here means that it's either not a very common problem or this is an XY problem and you are overlooking more idiomatic solutions to your overall problem.
@freemo I don't think I've ever needed such a thing, I suspect most people haven't, which is why there's nothing built-in.
You may find what you want by looking instead at how people solve similar problems in Python. Might be something out there that has a red-black tree or similar at its core but isn't advertised as such.
If you think you're affected by the bird salmonella outbreak, either:
1. Take down your feeders for 2 weeks, or
2. (Daily) Clean/scrub your feeders with soapy water, dip in 1:9 bleach solution, and wash with soapy water after
@eric That article doesn't mention the geographical extent of the outbreak. Everything I'm finding seems localized to the Pacific Northwest (Washington, Portland, BC). Any idea if the northeast is affected as well?
@lynne@pars.ee I'm not sure what "keep the HDR" means, but for my immediate needs I've got ~150 GB of 4k HDR videos synced between my phone and my computer.
I think that for the purposes of viewing on a phone or computer screen, I could downsample to 1080p or 720p and possibly a higher compression ratio to cut the space requirements down by like 75% and free up over 100GB of space.
I'm thinking of setting up a pipeline where the high quality videos go onto my local server, which then transcodes them and dumps them into a folder that gets synced back to the phone, so the originals live on my server and I still have effectively perceptually equivalent videos on my devices. The biggest sticking point has been this washing out of colors.
As long as removing the HDR gives me something that's in the right ballpark, I think I'll be happy.
Any one familiar with #ffmpeg want to take a crack at this question?
https://superuser.com/q/1613217/205461
Given how long it's gone without any bites, I'm guessing the answer is going to be "it's complicated/impossible" or something, but it *seems* like it really should be possible.
Maybe @lynne@pars.ee knows?
@2ck Debian / Ubuntu's packaging strategy is a major source of reputational damage to Python and the PyPA, unfortunately: https://gist.github.com/tiran/2dec9e03c6f901814f6d1e8dad09528e
They do all kinds of non-standard and unsupported things, then people complain upstream and get the impression that Python is more unstable / fragile than it is 🙁
Two things I like in the "Getting Unstuck" ebook sampler I just released:
* "Who this book is for and what you should get out of it" but also "Who this book is NOT for"
* concrete examples and exercises to improve open source project management skills
https://changeset.nyc/resources/getting-unstuck-sampler-offer.html
@freemo What is propaganda about this?
Seems like a slightly less accurate framing here, but still good enough for a crayon sketch.
FWIW, prior to this latest pandemic, I've almost exclusively heard of "herd immunity" in the context of vaccination. When it happens naturally, I think people generally talk about "self-limiting epidemics" or something of that nature.
@shironeko This doesn't quite work for me. It breaks the flow of the image and generally it can't capture what's actually happening on my son's face.
The look on my son's face in the original of this photo: https://qoto.org/@pganssle/105362195576735145
Is priceless, and isn't well-captured by emoji ☹
I ask because I'd like to post photos of my family on various platforms but I am not yet comfortable with the idea of posting my son's face in public or semi-public settings.
I'd love to keep the essence of the photos without necessarily posting his face, though...
BTW, some relevant context for those outside of Hyderabad who are going to watch this talk, this is what Google Image Search says Hyderabadi haleem looks like:
The video from my PyConf Hyderabad 2020 keynote, "The Stable Interface Paradox" is now available!
I had a lot of fun with this, I think it's the first time I've actually felt compelled to take a selfie to commemorate a talk:
And also, if you know any Russian legislators, my perennial recommendation here is to show them this: https://codeofmatt.com/on-the-timing-of-time-zone-changes/
It would be shocking if changing the time zone with less than a week's notice did not result in a bunch of easily avoidable problems.
Programmer working at Google. Python core developer and general FOSS contributor. I also post some parenting content.