foldU
Re:AI could be the end of the digital wave, not the next big thing
on Monday April 13, 2026 @10:35AM (#47752613)
This sounds like a really unpleasant shopping experience to me.
Re:The Shape of Inequalities
on Thursday March 19, 2026 @01:58PM (#47443321)
The geometric representation of AM/GM is very cool, but the first animation seems wrong to me, it should be varying the value of `b`, not the location of the circle, for it to make sense, no?
Re:Why TigerBeetle is the most interesting database in the world
on Thursday October 02, 2025 @10:04AM (#45449743)
I don’t mean to suggest it’s not sleazy—I think it’s sleazy by default. VC writing is not to be trusted.
Re:Why TigerBeetle is the most interesting database in the world
on Wednesday October 01, 2025 @02:51PM (#45441667)
I don't think a post on a VC blog of all places should be considered "journalism"
Re:Caching is an Abstraction, not an Optimization
on Thursday July 03, 2025 @03:40PM (#44458485)
This is correct, I appreciate you for putting it so
coherently :). I think I didn’t make it clear enough in the piece that I’m coming from a stance of fast access being table stakes, and the question being about how that’s accomplished.
Re:Curtis Yarvin's Plot Against America
on Wednesday June 04, 2025 @04:16PM (#44185008)
he addresses this, you simply get airline pilots to pick them
How to Understand That Jepsen Report
Automating the Blue Prince Parlor Puzzle
Propositional Parlor Puzzle
Darts, Dice, and Coins: Sampling from a Discrete Distribution (2011)
Re:It's Time to Stop Building KV Databases
on Monday March 24, 2025 @10:43PM (#43467657)
Yes, it’s good
It's Time to Stop Building KV Databases
Thoughts on DuckDB's Grammar Patching Thing
Re:Fine! I'll Play with Skiplists
on Sunday December 01, 2024 @08:48AM (#42288446)
whoops! thank you!
Fine! I'll Play with Skiplists
Fine! I'll Play with Skiplists
Re:Adventures in Probability
on Monday November 11, 2024 @09:29AM (#42107354)
(author of OP) That post of yours was actually what got me tooling around with this stuff again :) it's a really excellent one
Re:Probability-Generating Functions
on Thursday October 31, 2024 @10:25AM (#42007233)
You also don't really have to worry about convergence, since these are formal power series.
Integrity Constraints and the Relational Derivative
TPC-See?
A Charming Algorithm for Count-Distinct
A Card Counting Trick
Re:Not all Graphs are Trees
on Wednesday May 01, 2024 @10:52PM (#40232257)
More deserves to be written on the ILP idea, I haven't actually tried to make it work but it seems to me like the only real direction to optimize ("optimize" used in the mathematical sense, rather than the programming sense) queries that you can't just exploit the principle of optimality on (see this earlier article I wrote [1] for a bit more exposition). I think maybe some of the egg [2] people have experimented with this.
Speaking from experience, there's lots of rewrites you'd want to do in a query optimizer that having access to efficient DAG-shaped query plans would make tenable, but as a specific example they are an important part of doing full subquery decorrelation [3].
[1] https://buttondown.email/jaffray/archive/why-are-query-plans...
[2] https://egraphs-good.github.io/
[3] https://www.scattered-thoughts.net/writing/materialize-decor...
My First Distributed System
A Sniff Test for Some Query Optimizers
Re:The Curious Case of the Aggregation Query
on Tuesday December 05, 2023 @11:59AM (#38533507)
Ah my apologies, I wasn't familiar with that syntax.
Re:The Curious Case of the Aggregation Query
on Tuesday December 05, 2023 @11:40AM (#38533214)
I think this one is obvious actually! There's no choice but to aggregate it at the level of the `xx` `SELECT`, no other level has access to the `x` column.
Re:The Curious Case of the Aggregation Query
on Tuesday December 05, 2023 @11:35AM (#38533140)
(I'm the author of the original post [1]) And while I think the rules, in the end, make sense, I think it's not quite as clear cut as you describe, consider:
SELECT (SELECT sum(1) FROM xx LIMIT 1) FROM aa;
which returns 3
3
3
Personally, I think having the inner aggregation always attach to the nearest `SELECT` would have been an equally valid way of defining how this works, but it just so happens it is not defined that way.[1]: https://buttondown.email/jaffray/archive/sql-scoping-is-surp...
Re:The Curious Case of the Aggregation Query
on Tuesday December 05, 2023 @11:14AM (#38532779)
I agree, I think the original sin here is the fact that whether a `SELECT` is an aggregation is determined by the contents of the scalar expressions at all. I think most of this weirdness comes directly out of wanting to be able to write both `SELECT sum(x) FROM xx` and `SELECT x FROM xx` and have them work.
Not that I have a better solution offhand, in SQL grouping by a constant value is not actually the same as not writing `GROUP BY` at all since the behaviour on empty tables is different.