Topic

Algorithms

Algorithm and data structure discussions covering complexity analysis, competitive programming, and practical implementation insights from developer communities.

What this topic tracks

  • Engineering practices and ecosystem debates
  • Tools, architecture, and implementation lessons
  • Relevant discussions from developer communities

Algorithms · 306 stories

Recent stories

Each story's summary, with the places it was discussed.

Summaries are written by AI from the linked sources. Open the source for full context.

6 stories

The holy grail of nixpkgs: version ranges

fzakaria.com · 1 Sept

Algorithms · Operating Systems · Open Source

grail adds version-range solving to Nixpkgs by indexing more than 309,000 historical package versions across 1,541 revisions.

Using Answer Set Programming with clingo, it finds compatible revisions, explains unsatisfiable constraints, handles glibc compatibility, generates lock files, and integrates with Nix derivations. A WebAssembly build enables browser-based queries through fzakaria.github.io/grail.

Interview with oofoe about REBOL, Forth, Decker, Janet and the VFx Industry

alexalejandre.com · 30 Aug

Algorithms · Programming Languages · Computer Science

An interview with @oofoe explores DSL design, REBOL, Forth, Janet, Racket, and Decker; “programming in the small”; PEG parsers, transpilation, compilation, GUIs, and human-sized codebases.

It also details Janet-based industrial tools and render-farm architecture for VFx, including client-server scheduling, resource fairness, and hot code updates, plus a career spanning games, visual novels, and IMAX production.

Engineering High-Performance Parsers with Data-Oriented Design

arshad.fyi · 13 Jul

Algorithms · Performance · Programming Languages

Yuku is a JavaScript/TypeScript parser built in Zig using data-oriented design.

By replacing pointer-heavy AST nodes with indexed arrays and using scratch buffers for variadic children, it avoids allocator overhead and cache misses. Its position-independent, flat memory layout enables zero-copy serialization for JavaScript, making it significantly faster than traditional parser implementations.

Bab: a family of hashing functions for p2p networks

bab-hash.org · 11 Jun

Algorithms · Database · Performance

Bab is a family of hashing functions inspired by Blake3 and Bao, designed for resilient data storage with features like concurrent multi-source downloading, error detection during partial transfers, and constant-size length proofs.

It optimizes computations for repeating substrings while offering a parameterizable specification and storage-centric API design.

Probabilistic data structures in Go, part 2

antonz.org · 21 Nov

Algorithms · Go

The Go package unsure implements and benchmarks four probabilistic data structures: binary fuse filter, UltraLogLog, log-linear histogram, and MinHash.

Binary fuse filters use less memory than Bloom filters for static sets; UltraLogLog uses about 43% less memory than HyperLogLog at similar accuracy but is slower; log-linear histograms provide bounded relative-value error for quantiles and outperform t-digest on long-tailed positive data; MinHash estimates Jaccard similarity with fixed signatures. The article explains their algorithms, guarantees, trade-offs, and Go usage.

A New Equal-Area Map for Interactive Computer Use (natively zooms to Mercator)

benjoffe.com · 15 Sept

Algorithms · Mathematics

The article introduces a simple hybrid map projection that is equal-area at global scale and smoothly transitions to Mercator when zoomed, making it suitable for interactive web and mobile maps.

Its closed-form formula is simpler to invert than Equal Earth, reduces polar waste and skew in many regions, and supports compromise projections and future ellipsoidal-Earth extensions.

Where it came fromLobstersCreate a Snapbyte.dev digest and choose Algorithms as one of your topics.Build your digest