212
I will send you newest post from subreddit /r/programming
High Speed Networking: The View from the Machine
https://www.reddit.com/r/programming/comments/1tkp5rs/high_speed_networking_the_view_from_the_machine/
submitted by /u/Middle_Ad4847 (https://www.reddit.com/user/Middle_Ad4847)
[link] (https://blog.c21-mac.com/posts/high-speed-networking-part-1/) [comments] (https://www.reddit.com/r/programming/comments/1tkp5rs/high_speed_networking_the_view_from_the_machine/)
Creator of C++ talks about memory safety
https://www.reddit.com/r/programming/comments/1tkivsv/creator_of_c_talks_about_memory_safety/
submitted by /u/dukey (https://www.reddit.com/user/dukey)
[link] (https://www.youtube.com/watch?v=U46fJ2bJ-co&t=2780s) [comments] (https://www.reddit.com/r/programming/comments/1tkivsv/creator_of_c_talks_about_memory_safety/)
16 bytes of code that turn Sierpinski waves into Matrix rain
https://www.reddit.com/r/programming/comments/1tkh0w0/16_bytes_of_code_that_turn_sierpinski_waves_into/
<!-- SC_OFF -->Hey babe, stop what you're doing, HellMood dropped another WriteUp xD
Jokes aside, this is an in depth explanation of the underlying math that allow 16 bytes of x86 code to produce a visual textmode effect and music at the same time. "MiragePT", a demo scener, let the thing run on a real old 286 system with MDA Hercules graphics and it ran there as well. Also included some background information that i was asked for. Since i have done this for so many years i might have left out details you might find interesting. In that case, please leave a comment and i'll work that in. Have fun reading! <!-- SC_ON --> submitted by /u/Hell__Mood (https://www.reddit.com/user/Hell__Mood)
[link] (https://hellmood.111mb.de//wake_up_16b_writeup.html) [comments] (https://www.reddit.com/r/programming/comments/1tkh0w0/16_bytes_of_code_that_turn_sierpinski_waves_into/)
Building an external query planner: E-Graphs, measure-aware rewriting, and cross-dialect SQL
https://www.reddit.com/r/programming/comments/1tjoauj/building_an_external_query_planner_egraphs/
submitted by /u/keydunov (https://www.reddit.com/user/keydunov)
[link] (https://cube.dev/blog/how-semantic-sql-works) [comments] (https://www.reddit.com/r/programming/comments/1tjoauj/building_an_external_query_planner_egraphs/)
A performance regression in code I didn’t touch: debugging an L1 i-cache associativity issue
https://www.reddit.com/r/programming/comments/1tjk7x6/a_performance_regression_in_code_i_didnt_touch/
<!-- SC_OFF -->It's often being talked about data cache associativity issue, but instruction cache associativity seems to be much less discussed. I ran into a surprising performance regression that turned out to be caused by L1 instruction cache associativity. This happened in a go codebase, but the underlying issue is language-agnostic. <!-- SC_ON --> submitted by /u/watman12 (https://www.reddit.com/user/watman12)
[link] (https://blog.andr2i.com/posts/2026-05-19-a-regression-in-code-i-didn-t-touch) [comments] (https://www.reddit.com/r/programming/comments/1tjk7x6/a_performance_regression_in_code_i_didnt_touch/)
We replaced Redis with MySQL for inventory reservations — and it scaled
https://www.reddit.com/r/programming/comments/1tji4b9/we_replaced_redis_with_mysql_for_inventory/
submitted by /u/mlenol (https://www.reddit.com/user/mlenol)
[link] (https://shopify.engineering/scaling-inventory-reservations) [comments] (https://www.reddit.com/r/programming/comments/1tji4b9/we_replaced_redis_with_mysql_for_inventory/)
Technical Interviews Reject the Wrong Engineers
https://www.reddit.com/r/programming/comments/1tjh9p9/technical_interviews_reject_the_wrong_engineers/
submitted by /u/fagnerbrack (https://www.reddit.com/user/fagnerbrack)
[link] (https://fagnerbrack.com/technical-interviews-reject-the-wrong-engineers-a8e78ca04b2e) [comments] (https://www.reddit.com/r/programming/comments/1tjh9p9/technical_interviews_reject_the_wrong_engineers/)
Gauss Lattice Sieve Algorithm from scratch in C using FLINT
https://www.reddit.com/r/programming/comments/1tjf50f/gauss_lattice_sieve_algorithm_from_scratch_in_c/
submitted by /u/DataBaeBee (https://www.reddit.com/user/DataBaeBee)
[link] (https://leetarxiv.substack.com/p/gauss-lll-sieve) [comments] (https://www.reddit.com/r/programming/comments/1tjf50f/gauss_lattice_sieve_algorithm_from_scratch_in_c/)
A Markdown-based test suite
https://www.reddit.com/r/programming/comments/1tjd6qw/a_markdownbased_test_suite/
submitted by /u/Successful_Bowl2564 (https://www.reddit.com/user/Successful_Bowl2564)
[link] (https://blogsystem5.substack.com/p/markdown-based-test-suite) [comments] (https://www.reddit.com/r/programming/comments/1tjd6qw/a_markdownbased_test_suite/)
Theme-D-Intr v1.0.1 adds D-Bus support for inter-process communication
https://www.reddit.com/r/programming/comments/1tjcerk/themedintr_v101_adds_dbus_support_for/
<!-- SC_OFF -->Theme-D-Intr version 1.0.1 adds D-Bus support for inter-process communication to programming language Theme-D. Theme-D-Intr uses G-Golf and D-Bus functionality in GLib for D-Bus. The D-Bus support consists of: D-Bus API in Theme-D Generation of type-safe Theme-D wrappers for D-Bus interfaces Links: Theme-D-Intr homepage (https://www.iki.fi/tohoyn/theme-d-intr/) Theme-D-Intr documentation (https://www.iki.fi/tohoyn/theme-d-intr/documentation.html) Theme-D programming language (https://www.iki.fi/tohoyn/theme-d/) An example use case with D-Bus server and client can be found here (https://sourceforge.net/p/theme-d-intr/code/ci/master/tree/examples/intr-dbus-examples/server-and-client-1/). <!-- SC_ON --> submitted by /u/tohoyn1 (https://www.reddit.com/user/tohoyn1)
[link] (https://www.iki.fi/tohoyn/theme-d-intr/) [comments] (https://www.reddit.com/r/programming/comments/1tjcerk/themedintr_v101_adds_dbus_support_for/)
Google publishes exploit code threatening millions of Chromium users
https://www.reddit.com/r/programming/comments/1tj77ww/google_publishes_exploit_code_threatening/
submitted by /u/CircumspectCapybara (https://www.reddit.com/user/CircumspectCapybara)
[link] (https://arstechnica.com/security/2026/05/google-publishes-exploit-code-threatening-millions-of-chromium-users/) [comments] (https://www.reddit.com/r/programming/comments/1tj77ww/google_publishes_exploit_code_threatening/)
Virtual Museum with Every Operating System You Can Think Of
https://www.reddit.com/r/programming/comments/1tij6js/virtual_museum_with_every_operating_system_you/
submitted by /u/MorroWtje (https://www.reddit.com/user/MorroWtje)
[link] (https://virtualosmuseum.org/) [comments] (https://www.reddit.com/r/programming/comments/1tij6js/virtual_museum_with_every_operating_system_you/)
CISA accidentally leaked their own keys on GitHub
https://www.reddit.com/r/programming/comments/1thze09/cisa_accidentally_leaked_their_own_keys_on_github/
submitted by /u/PM-ME-UR-DARKNESS (https://www.reddit.com/user/PM-ME-UR-DARKNESS)
[link] (https://krebsonsecurity.com/2026/05/cisa-admin-leaked-aws-govcloud-keys-on-github/) [comments] (https://www.reddit.com/r/programming/comments/1thze09/cisa_accidentally_leaked_their_own_keys_on_github/)
width (GCD(12, 40) = 4) ensures the loop visits exactly one-quarter of the columns (10). Consequently, the fractal is rendered not as a contiguous image, but sheared diagonally into 10 evenly spaced vertical columns ascending the screen. 6. Final Observations on Memory Dependency If we picture this routine running on a classic monochrome green monitor, we would observe ten distinct pillars of flickering, ascending glyphs, accompanied by an electronic tone mirroring the geometric density of the pattern. However, it is important to acknowledge a practical reality regarding the initial state of the hardware. The theoretical model assumes a perfectly initialized, predictable environment. In reality, after the BIOS interrupt 10h, different system configurations, varying VGA BIOS implementations, and modern emulators (like DOSBox or PCem) can leave slightly different artifacts or default values in the upper regions of RAM. Because our algorithm continually reads and XORs against whatever is already present in memory, it will interact directly with these existing bits. As a result, the effect is highly sensitive to its environment. The visual characters displayed and the timbre of the sound may vary noticeably depending on the specific machine or emulator executing the code. To guarantee an identical, uniform output across every possible hardware configuration, one would simply need to add a brief setup routine to explicitly clear or preset the entire memory segment. While this would ensure theoretical perfection, it would naturally require a slightly larger footprint than the strict 16-byte limit allows. Ultimately, any of these memory environments can be reproduced on any other system with a little bit more code space, but embracing the subtle unpredictability of the machine's natural state is simply part of the charm of working within such tight constraints. Thank you very much for reading. <!-- SC_ON --> submitted by /u/Hell__Mood (https://www.reddit.com/user/Hell__Mood)
[link] (https://hellmood.111mb.de//wake_up_16b_writeup.html) [comments] (https://www.reddit.com/r/programming/comments/1tg4hy6/writeup_16_bytes_of_x86_that_turn_matrix_rain/)
WriteUp: 16 bytes of x86 that turn Matrix rain into sound
https://www.reddit.com/r/programming/comments/1tg4hy6/writeup_16_bytes_of_x86_that_turn_matrix_rain/
<!-- SC_OFF -->At the Outline Demoparty in May 2026, held in Ommen, NL, a tiny 16-byte MS-DOS production called "wake up! 16b" was released. In the demoscene, exploring what can be achieved within extreme constraints is a very rewarding technical challenge. This specific snippet utilizes the computer's video memory as a calculation space to draw an infinite Sierpinski fractal, while simultaneously interpreting that geometry as audio data. Here are the links if you would like to see and hear it before diving into the code: * Video Capture: YouTube Link (https://youtu.be/MvycyU-kLjg) * Pouet Page: wake up! 16b (https://www.pouet.net/prod.php?which=106210) Here is an exploration of the algorithmic density squeezed into those 16 bytes. The Code int 10h ; 2 bytes - Init Video Mode 0 mov bh, 0xb8 ; 2 bytes - Setup VRAM segment mov ds, bx ; 2 bytes L: lodsb ; 1 byte - Load [SI] to AL, inc SI sub si, 57 ; 3 bytes - Move pointer backward xor [si], al ; 2 bytes - The Cellular Automaton out 61h, al ; 2 bytes - PC Speaker output jmp short L ; 2 bytes - Infinite loop 1. The Canvas: A Primed Void The code begins with a standard BIOS interrupt: int 10h. This initializes Video Mode 0, establishing a 40x25 text mode grid. The subsequent instructions point the Data Segment (DS) to 0xB800, the physical memory address of the VGA/CGA text buffer. When the BIOS clears the screen during this interrupt, it does not fill the memory with absolute zeroes. In text mode, every character space consists of two bytes: the ASCII character and the color attribute. The BIOS initializes all 2,000 character slots uniformly: the ASCII byte is set to 0x20 (the Space character), and the color byte is set to 0x07 (Light Gray text on a Black background). While the screen appears completely empty, it is actually a canvas primed with a uniform pattern of data. This uniformity is highly important. If the memory contained random artifact data, the algorithmic calculations would ingest those discrepancies and shatter the pattern into static. 2. The Engine: Additive Prefix Sums To understand the pure mathematics of the fractal, let us temporarily isolate our variables. We will model a perfectly zeroed state instead of the base 0x20 initialization. Additionally, we will substitute add instead of xor, and step forward by 16 bytes at a time across this memory, assuming the accumulator AL is loaded with the value 2. A real-mode DOS segment spans exactly 65,536 bytes. By moving forward 16 bytes per iteration, it takes exactly 4,096 steps to traverse the segment. When the SI register advances past 0xFFFF, it wraps cleanly back to 0x0000. As the loop progresses, it adds the current value of the accumulator to the memory cell, reading the updated value back into the accumulator. This effectively creates a running prefix sum. Because 4,096 is a multiple of 256 (the capacity of our 8-bit register), the mathematical carryover aligns when the segment wraps, cleanly resetting AL to 2 at the end of each full sweep. The following table illustrates the first 8 passes of calculation across 16 memory cells, demonstrating how the values accumulate row by row modulo 256: P 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 3 6 12 20 30 42 56 72 90 110 132 156 182 210 240 16 50 4 8 20 40 70 112 168 240 74 184 60 216 142 96 80 96 146 5 10 30 70 140 252 164 148 222 150 210 170 56 152 232 72 218 6 12 42 112 252 248 156 48 14 164 118 32 88 240 216 32 250 7 14 56 168 164 156 56 104 118 26 144 176 8 248 208 240 234 8 16 72 240 148 48 104 208 70 96 240 160 168 160 112 96 74 3. Crystallization: XOR and the Sierpinski Shift A deeper pattern is present within those decimal values. When performing binary addition, the bit-planes carry over into adjacent
Lessons I Learned from Creating Searx
https://www.reddit.com/r/programming/comments/1tkjoy4/lessons_i_learned_from_creating_searx/
submitted by /u/asciimoo (https://www.reddit.com/user/asciimoo)
[link] (https://hister.org/posts/lessons-i-learned-from-creating-searx) [comments] (https://www.reddit.com/r/programming/comments/1tkjoy4/lessons_i_learned_from_creating_searx/)
How Container Registries Work: Pushing and Pulling Images Without Docker
https://www.reddit.com/r/programming/comments/1tki1qd/how_container_registries_work_pushing_and_pulling/
submitted by /u/iximiuz (https://www.reddit.com/user/iximiuz)
[link] (https://labs.iximiuz.com/tutorials/container-registry-from-scratch) [comments] (https://www.reddit.com/r/programming/comments/1tki1qd/how_container_registries_work_pushing_and_pulling/)
I tried to melt my Intel Ultra 7 router setup simulating 250 VR users for an off-grid festival app. Here's what happened.
https://www.reddit.com/r/programming/comments/1tk9b18/i_tried_to_melt_my_intel_ultra_7_router_setup/
submitted by /u/Existing_Leopard_231 (https://www.reddit.com/user/Existing_Leopard_231)
[link] (https://linustechtips.com/topic/1637924-i-tried-to-melt-my-intel-ultra-7-router-setup-simulating-250-vr-users-for-an-off-grid-festival-app-heres-what-happened/) [comments] (https://www.reddit.com/r/programming/comments/1tk9b18/i_tried_to_melt_my_intel_ultra_7_router_setup/)
Simulating Infinity in Conway’s Game of Life with Modern C++
https://www.reddit.com/r/programming/comments/1tjmukr/simulating_infinity_in_conways_game_of_life_with/
submitted by /u/Dear-Economics-315 (https://www.reddit.com/user/Dear-Economics-315)
[link] (https://ryanjk5.github.io/posts/GOLDE/) [comments] (https://www.reddit.com/r/programming/comments/1tjmukr/simulating_infinity_in_conways_game_of_life_with/)
Go for Java Programmers • Barry Feigenbaum & Shon Saliga
https://www.reddit.com/r/programming/comments/1tjipt8/go_for_java_programmers_barry_feigenbaum_shon/
<!-- SC_OFF -->Dr. Barry Feigenbaum, an IBM, Amazon and Dell veteran, spent time working with Golang and liked it enough to write the book he wished had existed when he made the switch. <!-- SC_ON --> submitted by /u/goto-con (https://www.reddit.com/user/goto-con)
[link] (https://youtu.be/vw2k5WVPJKE?list=PLEx5khR4g7PJbSLmADahf0LOpTLifiCra) [comments] (https://www.reddit.com/r/programming/comments/1tjipt8/go_for_java_programmers_barry_feigenbaum_shon/)
Building a mini serverless platform with Firecracker microVMs
https://www.reddit.com/r/programming/comments/1tjh9z7/building_a_mini_serverless_platform_with/
submitted by /u/viks98 (https://www.reddit.com/user/viks98)
[link] (vivek1502/building-an-aws-lambda-like-runtime-with-firecracker-microvms-42a418c6e3d7" rel="nofollow">https://medium.com/@vivek1502/building-an-aws-lambda-like-runtime-with-firecracker-microvms-42a418c6e3d7) [comments] (https://www.reddit.com/r/programming/comments/1tjh9z7/building_a_mini_serverless_platform_with/)
Staged publishing for npm packages
https://www.reddit.com/r/programming/comments/1tjfxb6/staged_publishing_for_npm_packages/
submitted by /u/pimterry (https://www.reddit.com/user/pimterry)
[link] (https://docs.npmjs.com/staged-publishing) [comments] (https://www.reddit.com/r/programming/comments/1tjfxb6/staged_publishing_for_npm_packages/)
Modern Python Tooling in 2026
https://www.reddit.com/r/programming/comments/1tjezeq/modern_python_tooling_in_2026/
submitted by /u/yangzhou1993 (https://www.reddit.com/user/yangzhou1993)
[link] (https://medium.com/gitconnected/modern-python-tooling-in-2026-uv-ruff-pyproject-toml-and-a-cleaner-workflow-4d1f7872f7be?sk=d34f81ecbf7bec02caecfcc024a2ab0c) [comments] (https://www.reddit.com/r/programming/comments/1tjezeq/modern_python_tooling_in_2026/)
Clojure Multiarity functions
https://www.reddit.com/r/programming/comments/1tjcprt/clojure_multiarity_functions/
submitted by /u/Efficient-Public-551 (https://www.reddit.com/user/Efficient-Public-551)
[link] (https://youtu.be/MPGOfJboXys) [comments] (https://www.reddit.com/r/programming/comments/1tjcprt/clojure_multiarity_functions/)
Curly braces: An evolution of UNIX and C
https://www.reddit.com/r/programming/comments/1tjayv4/curly_braces_an_evolution_of_unix_and_c/
submitted by /u/mttd (https://www.reddit.com/user/mttd)
[link] (https://thalia.dev/blog/unix-braces/) [comments] (https://www.reddit.com/r/programming/comments/1tjayv4/curly_braces_an_evolution_of_unix_and_c/)
YAML? That's Norway problem
https://www.reddit.com/r/programming/comments/1tj1bcs/yaml_thats_norway_problem/
submitted by /u/fagnerbrack (https://www.reddit.com/user/fagnerbrack)
[link] (https://lab174.com/blog/202601-yaml-norway/) [comments] (https://www.reddit.com/r/programming/comments/1tj1bcs/yaml_thats_norway_problem/)
New NGINX Vulnerability Allows Unauthenticated RCE
https://www.reddit.com/r/programming/comments/1tiil62/new_nginx_vulnerability_allows_unauthenticated_rce/
submitted by /u/CircumspectCapybara (https://www.reddit.com/user/CircumspectCapybara)
[link] (https://cybersecuritynews.com/nginx-buffer-overflow-vulnerability) [comments] (https://www.reddit.com/r/programming/comments/1tiil62/new_nginx_vulnerability_allows_unauthenticated_rce/)
Bun.js middleware in 2026: what it is, how it works, how to optimize it, and where not to break your API
https://www.reddit.com/r/programming/comments/1tg4vsv/bunjs_middleware_in_2026_what_it_is_how_it_works/
submitted by /u/ukolovnazarpes7 (https://www.reddit.com/user/ukolovnazarpes7)
[link] (https://pas7.com.ua/blog/en/bun-js-middleware-guide-2026) [comments] (https://www.reddit.com/r/programming/comments/1tg4vsv/bunjs_middleware_in_2026_what_it_is_how_it_works/)
positions. However, if we discard the arithmetic carry and perform addition strictly modulo 2, we are left with the Exclusive OR (xor) operation. By using xor instead of add, the algorithm isolates the bit-planes. Because our modeled starting value is 2 (binary 00000010), only Bit 1 is ever affected by this specific calculation. The cascading decimal numbers become a pure toggle between 0x00 and 0x02. This progression maps perfectly to Rule 60 in Stephen Wolfram's elementary cellular automata: Cell[p][k] = Cell[p-1][k] ^ Cell[p][k-1] We can validate this by visualizing the binary propagation over 8 passes, where the solid blocks represent Bit 1 being set: P1: █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ P2: ░ █ ░ █ ░ █ ░ █ ░ █ ░ █ ░ █ ░ █ P3: █ ░ ░ █ █ ░ ░ █ █ ░ ░ █ █ ░ ░ █ P4: ░ ░ ░ █ ░ ░ ░ █ ░ ░ ░ █ ░ ░ ░ █ P5: █ █ █ ░ ░ ░ ░ █ █ █ █ ░ ░ ░ ░ █ P6: ░ █ ░ ░ ░ ░ ░ █ ░ █ ░ ░ ░ ░ ░ █ P7: █ ░ ░ ░ ░ ░ ░ █ █ ░ ░ ░ ░ ░ ░ █ P8: ░ ░ ░ ░ ░ ░ ░ █ ░ ░ ░ ░ ░ ░ ░ █ 4. The Voice of the Machine: Translating Data to Audio A remarkably elegant detail lies in the instruction: out 61h, al Port 61h interfaces with the internal PC speaker. Bit 1 of this port directly controls the speaker cone by pushing it outward when set to 1, and returning it when set to 0. Our routine computes the fractal via XOR, updates the memory, and immediately sends that byte to the speaker port. Because the algorithm specifically isolates and toggles Bit 1, the geometry of the Sierpinski triangle serves as a direct set of instructions for the speaker cone. The execution speed of the CPU establishes the functional sample rate. When the fractal produces an alternating row (like Pass 2), it outputs a higher-frequency square wave. When the structure introduces larger blocks of zeroes (the empty regions within the triangles, such as in Pass 4), the speaker cone remains stationary, resulting in rhythmic pauses. The resulting audio is a direct sonic representation of the mathematical structure. 5. The 56-Byte Step: Octave Shifts and Diagonal Shears Returning to the actual code, we notice it does not step by 16. The instruction sub si, 57, combined with the increment from lodsb, results in a net movement of -56 bytes per iteration. The routine traverses memory in reverse. This adjustment alters both the auditory frequency and the visual layout of the output. The Audio: While a 16-byte step completes a segment sweep in exactly 4,096 iterations, 56 does not divide 65,536 evenly. The loop visits only offsets that are multiples of 8, requiring 8,192 iterations to hit all available addresses, and wrapping around the segment 7 times before returning to 0x0000. Since 8,192 is divisible by 256, the mathematical continuity of the Sierpinski sequence is preserved. However, because the macro-cycle takes twice as many CPU cycles to complete a pass, it halves the fundamental frequency of the system. This drops the auditory rhythm by exactly one octave, yielding a slower and deeper tone. It is here that the routine's dual-purpose nature truly shines. The algorithm writes directly to the ASCII character bytes, where Bit 1 is exclusively responsible for toggling the speaker cone. Meanwhile, the remaining seven bits mutate into a cascade of pseudo-random ASCII glyphs, providing the chaotic visual texture of the production. Remarkably, sending this entire mixed-data byte directly to system port 61h does not disrupt the system. In standard DOS environments and modern emulators, pushing these extra bits to the port is effectively harmless. This elegant coincidence allows the visual character data to safely double as the audio signal without causing a hardware crash. The Visuals: Stepping backward by 56 bytes is spatially equivalent to moving forward by 24 bytes on an 80-byte grid. Given that each character space occupies 2 bytes, a 24-byte shift equals exactly 12 columns. The sequence progresses up 1 row and right 12 columns per step. Calculating the Greatest Common Divisor of the column step and the screen
Читать полностью…
Confusing Consumption with Creation in Modern Software
https://www.reddit.com/r/programming/comments/1tg1jwl/confusing_consumption_with_creation_in_modern/
submitted by /u/Greedy_Principle5345 (https://www.reddit.com/user/Greedy_Principle5345)
[link] (https://codingismycraft.blog/index.php/2026/05/17/confusing-consumption-with-creation-in-modern-software/) [comments] (https://www.reddit.com/r/programming/comments/1tg1jwl/confusing_consumption_with_creation_in_modern/)