The Power of Go Benchmarking
https://chriswilcox.dev/blog/2022/11/22/The-Power-of-Go-Benchmarking.html
https://chriswilcox.dev/blog/2022/11/22/The-Power-of-Go-Benchmarking.html
Chris Wilcox
The Power of Go Benchmarking
My team at Google holds a weekly learning session where folks take turns teaching the team team something new. Last week, I gave a talk about some, at times surprising, behaviors in golang. It is very much based on the format of a 2016 talk by Dave Cheney…
Forwarded from 🇺🇦 Go performance channel (Oleg Kovalov)
🎊 Go 1.20 Release Candidate 1 is released!
🏃♂️ Run it in dev! Run it in prod! File bugs! https://go.dev/issue/new
📣 Announcement: https://groups.google.com/g/golang-announce/c/iqUo0Spdl9I
📦 Download: https://go.dev/dl/#go1.20rc1
#golang (via https://twitter.com/golang/status/1600612450197446675)
🏃♂️ Run it in dev! Run it in prod! File bugs! https://go.dev/issue/new
📣 Announcement: https://groups.google.com/g/golang-announce/c/iqUo0Spdl9I
📦 Download: https://go.dev/dl/#go1.20rc1
#golang (via https://twitter.com/golang/status/1600612450197446675)
GitHub
GitHub is where people build software. More than 150 million people use GitHub to discover, fork, and contribute to over 420 million projects.
Email from Google's CEO about lay off of ~ 12,000 of employees :
https://blog.google/inside-google/message-ceo/january-update/
https://blog.google/inside-google/message-ceo/january-update/
Google
A difficult decision to set us up for the future
As an almost 25-year-old company, we’re bound to go through difficult economic cycles.
Forwarded from 🇺🇦 Go performance channel (Oleg Kovalov)
In #Golang 1.20 the Go team introduced an experimental new method of memory management called Go arenas.
In this blog post we show how we combined continuous profiling with memory arenas to improve performance of one of our cloud services by ~8% !
https://pyroscope.io/blog/go-1-20-memory-arenas/
In this blog post we show how we combined continuous profiling with memory arenas to improve performance of one of our cloud services by ~8% !
https://pyroscope.io/blog/go-1-20-memory-arenas/
pyroscope.io
Go 1.20 Experiment: Memory Arenas vs Traditional Memory Management | Open Source Continuous Profiling Platform
Go 1.20 Experiment with Memory Arenas
Slides of my talk: "Debugging concurrent programs in Go" in go dev room
https://drive.google.com/file/d/1GoGuQNndiubchq5AjdaHjbaeg29hn6R7/view?usp=sharing
https://drive.google.com/file/d/1GoGuQNndiubchq5AjdaHjbaeg29hn6R7/view?usp=sharing
My talk has been highlighted in #golang weekly 🤘 https://golangweekly.com/issues/448
Go linters configuration, the right version.
https://olegk.dev/go-linters-configuration-the-right-version
https://olegk.dev/go-linters-configuration-the-right-version
Oleg Kovalov's Blog
Go linters configuration, the right version.
TLDR: See the golangci-lint config that I find useful Github Gist
Intro
Ah, these mighty linters. Tools that intend to make our life better but might hurt our software engineering egos.
Somewhere in 2018, I was super eager to make my code and others...
Intro
Ah, these mighty linters. Tools that intend to make our life better but might hurt our software engineering egos.
Somewhere in 2018, I was super eager to make my code and others...
Forwarded from Max
Друзі! Ви, напевно, пам'ятаєте, як я робив збори для хлопців із ЗСУ та інших підрозділів. Хлопців, яких знаю особисто.
Не так давно ми разом з вами вже зробили велику справу — зібрали на два Mavic 3 Combo, Starlink і інші, не меньш важливі на війні штуки. Військові за це ДУЖЕ вдячні вам всім! Але добрих справ в такий час не буває забагато.
Маємо запит на автівку для наших воїнів ССО. Ціль — 260 000 гривень. Допоможемо хлопцям створити для окупанта пекло на нашiй землі.
Кожна гривня, кожен репост — ще один крок до нашої перемоги. Дуже вам вдячний!
🔗Посилання на банку
https://send.monobank.ua/jar/13NzQaQmS
💳Номер картки банки
5375 4112 0530 6157
Paypal: [email protected]
Не так давно ми разом з вами вже зробили велику справу — зібрали на два Mavic 3 Combo, Starlink і інші, не меньш важливі на війні штуки. Військові за це ДУЖЕ вдячні вам всім! Але добрих справ в такий час не буває забагато.
Маємо запит на автівку для наших воїнів ССО. Ціль — 260 000 гривень. Допоможемо хлопцям створити для окупанта пекло на нашiй землі.
Кожна гривня, кожен репост — ще один крок до нашої перемоги. Дуже вам вдячний!
🔗Посилання на банку
https://send.monobank.ua/jar/13NzQaQmS
💳Номер картки банки
5375 4112 0530 6157
Paypal: [email protected]
Forwarded from 🇺🇦 Go performance channel (Oleg Kovalov)
High-performance JSON parsing in #golang by @CockroachDB
https://www.cockroachlabs.com/blog/high-performance-json-parsing/
https://www.cockroachlabs.com/blog/high-performance-json-parsing/
Cockroachlabs
High-performance JSON parsing in Go
This blog post is an exploration of JSON parser performance, and, ultimately, a description of the high-performance JSON parser used in CockroachDB.
Repo with some examples of concurrency patterns in Golang ->
https://github.com/lotusirous/go-concurrency-patterns
https://github.com/lotusirous/go-concurrency-patterns
GitHub
GitHub - lotusirous/go-concurrency-patterns: Concurrency patterns in Go
Concurrency patterns in Go. Contribute to lotusirous/go-concurrency-patterns development by creating an account on GitHub.
Forwarded from 🇺🇦 Go performance channel (Oleg Kovalov 🇺🇦)
print(“lol”) doubled the speed of my #golang function 😂
https://medium.com/@ludirehak/printing-lol-doubled-the-speed-of-my-go-code-e32e02fc3f92
https://medium.com/@ludirehak/printing-lol-doubled-the-speed-of-my-go-code-e32e02fc3f92
Medium
print(“lol”) doubled the speed of my Go function
Here is a Go function, if_max(). It finds the max value of an array of integers. Simple enough:
Limit goroutines with buffered channels
https://rednafi.com/go/limit_goroutines_with_buffered_channels/
https://rednafi.com/go/limit_goroutines_with_buffered_channels/
Redowan's Reflections
Limit goroutines with buffered channels
I was cobbling together a long-running Go script to send webhook messages to a system when
some events occur. The initial script would continuously poll a Kafka topic for events and
spawn new goroutines to make HTTP requests to the destination. This had two…
some events occur. The initial script would continuously poll a Kafka topic for events and
spawn new goroutines to make HTTP requests to the destination. This had two…
"I thought I understood how iteration over an array works but apparently not in Golang"
https://medium.com/@haaawk/i-thought-i-understood-how-iteration-over-an-array-works-but-apparently-not-in-golang-441a7abd6540
https://medium.com/@haaawk/i-thought-i-understood-how-iteration-over-an-array-works-but-apparently-not-in-golang-441a7abd6540
Medium
I thought I understood how iteration over an array works but apparently not in Golang
I’ve recently learned about a surprising Golang behavior. You can significantly speed up the iteration over an array by doing:
Finally we can use it without many lines of
Tl;dr:
With all that out the way, we can use a heredoc, executing two commands in the same RUN!:
->
https://www.docker.com/blog/introduction-to-heredocs-in-dockerfiles/
/
and &&
Tl;dr:
With all that out the way, we can use a heredoc, executing two commands in the same RUN!:
RUN <<EOF
echo "Hello" >> /hello
echo "World!" >> /hello
EOF
->
https://www.docker.com/blog/introduction-to-heredocs-in-dockerfiles/
Docker
Introduction to heredocs in Dockerfiles | Docker
Learn from Docker experts to simplify and advance your app development and management with Docker. Stay up to date on Docker events and new version