Forwarded from How to Go wrong
GopherCon Russia 2021 стартует уже через полчаса, и бесплатная регистрация ещё открыта! Все на https://www.gophercon-russia.ru !
А ещё там можно купить билет на крутейшие воркшопы в субботу и воскресенье. Булат Замалутдинов и Николай Маржан расскажут как писать Kubernetes-операторы, чтобы всё работало и не ломалось; Искандер Шарипов расскажет как крафтить линтеры, чтобы самим всё не сломать; а Валерий Мелешкин и я расскажем как применять property-based тесты и фаззинг, чтобы самим ломать свой код до production. Места ещё есть!
А ещё там можно купить билет на крутейшие воркшопы в субботу и воскресенье. Булат Замалутдинов и Николай Маржан расскажут как писать Kubernetes-операторы, чтобы всё работало и не ломалось; Искандер Шарипов расскажет как крафтить линтеры, чтобы самим всё не сломать; а Валерий Мелешкин и я расскажем как применять property-based тесты и фаззинг, чтобы самим ломать свой код до production. Места ещё есть!
www.gophercon-russia.ru
GopherCon Russia 2021
Конференция разработчиков на Go, 23-25 апреля 2021 года, Online.
oleg_log
We want to provide a low-noise, reliable way for Go developers to be alerted of known security vulnerabilities that affect their applications. We aim to build a first-party, curated, consistent database of security vulnerabilities open to community submissions…
It's alive https://github.com/golang/vulndb
GitHub
GitHub - golang/vulndb: [mirror] The Go Vulnerability Database
[mirror] The Go Vulnerability Database. Contribute to golang/vulndb development by creating an account on GitHub.
3k get, congrats https://xn--r1a.website/sysadmin_tools
you're next https://xn--r1a.website/count0_digest
you're next https://xn--r1a.website/count0_digest
На самом деле вчера я опубликовал чуть хелперов для sync пакета в Go https://github.com/cristalhq/synx
Возможно кому-то это сделает жизнь проще (мне сделало). Спасибо Богдану (@bortlog) за когда-то там веселый пейринг в субботу.
Напомню еще про атомики) https://xn--r1a.website/oleg_log/790
Заведу еще тег #hq
Возможно кому-то это сделает жизнь проще (мне сделало). Спасибо Богдану (@bortlog) за когда-то там веселый пейринг в субботу.
Напомню еще про атомики) https://xn--r1a.website/oleg_log/790
Заведу еще тег #hq
GitHub
GitHub - cristalhq/synx: Better sync package for Go.
Better sync package for Go. Contribute to cristalhq/synx development by creating an account on GitHub.
Forwarded from Alex senpai
Я тут недавно workshop по ruleguard провёл.
Какую-то часть выложил в открытый доступ. :)
Всё остальное было в лайве (плюс там эксклюзивный контент для конференции пока приватный, попозже может открою).
В выложенную часть входит несколько обучающих видео + несколько небольших практических задачек.
Ссылка на плейлист: https://www.youtube.com/watch?v=wZMgZNtKCm0&list=PLAjl-3QkinHvbgBKtIwlD2j3qqZ7iNOhE&index=1
Практические задачки: https://github.com/go-ruleguard/workshop-tasks/blob/main/ru/tasks.md
Какую-то часть выложил в открытый доступ. :)
Всё остальное было в лайве (плюс там эксклюзивный контент для конференции пока приватный, попозже может открою).
В выложенную часть входит несколько обучающих видео + несколько небольших практических задачек.
Ссылка на плейлист: https://www.youtube.com/watch?v=wZMgZNtKCm0&list=PLAjl-3QkinHvbgBKtIwlD2j3qqZ7iNOhE&index=1
Практические задачки: https://github.com/go-ruleguard/workshop-tasks/blob/main/ru/tasks.md
YouTube
ruleguard workshop: overview (part 1)
Первая часть из серии видео с воркшопа.
В этой части:
- Клонируем demo проект
- Разбираем, из чего состоят файлы правил
- Запускаем ruleguard на demo проекте
- Используем quickfix'ы (они же автофиксы)
demo проект: https://github.com/go-ruleguard/demo-project…
В этой части:
- Клонируем demo проект
- Разбираем, из чего состоят файлы правил
- Запускаем ruleguard на demo проекте
- Используем quickfix'ы (они же автофиксы)
demo проект: https://github.com/go-ruleguard/demo-project…
Годнота. Очень советую потыкать другие статьи на сайте и/или подписаться на Твиттер
https://wordsandbuttons.online/can_you_tell_an_assembly_language_when_you_see_one.html
https://twitter.com/wordsandbuttons
https://wordsandbuttons.online/can_you_tell_an_assembly_language_when_you_see_one.html
https://twitter.com/wordsandbuttons
wordsandbuttons.online
Can you tell an assembly language when you see one?
An interactive quiz featuring several obscure high-level languages and assembly variants.
Forwarded from Технологический Болт Генона
Crypto miners are killing free CI
CI providers like GitLab, TravisCI, and Shippable are all worsening or shutting down their free tiers due to cryptocurrency mining attacks.
https://layerci.com/blog/crypto-miners-are-killing-free-ci/
CI providers like GitLab, TravisCI, and Shippable are all worsening or shutting down their free tiers due to cryptocurrency mining attacks.
https://layerci.com/blog/crypto-miners-are-killing-free-ci/
Ну наконец-то, сколько я ждал нормальных оплат в Телеге. Этож просто на кончиках пальцев ощущается, как WeChat: тут же сидишь трындишь и тут же оплачиваешь. Короч круто, скорее всего это хороший толчок к росту платформы.
https://telegram.org/blog/payments-2-0-scheduled-voice-chats
https://telegram.org/blog/payments-2-0-scheduled-voice-chats
Telegram
Payments 2.0, Scheduled Voice Chats, New Web Versions
This update brings Payments 2.0 for all Telegram chats, Scheduling and Mini Profiles for Voice Chats, new versions of Telegram Web for your browser, and more.
Вот это интересно. По крайней мере я надеюсь на интересные вещи в треде. https://www.reddit.com/r/rust/comments/my3ipa/if_you_could_redesign_rust_from_scratch_today/
Reddit
From the rust community on Reddit
Explore this post and more from the rust community
Вопрос на благо всех: подкиньте материалы по устройству ядра Linux. Совет читать сорцы можете придержать на майские праздники.
Интересны права пользователей, systemd, что там с файловыми системами и тд. Можете не совсем внутренности (аллокаторы, скедулеры), но думаю вы поняли.
Возможно в одной статье/книге этого не будет (скорее не будет), поэтому кидайте, что считаете нужным. Заранее спасибо.
Интересны права пользователей, systemd, что там с файловыми системами и тд. Можете не совсем внутренности (аллокаторы, скедулеры), но думаю вы поняли.
Возможно в одной статье/книге этого не будет (скорее не будет), поэтому кидайте, что считаете нужным. Заранее спасибо.
Товарищ Мерлин поднял старый вопрос о сравнении адресов
https://github.com/golang/go/issues/2620
Pointer values are comparable. Two pointer values are equal if they point to the same variable or if both have value nil. Pointers to distinct zero-size variables may or may not be equal.
...
A struct or array type has size zero if it contains no fields (or elements, respectively) that have a size greater than zero. Two distinct zero-size variables may have the same address in memory.
Пост https://xn--r1a.website/teamerlin/6625
struct{} в Go. Не обошлось без гугления спеки.https://github.com/golang/go/issues/2620
Pointer values are comparable. Two pointer values are equal if they point to the same variable or if both have value nil. Pointers to distinct zero-size variables may or may not be equal.
...
A struct or array type has size zero if it contains no fields (or elements, respectively) that have a size greater than zero. Two distinct zero-size variables may have the same address in memory.
Пост https://xn--r1a.website/teamerlin/6625
GitHub
Spec does not explain comparing pointers to zero-sized objects · Issue #2620 · golang/go
As far as I can see, the spec does not let me predict the result of this program. The spec doesn't say anything clearly about comparing two pointers to zero-sized objects. Both 6g and gccgo...
Шутка в названии - зачет. 4,5,6 как-то особо в душу западают.
https://www.netmeister.org/blog/software-engineering-laws.html
Был еще такой пост давно-давно https://xn--r1a.website/oleg_log/1652
https://www.netmeister.org/blog/software-engineering-laws.html
Был еще такой пост давно-давно https://xn--r1a.website/oleg_log/1652
www.netmeister.org
10 Software Engineering Laws Everybody Loves to Ignore
Sure, we
all pretend to know them, but rarely do we think they
apply to us. Your manager certainly doesn't...
all pretend to know them, but rarely do we think they
apply to us. Your manager certainly doesn't...
Пожалуй рискну спросить: прививаться будешь?
Anonymous Poll
23%
Да, обязательно
25%
Да, надо...
13%
Нет, наверное
8%
Нет, точно-точно
20%
Уже привит(а)
1%
Другое (в коменты)
9%
Результаты
Upgrading to GraalVM 21.1 made me aware of this
Печатает 4, прям как по мему xkcd https://xkcd.com/221/
В след твите примеры, как это фиксится https://twitter.com/reibitto/status/1384795560436113415
Но забавное поведение для синглтона.
Печатает 4, прям как по мему xkcd https://xkcd.com/221/
В след твите примеры, как это фиксится https://twitter.com/reibitto/status/1384795560436113415
Но забавное поведение для синглтона.
testing: add -shuffle=off|on|N to alter the execution order of tests and benchmarks
Держу кулачки, что в 1.17 таки зайдет. Чуть жаль, что не я это закодил, но где-то я просто перегорел с этой идеей и ожиданием (да, оправдываюсь чуть).
https://github.com/golang/go/commit/cbb3f090477de92a7e158050803ef71a5ea825ee
Держу кулачки, что в 1.17 таки зайдет. Чуть жаль, что не я это закодил, но где-то я просто перегорел с этой идеей и ожиданием (да, оправдываюсь чуть).
https://github.com/golang/go/commit/cbb3f090477de92a7e158050803ef71a5ea825ee
GitHub
testing: add -shuffle=off|on|N to alter the execution order of tests … · golang/go@cbb3f09
…and benchmarks
This CL adds a new flag to the testing package and the go test command
which randomizes the execution order for tests and benchmarks.
This can be useful for identifying unwanted de...
This CL adds a new flag to the testing package and the go test command
which randomizes the execution order for tests and benchmarks.
This can be useful for identifying unwanted de...
Не ну хренасе они там зажрались в этом Гугле https://www.latimes.com/business/technology/story/2021-04-28/google-is-saving-1-billion-per-year-as-a-result-of-employees-working-from-home
Los Angeles Times
Google is saving $1 billion per year as a result of employees working from home
Google is known for perks such as massages and retreats. Not having to pay for those things during the pandemic has padded the company's bottom line.
oleg_log
Расскажите самую хреновую вещь, которую вы встречали в микросервисной архитектуре. Желательно с вашего реального опыта или предыдущей работы, а не историю из интернета (хотя правдивая история от друга/коллеги пойдет). Для стеснительных и NDA можно в лс/бота.…
Расскажите самый сложный ПР, который вы делали.
Конечно же абстрактно, без упоминания приватных вещей и любимым NDA.
Опять же в лс или бота что-то приватное.
#сложно
Конечно же абстрактно, без упоминания приватных вещей и любимым NDA.
Опять же в лс или бота что-то приватное.
#сложно