Tech Musings
Author

Tech Musings

Capturing thoughts and reflections while coding.

49
Articles
0
Likes
46
Views
0
Comments
Recent Articles

Latest from Tech Musings

49 recent articles
Tech Musings
Tech Musings
Apr 24, 2026 · Artificial Intelligence

DeepSeek-V4 Unveiled: 1M Context Length and Ascend Compute Power

DeepSeek has launched the open‑source DeepSeek‑V4 series, offering Pro and Flash models with a 1 million token context window, a novel sparse attention mechanism, performance that rivals Opus 4.6 on coding and knowledge benchmarks, tiered pricing, and future cost reductions once Ascend 950 supernodes become widely available.

1M contextAI benchmarkingDeepSeek V4
0 likes · 5 min read
DeepSeek-V4 Unveiled: 1M Context Length and Ascend Compute Power
Tech Musings
Tech Musings
Apr 22, 2026 · Fundamentals

Go Standard Library Adds UUID Support with a Streamlined V4/V7 API

The Go team introduced a new uuid package to the standard library, offering lightweight functions for generating, parsing, serializing, and comparing UUID version 4 and version 7 values, integrating with database/sql, using a [16]byte type compatible with google/uuid, and providing detailed design rationale, implementation details, and a comparison with the existing third‑party library.

Database IntegrationGoStandard Library
0 likes · 11 min read
Go Standard Library Adds UUID Support with a Streamlined V4/V7 API
Tech Musings
Tech Musings
Apr 13, 2026 · Operations

Does Upgrading Nginx → Upstream to HTTP/2 Really Boost Performance?

This article details a systematic performance test of Nginx 1.29.x’s new HTTP/2 upstream support, comparing HTTP/1.1, HTTP/2 with keep‑alive, and HTTP/1.0 baselines across various payload sizes, connection‑pool settings, and large‑header scenarios to determine when protocol upgrades yield real throughput or latency gains.

HTTP2KeepaliveNginx
0 likes · 22 min read
Does Upgrading Nginx → Upstream to HTTP/2 Really Boost Performance?
Tech Musings
Tech Musings
Apr 10, 2026 · Fundamentals

Why Go’s New Hasher[T] Interface Redefines Safe Generic Hashing

Go’s 2025 addition of the generic Hasher[T] interface to hash/maphash standardizes safe hashing by embedding a random seed throughout recursive calls, resolves previous design flaws, and provides clear guidelines for custom hashers, comparable types, and practical applications such as Bloom filters, all while ensuring performance and correctness.

BloomFilterGenericshashing
0 likes · 18 min read
Why Go’s New Hasher[T] Interface Redefines Safe Generic Hashing
Tech Musings
Tech Musings
Apr 2, 2026 · Operations

Did You Know Nginx Now Enables HTTP/1.1 Keep‑Alive by Default?

The article reveals that recent Nginx releases have made HTTP/1.1 keep‑alive the default configuration, eliminating the need for explicit proxy_http_version and Connection header settings, and explains how this reduces handshakes, lowers latency, and improves first‑byte response times for typical web applications.

Keep-AliveNginxPerformance
0 likes · 2 min read
Did You Know Nginx Now Enables HTTP/1.1 Keep‑Alive by Default?
Tech Musings
Tech Musings
Mar 27, 2026 · Backend Development

Why Go’s database/sql Deadlock Needed a New closingMutex and How It Works

Go’s database/sql package can deadlock when a Scan holds a read lock, a cancelled context triggers Close, and Columns attempts another read lock, but the new closingMutex introduced in Go’s source replaces the generic sync.RWMutex to allow reads during pending writes, preventing the deadlock.

DeadlockGoTesting
0 likes · 16 min read
Why Go’s database/sql Deadlock Needed a New closingMutex and How It Works
Tech Musings
Tech Musings
Mar 26, 2026 · Backend Development

Why Netpoll Beats Go’s net Library for 60k Connections: A Deep Dive

An extensive benchmark compares Go’s standard net client with the event‑driven cloudwego/netpoll client under 60,000 concurrent connections, revealing how goroutine explosion, memory usage, and scheduler overhead differ, and demonstrates how a single scheduler plus a bounded goroutine pool dramatically reduces resource consumption.

GoGoroutinebenchmark
0 likes · 17 min read
Why Netpoll Beats Go’s net Library for 60k Connections: A Deep Dive
Tech Musings
Tech Musings
Mar 26, 2026 · Backend Development

Why netpoll Beats Go’s net Library: 99.99% Goroutine Reduction & 40% CPU Savings

A three‑hour benchmark on an 8C‑16G Linux host compares the standard Go net client with the netpoll client under 60,000 concurrent connections, revealing a 27.6% drop in client memory, a 99.99% cut in goroutine count, a 29.5% reduction in host memory, and a 40.7% lower CPU usage while maintaining the same throughput.

GoGoroutinebenchmark
0 likes · 14 min read
Why netpoll Beats Go’s net Library: 99.99% Goroutine Reduction & 40% CPU Savings