Очередная фича для 1.18 - встраивание коммита, даты в бинарь.
Вместо параметров компилятору аля
Go 1.18 is the new Vasa, change my mind.
https://github.com/golang/go/issues/37475
Вместо параметров компилятору аля
--ldflags=-X все станет доступно в runtime/debug.BuildInfo (да, эта штука давно доступна, просто с go build -buildvcs поле Settings будет с инфой от VCS).Go 1.18 is the new Vasa, change my mind.
https://github.com/golang/go/issues/37475
GitHub
cmd/go: stamp git/vcs current HEAD hash/commit hash/dirty bit in binaries · Issue #37475 · golang/go
(Related but different than #35667) cmd/go currently embeds all the module dep information in binaries and it's readable with e.g. https://godoc.org/rsc.io/goversion/version but it does not...
Сериализация, сериализация never changes. Ну и память.
Making slow Rust code fast https://patrickfreed.github.io/rust/2021/10/15/making-slow-rust-code-fast.html
Making slow Rust code fast https://patrickfreed.github.io/rust/2021/10/15/making-slow-rust-code-fast.html
Во-первых это красиво. Хотя любимого формата mm-dd-yyyy чутьчуть не хватает(((
Ого какую вещь я не замечал.
Easy and simple Prometheus SLO (service level objectives) generator
https://github.com/slok/sloth
Easy and simple Prometheus SLO (service level objectives) generator
https://github.com/slok/sloth
> The client wants to replace the 8k linear SQLS stored procedure with the appropriate code
Почта с утра не может не радовать. Даж не знаю, соглашаться ли?
Почта с утра не может не радовать. Даж не знаю, соглашаться ли?
Все же понедельник начинается с хорошего: долгожданный релиз go-critic.
- We're hitting the 100 checkers threshold! 🎉
- Several old checkers are rewritten in ruleguard rules! 🎉
- Our project passed 1000 stars at last! 🎉
https://github.com/go-critic/go-critic/releases/tag/v0.6.0
Скоро будет апдейт в golangci-lint, не забудьте обновиться и врубить нужное https://golangci-lint.run/usage/linters/#gocritic А там все нужное :)
- We're hitting the 100 checkers threshold! 🎉
- Several old checkers are rewritten in ruleguard rules! 🎉
- Our project passed 1000 stars at last! 🎉
https://github.com/go-critic/go-critic/releases/tag/v0.6.0
Скоро будет апдейт в golangci-lint, не забудьте обновиться и врубить нужное https://golangci-lint.run/usage/linters/#gocritic А там все нужное :)
enable:https://go-critic.com/overview.html (если что https://xn--r1a.website/go_critic_ru)
- #style
- #diagnostic
- #opinionated
- #experimental
- #performance
GitHub
Release v0.6.0 · go-critic/go-critic
Special notes
We're hitting the 100 checkers threshold! 🎉
Several old checkers are rewritten in ruleguard rules! 🎉
Our project passed 1000 stars at last! 🎉
This release is very special. ❤️
Ne...
We're hitting the 100 checkers threshold! 🎉
Several old checkers are rewritten in ruleguard rules! 🎉
Our project passed 1000 stars at last! 🎉
This release is very special. ❤️
Ne...
oleg_log
Все же понедельник начинается с хорошего: долгожданный релиз go-critic. - We're hitting the 100 checkers threshold! 🎉 - Several old checkers are rewritten in ruleguard rules! 🎉 - Our project passed 1000 stars at last! 🎉 https://github.com/go-critic/go-c…
Можете еще ретвитнуть) https://twitter.com/oleg_kovalov/status/1450038159614558208
Twitter
Oleg Kovalov
We have published a new go-critic release, free to update and make your #golang code better github.com/go-critic/go-c… We're hitting the 100 checkers threshold! 🎉 Several old checkers are rewritten in ruleguard rules! 🎉 Our project passed 1000 stars at last!…
Нам только профиты с этого, жаль не в виде акций. Пока. https://www.swyx.io/cloudflare-go/
www.swyx.io
Eating the Cloud from Outside In
AWS is playing Chess. Cloudflare is playing Go.
Вчера чуть дебажили gocritic и во время сборке проскочил такой env. Он хотя бы не агрессивный, но смысла в нем мало.
И вот мысль: env considered harmful. Конечно прокидывать в docker или что там у вас удобно, но очень неинтуитивно и легко прошляпить. Да еще и общий глобальный скоуп, мечта просто.
Итог: конфиг файлы и/или флаги лучше, за счет явности и хоть какого-то апи, но что поделать, в таком мире живем.
(я в aconfig пытаюсь ругаться на неизвестные енвы с приставкой APP_ где апп это определенный вами префикс, но наверное поможет не во всех случаях)
И вот мысль: env considered harmful. Конечно прокидывать в docker или что там у вас удобно, но очень неинтуитивно и легко прошляпить. Да еще и общий глобальный скоуп, мечта просто.
Итог: конфиг файлы и/или флаги лучше, за счет явности и хоть какого-то апи, но что поделать, в таком мире живем.
(я в aconfig пытаюсь ругаться на неизвестные енвы с приставкой APP_ где апп это определенный вами префикс, но наверное поможет не во всех случаях)
Based on the recent discussions, the DeepGo tool will be formally released in 1.19 (Aug 2022) as part of the "golang.org/x/tools". However it is very likely that an experimental version will be available in 1.18 (Feb 2022). When that happens I will update this issue. Thanks for the interest and proposal.
https://github.com/prometheus/prometheus/issues/9471
и "беспалевные" "утечки" https://github.com/search?l=Go&p=1&q=deepgo+is%3Aissue+author%3Aguodongli-google&type=Issues
GitHub
Consider implement deepgo linter in pipeline · Issue #9471 · prometheus/prometheus
Proposal Use case. Why is this important? I think @guodongli-google can clarify much better what is this deepgo tool exactly and how can we use and contribute it. I could not find much about the to...
Forwarded from Sysadmin Tools 🇺🇦
Анонсирован CockroachDB Serverless
https://www.cockroachlabs.com/blog/announcing-cockroachdb-serverless
#cockroachdb
https://www.cockroachlabs.com/blog/announcing-cockroachdb-serverless
#cockroachdb
I’ll analyse CVE-2021-37975 (reported by an anonymous researcher), which is a logic bug in the implementation of the garbage collector (GC) in v8 (the JavaScript interpreter of Chrome). This bug allows reachable JavaScript objects to be collected by the garbage collector, which then leads to a use-after-free (UAF) vulnerability for arbitrary objects in v8.
Хочется на 2022 взять обещание, что я буду полностью читать такие серьезные разборы.
https://securitylab.github.com/research/in_the_wild_chrome_cve_2021_37975/
Хочется на 2022 взять обещание, что я буду полностью читать такие серьезные разборы.
https://securitylab.github.com/research/in_the_wild_chrome_cve_2021_37975/