# Understanding Actegories: The Hidden Math Behind Lenses and Prisms

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

▲ 4 · by [ibobev](<https://news.ycombinator.com/user?id=ibobev>) · 💬 0
[original](<https://bartoszmilewski.com/2026/06/30/actegories/>) · [HN discussion](<https://news.ycombinator.com/item?id=48904902>)

## Summary

I explore actegories, a mathematical concept central to programming optics like lenses and prisms. By defining monoidal categories and their actions on other categories, I show how these structures model 'scaling' operations. Using Haskell, I demonstrate how to implement these abstract ideas, revealing the elegant algebraic foundations that power modern functional programming patterns.

## Key quote

> In programming, actegories play a central role in optics: lenses, prisms, traversals, etc.

## HN discussion (0 comments)

### [lyall](<https://news.ycombinator.com/item?id=48906348>)

> If you saw TFA and thought "hmmm yes, I know some of those words", then I can recommend the author's own lecture series on YouTube [0]. It's an intro to and overview of category theory aimed at programmers, with the requisite context and motivation for why anyone should care. It's long but worth the time investment IMHO.
>
> 0: http://www.youtube.com/playlist?list=PLbgaMIhjbmEnaH_LTkxLI7...

### [ultimatefan1](<https://news.ycombinator.com/item?id=48906028>)

> this has a real "a monad is a monoid in the category of endofunctors" energy to it

### [xqb64](<https://news.ycombinator.com/item?id=48908560>)

> I'd like to understand how and why this stuff is useful for programmers.

---

## Cite

- Page: https://zeli.app/story/48904902
- Date: 2026-07-14
- Source: bartoszmilewski.com (https://bartoszmilewski.com/2026/06/30/actegories/)
- Hacker News: https://news.ycombinator.com/item?id=48904902

## Other languages

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