Matt (@mplemay97) profile picture
Joined November 2020
Photo by Matt (@mplemay97)Photo by Matt (@mplemay97)
I got tired of writing pseudo-SQL in ORMs like SQLAlchemy. I'd think in SQL, translate it into method chains, then hope it compiled back to what I meant. So I built rowx: real SQL, typed rows, and Postgres checks every query before you ship. github.com/mplemay/rowx
1
1
2
184
Postgres in Python always meant setting up Docker first, for dev, tests and CI. rowx is my library for plain SQL in Python with typed rows, checked against Postgres before you ship. Now it runs Postgres 18 inside Python. No Docker. github.com/mplemay/rowx
1
1
3
566
Tests: with the rowx pytest plugin, each test boots its own database from a snapshot of your migrated schema, so tests never share rows and there's nothing to clean up. About 0.4 s per test.
1
14
Limits: it's for dev, checks and tests, not production. One session at a time, no query cancellation or statement_timeout, no TLS. macOS arm64 and Linux x86_64/aarch64. It removes the setup, not the time: a real server is still faster.
12
What it isn't: Postgres only, Python 3.14+ (it's built on PEP 750 t-strings), async only, no ORM and no generated query functions. If you want relationships and a unit of work, keep SQLAlchemy.
1
1
20
Wouldn’t be surprised if codex eventually becomes the foundation for @OpenAI. Atlas seems stalled. The @ChatGPTapp momentum has slowed. New Excel/PowerPoint integrations increasingly look like they’re being built on Codex primitives instead.
2
33
Meanwhile the Codex app keeps quietly turning into a general-purpose agent platform: - “Everyday use” mode - Built-in browser - Computer use - Skills - Automations Feels like all roads are converging on a codex foundation
29
Earlier this week on Spaces, someone asked me about how poker has informed my view of business risk. In short, profoundly. Poker is a fundamentally defensive game when played at an elite level. A defensive game doesn’t mean you can’t generate huge profits. In fact, poker can yield enormous profits but the way it happens is unintuitive to most. Maximum profits in poker, and other defensive games for that matter, occur when your error rate is less than your opponent’s error rate. So their errors - your errors = your profit. If you minimize your errors, you maximize your potential profit. This simple formula forces you to learn that a lot of the time, the biggest enemy of your success is you. By managing yourself in a predictable, reliable way, you give yourself time for your opponent to self-own themselves. This is true in poker, but it is even more true in business. As an example, suppose you have an R&D budget and you’re trying to build a product. Once you have some initial product market fit, the most important thing to do is to allocate your remaining resources in a thoughtful way. You should have many small bets that extend the product area. If any one of these fail, it won’t be life-threatening and you will have learned something that will reduce your future error rate. These small bets can then ladder into a few medium-sized bets which ultimately lead to a few large bets. In such a process, you’ve not only taken many bets, of various sizes, you’ve also done this over a long quantum of time. In that same time, a less organized competitor will eventually do something wrong/stupid/both. Said differently, you’ve de-risked your error rate in a thoughtful methodical way and have evidence that things are working while giving your competitor enough time to flail and eventually fail. In so many companies that I’ve invested in and companies that I’ve worked for, I’ve seen enormous bets being made too early, and mostly out of ego. These bets are rarely rooted in data and most have eventually been rolled back. The second thing to understand in poker is that when you make many small bets, you can play more hands - and some of these can lead to huge pots. Some of the biggest pots I’ve won have been with 2-2 and 8-6 suited while some of the biggest pots I’ve lost are with A-A! In business, as in poker, you have to make unconventional bets if you want to win huge pots. And the no-brainer bets are rarely big winners and can sometimes come back and sting you. So as an investor, by keeping my bets small I keep my errors small while giving myself a chance to win big by doubling and tripling down at the right time.
156
416
77
3,494
720,546
Prediction - in 10-20 years humans will be prescribed dialysis to remove forever chemicals and micro-plastics from their body.
1
42
Still waiting for someone to explain how this is different than Iran’s tactics to guarantee the outcome of elections. Not a single state GOP party has moved to make Trump the only candidate on the ballot. Utter hypocrisy.
Four state Democratic parties have moved to make Biden the only candidate on the Democratic primary ballot for 2024 Florida Massachusetts North Carolina Tennessee
941
1,870
230
10,144
1,917,458
I wrote a post on score-based diffusions!🌟 kidger.site/thoughts/score-b… With a twist: the post is only a single paragraph long! (+ bookends and footnotes) There's endless complicated "explainer" articles out there. But this is the concise intuition I've been giving in person. WDYT?
5
25
1
155