Прямо сейчас – Generics! https://www.youtube.com/watch?v=35eIxI_n5ZM
YouTube
GopherCon 2021 - Day 1
Welcome to GopherCon where we have been delving in to all things Go related since 2014! Today your GopherCon Host, Erik St. Martin, and special guest hosts, Johnny Boursiquot and Aaron Schlesinger, are coming to you live from the Microsoft Learn TV Studio…
We rewrote 64-bit Go Roaring Bitmaps to create Serialized Roaring Bitmaps (aka Sroar). Sroar makes Dgraph 20x faster for 50% of queries and use 10x less memory.
(Это Dgraph, так что воспринимайте это со скепсисом🧂)
(Это Dgraph, так что воспринимайте это со скепсисом🧂)
dgraph.io
Introducing Serialized Roaring Bitmaps in Golang
Dgraph’s next release v21.12, codenamed Zion, has been a very special release for many reasons — some of which might not be obvious right now.
Через 50 минут буду в Go Time рассказывать про GitHub Copilot.
Что про него рассказывать-то? Подскажите.
Что про него рассказывать-то? Подскажите.
Changelog
The Go Time podcast
Your source for wide-ranging discussions from all around the Go community.
Не писал ничего про log4j, так как это не по теме канала, но мимо этого пройти не могу.
К И Б Е Р В А К Ц И Н А Ц И Я
https://github.com/Cybereason/Logout4Shell
К И Б Е Р В А К Ц И Н А Ц И Я
https://github.com/Cybereason/Logout4Shell
GitHub
GitHub - Cybereason/Logout4Shell: Use Log4Shell vulnerability to vaccinate a victim server against Log4Shell
Use Log4Shell vulnerability to vaccinate a victim server against Log4Shell - Cybereason/Logout4Shell
Путём ручного удаления тысяч строк кода нашёл эпичный баг в Go. И задумался — а есть ли инструменты для автоматического уменьшения примеров, воспроизводящих проблему? Если нет, то как сложно такой сделать? Чтобы не просто упрощать код, а прямо удалять его, пока проблема воспроизводится.
Заменил
на
и заплакал
var dbFound bool
for _, d := range dbs {
if d == db {
dbFound = true
break
}
}
на
dbFound := slices.Contains(dbs, db)
и заплакал
Всех с годом, когда в Go завезут дженерики!
🎉44🤩16😱13🔥10👎2
Crazy craziness, или что показать коллегам, которые думаю, что в Google работают боги:
https://github.com/google/gopacket/commit/4370cf9687c957859fefd7963611f49f23338357
https://github.com/google/gopacket/commit/4370cf9687c957859fefd7963611f49f23338357
GitHub
Add in comment for weird performance behavior. · google/gopacket@4370cf9
There was a ~20% performance regression introduced in commit
94584fa3c1db8c2a75741a1648d6fa16e9f32ccc. This commit adds a comment describing
the behavior.
94584fa3c1db8c2a75741a1648d6fa16e9f32ccc. This commit adds a comment describing
the behavior.
Despite using golang, working with the absolute impenetrable monster that is kubernetes (I refuse to believe anyone actually understands this tool), taking on a helpdesk like on-call experience for one week at a time tending to configuration files over code, and not touching C++ at all, I feel more rewarded in my work than I ever did writing any amount of C++ in my entire life.
C++ довёл человека до OCPD.
https://izzys.casa/2021/12/wrapping-up-2021/
C++ довёл человека до OCPD.
https://izzys.casa/2021/12/wrapping-up-2021/
Self Unemployed • Izzy Muerte
Wrapping Up 2021
2021 was not too kind to me. I discovered that I not only have OCD but OCPD, a
personality disorder. If you’ve ever had a conversation with me where I just
couldn’t let something go because it was wrong or incorrect and it bothered
me, now you know why. I…
personality disorder. If you’ve ever had a conversation with me where I just
couldn’t let something go because it was wrong or incorrect and it bothered
me, now you know why. I…
How to Go wrong
Crazy craziness, или что показать коллегам, которые думаю, что в Google работают боги: https://github.com/google/gopacket/commit/4370cf9687c957859fefd7963611f49f23338357
Если вы хотели спросить чего это это я первого января полез в gopacket… Что-то на моём Маке выкачало несколько гигабайт за полчаса через телефон в режиме модема, при этом в Activity Monitor’е ничего не было видно. Снял дамп Wireshark’ом, полез разбираться. Оказался какой-то косяк с iCloud /
Кроме этого забавного комментария – отличная библиотека, рекомендую.
nsurlsessiond
; перезагрузка помогла.Кроме этого забавного комментария – отличная библиотека, рекомендую.
👍2
12-ого выступаю с докладом на митапе GDG Berlin про FerretDB. Что бы вы хотели на нём узнать?
Meetup
Login to Meetup | Meetup
Not a Meetup member yet? Log in and find groups that host online or in person events and meet people in your local community who share your interests.
👍5
Казалось бы, разумно хотеть
go help environment
и go env
показывать все переменные окружения, влияющие на Go? https://github.com/golang/go/issues/50444GitHub
cmd/go: `GORACE`, `GOGC`, `GOMAXPROCS`, `GOTRACEBACK` are not documented in `go help environment` · Issue #50444 · golang/go
What version of Go are you using (go version)? Both 1.17.5 and the current tip. What did you do? Run go help environment. What did you expect to see? Documentation for all environment variables tha...
Кстати, вы знаете, что не так с кучей кода, делающей
edit: То, что
os.Getenv("GOPATH")
?edit: То, что
go env -w
влияет на команду go
и рантайм, но не на код, который забыл про этот флаг.