# APL's Boolean Scans Hide Symmetries That Cut Implementation Work

Original title: Symmetries in Boolean Scan

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

▲ 12 · by [g0xA52A2A](<https://news.ycombinator.com/user?id=g0xA52A2A>) · 💬 0
[original](<https://ap29600.github.io/boolean_scans.html>) · [HN discussion](<https://news.ycombinator.com/item?id=50098281>)

## Summary

APL has ten boolean primitives, each needing a fast scan implementation. The author shows that three scan composition rules—pre-processing, post-processing with an inverse, and both—relate these primitives through negation. A truth-table analysis reveals that and, less-than, and not-equal cover all cases, so fast implementations of just these three can derive the rest, reducing labor and code size.

## Key quote

> We can see that the set ∧, <, ≠ covers all columns at least once, therefore if we provide fast implementations of each of these, we can derive decent implementations of the others by just applying these symmetries.

---

## Cite

- Page: https://zeli.app/story/50098281
- Date: 2026-10-15
- Source: ap29600.github.io (https://ap29600.github.io/boolean_scans.html)
- Hacker News: https://news.ycombinator.com/item?id=50098281

## Other languages

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