News for hackers. Stuff that matters.
Re:Yes, 17M lines of Lean is a lot by stingraycharles on Monday November 23, 2026 @05:20AM (#50609803)
Surprisingly, getting an LLM to write a custom linter that checks for a lot of common pitfalls based on string pattern search, paragraph length, sentence length, etc etc is actually quite effective as a way to force your LLM to behave.

It’s what I ended up doing, and it works pretty well.

Re:Yes, 17M lines of Lean is a lot by jadyoyster on Monday November 23, 2026 @05:26AM (#50609846)
My experience as well. The current LLMs are unable to write or code-comment like a human as primary output, but if you ask "characterize human vs LLM writing, and fix it up" they are often able to substantially correct.
Re:Yes, 17M lines of Lean is a lot by ninkendo on Monday November 23, 2026 @07:46AM (#50610869)
[delayed]
Re:Yes, 17M lines of Lean is a lot by spockz on Monday November 23, 2026 @08:18AM (#50611179)
Who says anything about regex? The linting (in the broad sense of the word) can look at which packages are changed. How many interfaces are affected by the change. Of course, that is not a metric of relatedness yet. We need more research in this area what it means to have “good” code if we ever want to rise from programming being an art.
Re:Yes, 17M lines of Lean is a lot by quesera on Monday November 23, 2026 @02:14PM (#50617439)
"string pattern search" implied regex to me, perhaps also to GP.
Re:Yes, 17M lines of Lean is a lot by spockz on Monday November 23, 2026 @08:16AM (#50611149)
Honestly, I think it isn’t surprising at all. The tools that helped us mere mortals to stay consistent also help staying LLMs consistent. By having deterministic rules to provide the guardrails we can constrain the probabilistic mess that are LLMs.

It is just that as a human over time with a project we ingrain some of the rules and do it right the first time. Some of us can even type up a whole lot of code without letter the compiler run once in the interim and then make the compilation pass at the first attempt.

We need those tools. LLMs need them more and can go way faster because of them.

Re:Yes, 17M lines of Lean is a lot by mdular on Monday November 23, 2026 @09:04AM (#50611618)
That sounds interesting. I'm making it write "walkthroughs" for me to follow along and exercise the functionality. Those were completely unusable, so are now getting linted on actually running my terminal (zsh), not containing dead links, etc - easy stuff. What needed constant hammering was making sure that the instructions are actually useful, and aren't accidentally burying some major required prep work in prose. Instructions are now making it write entry and exit criteria per instructions block.

But: the instructions rely on inference. Since the LLM can't truly judge what is important for me to experience myself, I rely on it actually being able to interpret the learnings and good/bad examples - classic prompt engineering tacticts.

I like the idea of using linters to reinforce this with something deterministic. Can you give me some example rules you're linting for?