# Cachet makes the compiler check your performance assumptions

Original title: Write your own kernel optimiser

> Hacker News story 50444891 · language: en · submitted 2026-11-10
> Web version: https://zeli.app/story/50444891
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 42 · by [speckx](<https://news.ycombinator.com/user?id=speckx>) · 💬 3
[original](<https://blog.csongor.co.uk/cachet-grids-and-tiles/>) · [HN discussion](<https://news.ycombinator.com/item?id=50444891>)

## Summary

Csongor Kiss built Cachet, a language where cache residency, data movement between memory levels, and available hardware instructions are explicit parts of the program. You write what to compute as a contraction, then a schedule of rewrites turns it into an optimised kernel, and the compiler verifies each step preserves meaning. Starting from a one-line matmul definition, he derives cache-blocked CPU and GPU kernels, benchmarking against OpenBLAS, Accelerate, and MLX.

## Key quote

> When performance matters, I would rather not have a clever compiler. Instead, I want the compiler to be explicit.

---

## Cite

- Page: https://zeli.app/story/50444891
- Date: 2026-11-10
- Source: blog.csongor.co.uk (https://blog.csongor.co.uk/cachet-grids-and-tiles/)
- Hacker News: https://news.ycombinator.com/item?id=50444891

## Other languages

- zh: https://zeli.app/zh/story/50444891 · markdown: https://zeli.app/zh/story/50444891.md
- ja: https://zeli.app/ja/story/50444891 · markdown: https://zeli.app/ja/story/50444891.md
- ko: https://zeli.app/ko/story/50444891 · markdown: https://zeli.app/ko/story/50444891.md
- de: https://zeli.app/de/story/50444891 · markdown: https://zeli.app/de/story/50444891.md
- es: https://zeli.app/es/story/50444891 · markdown: https://zeli.app/es/story/50444891.md
- ru: https://zeli.app/ru/story/50444891 · markdown: https://zeli.app/ru/story/50444891.md
