golang
12 articles tagged golang.
-
Go Map Buckets, Tophash, and Incremental Growth
How Go maps use bucket arrays, one-byte tophash metadata, overflow buckets, and incremental evacuation to grow without stopping lookups.
-
Go’s G-M-P Scheduler Model
How Go maps goroutines onto threads and processors, balances run queues, and keeps other goroutines running during blocking system calls.
-
Go Interface Values, Method Sets, and Typed Nil Pointers
Understand the type-and-value pair inside Go interfaces, how method sets provide satisfaction, and why a typed nil pointer can make an interface non-nil.
-
How Go’s G-M-P Scheduler Runs Goroutines
How Go maps goroutines onto threads and processors using local queues, work stealing, preemption, and syscall handoff.
-
Go Escape Analysis and Stack versus Heap Allocation
How Go’s compiler tracks references to place values on goroutine stacks or the heap, and why the choice affects allocations, garbage collection, and speed.
-
Go’s G-M-P Scheduler Explained
How Go’s scheduler maps goroutines onto OS threads, uses processors, and steals work when blocking would otherwise stop progress.
-
Go’s Concurrent Garbage Collector
How Go combines tri-color marking, write barriers, and brief pauses to reclaim unreachable heap objects while goroutines keep running.
-
Go Interface Values: Dynamic Types, Values, and Typed Nil
Understand the type-and-value pair inside every Go interface and why an interface holding a typed nil is not itself nil.
-
The Go Scheduler’s G-M-P Model
How goroutines, OS threads, processors, parking, wake-ups, and work stealing cooperate to keep Go code running efficiently.
-
Go Interface Values: Dynamic Types, Values, and Nil Pointers
Go interfaces pair a dynamic type with a value, enabling method dispatch while making typed nil pointers different from nil interfaces.
-
Go’s Garbage-Collector Pacer and Mutator Assists
How Go’s GC pacer budgets marking CPU and makes allocating goroutines help when concurrent collection falls behind.
-
Go’s G-M-P Scheduler
How Go’s goroutines, OS threads, processors, run queues, and work stealing determine concurrency, latency, and throughput.