Because I am not a nice person, I went off to find anti-patterns which would hur...

@cynicalsecurity@bsd.network

Because I am not a nice person, I went off to find anti-patterns which would hurt LLM security analysis… turns out that there is indirect research which we can use.

Turns out that those nightmare macros in C which reference macros of macros going down seven layers are a nightmare for a human but also for LLMs.

Go FORTH and macro!

(sorry, I will see myself out)

For the curious the references I looked at are:

* Ernst, M.D., Badros, G.J., Notkin, D. "An Empirical Analysis of C Preprocessor Use." IEEE TSE, 2002, homes.cs.washington.edu/~merns
* arXiv:2504.15989v2. "Optimizing Token Consumption in LLMs: A Nano Surge Approach." 2025https://arxiv.org/html/2504.15989
* arXiv:2508.13666v1. "The Hidden Cost of Readability: How Code Formatting Silently Consumes Your LLM Budget." August 2025. arxiv.org/abs/2508.13666
* A. Airom, "The Token Economy of Programming Languages", Medium, August 2026 alain-airom.medium.com/the-tok
* Tornhill, Adam. "Unhealthy Code is Burning Your Token Usage - Here's the Data."
CodeScene Blog, 28 May 2026.
codescene.com/blog/unhealthy-c
* Cox, Landon & Kiefer, Mara. "Improving token efficiency in GitHub Agentic Workflows."
GitHub Blog, 12 May 2026. github.blog/ai-and-ml/github-c
* Anthropic. "Prompt Caching." Claude Platform Documentation.
platform.claude.com/docs/en/bu
* pleasedodisturb. "Awesome LLM Token Optimization." GitHub repository.
github.com/pleasedodisturb/awe