simonw/actions-latest

simonw/actions-latest

Today in extremely niche projects, I got fed up of Claude Code creating GitHub Actions workflows for me that used stale actions: actions/setup-python@v4 when the latest is actions/setup-python@v6 for example.

I couldn't find a good single place listing those latest versions, so I had Claude Code for web (via my phone, I'm out on errands) build a Git scraper to publish those versions in one place:

https://simonw.github.io/actions-latest/versions.txt

Tell your coding agent of choice to fetch that any time it wants to write a new GitHub Actions workflows.

(I may well bake this into a Skill.)

Here's the first and second transcript I used to build this, shared using my claude-code-transcripts tool (which just gained a search feature.)

Tags: github, ai, github-actions, git-scraping, generative-ai, llms, coding-agents, claude-code

Substack Network error = security content they don't allow to be sent

I just sent out the latest edition of the newsletter version of this blog. It's a long one! Turns out I wrote a lot of stuff in the past 10 days.

The newsletter is out two days later than I had planned because I kept running into an infuriating issue with Substack: it would refuse to save my content with a "Network error" and "Not saved" and I couldn't figure out why.

Screenshot of the Substack UI, with a Network error message on purple and a Not saved message higher up. The content in that editor includes an explanation of a SQL injection vulnerability.

So I asked ChatGPT to dig into it, which dug up this Hacker News post about the string /etc/hosts triggering an error.

And yeah, it turns out my newsletter included this post describing a SQL injection attack against ClickHouse and PostgreSQL which included the full exploit that was used.

Deleting that annotated example exploit allowed me to send the letter!

Tags: sql-injection, security, newsletter, substack

China’s Trade Surplus, Part I

China Beats Japan for First Time as World's Top Car Exporter in First  Quarter

Donald Trump’s erratic policies have dominated world economic news in 2025. But if U.S. policy weren’t being whipsawed by a wannabe authoritarian’s whims and obsessions, we would all be focused on a different problem: China’s massive trade surplus.

China’s surplus briefly made headlines a few months ago when it passed the trillion-dollar mark. While there is no special significance to that number, it helped bring attention to an important point: that China’s surplus has been surging for years — roughly since 2020.

One doesn’t have to be a crude, Trumpian-style trade protectionist to understand that it’s a major problem for the global economy when an economy the size of China’s – either #1 or #2 in the world, depending upon the measure used – runs persistent, extremely large trade surpluses. China’s trade surpluses are causing major economic disruptions around the world – particularly in the US and in Europe. Furthermore, China is an authoritarian regime. Its growing dominance of several strategic industries poses serious concerns, both in terms of national security and technology capture.

So today’s primer is the first of a two-part series devoted to China’s surplus: How big it is, what’s causing it, why it’s a problem, and what can be done about it.

Beyond the paywall I’ll address the following:

1. How to think about the scale of the Chinese surplus

2. China’s underconsumption problem and the role of Chinese government policies

3. China saves too much for its own good

4. How China’s government has effectively chosen to run trade surpluses

5. The Chinese trade surplus trap

Next week I’ll discuss how China’s surplus causes problems for the rest of the world, and how other nations — especially in Europe — should respond.

Read more

Sunday 28 December 1662

(Lord’s day). Up and, with my wife to church, and coming out, went out both before my Lady Batten, he not being there, which I believe will vex her. After dinner my wife to church again, and I to the French church, where I heard an old man make a tedious, long sermon, till they were fain to light candles to baptize the children by. So homewards, meeting my brother Tom, but spoke but little with him, and calling also at my uncle Wight’s, but met him and her going forth, and so I went directly home, and there fell to the renewing my last year’s oaths, whereby it has pleased God so much to better myself and practise, and so down to supper, and then prayers and bed.

Read the annotations

Sunday Night Futures

Weekend:
Schedule for Week of December 28, 2025

Question #6 for 2026: What will the Fed Funds rate be in December 2026?

Monday:
• At 10:00 AM ET, Pending Home Sales Index for November. The consensus is for a 1.0% increase in the index.

• At 10:30 AM, Dallas Fed Survey of Manufacturing Activity for December. This is the last of regional manufacturing surveys for December.

From CNBC: Pre-Market Data and Bloomberg futures S&P 500 are up 1 and DOW futures are up 28 (fair value).

Oil prices were down over the last week with WTI futures at $57.02 per barrel and Brent at $61.03 per barrel. A year ago, WTI was at $71, and Brent was at $74 - so WTI oil prices are down about 20% year-over-year.

Here is a graph from Gasbuddy.com for nationwide gasoline prices. Nationally prices are at $2.76 per gallon. A year ago, prices were at $2.98 per gallon, so gasoline prices are down $0.22 year-over-year.

Links 12/28/25

Links for you. Science:

COVID Vaccines Slashed Kids’ ER Visits by 76 Percent, Study Finds
Why CDC health data are still reliable… even amid challenges to communications and integrity
Sparking ancient fires. New research helps to show the challenges of documenting ancient firemaking (more here)
Black Coffee and Cancer Hype Unsubstantiated
Save America from the MAHA Movement
FDA vaccine chief’s memo cited 10 pediatric Covid-19 vaccine deaths—but the agency’s own analysis found 0–7. Dr. Vinay Prasad circulated a memo before FDA scientists finished their work. His conclusions overshot what the agency’s own analysts ultimately found.

Other:

If He Builds It, Tear It Down
Next target of trump’s wrecking ball: Irreplaceable New Deal murals by Ben Shahn and others
How the right-wing backlash to the Covid pandemic led to the FDA’s anti-vax turn
Impeach and Remove the Bastards
GOP will regret pushing Jasmine Crockett to run for the Senate
What the Dems Talk About When They Talk About A.I. With an A.I. profiteer in the White House and no congressional mojo, Democrats have been shockingly impotent on A.I., an issue that infuriates or scares the hell out of most Americans. Now, even as they muster some resistance, they risk being outflanked.
One Senate Primary Just Got a Lot More Interesting—and Poses Big Questions for Democrats’ Future
Seth Harp Talks About The Rot At The Core Of America’s Empire
Trump’s reality TV tricks can’t hide the affordability crisis
New Orleans Is Watching You, Fuckers.
Greg Bovino’s the star of Trump’s deportation show. We trace his roots.
The deeply personal reasons why many Indiana Senate Republicans said no to Trump
How the Trump Administration’s Most Wanted Man Finally Went Free
Top ADL civil rights lay leader quits, accusing group of being ‘useful idiot’ for Trump
Fiasco for Trump as Judge Issues Harsh Rebuke in Ábrego García Case
Trump attacks on political opponents spur a surge of threats, NBC News review finds (Trump is a stochastic terrorist)
“I was forced to use AI until the day I was laid off.” Copywriters reveal how AI has decimated their industry
DOJ report on D.C. police says chief created a ‘culture of fear’
A GOP senator broke ranks to defend Somali Minnesotans. Will anyone join him?
Professors are turning to this old-school method to stop AI use on exams (‘AI’ making education less efficient…)
Do you feel like a failure?
Amazon pulls AI recap from Fallout TV show after it made several mistakes
Where the Money Comes From
Will the 21st Century Nabobs Win Their War on Public Accountability?
You, Robot
Abolish the Texas Rangers
A band-aid on a festering hand wound. Something’s up with Trump’s health and we should really find out what it is.
The Lies Americans Tell Themselves to Justify State Violence Against Migrants
Instagram Is Generating Inaccurate SEO Bait for Your Posts
FDA finds new way to make COVID more deadly

w/e 2025-12-28

Traveled back home on Monday, on a seven-train journey, stopping off en-route to visit our aunt, who also recently moved to a care home. Then at home for Christmas, with sister and Mum, and cat.


§ Twice this week our Kia e-Niro has been completely dead, fortunately while at home. Turns out these hi-tech EVs, largely comprised of high-power batteries, still rely on an old fashioned 12V battery to start. The first time it happened the builders were here and jump-started it from their van.

The second time they weren’t so we read a lot of vague posts on forums, watched YoutTubes, waited until after Christmas, and spent £110 on a battery jump start pack. Which worked although, neither of us being car-heads, it was a bit nerve-wracking. We’ll keep that in the car but this doesn’t instill confidence in the vehicle.


§ We finished watching Pluribus and my opinion has only solidified. In fact the US-centering of it feels even worse to me now: a story that’s about the entire planet being taken over by something, with a dozen un-affected people spread around the world, and the only American one is the centre of the show. Which suggests that either she is more interesting than all of the others – which so far feels unlikely – or that the writers think she is more important than all the others.

I still don’t care whether Carol succeeds in “saving the world” although I care a bit whether Manousos succeeds, because he’s been so much more determined and obsessive about it. Overall I find it odd that, given a potentially interesting and bizarre global/galactic situation, so little has been done with it in nine hours or so of screen time, other than spend a lot of money.

And now I dislike myself a little for watching the whole thing. It was OK, not terrible, but if it hadn’t been for the fact so many other people were also watching the whole thing, I might have given up.


§ We also watched:

  • Challengers (Luca Guadagnino, 2024). I started off thinking this was a solid 4 stars but as it went on, through endless flashbacks spoon-feeding the characters’ backstory, which resulted in the slight present-day scene being drawn out to a length that would have struggled to maintain my interest even if I cared about any of the characters, I was knocking off half a star every so often up to the final moment. Two stars.
  • Home Alone (Chris Columbus, 1990) which neither me, Mary or my sister had seen. Maybe it’s brilliant if you’re a child and/or in 1990? I expected the slapstick home invasion to be much more of the film. It was also weirdly slow, with odd, long pauses. Maybe they’re supposed to be filled with laughter…

§ No doubt there’ll be some yearnotes along in the next few days.


Read comments or post one

Sunday assorted links

1. On deathbed regret.

2. Ryan Briggs: “Prediction: in the short-to-medium term LLMs will make the reputation of the researcher matter more for whether or not we view results as credible because it will become too hard to read everything and people will want shortcuts for filtering. Again, this hits juniors hardest.”

3. Brian Greene and Ed Witten discuss string theory.

4. Short video of the Grand Egyptian Museum.  Go, go, go!

5. Why Israel recognized Somaliland? Many things going on, risk of war in East Africa is now heightened, here is some speculation.  Big story for 2026?

6. Gary Graffman, RIP (NYT).

The post Sunday assorted links appeared first on Marginal REVOLUTION.

       

Comments

 

Question #6 for 2026: What will the Fed Funds rate be in December 2026?

Earlier I posted some questions on my blog for next year: Ten Economic Questions for 2026. Some of these questions concern real estate (inventory, house prices, housing starts, new home sales), and I posted thoughts on those in the newsletter (others like GDP and employment will be on this blog).

I'm adding some thoughts and predictions for each question.

Here is a review of the Ten Economic Questions for 2025.

6) Monetary Policy:  The FOMC cut the federal funds rate three times in 2025 from "4-1/4 to 4-1/2 percent" at the beginning of 2025, to "3-1/2 to 3-3/4" at the end of the year. The mid-range on the "dot plot" suggests many FOMC participants expect around one to two 25 bp rate cuts in 2026.  What will the Fed Funds rate be in December 2026?

As of December, looking at the "dot plot", the FOMC participants see the following number of rate moves in 2026:

25 bp Rate MovesFOMC
Members
2026
One Rate Hike3
No Change4
One Rate Cut4
Two Rate Cuts4
Three Rate Cuts2
Four Rate Cuts1
More than Four1

This is a wide range of views.

Goldman Sachs economists think there will be 2 rate cuts in 2026:
"We expect the FOMC to compromise on two more 25bp cuts to 3-3.25% but see the risks as tilted lower. "
A key question: How accommodative is current policy?  With core PCE inflation at 2.8% year-over-year in September (the data for October and November is delayed due to the government shutdown) and the "neutral rate" at 1.5% would suggest a Fed Funds Rate at around 4.3% (Of course, estimates of the neutral rate vary widely). 

Currently the target Fed Funds rate range is '3-1/2 to 3-3/4' percent.  And the FOMC projections show core PCE inflation only declining to 2.4 to 2.6% by the end of 2026 (Q4-over-Q4).

However, the FOMC believes inflation will come down as the tariff pass-through fades, and also because of a further declines in housing inflation.   Asking rents have been flat for almost three years, and measures of rent (housing / shelter) are steadily declining.

If we look at recent readings over the last 6 months annualized (through September):
PCE Price Index: 2.7% 
Core PCE Prices: 2.7%
Core minus Housing: 2.6%

In Q1 2025, PCE inflation was high.  There might be some residual seasonality in Q1, so it seems likely inflation will be lower in Q1 2026, lowering the YoY measures.

The next FOMC meeting ends on January 28th, and the FOMC will likely hold rates steady at that meeting.  

Due to the ongoing weakness in the labor market, my guess is there will be 2 rate cuts in 2026 with many dissents!  We might even see the 1st ever Fed Chair dissent

As long as the Fed remains independent, FOMC policy will depend on what happens with inflation and employment in 2026.  

Here are the Ten Economic Questions for 2026 and a few predictions:

Question #7 for 2026: How much will wages increase in 2026?

Question #8 for 2026: How much will Residential investment change in 2026? How about housing starts and new home sales in 2026?

Question #9 for 2026: What will happen with house prices in 2026?

Question #10 for 2026: Will inventory increase further in 2026?

The Hainan Free Trade Port

Earlier I wrote about China’s Libertarian City, Boao Hope City (officially the Boao Lecheng International Medical Tourism Pilot Zone), China’s first special economic zone for advanced healthcare. Boao Hope City is following the peer approval model I have long argued for:

Daxue: Medical institutions within the zone can import and use pharmaceuticals and medical devices already available in other countries as clinically urgent items before obtaining approval in China. This allows domestic patients to access innovative treatments without the need to travel abroad…. The medical products to be used in the pilot zone must possess a CE mark, an FDA license, or PMDA approval, which respectively indicate that they have been approved in the European Union, the US, and Japan for their safe and effective use.

Boao Hope City is part of the larger Hainan Free Trade Zone. Hainan is a large island off China’s Southern Coast, often called the Hawaii of China. The entire island is being turned into the world’s largest free trade zone. As of Dec. 18, 2025, Hainan now boasts:

  • Expanded “Zero-Tariff” Coverage…“zero-tariff” eligible goods expand from about 1,900 to approximately 6,600 tariff lines, increasing coverage from 21% to 74% of total import/export items, encompassing most production equipment and raw materials. This exemption applies to import tariffs, import VAT, and consumption tax, potentially saving enterprises about 20% in tax costs on imported equipment.
  • Optimized “Tariff Exemption for Value-added Processing” Policy: One of the most transformative measures, this policy sees significantly relaxed restrictions (e.g., on core business income ratios) and now allows cumulative value-added calculation across upstream and downstream enterprises. This makes it easier for businesses to meet the “over 30% value-added” threshold for tariff exemption when selling finished products into the mainland market. Companies can ship primary products or components to Hainan for substantial processing; if the value-added meets the standard, the final products can enter the mainland market tariff-free.
  • “Dual 15%” Tax Incentives as a Long-term Advantage: Encouraged industries registered and substantively operating in the Hainan FTP enjoy a reduced 15% corporate income tax rate. Eligible high-end and in-demand talents benefit from an individual income tax exemption for the portion exceeding 15%, providing long-term, stable fiscal predictability.
  • Enhanced Trade and Investment Liberalization/Facilitation: Measures include implementing a negative list for cross-border trade in services, relaxing foreign investment access, adopting a “commitment-based registration system” for business setup, and streamlining procedures. A visa-free policy for nationals of 59 countries is in effect, with further eased entry-exit restrictions for business personnel.

The post The Hainan Free Trade Port appeared first on Marginal REVOLUTION.

       

Comments

Related Stories

 

A rare -directed- deceased donor kidney transplant

 Most organ transplants come from deceased donors, and the vast majority of these deceased donor organs are allocated by a regulated system of national waiting lists. That is, the organs of a deceased donor go to strangers in need. In contrast, most transplants from living donors (of kidneys and livers) are direct donations from someone healthy enough to donate to someone who they know.*  Living donations are also different in that they can be planned well in advance, while deceased donations have to be hastily arranged following a death.

But it is legal, and sometimes possible, for the next of kin of a deceased potential donor to direct an organ donation to someone they know who needs a transplant.  This will only take place if the potential recipient is available on short notice, and if the donor organ is compatible with the recipient.  So it's a rare event: the next of kin need to know someone in need, and the transplant has to turn out to be feasible.

But rare events happen, and the NYT reports on just such a story:

A Man Who Shunned Cheap Sentiment Left a Gift for Others: Life  By Dan Barry


"Informed that her 55-year-old brother would never regain consciousness, Darlene Costello made the heartbreaking decision to have him removed from his ventilator — only to learn, seconds before it was time, that Brendan was a registered organ donor.

"Once Ms. Costello calmed down — why wasn’t this known before? — she came to embrace the news of her brother’s final selfless act. She also knew someone who desperately needed a kidney. Calls were made, tests done, overwhelming odds overcome."

...

" His lungs went to a woman in Tennessee, his right kidney to a man in Pennsylvania. And his left kidney was received by Ms. Costello’s mentor and employer, Dr. Sylvio Burcescu, 62, whose ability to run his Westchester County clinic had been hampered by a rare kidney disease requiring dialysis."

########

*Nondirected living donors can also start chains of kidney exchange. 

Apollo 17 s Moonship

Awkward and angular looking, Awkward and angular looking,


A Call for New Aesthetics

We, Patrick and Tyler, have differing views of the artistic merits of Bauhaus, but we are both very impressed by the movement’s success: they sought to define an aesthetic for the twentieth century, and basically did. Bauhaus obviously sits as part of broader tides—functionalism, constructivism, De Stijl, etc.—but the project also shows how intentional artistic ambition can succeed. Everything from modern offices to modern tech hardware is in some sense downstream of Bauhaus.

We’re more than a quarter way through the new century and we can now ask: what is the aesthetic of the twenty-first century? Which are the important secessionist movements of today? Which will be the most important great works?

Today, futuristic aesthetics often mean retrofuturistic aesthetics. So, what should the future actually look like? There will not be a singular answer to that, but we are very interested in attempts to answer the questions.

In particular, we would like to fund some artists who are thinking about this.

Tyler: Circa 2026, beauty can be found in strange and unusual places. It does not always announce itself as such. It can violate our expectations in unreasonable ways. It often springs from an understanding that the world has changed fundamentally, and matters of the aesthetic need to recognize and respond to that. What can you do that that will surprise and inspire me?

Patrick: In 1925, Ortega y Gasset said “modern art, on the other hand, has the masses against it, and this will always be so since it is unpopular in essence; even more, it is antipopular.” Sagmeister and Walsh argue that we’ve stopped trying to produce beautiful work, and Nicholas Boys-Smith shows empirically that modern buildings are substantially less favored than designs that respect the specific character of the place. So, what are new directions forward? What is new and also beautiful?

Grant. We are seeking to fund artists, architects, and designers who are consciously working to define New Aesthetics.

  • Our primary interest is in visual arts and architecture, but open to all mediums.
  • AI presumably opens interesting new opportunities, though we haven’t seen much great work that only uses AI. (If jazz didn’t exist, could you prompt Suno to create it? This seems like an open problem.) As such, we’re neutral on the use of AI.
  • We will not fund work that is already ubiquitous today.

Mechanics

  • Grant size: $5k – $250k.
  • Deadline: Applications are open until March 31, 2026.
  • Selection: Reviewed on a rolling basis. Applying sooner is probably better than later, because we might at some stage decide that we’ve funded enough.
  • Application: Include some examples of your work along with a rough description of what you’d use the grant to do. We don’t know how many applications we’ll receive, so please make your work as easy to assess as possible. Whether or not English is your first language, we much prefer applications written by humans over those written by AIs.
  • Declines: To keep logistics simple, we will not inform declined proposals of our decision.

To apply, just email apply@newaesthetics.art.

TC again: Here is the website.

The post A Call for New Aesthetics appeared first on Marginal REVOLUTION.

       

Comments

Related Stories

 

Tim Cook Posts AI Slop in Christmas Message on Twitter/X, Ostensibly to Promote ‘Pluribus’

The whole illustration is just weird looking, for one thing. As for sloppy details, the carton is labeled both “Whole Milk” and “Lowfat Milk”, and the “Cow Fun Puzzle” maze is just goofily wrong. (I can’t recall ever seeing a puzzle of any kind on a milk carton, because they’re waxy and hard to write on. It’s like a conflation of milk cartons and cereal boxes.)

The Apple TV X account retweeted Cook, and added a credit: “We thought you might like this festive artwork by Keith Thomson, made on MacBook Pro.”

Apple didn’t tag the “Keith Thomson” who supposedly created this artwork for them, but if it’s this Keith Thomson, Apple must have somehow fallen for a scam, because that Keith Thomson’s published paintings are wonderful. The “K Thomson” signature is at least sorta kinda like that Keith Thomson’s signature on Apple’s sloppy illustration — but not really the same. (I like a bunch of the paintings from that Keith Thomson, and love a few of them, but this one in particular feels like it was made just for me. It’s perfect.)

 ★ 

Ten things that are going right in America

Photo by Look Studio on Unsplash

A lot of readers tell me that my fundamental optimism about the world is one of the reasons they appreciate my blog. I think my usual sunny attitude springs from my above-average skill at resisting the negativity bias inherent in the media. It’s very easy to read the news every day and conclude that the world is in a never-ending hydra-headed “polycrisis”; if you have a cool, detached perspective, you’ll realize that things are rarely so dark.

That said, this year I was a bit of a downer. The coming of the second Trump administration means the end of the era of stability that the world enjoyed after World War 2. Even if the U.S. can fix its domestic problems (which are not all Trump’s fault by a long stretch), the ascendance of China and Russia as the world’s dominant power bloc will not be so easily undone, and the ramifications of that shift are only getting started. That’s what motivated the somewhat darker tone of my blog this year.

But that doesn’t mean I think the world is going to Hell in a handbasket. From India’s resilient economic growth to Europe’s timely rearmament to the ongoing technological revolutions in AI, electric technology, and biotech, there is plenty to be happy about.

Even when it comes to American society, I see lots of quiet reasons for optimism. Our politics is dysfunctional and our media landscape resembles a demon-haunted wasteland, but underneath the surface, I see signs that our society is starting to knit itself back together after the unrest and chaos of 2014-2021. Health is improving. Violence is falling. Americans are starting to use technology more responsibly. Some of the economic sclerosis of the pre-pandemic years seems to be falling away.

I suspect that there are “macrosociological” forces at work. To my knowledge, sociologists haven’t really modeled a cycle of aggregate social division and health,1 but if you look at events like the collapse of the USSR and the decade of violence and self-destructive behavior that followed in Russia, or the multi-decade rise in pro-social behavior around the mid-20th century in America, it’s hard to avoid the suspicion that such forces exist.

But I’ll leave the grand theorizing for another day. Today I just want to document ten positive trends in American society. It’s been a tough year; you all deserve a little optimism!

Life expectancy is up

This is probably the most encouraging recent social trend in America. One of the biggest downsides of life in the U.S., compared to other rich countries, is our low life expectancy. A big gap opened up a few decades ago, and in recent years, and in the late 2010s, Americans’ life expectancy fell outright for several years. Then came the pandemic, of course, and it fell right off a cliff.

But I’m happy to report that this trend has now reversed! Not only has U.S. life expectancy more than bounced back from the pandemic, but the negative trend of the 2010s seems to be over as well. The gap with other rich countries remains, but the U.S. is no longer falling further and further behind:

Why is U.S. life expectancy improving? There are two main reasons why Americans live shorter lives than their rich-world counterparts: Unsafe behavior, and obesity. The first of these — overdoses, suicides, murders, and traffic accidents — surged after the pandemic but is now on the wane.

Murder is down (and violence is down in general)

The most important way in which life in America differs from life in other rich countries is our high level of violence. Murder rates — the most reliable measurement of violence — are typically around 5 or 6 per 100,000 people in America. That’s about five times as high as in Europe and ten or twenty times as high as in East Asia. And it’s a proxy for a bunch of other kinds of public violence — assaults, robberies, etc. — that are harder to compare across countries or across time.

I believe that America’s high violence levels are the main reason our cities are so car-dependent — many people refuse to take public transit or walk on shop-lined streets if they’re in danger of getting mugged or attacked. That means that some part of our obesity and boredom is also downstream of violence.

In the late 2010s, U.S. murder rates went in the wrong direction, rising from their low point in 2014. Then in the pandemic they spiked alarmingly. But in late 2021 or 2022, murder rates started falling, and they haven’t stopped falling since. There are several data sets that record murder rates, based on reporting by hospitals, police agencies, and so on. But they all closely agree. Here are two sources:

Source: Jeff Asher
Source: Jeff Asher

Jeff Asher, who does a great job documenting trends in American violence, notes that many other indicators of violence in America are down as well, including reports of gun crime and reports of violent crime other than homicides:

Jeff-alytics
2025 Year in Review: A Remarkable Drop In Crime
The number of crimes reported to law enforcement agencies almost certainly fell at a historic clip in 2025 led by the largest one-year drop in murder ever recorded — the third straight year setting a new record — and sizable drops in reported violent and property crime. This assessment will not be confirmed until the FBI releases formal estimates for 20…
Read more

Most encouragingly, the drop appears to have continued, or even accelerated, in 2025. Murders are plunging in almost every big city:

Source: Jeff Asher

Trump’s return has not led to the reestablishment of the negative trend of the mid-2010s. Just why this has happened deserves a longer blog post, but for right now we should just celebrate the new trend.

Asher’s best guess is that although overall violence in America remains above its historic low point in the early 1960s, murder and property crime are now less common than they were during that famously peaceful era. Part of that is due to mitigation efforts — everyone moved out to the ‘burbs and started locking their houses and driving everywhere. America remains far too violent to support the kind of pleasant urban life that Europeans and East Asians enjoy. But for many years we were going the wrong way, and now we’re headed in the right direction.

Overdoses are down

Read more

Gap Week: December Holidays, 2025

Hey folks! Apologies for this coming out late – alas the pedant household has been struck by a nasty cold that has made keeping up with work this week quite challenging.  No post this week, on account of it being Christmas time. May you all have a Merry Christmas or a Happy Holidays or simply Friendly Season’s Greetings, whichever is your preference!

We’ll be back next week with some Tolkien (I am planning to post up the text of my keynote, “Tolkien and Éowyn Between Two Wars” which I delivered this past week at the 2025 Prancing Pony Podcast Moot) and then we’ll be back to finishing out our discussion of hoplites in the New Year.

In the meantime, this is normally the spot in the calendar where I do a bit of ‘year in review’ so let me indulge in that. 2025 set a new record for traffic on the blog – it looks like we’ll end up around 4.25m page views, at last dethroning 2022 which had held the record.1 The most popular post this year by far was “Why Archers Didn’t Volley Fire” with more than 140,000 views. The distant-runners-up (but still doing quite well) were “Coinage and the Tyranny of Fantasy ‘Gold,'” and “How Gandalf Proved Mightiest.” Meanwhile I was pleasantly surprised that the series on “Life, Work, Death and the Peasant” also pulled in a decent number of readers despite being a pretty technical-in-the-weeds series without a strong ‘pop-culture’ hook. It ended up the year a bit short of 300,000 page views split over its 10 parts and subparts.

In the New Year, my plan is to get to a lot of lingering Patron requests, including the winners of the ACOUP Senate poll. We’re going to get some discussion of the Late Bronze Age Collapse, some on of how ancient polytheism interacts with ancient states and some of mercenaries and other things. I think 2026 is probably also the year for the nearly inevitable Teaching Paradox: Hearts of Iron IV (in which you can look forward to some praise but perhaps some sharper criticism of the Paradox approach; HoI4 is a remarkable game but it has some remarkable problems too).

Repost With Transcript: Heather Cox Richardson

Too busy being human this week for a regular interview. But I recently had a live conversation with the extraordinary Heather Cox Richardson, which I’m reposting from my YouTube channel. (Working on plans to make that channel a supplemental communication medium.) I’ve also provided a transcript, for those (like me) who don’t have time to listen to everything we’d like.

TRANSCRIPT

HCR I want to welcome everybody for being here today where I have the extraordinary opportunity to talk to Dr. Paul Krugman which is an incredible honor. Thank you so much for being here and let’s see what trouble we can get into.

PK Thanks for having me on. I mean you’re a legend in this Substack world and it’s really great to talk to you.

HCR Well, let’s start there because I was actually using you as an example the other day talking to a statistician that when you were a regular columnist for the New York Times, I didn’t read you every day in part because, you know, it it seemed so stripped down. There was so much that I felt I didn’t have access to intellectually behind your arguments. And now that you’re on Substack, you’re my I won’t say my first read of the day because I hate to privilege one person over another, but I never ever miss anything you write. I read it all. And I realized the other day I was four charts deep in something. And it was kind of a light bulb moment for me where I sat there and thought this medium is one that permits really great minds to have the space to do what they couldn’t do in traditional media. Have you felt that it’s different for you writing on Substack?

PK Oh, it’s enormously different. I mean now there’s a peculiar thing which was that economics blogging had a golden age kind of around 2010 to 2013 aftermath of the financial crisis and I was maintaining a blog as well as writing the column and the blog gave me a place to do the stuff I couldn’t do with 800 words and pure text. But the Times killed the blog for reasons I’ve never quite understood. And then I had really no outlet, no place to show you some of the homework. Now, I’m actually thinking of setting up some sort of dedicated super wonky feature on the Substack, which will be stuff that doesn’t go out as an email to everybody where I get to do the stuff that is really incomprehensible. But the ability to show the charts — I mean two or three charts can make all the difference in the world between what is just you know a bunch of words about economics and sort of here’s why I think or why the profession thinks the way we do. So it’s it’s been enormously liberating. And also of course not having anybody you know policing and forcing me to tonewash and all of that.

HCR Well, there is in it as well as I think you alluded to a calmness and uh hey, isn’t this cool feel. I think of it quite like literally being strapped down the way you strap down things on a kayak that that’s how the New York Times always felt that your columns there that you were you nothing could shake loose whereas in the in your Substack you’re much more like hey come on let’s take a look at this and you just feel like you’re inviting readers along for the ride. The reason that interested me and I was talking to it about a statistician who does something fairly similar and but let me tell you I’m virtually innumerate. So the fact that I was talking to a statistician says something right there. It feels to me like we are getting the return of true public intellectuals who are operating at a general level and then really celebrating knowledge as opposed to I’m going to tell you how things are and getting more into hey I love this stuff and I’ll explain it to you if you want to come along for the ride. And that’s what’s got me reading you every day.

PK Well thanks, I mean I read you religiously every morning. I know an awful lot of people who start their day with you. And again, it’s kind of the ability to spread out a bit, the ability to say not that here’s focused 800 words and we try not to offend anybody too much and we also, you know, it’s at some level don’t fully respect our readers because we don’t think that they have the capacity to take on some of the more sophisticated arguments. It’s great to get away from that. Now, discipline is necessary. God knows. I mean, I’ve actually written about this. You know, my wife is my editor and it really helps to have that first draft which tends to have too many charts and and too much everything and have her saying, you know, you’ll lose everybody there. But it is important. We’ll see how this ends. I mean, we’re worried. The word of the year like two years ago was Corey Doctorow’s “enshittification,” and we wonder what will happen to Substack as it grows and does it eventually start turning into Facebook 2.0 but for now it’s a great, tremendous communications medium.

HCR Yeah. Well, tools change over time for sure, but but let’s go then into the actual material because again, one of the things I saw right away when you started writing on Substack was your extraordinary growth um right out of the box and that I think reflects something about your discipline and about the way you approach your discipline — meaning the discipline of economics not your work discipline — and that is that you really are out there in public as I say quite calmly and with a sense of humor sort of saying, “Hey, listen. The kind of economics that I champion actually works.” And let’s get a little bit into that in this moment because after 40 to 50 years of supply side economics and the idea that what we really want to do is cut regulations and cut taxes, it feels like we’re seeing a return to the idea that in fact we should make investments in public infrastructure and we should make sure people carry their weight and we should make sure people have access to resources. Can you walk us through that a little bit?

PK Yeah. So I think of it kind of at a meta grand level as question of incentives versus resources. I mean ever since Reagan it’s been all about we have to give people incentives. We have to give rich people low tax rates so that they will go out there and do whatever wonderful things rich people do. And we have to make life tough for the poor so that they have an incentive to not be poor or whatever. Look, and incentives matter. There was a point when some people in in Sweden faced a 101% marginal tax rate — the more you earned the less you got and that was clearly too high even for a center-left guy like me. So incentives matter but they matter a lot less than legend would have it. And then there’s resources and there’s all kinds of levels of resource. I mean, one of the things that we really know because we happen to have kind of natural experiments from the roll out of public programs like Medicare or Medicaid and food stamps. We talk about what are the incentives for people to pull themselves up by their bootstraps. What about having the resources to make sure that their children have adequate healthcare and nutrition? And it turns out that there’s solid evidence that the returns just in terms of GDP, the returns of actually doing that are enormous. We spend way too little on children and if we spent more, we would get it all back and then some because it would be for the benefit of the whole economy. So that’s one thing. You can think of this as investing in human capital. I hate that phrase you know we we are not machines but healthcare nutrition but also steel and mortar are really really important. I mean America became America among other things because we were willing, we led the way in public education and we led the way in things like canals and railroads all of which was done by the public.

HCR I’m going to chase that down. I do want to tell you I promised a class of students once that the day would come that I would write a history of the transatlantic cable because that transatlantic cable becomes huge in the 1860s in terms of both domestic and foreign politics and the stories because it was such a big deal. The stories are great. So maybe someday you and I can collaborate at least on a letter about the transatlantic cable. I just I can’t tell you all the great stories about that, but what you’re saying here um is fascinating and I want to grab that material, but I also want to start with why don’t people get that? Why is there still this legend that somehow cutting taxes and cutting regulation as the Republicans have tended to do now for almost 50 years is the right way to run a country when in fact we can see, those of us who are older can see, our infrastructure degrading, really rigid class lines forming, trillions of dollars moving from the bottom 90% up to the top 1% why does that still persist?

PK OK, this is one of those things where the cynical explanation in terms of monetary interest holds. This is Upton Sinclair. “It’s difficult to get a man to understand something when his salary depends on his not understanding it.” Look at the budget that the Heritage Foundation has to promote this stuff compared with the budget that say the Economic Policy Institute, which is a left-leaning but scrupulously honest (which Heritage is very much not) think tank has. I mean there’s a lot of money that goes into promoting this stuff. There’s media organizations. If you think about who gets the benefit from this ideology that explains a lot of what goes on. Also if I can say, if there’s a public investment that goes bad then we have months and months of congressional hearings and scandal. I don’t know if people remember Solyndra, you know, the solar energy misfire which was maybe $500 million. That’s actually a drop in the bucket, you know, in the US economy. And Mark Zuckerberg has just given up on the metaverse. And it appears that Meta, the company formerly known as Facebook, just lit 77 billion on fire with this completely dumb concept. And we said, well, okay, you know, people make investment mistakes, but if the government had wasted $77 billion, we would never hear the end of it.

HCR Well, except in in in this moment, and maybe this speaks to what I was asking, in fact, the government is setting money on fire right and left, and it’s getting virtually no coverage at all.

PK Um, yeah, it’s setting money on fire, but in ways that that are sort of handing money over to private individuals as opposed to building stuff, right? Now, we haven’t actually given Argentina 40 billion, but we essentially put $40 billion of taxpayer money on the line and well, yeah, it’s not getting as many headlines as it should because, you know, considering all the other things we’re neglecting, considering the disaster relief that we’re not supplying to throw that money at a country in which really seriously ­— I’m a one world kind of guy, but we do not have a strategic interest in Argentina.

HCR So, let’s go into where you were, the argument that it makes sense for this country to invest in human capital, again, a phrase you don’t like, and also in infrastructure. And one of the places I’d like to start was with your emphasis there on children because one of the things that the governor of New Mexico has recently done was well, you can why don’t you walk us through this?

PK Well, I haven’t done enough homework on it, but we are getting basically universal pre-K and child care in New Mexico as I understand it.

HCR Right. And when she did that for children three and up, which got a huge amount of push back because New Mexico is one of the poorer states in the country, it lifted 120,000 children out of poverty.

PK Yeah, that’s one of those things: there are multiple reasons to invest in children and the most important is that’s a really critical stage. So making sure that they have adequate resources which you can’t do without making sure that their parents also have adequate resources but also children are cheap. I mean when we talk about health care I mean, people my age are really expensive. I’m okay but taking care of Americans in their 70s and 80s is extremely expensive and yet somehow or other we have a government program, Medicare which bears almost all of that expense. Um but children — a few thousand dollars spent on a child can make literally life-saving difference in their lives and then huge impact on who they are as adults. Investing in children is both, you know, the right thing to do and also an extremely cost-effective investment because taking care of kids is so cheap.

HCR So if it makes economic sense to be investing in children and investing in infrastructure, which we haven’t hit as much as I would like to, and maybe you can talk a little bit about Eisenhower if you would, but if that’s the case, one of the things that it seems to me fits into your um discussion of incentives and resources. You’ve also got the issue of ideology and perhaps morality because there are a number of places in which it makes sense for the United States to be investing that the radical right says we’re not going to do that because that’s rewarding behavior that we object to morally. Um you want to comment on that because I’m going somewhere with it.

PK Okay. So, first of all, most of the moral issues are fictions, right? There’s nobody in America sloughing off and living off welfare. That hasn’t been a possibility in America for decades now. It was never nearly as big a problem as people thought, but now that kind of welfare doesn’t exist. Everything we have now is is way short of allowing people to just be lazy. But the myth persists and just this general notion that why should I be taxed to take care of other people? Am I my brother’s keeper is a very strong one in America.

And maybe I’ll take this in another direction. Think about how America has a history of really ambitious grand public infrastructure projects. I mean 200 years ago the Eerie Canal was completed. I was doing the numbers: the Erie Canal was about $7 million which doesn’t sound like much but you have to bear in mind you know that was dollars then and it turns out to have been on the order of 1% of US GDP. So it was a big infrastructure project, roughly comparable to the interstate highway system, roughly comparable to Biden’s attempted green energy policies. We had the Panama Canal which wasn’t in the United States but was clearly for us. We had the interstate highway system. The thing that strikes me when I look at that is nobody on any of those occasions seems to have said oh is this an appropriate role for government or if we’re going to do this surely it must be a public private partnership. It must be a private corporation. Somehow or other the um the capitalists have to be in on this and it must end up in private ownership. We just went ahead and built the stuff and that seems to be something we can’t do anymore.

HCR Well, can’t, that’s an important word right there because in fact when Abraham Lincoln is trying to figure out what the role of the government is. Um because of course actually the Erie Canal was a state project rather than a federal project because of the opposition to it. But one of the things it did, of course, is without that Erie Canal connecting the Midwest to the Atlantic through the United States through New York is essentially the middle of the country would almost certainly have broken off and joined Canada because it was using the St. Lawrence River to get to the Atlantic.

So the Erie Canal gave us New York, gave us New York City. It also retained the middle of the country which probably would have gone all the way down to Louisiana and created an entirely different southern uh I’m sorry western part of the country. It also gave us all kinds of new technology because when they started that Erie canal they literally used shovels and they had to figure out how to use new scrapers and all kinds of things to build the thing. But Abraham Lincoln takes a look at the role of government because it’s a real question at the time when the elite southern enslavers are saying the government can do nothing but protect property. And what he says after watching his own town be destroyed because they couldn’t dredge the Sangaman River is he says you know the government’s role is to do for people what they cannot do for themselves and need to do to develop the economy and live uh a productive life. And that’s something that Americans have embraced right up until the 1980s. And that’s why I’m interested in ideology.

PK Yeah. Well, this question of why that great ideological shift. Um, and I, you know, I am not a historian. But there were a couple of things that happened. One was that, uh, we do need to talk, as with everything in America, race is an issue. Before the Civil Rights Act the Southern United States which was poor, which benefited a lot from public investments —Tennessee Valley Authority, the Army Corps of Engineers — was part of the coalition in favor of public investments as long as they didn’t help black people. With the Civil Rights Act, the South switches sides and so all of a sudden a key part of the New Deal coalition becomes anti-government. So, that’s one thing. Also, the economic troubles of the 70s, the stagflation of the 70s were tremendously mythologized. I mean the 70s were a bad time but actually the aftermath of the great financial crisis was much worse. But the 70s became an object lesson and it was supposed to be that the government was too big and we need we need more conservative ideology. And no doubt other forces out there but what really is remarkable is that the right got smarter. I mean they invested in intellectual infrastructure. This whole network of right-wing, as I say, Potemkin think tanks. They look like think tanks but they’re actually propaganda arms but did a lot to disseminate this ideology.

HCR Oh that’s really interesting thinking of them as an infrastructure system which was of course what the Powell memo set out in 1971 the need for that kind of infrastructure. Can we go back a second to what you just said about the 1970s about which there is still an enormous amount of mythology being not nearly as bad as the aftermath of the financial crisis? Can you walk us through that? Cuz honestly, Dr. Kugman, I’ve never really heard anybody lay that out. Although, of course, I’m very aware of the fact that the Reagan uh rhetoric did not match the reality of what the Carter White House was doing.

PK Yeah. So, you know, when when Reagan asked, you know, are you better off now than you were four years ago, based upon real median family income, the actual answer was yes. You know, the ‘70s was certainly troubled and it certainly was very disorienting to experience the inflation and we did have a very nasty recession in 1975 and then another very nasty recession at the beginning of the 80s basically to wring inflation out of the system. But if you actually look at US economic performance in the 70s, it wasn’t that terrible. It wasn’t great, but it didn’t get actually didn’t get all that much better until the Clinton years. So there’s really the 70s as perceived — in a way the right got to write the history books and sorry, but you know international economics is my thing and one of the things that always has driven me crazy is that in Germany everybody remembers the hyperinflation of 1923 and nobody remembers the extremely terrible German depression of 1930-31 which came about because the German government at the time was obsessed with maintaining the gold standard and they ended up delivering the country over to you know who. So history as remembered can be quite different from what you find if you actually go and look at it. I shouldn’t be telling you that, but ..

HCR Well, but no, but this is exactly I mean, interestingly enough, um you and I have sort of gotten back full circle to where we started, which is how you correct the record in real time when there is, as you say, an infrastructure designed to make sure that record is so distorted that people vote away their own interests. And the overlap there between economics and politics is almost a circle, right? That we know that people care deeply about their economic success or or prosperity or at least their ability to achieve those things. And yet they we also know that certainly through institutions like cable news they are pushed toward ideological positions that actually undermine that economic system. So how do you foresee or do you think about how we course correct in real time now? Um, especially in a time that is so unsettled economically in this country because of Trump and his lackeys putting in place a system that’s tearing up the economy that they went into office enjoying.

PK Yeah. I mean, what I wrote the other day was, you know, Trump would be in way better shape politically if he had just not done much. If he had just continued Biden policies and made a few cosmetic changes and talked about what a great job he was doing instead of imposing massive tariffs and gutting the government with DOGE and all of the things he’s done, probably inflation would be still on a downward trajectory. Probably the job market would be looking substantially better. We did have a burst of inflation in 2021 to 2023 which was a global phenomenon, but you know people blame Biden, and it would be receding into the past now and people would have gotten accustomed to prices around 20 to 25% higher than they were but okay that’s the new normal. Instead Trump just keeps on creating chaos.

On getting the story out. I have to say one of the great frustrations of having turned into — you know I spent the first 25 years of my professional life writing incomprehensible papers for 3,000 readers full of Greek letters and funny diagrams and then got into writing for the general public. And it’s quite humbling because of the difficulty of actually getting stuff across. I mean I hope that I’m a decent writer for an economist but there’s still — I stole the phrase from other people — but zombie ideas out there.

By the way it’s both left and right. I mean it’s the number of people that I encountered who are sure that we’ve had an economic recovery since the pandemic that only benefited the rich. Um, and I’m getting that on, you know, uh, from sort of a left side of my commenters. Which is just not true. The Biden years were actually a very good period for low paid workers in America. But all you can do is keep on hacking away at that coal face. I mean, there are no good, no easy answers.

HCR That’s a great it’s a great economic image, hacking away at the coalface.

PK Um, nobody does that any more, by the way. We blow the tops off mountains instead.

HCR But anyway, so the reason I ask that is in part because of, as you say, the zombie ideas that Democrats are bad for the economy, which by the way, I would attribute to the 1860s. You know, the immediate aftermath of the Civil War when the Democrats, especially those in the North, wanted to change the terms of the bonds that the US had issued during the Civil War. And you know, the Republicans jumped all over that and said they’re going to destroy our finances and so on. It’s one of the reasons that’s written into the reconstruction amendments. I mean, it just hasn’t been true uh for the entire 20th century. But the reason I point to those kinds of ideas is because one of the things that I wonder about in this moment that we’re in where all economic bets are off is the degree to which we might be looking like the late uh 1920s when you know in 1928 uh Herbert Hoover romped to a landslide victory and anybody who was looking at the economy and at the country was like the Republicans are going to be in charge forever. And by 32, the entire country has turned on a dime and said, “No, we need investment. We need protection from employers. We need a social safety net.” And that brief burst set the terms of the American economy for the next 75 years.

PK Yeah. And one of the things that when you do look at this, I mean, the history of the New Deal, um, you know, really full-on New Deal policies were not in effect for very long. um and FDR was able to do kind of a second round during the war and the positive shadow of those policies lasted a long time. I mean I grew up in a fairly middle class country. I had always assumed I think that that that we had gradually evolved to that point that we were you know very unequal in the Gilded Age and gradually became a relatively middle class society and that’s not true. The middle class society with relatively decent wages for ordinary workers and relatively high taxes on the rich all happened during about five years uh during World War II and then persisted for about another 30 years. But it was one of those transformative moments. I was kind of hoping that after 2008 that we could have another one but some combination of the oburacy of our political system and if I might say the excessive caution of Barack Obama meant that we kind of missed that moment.

HCR Well, I wonder about that caution now because there are many people for whom, you know, having watched Trump burn down many things that they care deeply about. They’re saying, you know, we why not take out uh, you know, a new system for a spin? And one of the things that institutionalists like me talk about is remembering that we do have those institutions on the books. We just are not honoring them any longer.

PK That’s right. I will offer a positive thought: Actually I was wrong. I thought that between the partisanship of people’s beliefs about the economy and the fact that the inflation spurt was receding into the past that Trump would get kind of a extended honeymoon on economic policy, that people would believe that he was making things better even though he wasn’t. But that honeymoon lasted, you know, like two weeks. It’s just astonishing how quickly people, particularly, you know, a lot of the people who voted in 2024, a lot of Latino voters who basically thought they were voting for lower grocery prices have really said um my god what did we do? And assuming that we hang on to some version of democracy that’s an opportunity.

HCR It is. I can’t tell you how much I’ve enjoyed this and I would love to do it more. Um I I think that one of the things that that I like to do is to demystify politics and I think you are demystifying economics in really important ways. But the thing that jumps out to me after this conversation is uh not so much the 1920s as the 1890s when after the 1880s when there was real power behind the sort of vision that became the robber barons . In about 1889 a number of Americans especially those in the western plains sort of woke up and said you know we got to explain to people how railroad rebates work how taxes work how tariffs work and they made that information easily available to people through newspapers that now don’t exist. I’m sorry to say they were so ephemeral we don’t even have copies of them. But what they did is they informed a lot of Americans about the way the economy worked and therefore about how society worked. And that seems to me to be an important ideological and now as you say infrastructure development in our country that you and I hope I am very much a part of which feels quite old and new at the same time.

PK Yeah, I mean getting the word out there can be enormously important. There’s a reason why samizdat was so important in the late Soviet Union and so is just getting a truth that if you like the oligarchs don’t want you to hear out there. Um there’s no guarantee that it works but it’s the best chance we have.

HCR Well, with that I’m going to let you go. We went a minute over, I guess. So, uh, thank you so much for being here. I hope you have a great holiday season and, um, and I hope to do this again soon. Let’s do it again.

PK Thank you so much. Take care.

Pluribus training data

In advocating for LLMs as useful and important technology despite how they're trained I'm beginning to feel a little bit like John Cena in Pluribus.

Pluribus spoiler (episode 6)
Given our druthers, would we choose to consume HDP? No. Throughout history, most cultures, though not all, have taken a dim view of anthropophagy. Honestly, we're not that keen on it ourselves. But we're left with little choice.

Tags: ai-ethics, generative-ai, tv, training-data, ai, llms

Quoting Boris Cherny

A year ago, Claude struggled to generate bash commands without escaping issues. It worked for seconds or minutes at a time. We saw early signs that it may become broadly useful for coding one day.

Fast forward to today. In the last thirty days, I landed 259 PRs -- 497 commits, 40k lines added, 38k lines removed. Every single line was written by Claude Code + Opus 4.5.

Boris Cherny, creator of Claude Code

Tags: anthropic, claude, ai, claude-code, llms, coding-agents, ai-assisted-programming, generative-ai

textarea.my on GitHub

textarea.my on GitHub

Anton Medvedev built textarea.my, which he describes as:

A minimalist text editor that lives entirely in your browser and stores everything in the URL hash.

It's ~160 lines of HTML, CSS and JavaScript and it's worth reading the whole thing. I picked up a bunch of neat tricks from this!

  • <article contenteditable="plaintext-only"> - I did not know about the plaintext-only value, supported across all the modern browsers.
  • It uses new CompressionStream('deflate-raw') to compress the editor state so it can fit in a shorter fragment URL.
  • It has a neat custom save option which triggers if you hit ((e.metaKey || e.ctrlKey) && e.key === 's') - on browsers that support it (mainly Chrome variants) this uses window.showSaveFilePicker(), other browsers get a straight download - in both cases generated using URL.createObjectURL(new Blob([html], {type: 'text/html'}))

The debounce() function it uses deserves a special note:

function debounce(ms, fn) {
  let timer
  return (...args) => {
    clearTimeout(timer)
    timer = setTimeout(() => fn(...args), ms)
  }
}

That's really elegant. The goal of debounce(ms, fn) is to take a function and a timeout (e.g. 100ms) and ensure that the function runs at most once every 100ms.

This one works using a closure variable timer to capture the setTimeout time ID. On subsequent calls that timer is cancelled and a new one is created - so if you call the function five times in quick succession it will execute just once, 100ms after the last of that sequence of calls.

Via lobste.rs

Tags: javascript

How uv got so fast

How uv got so fast

Andrew Nesbitt provides an insightful teardown of why uv is so much faster than pip. It's not nearly as simple as just "they rewrote it in Rust" - uv gets to skip a huge amount of Python packaging history (which pip needs to implement for backwards compatibility) and benefits enormously from work over recent years that makes it possible to resolve dependencies across most packages without having to execute the code in setup.py using a Python interpreter.

Two notes that caught my eye that I hadn't understood before:

HTTP range requests for metadata. Wheel files are zip archives, and zip archives put their file listing at the end. uv tries PEP 658 metadata first, falls back to HTTP range requests for the zip central directory, then full wheel download, then building from source. Each step is slower and riskier. The design makes the fast path cover 99% of cases. None of this requires Rust.

[...]

Compact version representation. uv packs versions into u64 integers where possible, making comparison and hashing fast. Over 90% of versions fit in one u64. This is micro-optimization that compounds across millions of comparisons.

I wanted to learn more about these tricks, so I fired up an asynchronous research task and told it to checkout the astral-sh/uv repo, find the Rust code for both of those features and try porting it to Python to help me understand how it works.

Here's the report that it wrote for me, the prompts I used and the Claude Code transcript.

You can try the script it wrote for extracting metadata from a wheel using HTTP range requests like this:

uv run --with httpx https://raw.githubusercontent.com/simonw/research/refs/heads/main/http-range-wheel-metadata/wheel_metadata.py https://files.pythonhosted.org/packages/8b/04/ef95b67e1ff59c080b2effd1a9a96984d6953f667c91dfe9d77c838fc956/playwright-1.57.0-py3-none-macosx_11_0_arm64.whl -v

The Playwright wheel there is ~40MB. Adding -v at the end causes the script to spit out verbose details of how it fetched the data - which looks like this.

Key extract from that output:

[1] HEAD request to get file size...
    File size: 40,775,575 bytes
[2] Fetching last 16,384 bytes (EOCD + central directory)...
    Received 16,384 bytes
[3] Parsed EOCD:
    Central directory offset: 40,731,572
    Central directory size: 43,981
    Total entries: 453
[4] Fetching complete central directory...
    ...
[6] Found METADATA: playwright-1.57.0.dist-info/METADATA
    Offset: 40,706,744
    Compressed size: 1,286
    Compression method: 8
[7] Fetching METADATA content (2,376 bytes)...
[8] Decompressed METADATA: 3,453 bytes

Total bytes fetched: 18,760 / 40,775,575 (100.0% savings)

The section of the report on compact version representation is interesting too. Here's how it illustrates sorting version numbers correctly based on their custom u64 representation:

Sorted order (by integer comparison of packed u64):
  1.0.0a1 (repr=0x0001000000200001)
  1.0.0b1 (repr=0x0001000000300001)
  1.0.0rc1 (repr=0x0001000000400001)
  1.0.0 (repr=0x0001000000500000)
  1.0.0.post1 (repr=0x0001000000700001)
  1.0.1 (repr=0x0001000100500000)
  2.0.0.dev1 (repr=0x0002000000100001)
  2.0.0 (repr=0x0002000000500000)

Tags: performance, python, rust, uv

Links 12/27/25

Links for you. Science:

Appointment of controversial FDA official rocking agency like “an atom bomb,” scientists there say
Pediatricians reject CDC advisers’ guidance, plan to continue vaccinating all newborns against hepatitis B
What do stingrays actually eat? New study reveals some only prefer a single type of prawn
Quinoline tag helps vancomycin breach gram-negative defenses
The dispersal of domestic cats from North Africa to Europe around 2000 years ago
Do Africa’s Mass Animal Migrations Extend Into Deep Time?

Other:

Why do the Republicans lie so much about Obamacare?
Impeach and Remove the Bastards. A scenario for 2027.
Donald Trump is losing. Seven conclusions as 2025 winds down.
The New York Times Spread Dangerous Health Disinformation, Erased It, Hopes You Don’t Notice
Washington Post readers revolt against Bezos’s editorial board
National Trust sues to stop Trump’s ballroom construction
Trump Explodes Over Cratering Polls as GOP Losses Worsen
Even In a Populist Moment, Democrats Are Split on the Problem of Corporate Power
NYC congestion pricing cuts air pollution by 22% in Manhattan
Reciprocity
Denied Federal Disaster Aid, a Town in Trump Country Feels Forgotten
Rich New Yorkers Threaten to Leave. Then They Find Out How Hard That Is.
DeWine says Acton should not be held responsible for Ohio’s COVID-19 response (interesting; it’s clear DeWine doesn’t like Vivek Ramaswamy)
‘Cadillac Desert’ Reconsidered
The war on disinformation is a losing battle
The Pardon That Represents the New Era of Corruption
Trump’s next renovation target: DC.’s golf courses
How a US Citizen Was Scanned With ICE’s Facial Recognition Tech
The Hit Hollywood Didn’t Want. Ryan Coogler’s bloodsucker blockbuster is all about Black creative freedom. No wonder the industry saw it as a threat.
From booze to black belts: Virginia’s drunk raccoon suspected in karate shop break-in
Peter Greene, Actor In ‘The Mask’ And ‘Pulp Fiction,’ Dead At 60
Here’s What It Takes for a Democrat to Win in Texas
Social posts, messages reveal alleged National Guard shooter’s turmoil
Sleepy Donald Snoozes, America Loses
Blowback over Charlie Kirk posts prompts employers’ social media crackdown
The Supreme Court v. My Mother
He leaned right in high school. Now he’s the Trump-trolling Portland Chicken. The protests against ICE gave Jack Dickinson a taste of national celebrity, but more important they gave him a community he’d never had before.
White Farmers Are Getting a Taste of Their Own Medicine
Park Service orders changes to staff ratings, a move experts call illegal
Trump Is Dragging Republicans to Crushing Defeat After Crushing Defeat

Saturday 27 December 1662

Up, and while I am dressing I sent for my boy’s brother, William, that lives in town here as a groom, to whom and their sister Jane I told my resolution to keep the boy no longer. So upon the whole they desire to have him stay a week longer, and then he shall go. So to the office, and there Mr. Coventry and I sat till noon, and then I stept to the Exchange, and so home to dinner, and after dinner with my wife to the Duke’s Theatre, and saw the second part of “Rhodes,” done with the new Roxalana; which do it rather better in all respects for person, voice, and judgment, then the first Roxalana. Home with great content with my wife, not so well pleased with the company at the house to-day, which was full of citizens, there hardly being a gentleman or woman in the house; a couple of pretty ladies by us that made sport in it, being jostled and crowded by prentices. So home, and I to my study making up my monthly accounts, which is now fallen again to 630l. or thereabouts, which not long since was 680l., at which I am sorry, but I trust in God I shall get it up again, and in the meantime will live sparingly. So home to supper and to bed.

Read the annotations

The Macroeconomic Effects of Tariffs: Evidence From U.S. Historical Data

We study the macroeconomic effects of tariff policy using U.S. historical data from 1840–2024. We construct a narrative series of plausibly exogenous tariff changes based on major legislative actions, multilateral negotiations, and temporary surcharges– and use it as an instrument to identify a structural tariff shock. Tariff increases are consistently contractionary: imports fall sharply, exports decline with a lag, and output and manufacturing activity drop persistently. The shock transmits through both supply and demand channels. Prices rise in the full sample but fall post-WWII, a pattern consistent with changes in the monetary policy response and with stronger international retaliation and reciprocity in the modern trade regime.

That is from a new paper by Tamar den Besten and Diego R. Känzig.  These effects of course do take some while to appear.

The post The Macroeconomic Effects of Tariffs: Evidence From U.S. Historical Data appeared first on Marginal REVOLUTION.

       

Comments

Related Stories

 

Real Estate Newsletter Articles this Week: Economic Questions for 2026

At the Calculated Risk Real Estate Newsletter this week:

Fannie Freddie Serious Deliquency RateClick on graph for larger image.

Fannie Mae Multi-Family Delinquency Rate Almost to Housing Bust High

Question #8 for 2026: How much will Residential investment change in 2026? How about housing starts and new home sales in 2026?

Question #9 for 2026: What will happen with house prices in 2026?

Question #10 for 2026: Will inventory increase further in 2026?

Final Look at Housing Markets in November and a Look Ahead to December Sales

This is usually published 4 to 6 times a week and provides more in-depth analysis of the housing market.

More Saturday assorted links

1. Turning a pdf into a short class.

2. Those mid-Atlantics love to fly to Tokyo.  Mexico City not good enough for you?

3. Major AI researchers are rapidly turning more bullish for instance here is Roon.  And here is Andrej.

4. The boom in Mexican trade (WSJ).

5. Thailand says its bombings in Cambodia are targeting the scam industry (NYT).  Here is some commentary, the whole matter is deeply weird.  Consider this a new take on Clausewitz!

6. Good Mike Pesca piece on The Free Press.

The post More Saturday assorted links appeared first on Marginal REVOLUTION.

       

Comments

 

Launch pad issue delays again Falcon 9 launch of Italian Earth observation satellite

Update Dec. 28, 8 p.m. EST (0100 UTC): SpaceX has announced a further delay. No new launch date set.
Update Dec. 27, 8:56 p.m. EST (0156 UTC): SpaceX scrubbed the launch Saturday due to a ground issue, targeting Sunday, Dec. 28.

A Falcon 9 rocket on the launch pad at Vandenberg Space Force Base for the COSMO-SkyMed Second Generation FM-3 mission. Image: SpaceX.

SpaceX delayed its final planned Falcon 9 flight of the year for a second night running due to a launch pad issue at Vandenberg Space Force Base in California.

“To allow more time to perform ground system checkouts, standing down from today’s launch of the COSMO-SkyMed Second Generation mission,” SpaceX said in a social media post. “A new target launch date will be shared once confirmed.”

FAA flight restrictions indicate the launch had slipped to a least Tuesday evening. The originally planned Saturday night liftoff from Space Launch Complex 4E was scrubbed due to a hydraulic problem with the launch pad’s hold-down clamps.

The Cosmo-SkyMed Second Generation Flight Model 3 (CSG-FM3) satellite nestled in the rocket’s payload fairing is an Earth observation satellite that serves dual purposes for the civilian and military sectors of the Italian government.

Spaceflight Now will have live coverage beginning about 30 minutes prior to liftoff.

SpaceX will launch the mission on Falcon 9 booster tail number, 1081. This will be its 21st flight after launching missions including Crew-7, PACE and TRACERS, all for NASA.

Nearly 8.5 minutes after liftoff, B1081 will target a touchdown at Landing Zone 4. If successful, this will be the 31st landing at that site in total and the 554th Falcon booster landing to date.

The CSG-FM3 satellite will be deployed roughly 17 minutes after leaving the launch pad.

An artist’s rendering of the mission patch for the Cosmo-SkyMed Second Generation Flight Model 3 mission. Graphic: SpaceX

CSG-FM3 is the third in this series of Earth observation satellites managed both by the Italian Space Agency and the Ministry of Defense.

The first of these satellites launched in January 2021 on a Soyuz rocket from French Guiana and the second a year later on a Falcon 9 rocket from Cape Canaveral Space Force Station.

A total of four satellites, manufactured by Thales Alenia Space, are planned for constellation.

The spacecraft are equipped with synthetic aperture radar (SAR) that operates in the X-band, which can penetrate clouds and capture imagery in darkness. They operate in a Sun-synchronous polar orbit inclined at 97.87 degrees to the equator. The satellite’s data is made publicly available through the European Space Agency’s (ESA) Third Party Missions Programme.

“Cosmo-SkyMed Second Generation’s purpose is to monitor the Earth for the sake of emergency prevention, strategy, scientific and commercial purposes, providing data on a global scale to support a variety of applications among which risk management, cartography, forest & environment protection, natural resources exploration, land management, defense and security, maritime surveillance, food & agriculture management,” ESA said in a statement.

The Cosmo-SkyMed Second Generation Flight Model 3 satellite undergoes testing ahead of its launch on a SpaceX Falcon 9 rocket. Image: Ministry of Defense

NKR in the NYT

 Today's NYT has a story on the country's largest kidney exchange network, a private company with opaque finances called National Kidney Registry (NKR). The story also raises questions about some of the promises NKR makes through a voucher program.

 How One Father Created an Organ Empire.  The National Kidney Registry has matched thousands of kidney donors with recipients. It has also paid millions of dollars to a company owned by its founder.    By  Danielle Ivory, Grace Ashford and Robert Gebeloff 

 "Since its founding, N.K.R. has enabled nearly 12,000 such swaps, called paired donations, far more than any other public or private program. The organization’s focus on technology and efficiency has jolted a sluggish system, many health experts said.

But at the same time, N.K.R. has created a multimillion-dollar business with considerable power over the flow of thousands of organs, according to interviews with more than 100 people in transplant medicine and a review of business records. Many doctors told The Times the stakes of these lifesaving exchanges were too high to be managed by a private company with little government oversight.

...

"The organization was a nonprofit for more than a decade, but during that period paid at least $39 million for technology and other services to a company owned by Mr. Hil, charity filings show. In 2023, N.K.R.’s commercial operations were sold to a new for-profit company owned by Mr. Hil, making its finances much more opaque. 

...

“It’s basically a money transfer,” said Dr. Lloyd Ratner, a surgeon at Columbia University who performed the second-ever paired transplant in the country. He said the hospital had parted ways with N.K.R.

...

"One of N.K.R.’s most innovative policies, many doctors said, is known as voucher donation: Donors can choose to give their kidneys immediately, in exchange for organ vouchers their loved ones redeem later.

"This arrangement has helped N.K.R. expand its pool. But vouchers add risk for donors giving on behalf of hard-to-match patients. They might go through surgery months or even years before their loved ones get a match. Matches are especially unlikely, doctors said, for “very highly sensitized” patients who carry antibodies likely to reject a transplant.

...

" Doctors told The Times that they knew of some patients who became too sick or died before they redeemed their vouchers."

####### 

 

Not mentioned in the article is the Alliance for Paired Kidney Donation (APKD) a smaller, older, highly ethical non-profit kidney exchange network founded by the transplant surgeon Mike Rees (with whom I often work). 

Schedule for Week of December 28, 2025

Happy New Year! Wishing you all the best in 2026.

The key economic report this week is the Case-Shiller House Price Index.

----- Monday, December 29th -----

10:00 AM: Pending Home Sales Index for November. The consensus is for a 1.0% increase in the index.

10:30 AM: Dallas Fed Survey of Manufacturing Activity for December. This is the last of regional manufacturing surveys for December.

----- Tuesday, December 30th -----

9:00 AM: FHFA House Price Index for October. This was originally a GSE only repeat sales, however there is also an expanded index. 

Case-Shiller House Prices Indices9:00 AM ET: S&P/Case-Shiller House Price Index for October.

This graph shows graph shows the Year over year change in the seasonally adjusted National Index, Composite 10 and Composite 20 indexes through the most recent report (the Composite 20 was started in January 2000).

The consensus is for an 1.1% year-over-year increase in the Composite 20 index for October.

9:45 AM: Chicago Purchasing Managers Index for December.

2:00 PM: FOMC Minutes, Meeting of December 9-10

----- Wednesday, December 31st -----

8:30 AM: The initial weekly unemployment claims report will be released. 

----- Thursday, January 1st -----

The NYSE and the NASDAQ will be closed in observance of the New Year’s Day holiday

----- Friday, January 2nd -----

No major economic releases scheduled.

Saturday assorted links

1. Some observations on immigration and wage effects.  The spread of immigrants to incipient high-wage areas may be one rise why the geographic mobility of resident Americans has gone down.

2. No good explanation for why more boys than girls are born after wars.

3. Slides on ticket resale, by Eric Budish.

4. Steven Durlauf recommends five 2025 books in economics.

5. The ongoing rise of YouTube (FT).  “The creator economy advertising market is expected to reach $37bn this year, up 26 per cent from a year ago, according to the estimates by the Interactive Advertising Bureau. The group expects the market to rise another 18 per cent in 2026.”

The post Saturday assorted links appeared first on Marginal REVOLUTION.

       

Comments

 

A model of girl happiness, a compensatory-use study

A statistical model was used to examine these relationships simultaneously by predicting the likelihood that a girl reports being very happy.

The model includes socioeconomic status, parent–child communication, screen-time limits, and an interaction between limits and communication.

The results reinforce the patterns in the figures. Parent–child communication dominates the model. Girls who report strong communication are about three to four times more likely to report being very happy than those who report none. Socioeconomic status shows a smaller independent association. Screen-time limits contribute little on their own and matter modestly only when strong communication is already present.

If phones were the central problem, limits would emerge as a robust solution across contexts. They do not…

What the compensatory-use model rejects is a stronger claim. It rejects the idea that smartphone exposure itself is the primary driver of youth distress and that prohibition is therefore the central remedy. If that causal story were correct, limits would show large and consistent benefits across households, including among those with the weakest communication and highest distress. They do not.

And to close:

The most reliable way to improve youth well-being is to meet individual needs through connection instead of control.

That work depends on cooperation, not compliance.

Here is the full essay by Owen Kellogg, of course this is only a single study.

The post A model of girl happiness, a compensatory-use study appeared first on Marginal REVOLUTION.

       

Comments

Related Stories

 

Jewels don't shine this bright -- only stars do. Jewels don't shine this bright -- only stars do.


Powerful Winter Storm from the Upper Midwest into the Northeast; Severe Thunderstorms in the Midwest and Ohio Valley