Hacker GitHub

← All repos

vvvvv/dlg

View on GitHub ↗ ★ 165 Go

Printf-Style Debugging with Zero-Cost in Production Builds

3 mentions on Hacker News by 2 people: 1 story, 2 comments · first 2025-07-27 · latest 2025-07-31

Mentions per year 3 mentions · busiest year 2025 (3)
20082026
  1. …and what to watch out for to ensure that calls to dlg.Printf can actually be eliminated: https://github.com/vvvvv/dlg?tab=readme-ov-file#true-zero-co... I'd appreciate any feedback on whether these changes make the behavior more…
  2. …to show that you're right and that code isn't dead so it can't be eliminated: package main import ( "fmt" "github.com/vvvvv/dlg" ) func risky() error { _, err := fmt.Printf("unexpected error\n") return err } func main() {…