frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Finding the grain of sand in a heap of Salt

https://blog.cloudflare.com/finding-the-grain-of-sand-in-a-heap-of-salt/
5•privacyops•3d ago

Comments

gorgoiler•17m ago
Theirs is certainly an impressive environment and I don’t mean to do Cloudflare’s achievements a disservice, but I strongly encourage engineers building these kinds of systems to treat their infrastructure as actual code, and avoid the temptation to dip in and out of wire text formats like JSON or YAML as much as possible.

The worst case scenario, in terms of engineering, is one piece of Python using Jinja templated YAML only for another piece of Python also written by you! to parse that output. Every time this happens it proves to be — as the article points out — a seized opportunity to get caught out by syntax errors, and a missed opportunity to have static analysis find errors (mypy et al., basically) before they happen at runtime, should all the logic had been done in pure Python without dipping in and out of structured text.

In the Cloudflare system the fundamental unit of action is configuration driving Python functions through gitops. My preferred version of these systems is pure python at the top emitting execve() calls, sh-scripts, and file writing over ssh or local transports, or in Dockerfiles, possibly with very small sh functions on the far side, but kept minimal in size and scope and with everything being purely declarative.

(It’s certainly an anti-pattern to return data back from the host to decide what to do next. The Python end is only allowed to declare that a package be installed, and the rest of the system ensures that is the case. People think this is limiting but the majority of these configuration systems, in my experience, hinge on 90% data structures to declare how the system out to be — IPAM arithmetic, building config files from lists of domains and accounts, processing key material etc. — and only 10% is the logic to install things much of which is very simple given a good base OS like Debian where many packages split their config into .d directories with helper scripts to enable things.)

PS: I wonder if the authors have had experience with Ansible? It was my own experience with that tool’s slowness and inflexibility that prompted a lot of my opinion forming in this area. Lots of good ideas have been borne of having first been exposed to Ansible and, alas, coming up against its limits.

Someone•4m ago
[delayed]

Advent of Code 2025

https://adventofcode.com/2025/about
615•vismit2000•8h ago•198 comments

Writing a Good Claude.md

https://www.humanlayer.dev/blog/writing-a-good-claude-md
117•objcts•3h ago•42 comments

Windows drive letters are not limited to A-Z

https://www.ryanliptak.com/blog/windows-drive-letters-are-not-limited-to-a-z/
294•LorenDB•8h ago•132 comments

ETH-Zurich: Digital Design and Computer Architecture; 227-0003-10L, Spring, 2025

https://safari.ethz.ch/ddca/spring2025/doku.php?id=start
93•__rito__•3h ago•12 comments

LLVM-MOS – Clang LLVM fork targeting the 6502

https://llvm-mos.org/wiki/Welcome
74•jdmoreira•4h ago•13 comments

Program-of-Thought Prompting Outperforms Chain-of-Thought by 15% (2022)

https://arxiv.org/abs/2211.12588
42•mkagenius•3h ago•9 comments

ESA Sentinel-1D delivers first high-resolution images

https://www.esa.int/Applications/Observing_the_Earth/Copernicus/Sentinel-1/Sentinel-1D_delivers_f...
48•giuliomagnifico•4h ago•8 comments

Migrating Dillo from GitHub

https://dillo-browser.org/news/migration-from-github/
223•todsacerdoti•7h ago•135 comments

"Boobs check" verify if sites behind CDN are hosted in Inside Iran or not

https://twitter.com/hkashfi/status/1995109785679573167
44•defly•46m ago•8 comments

CachyOS: Fast and Customizable Linux Distribution

https://cachyos.org/
228•doener•10h ago•209 comments

Don't push AI down our throats

https://gpt3experiments.substack.com/p/dont-push-ai-down-our-throats
223•nutanc•3h ago•120 comments

A Second Look at Geolocation and Starlink

https://www.potaroo.net/ispcol/2025-11/starlinkgeo2.html
15•speckx•5d ago•4 comments

GitHub to Codeberg: My Experience

https://eldred.fr/blog/forge-migration/
62•todsacerdoti•5h ago•22 comments

NixOS 25.11 released

https://nixos.org/blog/announcements/2025/nixos-2511/
104•trulyrandom•3h ago•26 comments

RetailReady (YC W24) Is Hiring Associate Product Manager

https://www.ycombinator.com/companies/retailready/jobs/KPKDu3D-associate-product-manager
1•sarah74•4h ago

Show HN: Boing

https://boing.greg.technology/
671•gregsadetsky•17h ago•131 comments

Show HN: Real-time system that tracks how news spreads across 200k websites

https://yandori.io/news-flow/
201•antiochIst•4d ago•51 comments

Show HN: Fixing Google Nano Banana Pixel Art with Rust

https://github.com/Hugo-Dz/spritefusion-pixel-snapper
87•HugoDz•4d ago•14 comments

There is No Quintic Formula [video]

https://www.youtube.com/watch?v=9HIy5dJE-zQ
24•DamnInteresting•3h ago•13 comments

Langjam Gamejam: Build a programming language then make a game with it

https://langjamgamejam.com/
35•birdculture•5h ago•22 comments

Finding the grain of sand in a heap of Salt

https://blog.cloudflare.com/finding-the-grain-of-sand-in-a-heap-of-salt/
5•privacyops•3d ago•1 comments

Modern cars are spying on you. Here's what you can do about it

https://apnews.com/article/auto-car-privacy-3674ce59c9b30f2861d29178a31e6ab7
171•MilnerRoute•5h ago•181 comments

Zigbook Is Plagiarizing the Zigtools Playground

https://zigtools.org/blog/zigbook-plagiarizing-playground/
435•todsacerdoti•17h ago•126 comments

People keep flocking to Linux, not just to escape Windows

https://www.zdnet.com/article/why-people-keep-flocking-to-linux-in-2025-and-its-not-just-to-escap...
30•breve•1h ago•6 comments

Paul Hegarty's updated CS193p SwiftUI course released by Stanford

https://cs193p.stanford.edu/
117•yehiaabdelm•4d ago•29 comments

Notes on Shadowing a Hospitalist

https://humaninvariant.substack.com/p/notes-on-shadowing-a-hospitalist
32•surprisetalk•4h ago•13 comments

The Thinking Game Film – Google DeepMind Documentary

https://thinkinggamefilm.com
121•ChrisArchitect•5h ago•86 comments

The Easiest Way to Build a Type Checker

https://jimmyhmiller.com/easiest-way-to-build-type-checker
69•surprisetalk•3d ago•21 comments

All it takes is for one to work out

https://alearningaday.blog/2025/11/28/all-it-takes-is-for-one-to-work-out-2/
730•herbertl•1d ago•356 comments

What's Hiding Inside Haribo's Power Bank and Headphones?

https://www.lumafield.com/first-article/posts/whats-hiding-inside-haribos-power-bank-and-headphones
191•rozenmd•3d ago•65 comments