Rusty Russell on Nostr: Claude is really happy to write more code. This can be a super-power! But it can also ...
Claude is really happy to write more code. This can be a super-power! But it can also mean repetition, nasty workarounds, and unreviewable code :(
For the BOLT12 payer proofs, I asked it to take my implementation, produce test vectors then compare against Vincenzo's LDK implementation. There was a bug in the spec around field ordering which this found, and it proceeded to fix my code, adding another complex pass to reorder the fields. Instead I asked it to change the Rust code, and indeed it was much simpler there too.
If I hadn't caught this, we would and been stuck with a very weird spec and a lot of gratuitous code in every codebase.
So now I need to start emphasizing the joy of simplicity, I guess.
Published at
2026-04-06 22:04:41 UTCEvent JSON
{
"id": "074afba739d657a3ee3c0a393b3c9d13b0acbf4e68ad995399956229b1bb483a",
"pubkey": "f1725586a402c06aec818d1478a45aaa0dc16c7a9c4869d97c350336d16f8e43",
"created_at": 1775513081,
"kind": 1,
"tags": [
[
"alt",
"A short note: Claude is really happy to write more code. This ca..."
],
[
"client",
"Amethyst"
]
],
"content": "Claude is really happy to write more code. This can be a super-power! But it can also mean repetition, nasty workarounds, and unreviewable code :(\n\nFor the BOLT12 payer proofs, I asked it to take my implementation, produce test vectors then compare against Vincenzo's LDK implementation. There was a bug in the spec around field ordering which this found, and it proceeded to fix my code, adding another complex pass to reorder the fields. Instead I asked it to change the Rust code, and indeed it was much simpler there too.\n\nIf I hadn't caught this, we would and been stuck with a very weird spec and a lot of gratuitous code in every codebase.\n\nSo now I need to start emphasizing the joy of simplicity, I guess. ",
"sig": "1781a88b2d942a21a6abd1f3550a24c4a82c79d7c13fb345693be60621934b7b59f0deffb539e6b7c5a1a30f1cb84e052e8c895ddcac61437463968dbbf39535"
}