go-programming

Tag

Cards List
#go-programming

When float division beats integer division

Lobsters Hottest · 14h ago Cached

A blog post explaining a counterintuitive optimization where using float division (DIVSD) instead of integer division (IDIVQ) yields faster performance on modern CPUs, with benchmarks and assembly analysis.

0 favorites 0 likes
#go-programming

Self-calling executables

Lobsters Hottest · 2026-06-02 Cached

This article explains the concept of self-calling executables, where a program starts another instance of itself, and demonstrates its use in Go testing (running the main function in a subprocess) and in TUI tools (e.g., jjui using SSH_ASKPASS to prompt for passwords via a child process).

0 favorites 0 likes
#go-programming

Tips to debug hanging Go programs

Michael Stapelberg · 2025-02-27 Cached

A practical guide covering three methods to debug hanging Go programs: using SIGQUIT to print stack traces, attaching the delve debugger, and saving core dumps for later analysis.

0 favorites 0 likes
← Back to home

Submit Feedback