Reverse-Engineering Kevin J. Lang's Lost OCaml Code in Apache DataSketches
Hacker News 热议:Reverse-Engineering Kevin J. Lang's Lost OCaml Code in Apache DataSketches(15 赞 / 0 评论,来源 tisonkun.io)
一句话概要
Another feat from Gemini 4 Carbon Orchestrator + Swarm: reconstructing the magic lookup table generators behind CpcSketch in Apache DataSketches. It all started six months ago, when I spotted two commands in a source comment for compiling and running OCaml files…
原文开头节选
It started with a routine feature in ScopeDB: implementing approx_count_distinct for approximate distinct counting.
HyperLogLog (HLL) is the standard textbook choice. Early on, Rust’s HLL ecosystem was uneven, so I started with Cloudflare’s open-source cardinality-estimator . That crate leaned heavily on unsafe code and manual bit-packing tricks, though, so to keep things auditable and under our control, I forked and maintained an internal copy inside ScopeDB.
While evaluating alternatives, I came across Apache DataSketches, which offered a battle-tested HllSketch alongside CpcSketch, an even more space-efficient design. At the time, Apache DataSketches only shipped Java and C++ implementations, whereas ScopeDB is written in Rust.
As it turned out, the Apache DataSketches community was interested in an official Rust port. Starting late last year, I teamed up with a few other Rust developers well-versed in sketching algorithms to build and ship the initial releases of datasketches-rust, beginning with HllSketch.
(以上为原文节选,完整内容见下方”原文来源”)
这条动态今日登上 Hacker News 首页(15 赞 / 0 评论,来源 tisonkun.io)。技术雷达每日自动聚合 AI 工程、后端架构、DevOps 方向的前沿动态;相关工程落地可浏览下方的相关服务与延伸阅读,或直接与我们团队交流。
原文来源: Hacker News