hundredwatt
The fastest sorting algorithm [video]
I can prove I've solved this sudoku without revealing it [video]
The false decodes can be detected. During peeling, deleting a false decode inserts a new element with the opposite sign of count. Later, you decode this second false element and end up with the same element in both the A / B and B / A result sets (as long as decode completes without encountering a cycle).
So, after decode, check for any elements present in both A / B and B / A result sets and remove them.
--
Beyond that, you can also use the cell position for additional checksum bits in the decode process without increasing the data structure's bit size. i.e., if we attempt to decode the element X from a cell at position m, then one of the h_i(x) hash functions for computing indices should return m.
1. Find a batch with 1 missing element 2. Delete that element from its other assigned partitions 3. Repeat, as the modified batches may now be recoverable
This iterative process (surprisingly!) succeeds with very high probability as long as the number of partitions is 1.22x larger than the number of missing elements with k=3 hash functions.
The "bloom filter" name is misleading in regard to this.
Extending That XOR Trick to Billions of Rows
Halide: A Language for Fast, Portable Computation on Images and Tensors [video]
Extending That XOR Trick to Billions of Rows
For every normalized link id x:
y = (x << k) | h(x) # append a k-bit hash to the id
acc ^= y
If acc is zero, all links are reciprocal (same guarantee as before).If acc is non-zero, split it back into (x', h'):
* Re-compute h(x').
* If it equals h', exactly one link is unpaired and x' tells you which one (or an astronomically unlikely collision). Otherwise there are >= 2 problems.
This has collision-resistance like the parent comment and adds the ability to pinpoint a single offending link without a second pass or a hash table.
That XOR Trick (2020)
The Future of SIMD, with Raph Levien
Nice tricks in the article, but you can more easily use the builtin utility now :)
I blogged about how it works in detail here: https://nochlin.com/blog/how-the-new-sqlite3_rsync-utility-w...
Not planning to open source, working on a commercial offering but haven’t launched anything publicly yet.
Would love to hear any more thoughts on the concepts here or my email is in bio
Most existing solutions only validate at the destination (dbt tests, Great Expectations), rely on aggregate comparisons (row counts, checksums), or generate too much noise (alert fatigue from observability tools). My tool:
* Validates every row and column directly between source and destination * Handles live source changes without false positives * Eliminates noise by distinguishing in-flight changes from real discrepancies * Detects even the smallest data mismatches without relying on thresholds * Performs efficiently with an IO-bound, bandwidth-efficient algorithm
If you're dealing with data integrity issues in ELT workflows, I'd love to hear about your challenges!
How Variable-Increment Counting Bloom Filters Work
What's SAP? (2019)
Hyperfine: A command-line benchmarking tool
Show HN: Tuki – A GitOps tool for safely running one-off commands in production
https://github.com/hundredwatt/tuki
Tuki is a small, open-source utility that lets you run one-off commands in production through Git, bringing version control and code review to production scripts. I built it after accidentally dropping a production table due to a console typoKey features: - Run scripts through Git PRs instead of direct console access - Built-in auditing via Git history - RBAC through standard Git permissions -...
What's New in 2024 with PostgreSQL's "Deadly" Transaction Wraparound Problem?
Host Your Own Docker Registry with Kamal 2
Techniques I Use to Create a Great User Experience for Shell Scripts
Efficient Secret Sharing for Large-Scale Applications [pdf]
Anyone have any examples of these applications?