GitHub
gabyhelp feedback · golang go · Discussion #67901
I am experimenting with running a new bot @gabyhelp (which I am writing) in the Go issue tracker to try to help automate various mundane things that a machine can do reasonably well. Some aspects o...
🤔7👎3👍1
Ну что ж, молчать про итераторы больше нельзя: https://www.gingerbill.org/article/2024/06/17/go-iterator-design/
www.gingerbill.org
Why People are Angry over Go 1.23 Iterators
NOTE: This is based on, but completely rewritten, from a Twitter post: https://x.com/TheGingerBill/status/1802645945642799423
TL;DR It makes Go feel too “functional” rather than being an unabashed imperative language.
I recently saw a post on Twitter showing…
TL;DR It makes Go feel too “functional” rather than being an unabashed imperative language.
I recently saw a post on Twitter showing…
😢11🤔3👍2
Go 2 не будет… В смысле, все это и так уже давно знали, но теперь даже сам термин останется только в нашей памяти.
GitHub
github: make language change proposal triage less confusing to the outside · Issue #65660 · golang/go
Currently, language change proposals created through the corresponding template are given titles starting with "proposal: Go 2:" and assigned LanguageChange and v2 labels. As an outsider ...
😢4👍3
😢28👍10🤔3
rsc написал тут про поиск багов делением пополам. Сначала про git bisect (который, как я надеюсь, все используют, когда надо), а потом про деление по пространству, не по времени: https://research.swtch.com/bisect
👍7🤔1
Оказывается, кто-то ещё использует GOPATH вместо модулей
GitHub
cmd/go: breaking change in 1.23rc2 with version constraints in GOPATH mode · Issue #68658 · golang/go
Go version go version go1.23rc2 darwin/amd64 Output of go env in your module/workspace: GO111MODULE='auto' GOARCH='amd64' GOBIN='' GOCACHE='/tmp/.gocache' GOENV='...
😢6👎3👍2
How to Go wrong
Новый уникальный блог-пост
GitHub
weak: new package providing weak pointers · Issue #67552 · golang/go
What is a weak pointer? Weak pointers (or weak references, as they are referred to in other languages) allow developers to reference memory without preventing the garbage collector from reclaiming ...
😢6🤔4
How to Go wrong
Решение сначала добавить телеметрию в команду go, а потом решение сделать её opt-in, а не opt-out, вызвало целую бурю эмоций в сообществе. Ответы на этот твит показывают обе стороны: одни продолжают негодовать из-за всего связанного со злым Гуглом, другие…
https://go.dev/blog/gotelemetry
(и через какое-то время после включения запустите
и полюбуйтесь)
(и через какое-то время после включения запустите
go run golang.org/x/telemetry/cmd/gotelemetry@latest view
и полюбуйтесь)
go.dev
Telemetry in Go 1.23 and beyond - The Go Programming Language
Go 1.23 includes opt-in telemetry for the Go toolchain.
Лучшая четверть организаторов GopherCon Russia (не я) делает камерный четырехдневный Go-кэмп в Черногории. С 13-ого по 16-ое октября будет летний лагерь, Kubernetes операторы, горы, PyTorch в Go, отдых, создание игр на Go. Подробности тут, а наш Go-чат делает разыгрыш скидки в 15%.
1👎15👍12🤔2
How to Go wrong
Ооооох https://github.com/golang/go/issues/67552
Ооооох x2: https://github.com/golang/go/issues/67535
GitHub
runtime: add AddCleanup · Issue #67535 · golang/go
Background Go provides one function for object finalization in the form of runtime.SetFinalizer. Finalizers are notoriously hard to use, and the documentation of runtime.SetFinalizer describes all ...
🤔2👍1
How to Go wrong
Новый уникальный блог-пост
Кто-то из Google Cloud подвёз свой пример: https://medium.com/google-cloud/interning-in-go-4319ea635002
Medium
Interning in Go
Go 1.23 comes with a new package unique implementing interning, and a blog post about it. Interning is re-using objects of equal value…
👍8
Иногда в стандартной библиотеке можно найти любопытные оптимизации, казалось бы, тривиальных вещей. Например, написал я тут
strings.Repeat(" ", n)
в коде форматирования значения. Это ведь просто чтобы цикл не писать руками, да? Но нет: https://github.com/golang/go/blob/69234ded30614a471c35cef5d87b0e0d3c136cd9/src/strings/strings.go#L532-L5953👍21🤔9👏5