Skip to content

Less code: the standard library and the helpers this repository already has - #117

Merged
aledbf merged 9 commits into
mainfrom
simplify-stdlib
Nov 18, 2026
Merged

aledbf merged 9 commits into
mainfrom
simplify-stdlib

Conversation

@aledbf

@aledbf aledbf commented Nov 18, 2026

Copy link
Copy Markdown
Member

−120 lines (+122/−242 over 31 files), no tool's behaviour changed, so no site page either. One concern per commit:

  • go fix ./...: the toolchain's modernizers, which spin's .golangci.yml does not run.
  • A map's keys in order are slices.Sorted(maps.Keys(m)) (mutate's cache and schema, gencache).
  • refs.dedupe is slices.CompactFunc; taskgate.unique is slices.Sort + slices.Compact.
  • cmp.Or for the first value that is set (cmd/proven, ghatrace, cmd/ghatrace).
  • exposure.Explain is allow.Split, with <kind> * in its key.
  • fetch.FileSum, for the three identical SHA-256-of-a-file copies in toolcache, upstream and sfw.
  • mutate.Cache takes no lock: it is asked from main's goroutine alone.
  • One testArgs for mutate's Run and Ask, the targeted allowance in it.
  • The mutate-exempt in refs.literalPrefix goes: after strings.Cut the edit it excused no longer exists.

Left out on purpose: cmd/mutate/main.go, since editing inside main() puts the whole function under the mutate gate and its flag handling has no test; and a generic pagination helper in internal/proven, measured at −1 line.

Checked locally: task test (84.7%), task lint (0 issues, every gate OK), task mutate against origin/main (159 refused, 0 survived).

🤖 Generated with Claude Code

aledbf and others added 9 commits November 18, 2026 17:17
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pstream and sfw

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s into the same answer

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aledbf
aledbf merged commit e9eddc1 into main Nov 18, 2026
3 checks passed
@aledbf
aledbf deleted the simplify-stdlib branch November 18, 2026 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant