Reddit Programming
199 subscribers
1.22K photos
126K links
I will send you newest post from subreddit /r/programming
Download Telegram
Domain-Driven Design: Lean Aggregates
https://www.reddit.com/r/programming/comments/1scjod7/domaindriven_design_lean_aggregates/

<!-- SC_OFF -->In DDD, an aggregate is a consistency boundary, not just a container for related data. If you find yourself loading massive object graphs for simple updates, you might be falling into a common trap. <!-- SC_ON --> submitted by /u/deniskyashif (https://www.reddit.com/user/deniskyashif)
[link] (https://deniskyashif.com/2026/04/04/domain-driven-design-lean-aggregates/) [comments] (https://www.reddit.com/r/programming/comments/1scjod7/domaindriven_design_lean_aggregates/)
A whole boss fight in 256 bytes
https://www.reddit.com/r/programming/comments/1sde1vx/a_whole_boss_fight_in_256_bytes/

<!-- SC_OFF -->Technical write up for "Endbot" 256 bytes MSDOS program with plot, sync, sound, and payoff. Released April 4th at Revision Demoparty 2026. <!-- SC_ON --> submitted by /u/Hell__Mood (https://www.reddit.com/user/Hell__Mood)
[link] (https://hellmood.111mb.de//A_whole_boss_fight_in_256_bytes.html) [comments] (https://www.reddit.com/r/programming/comments/1sde1vx/a_whole_boss_fight_in_256_bytes/)
Creating a Physics Engine in C - YouTube
https://www.reddit.com/r/programming/comments/1sdirt2/creating_a_physics_engine_in_c_youtube/

<!-- SC_OFF -->This is a little thing I cooked up today. I should be catching up on assignments, but I had this project on the back burner and decided to finally commit to it. Here it is, hope you guys enjoy! In the future, I plan to go far more in-depth on physics concepts and teach them through programming, if anyone wants to see that, let me know. <!-- SC_ON --> submitted by /u/nerdy_guy420 (https://www.reddit.com/user/nerdy_guy420)
[link] (https://youtu.be/khJm2A03MEI) [comments] (https://www.reddit.com/r/programming/comments/1sdirt2/creating_a_physics_engine_in_c_youtube/)
How Linux executes binaries: ELF and dynamic linking explained
https://www.reddit.com/r/programming/comments/1sdp20m/how_linux_executes_binaries_elf_and_dynamic/

<!-- SC_OFF -->After 25 years working with Linux internals I wrote this article. It's a deep dive into how Linux executes binaries, focusing on ELF internals and dynamic linking. Covers GOT/PLT, relocations, and what actually happens at runtime (memory mappings, syscalls, dynamic loader). Happy to discuss or clarify any part. <!-- SC_ON --> submitted by /u/Solid-Film-818 (https://www.reddit.com/user/Solid-Film-818)
[link] (https://fmdlc.github.io/tty0/Linux_ELF_Dynamic_linking_EN.html) [comments] (https://www.reddit.com/r/programming/comments/1sdp20m/how_linux_executes_binaries_elf_and_dynamic/)
Measuring Jitter: Standard Linux vs PREEMPT_RT under heavy load
https://www.reddit.com/r/programming/comments/1se3lsn/measuring_jitter_standard_linux_vs_preempt_rt/

<!-- SC_OFF --> I've been working on a Software PLC where microsecond-level execution timing is critical. To guarantee real-time performance, I tested and compared the scheduling jitter between a standard Linux kernel and a PREEMPT_RT patched kernel (Ubuntu 24.04). The Setup: A C++ task waking up every 10ms using clock_nanosleep, running for 10,000 iterations. Applied heavy system load using stress-ng (CPU 100%, Disk I/O, Context switches, Page faults). CPU governor set to 'performance'. The Results (Worst-case Jitter): Standard Linux Kernel: Extremely unpredictable. Jitter spiked up to ~650 µs when the system was under stress. PREEMPT_RT Kernel: Very stable. The worst-case jitter was strictly bounded under 70 µs. It's impressive how much stability the PREEMPT_RT patch brings to a general-purpose OS without needing a dedicated RTOS. I also learned a hard lesson about not doing File I/O inside an RT loop the hard way! 😅 Any feedback or tips on further tuning (like IRQ Affinity) would be greatly appreciated! <!-- SC_ON --> submitted by /u/Special_Ad5912 (https://www.reddit.com/user/Special_Ad5912)
[link] (https://prejudice.tistory.com/42) [comments] (https://www.reddit.com/r/programming/comments/1se3lsn/measuring_jitter_standard_linux_vs_preempt_rt/)
C3 closes out its 0.7 era — focusing on simplicity and control before 0.8
https://www.reddit.com/r/programming/comments/1set2gu/c3_closes_out_its_07_era_focusing_on_simplicity/

<!-- SC_OFF -->C3 is trying to stay close to C in terms of control and predictability,
without piling on too much complexity This release is mostly about tightening semantics, improving inference,
and removing edge cases before moving into the 0.8 cycle. It’s less about adding features and more about making the language and standard library consistent. <!-- SC_ON --> submitted by /u/Nuoji (https://www.reddit.com/user/Nuoji)
[link] (https://c3-lang.org/blog/c3-0-7-11-the-last-v0-7/) [comments] (https://www.reddit.com/r/programming/comments/1set2gu/c3_closes_out_its_07_era_focusing_on_simplicity/)