Reddit Programming
199 subscribers
1.22K photos
127K links
I will send you newest post from subreddit /r/programming
Download Telegram
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/)
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/)
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/)
Writing VBA modules inside Excel files is much stranger than I expected
https://www.reddit.com/r/programming/comments/1tkxs4c/writing_vba_modules_inside_excel_files_is_much/

<!-- SC_OFF -->Writing VBA back into Excel files is not “just editing text in a zip file” I went down the rabbit hole of exploring how VBA modules are stored inside Office files, and the format is much stranger than I expected. The most surprising part is how many layers are involved. For a modern .xlsm file, the path looks roughly like this: text Excel workbook -> ZIP / Open XML package -> xl/vbaProject.bin -> Microsoft Compound File Binary -> VBA project streams -> compressed module source So replacing a VBA module is not just: text open file replace text save file It is closer to: text preserve the workbook container extract vbaProject.bin parse the compound file decompress the VBA streams find the real source offset replace only the source body recompress it correctly invalidate Office caches drop stale compiled-cache streams avoid breaking protected or signed projects put everything back without touching unrelated bytes A few details made this more interesting than expected: the dir stream is itself compressed module source does not always start at byte zero VBA source uses the project codepage, not UTF-8 short final compression chunks cannot be written as raw chunks Office stores compiled cache streams that should not be rewritten digital signatures become invalid after source changes the real test is “does Excel reopen it without a "your workbook is broken" prompt?” The main lesson: Editing VBA inside Office files is not just editing a script file inside of a zip file. It's way more complicated. You have to maintain a small filesystem, a compression format, a project manifest, and a set of Office-specific safety rules at the same time. Implementation guide: https://github.com/WilliamSmithEdward/pyOpenVBA/blob/main/docs/ms-ovba-implementation-guide_v2.md References: Microsoft MS-OVBA specification Microsoft Compound File Binary format Office Open XML package structure Real Excel workbooks tested against Excel for Microsoft 365 <!-- SC_ON --> submitted by /u/MultiUserDungeonDev (https://www.reddit.com/user/MultiUserDungeonDev)
[link] (https://github.com/WilliamSmithEdward/pyOpenVBA/blob/main/docs/ms-ovba-implementation-guide_v2.md) [comments] (https://www.reddit.com/r/programming/comments/1tkxs4c/writing_vba_modules_inside_excel_files_is_much/)
How I Built a Confluence Crawler
https://www.reddit.com/r/programming/comments/1tkxx4e/how_i_built_a_confluence_crawler/

<!-- SC_OFF -->A writeup about building confluence2md, a Go CLI tool that converts Confluence wikis to Markdown and the surprisingly deep technical challenges along the way. The article covers: Two-phase crawling: Phase 1 fetches and converts pages with original URLs, Phase 2 rewrites links after knowing the complete page graph (so nothing breaks) Why converting Confluence storage format is painful (XML macros, link rewriting, pagination) Checkpoint-based incremental updates without losing progress Cross-platform release automation with GitHub Actions + GoReleaser The tool is open-source and ready to use. If you've ever needed to migrate off Confluence or build on wiki data, might be useful: https://github.com/gkoos/confluence2md <!-- SC_ON --> submitted by /u/OtherwisePush6424 (https://www.reddit.com/user/OtherwisePush6424)
[link] (https://blog.gaborkoos.com/posts/2026-05-22-How-I-Built-a-Confluence-Crawler/) [comments] (https://www.reddit.com/r/programming/comments/1tkxx4e/how_i_built_a_confluence_crawler/)