$ the-wire · showcase
SIMD export data gets bundled; goimports drops the diff subprocess
By RepoJournal · Filed · About Go · Composed from the cited sources · methodology
The compiler change that removes cmd/go's special-case bridge import handling matters most today, since it changes how any package exporting SIMD types resolves its dependencies; the rest is tooling hygiene, from goimports computing diffs in process to a batch of gopls crash fixes.
cmd/compile, cmd/go: bundle simd and bridge export data for simd importers golang/go
simd/internal/bridge export data is now folded into simd's own export data, and transitively into any package whose exported declarations reference them, so cmd/go no longer needs its special-case bridge import path. midway's dispatcher import injection was updated to promote blank imports of simd and emit a dummy reference to bridge.ZeroSized for importers of SIMD-exporting packages.
cmd/goimports: compute diffs without a subprocess golang/tools
goimports -d used to shell out to the system diff on temporary files and fail when diff was missing or the temp directory was not writable; it now builds the unified diff in process via internal/diff. File labels, separating banners, and three lines of context are preserved, temporary-file timestamps are gone, and hunk selection now comes from internal/diff rather than the host command.
internal/diff: count context lines between edits golang/tools
When two edits shared a hunk, the new-file line counter skipped the unchanged lines between them, so a later hunk could point at the wrong line even with no line-count change. Mustafa Senoglu's fix from CL 834825 is now applied to the source gopls uses, closing golang/go#81453.
go/analysis/passes/modernize: don't panic on non-string Sprint operands golang/tools
fmtappendf called constant.StringVal on the first operand of Sprint and Sprintf assuming it was a string, so a call like []byte(fmt.Sprint(1)) panicked with "1 not a String". gopls suppressed the panic but also dropped the analyzer's remaining diagnostics for the package; the modernize pass now leaves non-string operands alone.
simd: add Uint8s comparison emulations to prepare for a later CL golang/go
Greater, GreaterEqual, Less, and LessEqual emulations landed on Uint8s, following the existing Uint16s versions, but they are not in the simd API yet: the amd64 Uint8x16 forms need AVX2 and a later CL relaxes that. Until then midway warns that these emulations are not in the API. Also worth noting: gopls fixes a make(map) completion case, net/http dropped its IdleConn* and pre/post-dial test he...