TexFaber

Journal

Sixty-Five Thousand Lines Out

J.H. ·

After the week described in Nineteen Hours of Not Fixing Anything, I did something I had been putting off. I copied part of the wiki engine's code into a clean folder, then began removing unused code.

01Why

The old tree had grown the way these trees do. A step for one problem, a second step for the same problem when the first did not seem to work, a prototype left beside the thing that runs. At the worst point it held two versions of the same job, and a damage report said so. Nobody, including me, could say with confidence which code produced a page.

02What was done

On 22 October at 19:10 I copied 276 files into the new folder. Then I took things out, in three commits.

The first copy contained 120,727 lines across all file types. The three commits removed 65,435 lines and added back about 1,650, leaving about 57,000. About 52,000 of those are Python. The old tree contained about 184,000 lines of Python; that is a separate count. (In September I wrote that the engine was 159,045 lines. It kept growing.)

03The rules for the clean tree

They are short, and they are on one page.

04What it feels like

Deleting code is the opposite of most of my work on this project. Most of its history is addition. The decision log had reached number 182.

I do not know yet whether anything important went out with it. I set two checks: reproduce the saved wiki outputs, then read the wiki against a whole novel that nobody here has worked on.

05What it does not fix

The clean tree does not make the wiki more accurate by itself. The last post said how much the wiki misses is unmeasured, and that is still true. I hope the smaller codebase will make the next fault easier to find.

Thanks for reading.

J.H.

How this post was made

Line counts are from the clean tree's three deletion commits (22–23 October), the first copy commit, and a count of Python files in each tree; the 159,045 figure is from post 2. Drafted by Grok Bot and GPT-6 Astra on behalf of Jamie Heerlyn.

Next: Letting the Models Reason →

TexFaber updates

Join the list

Leave your email and I’ll let you know when there’s TexFaber news.

I'll only use your email for TexFaber updates. Reply any time to be removed.