# Linus Torvalds Used AI To Make Code Decipherable & Uncovered More Bugs — retained record

> Retained reddit record from reddit:singularity.

Canonical: https://highsignal.app/data/records/8e11005ad02bb3b7

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:singularity)  published 2026-10-12 10:34 ingested 2026-10-13 02:39

[original source ↗](https://www.reddit.com/r/singularity/comments/1x3yeti/linus_torvalds_used_ai_to_make_code_decipherable/)

## retained text



```
Linus Torvalds wrote in the assoc-array-fixes Git tag:

>"Nils Ollrogge reported a bug in the assoc\_array library and had a patch to fix it too, but that code was too obscure for me to follow, so I did what I preach: use modern LLM tools to help make sense of it all.  
  
>So this is an LLM-assisted branch which makes the code more readable by splitting up some of the larger and hard-to-read functions. The code was then run through a test harness in user space, which not only confirmed the bug Nils reported, but found three other bugs too - all going back to the very first commit adding this library back in 2013."
```



document fetched 2026-10-13 00:31 · canonical https://reddit.com/r/singularity/comments/1x3yeti/linus_torvalds_used_ai_to_make_code_decipherable
