Better HN
topnewbestaskshowjobs
Log inSign up

hundredwatt

681 karma · joined Jan 29, 2009 (17y ago) · 89 submissions

email: <username> at gmail Twitter: @jasonnochlin

[ my public key: https://keybase.io/hundredwatt; my proof: https://keybase.io/hundredwatt/sigs/sAhvC-zN-G30cPShxbXA7UC-0MmpSWpit0N0CNOtDME ]

Submissions

1.

SQLite Trace: extracting SQLite queries made by any arbitrary binary(github.com ↗)

3 points · by hundredwatt · 4mo ago · discuss

2.

The fastest sorting algorithm [video](youtube.com ↗)

2 points · by hundredwatt · 1y ago · discuss

3.

I can prove I've solved this sudoku without revealing it [video](youtube.com ↗)

4 points · by hundredwatt · 1y ago · discuss

comment 1y ago · link · parent

> To be pedantic, not guaranteed. The xor of multiple elements may erroneously have a passing checksum, resulting in an undetected false decode

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.

There's even a paper about a variant of IBFs that has no checksum field at all: https://arxiv.org/abs/2211.03683. It uses the cell position among other techniques.

comment 1y ago · link · parent

The graph constructed by using bloom filter-style hash functions supports a decoding process called "peeling" where you:

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.

comment 1y ago · link · parent

You don't lose absolute guarantees, but the probabilistic nature means the process may fail (in a guaranteed detectable way) in which case you can try again with a larger parameter.

The "bloom filter" name is misleading in regard to this.

7.

Extending That XOR Trick to Billions of Rows(nochlin.com ↗)

104 points · by hundredwatt · 1y ago · 22 comments

8.

Halide: A Language for Fast, Portable Computation on Images and Tensors [video](youtube.com ↗)

2 points · by hundredwatt · 1y ago · discuss

9.

Extending That XOR Trick to Billions of Rows(nochlin.com ↗)

2 points · by hundredwatt · 1y ago · discuss

comment 1y ago · link · parent

A neat trick to make the accumulator both collision-resistant and self-diagnosing.

  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.

11.

That XOR Trick (2020)(florian.github.io ↗)

320 points · by hundredwatt · 1y ago · 130 comments

12.

The Future of SIMD, with Raph Levien(popovit.ch ↗)

4 points · by hundredwatt · 1y ago · discuss

comment 1y ago · link · parent

The recently released sqlite_rsync utility uses a version of the rsync algorithm optimized to work on the internal structure of a SQLite database. It compares the internal data pages efficiently, then only syncs changed or missing pages.

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...

comment 1y ago · link · parent

It’s meant to run in or alongside the pipeline continuously.

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

comment 1y ago · link · parent

I'm building a new tool for end-to-end data validation and reconciliation in ELT pipelines, especially for teams replicating data from relational databases (Postgres, MySQL, SQL Server, Oracle) to data warehouses or data lakes.

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!

16.

How Variable-Increment Counting Bloom Filters Work(nochlin.com ↗)

2 points · by hundredwatt · 1y ago · discuss

comment 1y ago · link · parent

+100000

comment 1y ago · link · parent

That’s one of the cases where query-based CDC may out perform log-based (as long as you don’t care to see every intermediate change that happened to a row between syncs)

19.

What's SAP? (2019)(retool.com ↗)

7 points · by hundredwatt · 1y ago · discuss

20.

Hyperfine: A command-line benchmarking tool(github.com ↗)

241 points · by hundredwatt · 2y ago · 54 comments

21.

Show HN: Tuki – A GitOps tool for safely running one-off commands in production(github.com ↗)

5 points · by hundredwatt · 2y ago · discuss

22.

What's New in 2024 with PostgreSQL's "Deadly" Transaction Wraparound Problem?(nochlin.com ↗)

1 points · by hundredwatt · 2y ago · discuss

23.

Host Your Own Docker Registry with Kamal 2(nochlin.com ↗)

1 points · by hundredwatt · 2y ago · discuss

24.

Techniques I use to create a great user experience for shell scripts(nochlin.com ↗)

412 points · by hundredwatt · 2y ago · 275 comments

25.

Efficient Secret Sharing for Large-Scale Applications [pdf](eprint.iacr.org ↗)

5 points · by hundredwatt · 2y ago · discuss

comment 2y ago · link · parent

> Much of the FHE industry is focused right now on the subset of applications where legal hurdles make the two available options “slow, but compliant” and “fast, but incurs prison time.”

Anyone have any examples of these applications?

27.

Suffix Arrays in Optimal Compressed Space(arxiv.org ↗)

2 points · by hundredwatt · 2y ago · discuss

28.

Druid Deprecation and ClickHouse Adoption at Lyft(eng.lyft.com ↗)

7 points · by hundredwatt · 2y ago · discuss

29.

Adventures in Performance(infoq.com ↗)

3 points · by hundredwatt · 3y ago · discuss

123