reddit_programming | Technologies

Telegram-канал reddit_programming - Reddit Programming

212

I will send you newest post from subreddit /r/programming

Subscribe to a channel

Reddit Programming

Hunting the 30-Year-Old World of Xeen MT-32 Crash
https://www.reddit.com/r/programming/comments/1u3vnne/hunting_the_30yearold_world_of_xeen_mt32_crash/

submitted by /u/finalpatch (https://www.reddit.com/user/finalpatch)
[link] (https://finalpatch.github.io/xeen/index.html) [comments] (https://www.reddit.com/r/programming/comments/1u3vnne/hunting_the_30yearold_world_of_xeen_mt32_crash/)

Читать полностью…

Reddit Programming

Ported my C game to WASM, here's everybug that I hit
https://www.reddit.com/r/programming/comments/1u3lgnf/ported_my_c_game_to_wasm_heres_everybug_that_i_hit/

submitted by /u/ernesernesto (https://www.reddit.com/user/ernesernesto)
[link] (https://ernesernesto.github.io/writes/portingmatchmorphosistowasm/) [comments] (https://www.reddit.com/r/programming/comments/1u3lgnf/ported_my_c_game_to_wasm_heres_everybug_that_i_hit/)

Читать полностью…

Reddit Programming

Less Is More
https://www.reddit.com/r/programming/comments/1u3gqaa/less_is_more/

submitted by /u/PlaneSufficient2245 (https://www.reddit.com/user/PlaneSufficient2245)
[link] (mitko.n/less-is-more-b388580ca48c" rel="nofollow">https://medium.com/@mitko.n/less-is-more-b388580ca48c) [comments] (https://www.reddit.com/r/programming/comments/1u3gqaa/less_is_more/)

Читать полностью…

Reddit Programming

Drupal SQL Code-Injection Vulnerability - Why does it still exist?
https://www.reddit.com/r/programming/comments/1u3aab9/drupal_sql_codeinjection_vulnerability_why_does/

<!-- SC_OFF -->Even with decades of documentation, SQL Code Injection remains a top threat. Train your developers and TPMs! <!-- SC_ON --> submitted by /u/casaaugusta (https://www.reddit.com/user/casaaugusta)
[link] (https://www.akamai.com/blog/security-research/cve-2026-9082-mitigating-critical-sql-injection-drupal) [comments] (https://www.reddit.com/r/programming/comments/1u3aab9/drupal_sql_codeinjection_vulnerability_why_does/)

Читать полностью…

Reddit Programming

Why DROP COLUMN breaks rolling deploys, and a CI linter to catch it
https://www.reddit.com/r/programming/comments/1u388tg/why_drop_column_breaks_rolling_deploys_and_a_ci/

<!-- SC_OFF -->Author here. We kept writing migrations that were fine as a final schema but unsafe during the rollout itself - old pods still reading a column while new pods have already dropped it. Django solved this ages ago with django-migration-linter, which I leaned on for years on Grafana OnCall. Drizzle has nothing like it, so we wrote one for our CI. It diffs new migrations against the base branch and fails on drops, renames, and required columns added in one step. It’s buried in our monorepo right now. There’s an issue linked in the post if you’d want it published to npm. <!-- SC_ON --> submitted by /u/joey-archestra (https://www.reddit.com/user/joey-archestra)
[link] (https://archestra.ai/blog/drizzle-migration-linter) [comments] (https://www.reddit.com/r/programming/comments/1u388tg/why_drop_column_breaks_rolling_deploys_and_a_ci/)

Читать полностью…

Reddit Programming

7 More Common Mistakes in Architecture Diagrams
https://www.reddit.com/r/programming/comments/1u30h1w/7_more_common_mistakes_in_architecture_diagrams/

submitted by /u/fagnerbrack (https://www.reddit.com/user/fagnerbrack)
[link] (https://www.ilograph.com/blog/posts/more-common-diagram-mistakes/) [comments] (https://www.reddit.com/r/programming/comments/1u30h1w/7_more_common_mistakes_in_architecture_diagrams/)

Читать полностью…

Reddit Programming

JEP 401 being merged into JDK 28?
https://www.reddit.com/r/programming/comments/1u2mue3/jep_401_being_merged_into_jdk_28/

submitted by /u/davidalayachew (https://www.reddit.com/user/davidalayachew)
[link] (https://mail.openjdk.org/archives/list/jdk-dev@openjdk.org/message/AIA3O3LHFZ6T7TIPH7KZT4WS4B6U72U5/) [comments] (https://www.reddit.com/r/programming/comments/1u2mue3/jep_401_being_merged_into_jdk_28/)

Читать полностью…

Reddit Programming

Why I chose AOT code-gen over JSON/INI parsing for C configuration files (cfgsafe)
https://www.reddit.com/r/programming/comments/1u1ghlg/why_i_chose_aot_codegen_over_jsonini_parsing_for/

<!-- SC_OFF -->Hey everyone, I got tired of the usual configuration mess in C—manually writing tedious boilerplate to traverse generic JSON/YAML nodes, casting strings to integers, and writing a dozen if statements to handle out-of-range ports or missing environment variables. Worse yet, managing string lifetimes across nested configuration objects. To fix this, I built cfgsafe, an Ahead-of-Time (AOT) schema-driven configuration engine for C99. Instead of processing raw files at runtime, it takes a simple schema file and generates a type-safe, single-header library. I wrote a deep-dive engineering breakdown detailing the philosophy, memory model, and design choices behind it here: Type-Safe Configs in C99: Why I Prefer Code-Gen over Parsing And the github repo: CfgSafe How it works: Define a Schema: You use a simple DSL to declare fields, defaults, constraints (ranges, regex patterns), and sources (Env, CLI flags). Generate: The cfg-gen tool outputs a native C struct with matching validation primitives built straight in. Load Atomically: At startup, you make one call to Config_load. If a field is invalid or missing, it fails fast before your application's hot path even executes. A few specific architectural choices I made: Atomic Memory Pool: To prevent fragmented heap allocations and memory leaks, the generator bundles all incoming string/array values into a single contiguous memory block. Freeing the entire config is reduced to a single call to Config_free(). Zero Overhead Lookups: Because it compiles down to a native C struct, looking up a setting is just a basic memory offset rather than an $O(\log N)$ hash-map lookups or string comparisons. Compile-Time Safety & IDE Autocomplete: If you typo cfg.db.prt instead of cfg.db.port, the compiler refuses to build the app, and your editor knows exactly what fields exist and their data types. Strict Layering & Security: It bakes a strict precedence chain (CLI Arguments > Environment Variables > INI File > Schema Defaults) right into the generated code, and automatically redacts fields marked as secret from auto-generated logs. I would love to hear your thoughts on taking an AOT code-gen approach to application configurations vs. traditional runtime parsers like libconfig or json-c! <!-- SC_ON --> submitted by /u/Creative-Cup-6326 (https://www.reddit.com/user/Creative-Cup-6326)
[link] (https://aikoschurmann.com/blog/type-safe-configs-c99) [comments] (https://www.reddit.com/r/programming/comments/1u1ghlg/why_i_chose_aot_codegen_over_jsonini_parsing_for/)

Читать полностью…

Reddit Programming

Clojure If Do When
https://www.reddit.com/r/programming/comments/1u0xywv/clojure_if_do_when/

submitted by /u/Efficient-Public-551 (https://www.reddit.com/user/Efficient-Public-551)
[link] (https://youtu.be/1AnlNL0gok0) [comments] (https://www.reddit.com/r/programming/comments/1u0xywv/clojure_if_do_when/)

Читать полностью…

Reddit Programming

Cache Stampede Prevention: Distributed Locking, Pub/Sub, and Request Coalescing
https://www.reddit.com/r/programming/comments/1u0vb76/cache_stampede_prevention_distributed_locking/

submitted by /u/Local_Ad_6109 (https://www.reddit.com/user/Local_Ad_6109)
[link] (https://engineeringatscale.substack.com/p/cache-stampede-distributed-locking) [comments] (https://www.reddit.com/r/programming/comments/1u0vb76/cache_stampede_prevention_distributed_locking/)

Читать полностью…

Reddit Programming

Why Compiler Engineers Rarely Use Strassen's Algorithm for Fast Matrix Multiplications
https://www.reddit.com/r/programming/comments/1u09rah/why_compiler_engineers_rarely_use_strassens/

submitted by /u/DataBaeBee (https://www.reddit.com/user/DataBaeBee)
[link] (https://leetarxiv.substack.com/p/why-compilers-rarely-use-strassens-algorithm) [comments] (https://www.reddit.com/r/programming/comments/1u09rah/why_compiler_engineers_rarely_use_strassens/)

Читать полностью…

Reddit Programming

Lies We Tell Ourselves About Email Addresses
https://www.reddit.com/r/programming/comments/1u098uy/lies_we_tell_ourselves_about_email_addresses/

submitted by /u/theghostofm (https://www.reddit.com/user/theghostofm)
[link] (https://gitpush--force.com/commits/2026/06/lies-we-tell-ourselves-about-email/) [comments] (https://www.reddit.com/r/programming/comments/1u098uy/lies_we_tell_ourselves_about_email_addresses/)

Читать полностью…

Reddit Programming

In Defense of YAML :: Posit Open Source
https://www.reddit.com/r/programming/comments/1u072zj/in_defense_of_yaml_posit_open_source/

submitted by /u/Successful_Bowl2564 (https://www.reddit.com/user/Successful_Bowl2564)
[link] (https://opensource.posit.co/blog/2026-05-21_in-defense-of-yaml/) [comments] (https://www.reddit.com/r/programming/comments/1u072zj/in_defense_of_yaml_posit_open_source/)

Читать полностью…

Reddit Programming

Hot path optimization. When float division beats integer division
https://www.reddit.com/r/programming/comments/1u06itn/hot_path_optimization_when_float_division_beats/

<!-- SC_OFF -->I've started a series of short blog posts about hot path optimizations. This first one covers a counterintuitive optimization: replacing integer division (IDIVQ) with floating-point division (DIVSD). <!-- SC_ON --> submitted by /u/watman12 (https://www.reddit.com/user/watman12)
[link] (https://blog.andr2i.com/posts/2026-06-08-optimization-catalog-when-float-division-beats-integer-division) [comments] (https://www.reddit.com/r/programming/comments/1u06itn/hot_path_optimization_when_float_division_beats/)

Читать полностью…

Reddit Programming

The Day I Decided Never to Learn Python
https://www.reddit.com/r/programming/comments/1u013qa/the_day_i_decided_never_to_learn_python/

submitted by /u/Active-Fuel-49 (https://www.reddit.com/user/Active-Fuel-49)
[link] (realmerlyn/the-day-i-decided-never-to-learn-python-2c59d1a1edc5" rel="nofollow">https://medium.com/@realmerlyn/the-day-i-decided-never-to-learn-python-2c59d1a1edc5) [comments] (https://www.reddit.com/r/programming/comments/1u013qa/the_day_i_decided_never_to_learn_python/)

Читать полностью…

Reddit Programming

Building a plugin system for Tolgee using iframes, webhooks, and decorators
https://www.reddit.com/r/programming/comments/1u3oe0b/building_a_plugin_system_for_tolgee_using_iframes/

submitted by /u/hiIAmJan (https://www.reddit.com/user/hiIAmJan)
[link] (https://tolgee.io/blog/building-a-plugin-system-for-tolgee-without-a-runtime-storage-or-shared-js-context) [comments] (https://www.reddit.com/r/programming/comments/1u3oe0b/building_a_plugin_system_for_tolgee_using_iframes/)

Читать полностью…

Reddit Programming

What an 8kb Postgres read costs
https://www.reddit.com/r/programming/comments/1u3ihj3/what_an_8kb_postgres_read_costs/

submitted by /u/andreiross (https://www.reddit.com/user/andreiross)
[link] (https://frn.sh/8kb-read/) [comments] (https://www.reddit.com/r/programming/comments/1u3ihj3/what_an_8kb_postgres_read_costs/)

Читать полностью…

Reddit Programming

Giulio Zausa's MMO-CHIP Makes Reverse Engineering Old Silicon Chips a Multiplayer Game
https://www.reddit.com/r/programming/comments/1u3bhgy/giulio_zausas_mmochip_makes_reverse_engineering/

submitted by /u/r_retrohacking_mod2 (https://www.reddit.com/user/r_retrohacking_mod2)
[link] (https://www.hackster.io/news/giulio-zausa-s-mmo-chip-makes-reverse-engineering-old-silicon-chips-a-multiplayer-game-23a16b68d73b) [comments] (https://www.reddit.com/r/programming/comments/1u3bhgy/giulio_zausas_mmochip_makes_reverse_engineering/)

Читать полностью…

Reddit Programming

Service Bindings: Automated Database Access for Apps
https://www.reddit.com/r/programming/comments/1u38a2j/service_bindings_automated_database_access_for/

<!-- SC_OFF -->Service binding is a feature which allows apps to get an isolated schema/database on a shared Postgres or MySQL. This post explain how it works. <!-- SC_ON --> submitted by /u/avkijay (https://www.reddit.com/user/avkijay)
[link] (https://openrun.dev/blog/service-binding/) [comments] (https://www.reddit.com/r/programming/comments/1u38a2j/service_bindings_automated_database_access_for/)

Читать полностью…

Reddit Programming

Emacs SVG Benchmark Reveals Gaming-Caliber Frame Rates
https://www.reddit.com/r/programming/comments/1u32766/emacs_svg_benchmark_reveals_gamingcaliber_frame/

submitted by /u/misterchiply (https://www.reddit.com/user/misterchiply)
[link] (https://www.chiply.dev/post-emacs-svg-benchmark) [comments] (https://www.reddit.com/r/programming/comments/1u32766/emacs_svg_benchmark_reveals_gamingcaliber_frame/)

Читать полностью…

Reddit Programming

To handle performance issues, Integrate Redis with Spring Boot instead of scaling servers
https://www.reddit.com/r/programming/comments/1u2xzzk/to_handle_performance_issues_integrate_redis_with/

<!-- SC_OFF -->A lot of developers rely on scaling servers to handle performance issues, but often, the real bottleneck is just fetching the exact same data from the database over and over again. If you are dealing with read-heavy APIs and want to reduce redundant database queries, Integrate Redis caching into a Spring Boot application using Spring Data Redis. A lot of developers manually manage cache states, but Spring’s cache abstraction makes it incredibly simple to handle with just a few annotations on your service layer. If you want to see the full implementation including the application properties configuration, the Redis Cache Manager setup, and the complete REST controller code, you can check out the full write-up here: Implementing Redis Caching in Spring Boot (https://javatechonline.com/spring-boot-redis-cache-example/). <!-- SC_ON --> submitted by /u/erdsingh24 (https://www.reddit.com/user/erdsingh24)
[link] (https://javatechonline.com/spring-boot-redis-cache-example/) [comments] (https://www.reddit.com/r/programming/comments/1u2xzzk/to_handle_performance_issues_integrate_redis_with/)

Читать полностью…

Reddit Programming

C3 0.8.1 released: Raiding the stdlib for bugs
https://www.reddit.com/r/programming/comments/1u29255/c3_081_released_raiding_the_stdlib_for_bugs/

submitted by /u/Nuoji (https://www.reddit.com/user/Nuoji)
[link] (https://c3-lang.org/blog/0_8_1_raiding_the_stdlib_for_bugs/) [comments] (https://www.reddit.com/r/programming/comments/1u29255/c3_081_released_raiding_the_stdlib_for_bugs/)

Читать полностью…

Reddit Programming

SQLite improving performance with pre-sort
https://www.reddit.com/r/programming/comments/1u10n7z/sqlite_improving_performance_with_presort/

submitted by /u/andersmurphy (https://www.reddit.com/user/andersmurphy)
[link] (https://andersmurphy.com/2026/06/07/sqlite-improving-performance-with-pre-sort.html) [comments] (https://www.reddit.com/r/programming/comments/1u10n7z/sqlite_improving_performance_with_presort/)

Читать полностью…

Reddit Programming

120,000 Lines of Rust: Inside the Nosdesk Backend
https://www.reddit.com/r/programming/comments/1u0w9bc/120000_lines_of_rust_inside_the_nosdesk_backend/

submitted by /u/BlondieCoder (https://www.reddit.com/user/BlondieCoder)
[link] (https://kyle.au/blog/nosdesk-backend-rust) [comments] (https://www.reddit.com/r/programming/comments/1u0w9bc/120000_lines_of_rust_inside_the_nosdesk_backend/)

Читать полностью…

Reddit Programming

I analyzed 26 major open source repositories. Every one had at least one bus-factor-1 module
https://www.reddit.com/r/programming/comments/1u0va69/i_analyzed_26_major_open_source_repositories/

<!-- SC_OFF -->I built a CLI called git-archaeologist to analyze ownership concentration, bus factor, coupling, and change history from git repositories. To validate it, I benchmarked 26 major open source projects including Kubernetes, React, VS Code, TensorFlow, PostgreSQL, Spring Boot, and Node.js. The report includes methodology, limitations, repository snapshots, raw JSON outputs, and benchmark data. Happy to hear where the methodology is wrong or what could be improved. <!-- SC_ON --> submitted by /u/Some_Scientist5385 (https://www.reddit.com/user/Some_Scientist5385)
[link] (https://sushantverma7969.github.io/git-archaeologist/) [comments] (https://www.reddit.com/r/programming/comments/1u0va69/i_analyzed_26_major_open_source_repositories/)

Читать полностью…

Reddit Programming

Poor Man's Time Machine: Lazy Evaluation in JavaScript and Haskell
https://www.reddit.com/r/programming/comments/1u09npb/poor_mans_time_machine_lazy_evaluation_in/

submitted by /u/sayyadirfanali (https://www.reddit.com/user/sayyadirfanali)
[link] (https://irfanali.org/blog/repmin) [comments] (https://www.reddit.com/r/programming/comments/1u09npb/poor_mans_time_machine_lazy_evaluation_in/)

Читать полностью…

Reddit Programming

VS Code Adds 2-Hour Extension Auto-Update Delay to Limit Supply Chain Attacks
https://www.reddit.com/r/programming/comments/1u089ai/vs_code_adds_2hour_extension_autoupdate_delay_to/

submitted by /u/CircumspectCapybara (https://www.reddit.com/user/CircumspectCapybara)
[link] (https://thehackernews.com/2026/06/vs-code-adds-2-hour-extension-auto.html) [comments] (https://www.reddit.com/r/programming/comments/1u089ai/vs_code_adds_2hour_extension_autoupdate_delay_to/)

Читать полностью…

Reddit Programming

System Dynamics Course | Chapter 16: Discrete-Time and Sampled-Data System Dynamics
https://www.reddit.com/r/programming/comments/1u06nad/system_dynamics_course_chapter_16_discretetime/

<!-- SC_OFF -->Used 5 different programming language for this course. GitHub repository link: https://github.com/mohammadijoo/Control_and_Robotics_Tutorials <!-- SC_ON --> submitted by /u/abolfazl1363 (https://www.reddit.com/user/abolfazl1363)
[link] (https://youtu.be/yQ0oKvK3Db8) [comments] (https://www.reddit.com/r/programming/comments/1u06nad/system_dynamics_course_chapter_16_discretetime/)

Читать полностью…

Reddit Programming

Native Elm (the real kind this time) · cekrem.github.io
https://www.reddit.com/r/programming/comments/1u04bdc/native_elm_the_real_kind_this_time_cekremgithubio/

submitted by /u/cekrem (https://www.reddit.com/user/cekrem)
[link] (https://cekrem.github.io/posts/native-elm/) [comments] (https://www.reddit.com/r/programming/comments/1u04bdc/native_elm_the_real_kind_this_time_cekremgithubio/)

Читать полностью…

Reddit Programming

Opening a cloned repo is no longer safe
https://www.reddit.com/r/programming/comments/1u00xhc/opening_a_cloned_repo_is_no_longer_safe/

<!-- SC_OFF -->Solid breakdown of the Miasma worm — one commit, same dropper wired into 7 config files across VS Code, Claude Code, Gemini, Cursor, npm, Composer, and Bundler. No malicious dep needed, just clone + open. Nobody reviews these files in PRs. https://safedep.io/config-files-that-run-code/ Anyone actually treating dotfile diffs as code? <!-- SC_ON --> submitted by /u/No_Plan_3442 (https://www.reddit.com/user/No_Plan_3442)
[link] (https://safedep.io/config-files-that-run-code/) [comments] (https://www.reddit.com/r/programming/comments/1u00xhc/opening_a_cloned_repo_is_no_longer_safe/)

Читать полностью…
Subscribe to a channel