Devtrovert
Subscribe
Sign in
Home
Golang
System Design
Archive
Newsletters
About
Latest
Top
Discussions
Go EP20: sync.Cond, the Most Overlooked Sync Mechanism
In Go, sync.Cond is a synchronization primitive, though it’s not as commonly used as its siblings like sync.Mutex or sync.WaitGroup. You’ll rarely see…
Oct 29, 2024
•
Phuong Le
Share this post
Devtrovert
Go EP20: sync.Cond, the Most Overlooked Sync Mechanism
Copy link
Facebook
Email
Notes
More
Go EP19: sync.WaitGroup and The Interesting Alignment Problem
When you have multiple tasks that can run concurrently, you often use goroutines to handle them.
Oct 22, 2024
•
Phuong Le
1
Share this post
Devtrovert
Go EP19: sync.WaitGroup and The Interesting Alignment Problem
Copy link
Facebook
Email
Notes
More
Go EP 18: Slice Is Basically an Array Wrapper
When you create a slice, you're really just making a 'window' into an existing array. So, any changes you make to the slice can also change the…
Oct 8, 2024
•
Phuong Le
4
Share this post
Devtrovert
Go EP 18: Slice Is Basically an Array Wrapper
Copy link
Facebook
Email
Notes
More
September 2024
Go EP17: The Architecture of Go's sync.Pool
Instead of throwing these objects away after each use, which would just make the garbage collector work harder, we’re better off keeping them in a pool.
Sep 17, 2024
•
Phuong Le
1
Share this post
Devtrovert
Go EP17: The Architecture of Go's sync.Pool
Copy link
Facebook
Email
Notes
More
Go EP16: How Go Handles Key-Value Pair Storage in Maps
Have you ever set a ‘hint’ for a map and wondered why it’s called a ‘hint’ and not something simple like length, like we do with slices?
Sep 10, 2024
•
Phuong Le
2
Share this post
Devtrovert
Go EP16: How Go Handles Key-Value Pair Storage in Maps
Copy link
Facebook
Email
Notes
More
Go EP 15: sync.Mutex - Normal and Starvation Mode
Mutex, or MUTual EXclusion, in Go is basically a way to make sure that only one goroutine is messing with a shared resource at a time. This resource can…
Sep 2, 2024
•
Phuong Le
2
Share this post
Devtrovert
Go EP 15: sync.Mutex - Normal and Starvation Mode
Copy link
Facebook
Email
Notes
More
August 2024
Go EP14: Heap-allocated Defer, Stack-allocated Defer, Open-coded Defer
The defer statement in Go actually comes in three flavors: open-coded, heap-allocated, and stack-allocated. Each has its own performance quirks and use…
Aug 20, 2024
•
Phuong Le
Share this post
Devtrovert
Go EP14: Heap-allocated Defer, Stack-allocated Defer, Open-coded Defer
Copy link
Facebook
Email
Notes
More
GO EP13: Vendoring, or go mod vendor: What Is It?
Vendoring is a different strategy as it keeps a copy of all your project’s dependencies directly within the project’s directory, rather than relying on…
Aug 6, 2024
•
Phuong Le
1
Share this post
Devtrovert
GO EP13: Vendoring, or go mod vendor: What Is It?
Copy link
Facebook
Email
Notes
More
June 2024
GO EP12: Go.mod File - Boring Stuff Made Easy
There are several directives we will talk about, including: module, go, require, exclude, replace, retract, and a new one, toolchain."
Jun 25, 2024
•
Phuong Le
Share this post
Devtrovert
GO EP12: Go.mod File - Boring Stuff Made Easy
Copy link
Facebook
Email
Notes
More
GO EP11: Go Commands - go get, go mod tidy,...
The go.mod file, or go module, is basically a way to organize and manage a bunch of Go packages together.
Jun 17, 2024
•
Phuong Le
4
Share this post
Devtrovert
GO EP11: Go Commands - go get, go mod tidy,...
Copy link
Facebook
Email
Notes
More
GO EP10: GOROOT, GOPATH, GOCACHE
For instance, you might wonder what `GOPATH` and `GOROOT` mean, or what happens when you use commands like `go get` or `go mod tidy`.
Jun 10, 2024
•
Phuong Le
8
Share this post
Devtrovert
GO EP10: GOROOT, GOPATH, GOCACHE
Copy link
Facebook
Email
Notes
More
2
April 2024
Go EP9: How to Gracefully Shut Down Your Application
When we talk about gracefully shutting down an application, there are a few key guarantees we aim to achieve:
Apr 12, 2024
•
Phuong Le
Share this post
Devtrovert
Go EP9: How to Gracefully Shut Down Your Application
Copy link
Facebook
Email
Notes
More
Share
Copy link
Facebook
Email
Notes
More
This site requires JavaScript to run correctly. Please
turn on JavaScript
or unblock scripts