Reddit Programming
194 subscribers
1.22K photos
127K links
I will send you newest post from subreddit /r/programming
Download Telegram
How Grafana Alloy Builds and Runs Its Component Graph
https://www.reddit.com/r/programming/comments/1uebi9d/how_grafana_alloy_builds_and_runs_its_component/

<!-- SC_OFF -->I spent some time reading Grafana Alloy’s source code to understand how it loads configuration, builds a dependency graph, evaluates components, and runs them. I wrote a short breakdown of what I learned, mainly focused on the runtime/controller, loader, scheduler, services, and component lifecycle. It is not a complete deep dive into the whole project, but more of a source-code reading note from exploring a real production Go codebase. Feedback is welcome, especially from people familiar with observability systems or large Go codebases. <!-- SC_ON --> submitted by /u/am0123 (https://www.reddit.com/user/am0123)
[link] (https://abdellani.dev/posts/2026-06-23-how-grafana-alloy-builds-and-runs-its-component-graph/) [comments] (https://www.reddit.com/r/programming/comments/1uebi9d/how_grafana_alloy_builds_and_runs_its_component/)
The Evolution of User Interfaces • Ken Pfeuffer
https://www.reddit.com/r/programming/comments/1uebttq/the_evolution_of_user_interfaces_ken_pfeuffer/

<!-- SC_OFF -->Every generation gets a new interface: ⌨️ Keyboard
🖱️ Mouse
📱 Touchscreen What's next? <!-- SC_ON --> submitted by /u/goto-con (https://www.reddit.com/user/goto-con)
[link] (https://youtu.be/c0oewpwkwOg?list=PLEx5khR4g7PINwOsYrkwz3lTTJUYoXC53) [comments] (https://www.reddit.com/r/programming/comments/1uebttq/the_evolution_of_user_interfaces_ken_pfeuffer/)
Measuring cache misses on macOS with Instruments
https://www.reddit.com/r/programming/comments/1uecln7/measuring_cache_misses_on_macos_with_instruments/

<!-- SC_OFF -->I couldn't find many resources online that showed how to see cache misses on macOS. I thought I'd learn a bit about Instruments, throw some toy problems at it, and write about the experience in a blog post. These toy examples - iterating sequentially then randomly, summing elements in a matrix, naive vs tiled matmul and iterating AoS vs SoA - are great to see some real numbers from L1 data cache misses, but they're far away from real programming problems. What's your experience using tools like Instruments/perf/cachegrind to actually optimize an algorithm? Is it ever needed to measure this at the hardware counter level or can you get away with intuition about the size of your data structure, how it's been accessed and using basic timers? <!-- SC_ON --> submitted by /u/markuzo1 (https://www.reddit.com/user/markuzo1)
[link] (https://www.markuzo.me/2026/06/24/caching-profiling-macos.html) [comments] (https://www.reddit.com/r/programming/comments/1uecln7/measuring_cache_misses_on_macos_with_instruments/)
Risks in Software Development: How to Match Your Caution to What’s Actually at Stake
https://www.reddit.com/r/programming/comments/1uegdl5/risks_in_software_development_how_to_match_your/

<!-- SC_OFF -->One of the most important blogs I have written in the last 25 years that most devs struggle with. <!-- SC_ON --> submitted by /u/watson_full_scale (https://www.reddit.com/user/watson_full_scale)
[link] (https://fullscale.io/blog/risks-in-software-development/) [comments] (https://www.reddit.com/r/programming/comments/1uegdl5/risks_in_software_development_how_to_match_your/)