News for hackers. Stuff that matters.
Re:Porting 100k lines from TypeScript to Rust using Claude C... by arjie on Tuesday January 27, 2026 @03:26AM (#46777066)
It's not context-free (haha) but a trick you can try is to include negative examples into the prompt. It used to be an awful trick originally because of Waluigi Effect but then became a good trick, and lately with Opus 4.5 I haven't needed to do it that much. But it did work once. e.g. like take the original code and supply the correct answer and the wrong answers in the prompt as examples in Claude.MD and then redo.

If it works, do share.

There are no comments on this comment yet.