Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Posts
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
@jake It's aware of CPU affinity. It is not aware of cgroups.
$ docker run -it --cpus=3 python:3.14-slim python -c "import os; print(os.process_cpu_count())"
20
Should have printed 3 if it was cgroups-aware.
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
On Python, `loky.cpu_count()` will take cgroups settings, common in Docker and Kubernetes, into account when calculating number of available cores.
Are there any other Python APIs that support cgroups options? Standard library doesn't.
(On Rust you can use `num_cpus` crate, on R there's parallely::availableCores()).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
TIL that in addition to Option and Result, there's a third enum you can use in stable Rust with ?: https://doc.rust-lang.org/std/ops/enum.ControlFlow.html
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
It's surprising how often "export OPENBLAS_NUM_THREADS=1" speeds up scientific code.
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Reading intro C book and oh boy.
1. Bug caused by integer wraparound made Boeing 787 engines all turn off at once.
2. You should check for integer wraparound.
3. But! It's very easy to make checks that don't actually work.
Extra 😱 in the age of LLMs.
Programmers: You don't need language safety features, just be careful.
Also programmers: No need to read code anymore!
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
I just got marked as a no-show on a medical appointment before it even started...
Looking forward to future me showing up in a time machine to apologize and explain that it was all worth it.
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
To paraphrase the old Jewish joke about a shipwreck, "This is the bar I go to, and this is the bar I would never step foot in."
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Most cursed code I have read this year.
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
"AI" is going to make getting software engineering jobs harder over the next year... but not because "AI" will replace humans, but rather because of the interaction of accounting and the need to pacify stock market investors.
1. Megacorps have spent massively on AI datacenters. This is a capital expenditure which means the expense isn't booked immediately.
2. Instead, the expense gets turned into deprecation over the next few years, i.e. reported expenses are going to be much higher for the next few years.
3. Higher expenses shrink reported profits, so these companies will start doing layoffs.
4. So far there is no evidence of offsetting profits.
Notice this effect happens _even if all AI datacenter spending stops today_. It's baked in as depreciation.
So far we've had layoffs at Amazon, rumored layoffs at Meta, and layoffs at Oracle (much more dire straits financially than the others). Today Microsoft is doing voluntary worker buyouts: https://www.bloomberg.com/news/articles/2026-04-23/microsoft-offers-voluntary-retirement-to-about-7-of-us-workers
I've seen rumors of Google doing buyouts too. And when these layoffs hit software engineers, that's going to mean a lot more competition for any open jobs across the whole industry. All those laid off engineers will want jobs too.
And these companies have also hired a lot of people in the past, and will be hiring less going forward, so this also means fewer jobs even if the rest of the industry continues as normal.
So that means more applicants for fewer jobs.
Update: Meta announces the rumored layoffs https://www.bloomberg.com/news/articles/2026-04-23/meta-tells-staff-it-will-cut-10-of-jobs-in-push-for-efficiency?srnd=homepage-americas
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
@npdoty Local bike stores (Boston area) have a number of policies that I've seen:
- Only repair e-bike brands that they sell.
- Will do any e-bikes that use Bosch motors, since they're trained on it and it's similar across brands.
- Have a business specifically focused on all the e-bike brands categories 1 and 2 don't cover.
However, if it's just headlight wiring snapping, some in category 1 and 2 might do it I would guess even if it's brand they won't usually work on.
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
"I believe the question of how AI systems learn to understand themselves and others is one of the most consequential technical problems of our time. If we get it right, the agents we build today will become our friends and collaborators tomorrow."
Men will spend their life searching for theory of mind in Eliza bots instead of going to therapy.
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
To expand this point: software is composed of code, organizational processes, and people. A surprisingly large number of software developers are narrowly focused on generating code and miss all the surrounding processes and people (skills, knowledge, understanding of goals) that make that code usable.
"It's so good at generating code" doesn't address the costs in other categories:
- Degradation of processes. For example, you get denial of service on code reviews means code reviews go away, "it passes tests, it's fine!"
- Degradation of people's skills and knowledge. If it breaks, no one will know how it works because no one really understands the code. And an experienced engineer can only control an agent because they have experience _writing code_. If you stop writing code, that experience degrades, new people don't get it, and control of the agent degrades.
For this narrow focus on artifacts, and not the surrounding requirements, I highly recommend the book "What Machines Can't Do: Politics and Technology in the Industrial Enterprise", by Robert J. Thomas. (It has nothing to do with AI, it's about manufacturing.) But you see the failure modes from he calls having only an aesthetic of product, and no aesthetic of process; similar failure modes result in the original DevOps movement, which was a political movement, not a job title.
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).
Articles on Python performance (with a focus on data science / scientific computing) and Docker packaging at https://pythonspeed.com (click through and sign up for my newsletter for weekly articles in your inbox!).