I will send you newest post from subreddit /r/programming
Writing a storage engine for Postgres: An in-memory table access method
https://www.reddit.com/r/programming/comments/1ml14yy/writing_a_storage_engine_for_postgres_an_inmemory/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://notes.eatonphil.com/2023-11-01-postgres-table-access-methods.html) [comments] (https://www.reddit.com/r/programming/comments/1ml14yy/writing_a_storage_engine_for_postgres_an_inmemory/)
Jepsen: Capela dda5892
https://www.reddit.com/r/programming/comments/1ml114u/jepsen_capela_dda5892/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://jepsen.io/analyses/capela-dda5892) [comments] (https://www.reddit.com/r/programming/comments/1ml114u/jepsen_capela_dda5892/)
Arenas in Rust
https://www.reddit.com/r/programming/comments/1ml10gt/arenas_in_rust/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://russellw.github.io/arenas) [comments] (https://www.reddit.com/r/programming/comments/1ml10gt/arenas_in_rust/)
HTTP is not simple
https://www.reddit.com/r/programming/comments/1ml0zpd/http_is_not_simple/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://daniel.haxx.se/blog/2025/08/08/http-is-not-simple/) [comments] (https://www.reddit.com/r/programming/comments/1ml0zpd/http_is_not_simple/)
We shouldn’t have needed lockfiles
https://www.reddit.com/r/programming/comments/1ml0x4s/we_shouldnt_have_needed_lockfiles/
submitted by /u/wheybags (https://www.reddit.com/user/wheybags)
[link] (https://tonsky.me/blog/lockfiles/) [comments] (https://www.reddit.com/r/programming/comments/1ml0x4s/we_shouldnt_have_needed_lockfiles/)
How I made my embedding based model 95% accurate at classifying prompt attacks (only 0.4B params)
https://www.reddit.com/r/programming/comments/1mkrdqd/how_i_made_my_embedding_based_model_95_accurate/
<!-- SC_OFF -->I’ve been building a few small defense models to sit between users and LLMs, that can flag whether an incoming user prompt is a prompt injection, jailbreak, context attack, etc. I'd started out this project with a ModernBERT model, but I found it hard to get it to classify tricky attack queries right, and moved to SLMs to improve performance. Now, I revisited this approach with contrastive learning and a larger dataset and created a new model. As it turns out, this iteration performs much better than the SLMs I previously fine-tuned. The final model is open source on HF and the code is in an easy-to-use package here: https://github.com/sarthakrastogi/rival Training pipeline - Data: I trained on a dataset of malicious prompts (like "Ignore previous instructions...") and benign ones (like "Explain photosynthesis"). 12,000 prompts in total. I generated this dataset with an LLM. I use ModernBERT-large (a 396M param model) for embeddings. I trained a small neural net to take these embeddings and predict whether the input is an attack or not (binary classification). I train it with a contrastive loss that pulls embeddings of benign samples together and pushes them away from malicious ones -- so the model also understands the semantic space of attacks. During inference, it runs on just the embedding plus head (no full LLM), which makes it fast enough for real-time filtering. The model is called Bhairava-0.4B. Model flow at runtime: User prompt comes in. Bhairava-0.4B embeds the prompt and classifies it as either safe or attack. If safe, it passes to the LLM. If flagged, you can log, block, or reroute the input. It's small (396M params) and optimised to sit inline before your main LLM without needing to run a full LLM for defense. On my test set, it's now able to classify 91% of the queries as attack/benign correctly, which makes me pretty satisfied, given the size of the model. Let me know how it goes if you try it in your stack. <!-- SC_ON --> submitted by /u/sarthakai (https://www.reddit.com/user/sarthakai)
[link] (https://github.com/sarthakrastogi/rival) [comments] (https://www.reddit.com/r/programming/comments/1mkrdqd/how_i_made_my_embedding_based_model_95_accurate/)
Broken Authorization Is the #1 Web App Security Risk — and Most of Us Are Still Hand-Rolling It
https://www.reddit.com/r/programming/comments/1mkqw6a/broken_authorization_is_the_1_web_app_security/
<!-- SC_OFF -->We interviewed Sohan Maheshwar (Lead Dev Advocate at AuthZed, ex-Amazon) for ShiftMag, and he didn’t mince words: “Just as you’d never build your own authentication, you shouldn’t be writing your own authorization code.” OWASP ranked broken authorization as the top web app security risk in 2024. Yet most teams still bake it in themselves — fine for small apps, a ticking time bomb at scale. Sohan also talks about: Why DevRel went from niche to essential in under a decade; AI’s “first wave” (debugging & augmentation) vs. the “next wave” (autonomous agents needing new infra + auth models) and the death of one-size-fits-all tooling. What’s your take — build your own authZ, or always use an external system? <!-- SC_ON --> submitted by /u/shift_devs (https://www.reddit.com/user/shift_devs)
[link] (https://shiftmag.dev/sohan-maheshwar-authorization-is-key-to-app-security-dont-get-it-wrong-4734/) [comments] (https://www.reddit.com/r/programming/comments/1mkqw6a/broken_authorization_is_the_1_web_app_security/)
Learn C by Building Projects – From FizzBuzz to Neural Networks!
https://www.reddit.com/r/programming/comments/1mkp1vu/learn_c_by_building_projects_from_fizzbuzz_to/
<!-- SC_OFF -->I've created a curated collection of small C projects designed to help you master core concepts through hands-on practice. 🌟 What’s Inside: Projects sorted by difficulty (⭐1 to ⭐5) Clear objectives for each project Diverse topics: Cryptography, graphics (SDL2), physics sims, data structures, OS internals, and more <!-- SC_ON --> submitted by /u/FraLindi (https://www.reddit.com/user/FraLindi)
[link] (https://github.com/mrparsing/C-Projects) [comments] (https://www.reddit.com/r/programming/comments/1mkp1vu/learn_c_by_building_projects_from_fizzbuzz_to/)
Building a Carbon and Price-Aware Kubernetes Scheduler
https://www.reddit.com/r/programming/comments/1mko3jg/building_a_carbon_and_priceaware_kubernetes/
submitted by /u/congolomera (https://www.reddit.com/user/congolomera)
[link] (davemasselink/building-a-carbon-and-price-aware-kubernetes-scheduler-f305cd3df0f1?source=friends_link&sk=6c662720d5a3758bf017bc870e823293" rel="nofollow">https://medium.com/@davemasselink/building-a-carbon-and-price-aware-kubernetes-scheduler-f305cd3df0f1?source=friends_link&sk=6c662720d5a3758bf017bc870e823293) [comments] (https://www.reddit.com/r/programming/comments/1mko3jg/building_a_carbon_and_priceaware_kubernetes/)
Scar - A language for easy concurrency, statically typed, with clean syntax
https://www.reddit.com/r/programming/comments/1mkhznb/scar_a_language_for_easy_concurrency_statically/
<!-- SC_OFF -->Because of the poor state of multithreading in Nim and the reliance on external libraries like Arraymancer for heavy numerical workloads (also the performance issues with boxed values due to ref object everywhere), I started writing a language from scratch, with built-in support for concurrency via parallel blocks (without macros) and a C backend, similar to Nim. Example: int glob_value = 0 float glob_value_2 = 0.0 parallel: glob_value = some_heavy_task() glob_value_2 = some_other_heavy_task() The idea is to make things like accessing shared memory concurrently a trivial process by automating the generation of thread synchronization code. Also there are parallel fors, like so: parallel for x = 1 to 5: print "x = %d" | x parallel for y = 10 to 20: print "y = %d" | y sleep 0.1 print "Nested parallel for loop completed." It is not ready for use at all currently, though will likely see further development until it is. <!-- SC_ON --> submitted by /u/god1235414 (https://www.reddit.com/user/god1235414)
[link] (https://github.com/navid-m/scar) [comments] (https://www.reddit.com/r/programming/comments/1mkhznb/scar_a_language_for_easy_concurrency_statically/)
Hash Tables in C
https://www.reddit.com/r/programming/comments/1mkctct/hash_tables_in_c/
<!-- SC_OFF -->Found some inspiration in a "discussion" about C vs C++ <!-- SC_ON --> submitted by /u/thepan73 (https://www.reddit.com/user/thepan73)
[link] (https://andrewthecoder.com/blog/hash-tables-and-2-bit-bookkeeping) [comments] (https://www.reddit.com/r/programming/comments/1mkctct/hash_tables_in_c/)
UTCP: A safer, scalable tool-calling alternative to MCP
https://www.reddit.com/r/programming/comments/1mk6zd6/utcp_a_safer_scalable_toolcalling_alternative_to/
submitted by /u/juanviera23 (https://www.reddit.com/user/juanviera23)
[link] (http://github.com/universal-tool-calling-protocol/) [comments] (https://www.reddit.com/r/programming/comments/1mk6zd6/utcp_a_safer_scalable_toolcalling_alternative_to/)
📘 Node.js Interview Q&A: Day 25
https://www.reddit.com/r/programming/comments/1mk4qcw/nodejs_interview_qa_day_25/
submitted by /u/MysteriousEye8494 (https://www.reddit.com/user/MysteriousEye8494)
[link] (https://medium.com/devinsight/node-js-interview-q-a-day-25-16ff1be486c2) [comments] (https://www.reddit.com/r/programming/comments/1mk4qcw/nodejs_interview_qa_day_25/)
Designing AI Applications: Principles from Distributed Systems Applicable in a New AI World
https://www.reddit.com/r/programming/comments/1mk3nry/designing_ai_applications_principles_from/
submitted by /u/Historical_Wing_9573 (https://www.reddit.com/user/Historical_Wing_9573)
[link] (https://vitaliihonchar.com/insights/designing-ai-applications-principles-of-distributed-systems) [comments] (https://www.reddit.com/r/programming/comments/1mk3nry/designing_ai_applications_principles_from/)
update- testing a vpn
https://www.reddit.com/r/programming/comments/1mjz5f9/update_testing_a_vpn/
<!-- SC_OFF -->github included this time:D https://github.com/rakansroori/CrowdVPN/tree/main http://crowdvpn.infy.uk/ <!-- SC_ON --> submitted by /u/rookee (https://www.reddit.com/user/rookee)
[link] (http://crowdvpn.infy.uk/) [comments] (https://www.reddit.com/r/programming/comments/1mjz5f9/update_testing_a_vpn/)
More shell tricks: first class lists, jq, and the es shell
https://www.reddit.com/r/programming/comments/1ml14kp/more_shell_tricks_first_class_lists_jq_and_the_es/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://alurm.github.io/blog/2025-08-07-first-class-lists-in-shells.html) [comments] (https://www.reddit.com/r/programming/comments/1ml14kp/more_shell_tricks_first_class_lists_jq_and_the_es/)
Understanding not just Clojure's comp function by re-implementing it
https://www.reddit.com/r/programming/comments/1ml113u/understanding_not_just_clojures_comp_function_by/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://www.evalapply.org/posts/lessons-from-reimplementing-clojure-comp-function/index.html) [comments] (https://www.reddit.com/r/programming/comments/1ml113u/understanding_not_just_clojures_comp_function_by/)
Programming as Extended Cognition
https://www.reddit.com/r/programming/comments/1ml10fe/programming_as_extended_cognition/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://ieeexplore.ieee.org/document/11119124) [comments] (https://www.reddit.com/r/programming/comments/1ml10fe/programming_as_extended_cognition/)
What Is Popover=Hint?
https://www.reddit.com/r/programming/comments/1ml0zn8/what_is_popoverhint/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://una.im/popover-hint/) [comments] (https://www.reddit.com/r/programming/comments/1ml0zn8/what_is_popoverhint/)
Keep API work local: Why offline-first beats cloud-based tools
https://www.reddit.com/r/programming/comments/1ml0lcd/keep_api_work_local_why_offlinefirst_beats/
<!-- SC_OFF -->A gist of the article is that cloud-based API tools like Postman can expose your data, and leave you stuck when servers fail or docs lag (both actually happened multiple time in the recent period). Offline-first API workflows, on the other hand, offer much better security, efficiency, and more developer control. This isn’t about swearing off the cloud. You’ll still hit live endpoints for real requests. You'll host a bunch of things, as you should. But secrets and API Keys? You're really let a 3rd party cloud take care of those? I sure don't want to. <!-- SC_ON --> submitted by /u/kiselitza (https://www.reddit.com/user/kiselitza)
[link] (https://voiden.md/blog/offline-vs-cloud-based-api-tools) [comments] (https://www.reddit.com/r/programming/comments/1ml0lcd/keep_api_work_local_why_offlinefirst_beats/)
Matrix AI is a green Matrix-Style sleek desktop AI terminal assistant, launched via hotkey
https://www.reddit.com/r/programming/comments/1mkqxhr/matrix_ai_is_a_green_matrixstyle_sleek_desktop_ai/
<!-- SC_OFF -->Hi everyone, I'm excited to share a project I've been working on called Matrix AI. It's a visually striking terminal chat tool that pays homage to The Matrix while offering powerful features designed to enhance how developers interact with AI. Key Highlights: Immersive UI: A classic green character stream, typewriter-style output, and smooth window animations blend a vintage terminal feel with modern UI. Efficient Workflow: Use a global hotkey (double-tap Ctrl or Shift) to quickly summon the terminal, letting AI serve you without interrupting your flow. Powerful Backend: It supports any OpenAI-compatible API (like DeepSeek, Grok, Mistral, etc.) with asynchronous streaming and multi-turn context memory. This project is for anyone who loves the command line and wants a cooler, more efficient way to work with AI. I've released a Windows executable, so you can try it out directly. Your feedback is welcome! If you like the project, I'd appreciate a ⭐ star on GitHub. Project Link: https://github.com/ai-sns/matrixai <!-- SC_ON --> submitted by /u/Glad-Worldliness71 (https://www.reddit.com/user/Glad-Worldliness71)
[link] (https://github.com/ai-sns/matrixai) [comments] (https://www.reddit.com/r/programming/comments/1mkqxhr/matrix_ai_is_a_green_matrixstyle_sleek_desktop_ai/)
Does AI Actually Boost Developer Productivity? (100k Devs Study) - Yegor Denisov-Blanch, Stanford
https://www.reddit.com/r/programming/comments/1mkp3sn/does_ai_actually_boost_developer_productivity/
submitted by /u/Connect_Tear402 (https://www.reddit.com/user/Connect_Tear402)
[link] (https://www.youtube.com/watch?v=tbDDYKRFjhk) [comments] (https://www.reddit.com/r/programming/comments/1mkp3sn/does_ai_actually_boost_developer_productivity/)
Live coding sucks
https://www.reddit.com/r/programming/comments/1mkoecy/live_coding_sucks/
submitted by /u/Xadartt (https://www.reddit.com/user/Xadartt)
[link] (https://hadid.dev/posts/living-coding/) [comments] (https://www.reddit.com/r/programming/comments/1mkoecy/live_coding_sucks/)
How To Host A Meetup
https://www.reddit.com/r/programming/comments/1mkmy7e/how_to_host_a_meetup/
<!-- SC_OFF -->Since a lot of local programming meetups died during Covid and never came back up, I wrote an article with some tips for hosting your own meetup—hopefully this will inspire someone to start a new meetup group or resuscitate an old one. If you have any tips or suggestions for hosting a meetup, please share in the comments! <!-- SC_ON --> submitted by /u/JohnyTex (https://www.reddit.com/user/JohnyTex)
[link] (https://functionalsoftware.se/posts/how-to-host-a-meetup) [comments] (https://www.reddit.com/r/programming/comments/1mkmy7e/how_to_host_a_meetup/)
Making a D&D Game for the Game Boy with C
https://www.reddit.com/r/programming/comments/1mke9gt/making_a_dd_game_for_the_game_boy_with_c/
submitted by /u/Pikamander2 (https://www.reddit.com/user/Pikamander2)
[link] (https://www.youtube.com/watch?v=APWrwn26Qts) [comments] (https://www.reddit.com/r/programming/comments/1mke9gt/making_a_dd_game_for_the_game_boy_with_c/)
VS Code 1.103 released with GPT-5, tool limit increase, checkpoints, Git worktrees
https://www.reddit.com/r/programming/comments/1mk7dkt/vs_code_1103_released_with_gpt5_tool_limit/
submitted by /u/connor4312 (https://www.reddit.com/user/connor4312)
[link] (https://code.visualstudio.com/updates/v1_103) [comments] (https://www.reddit.com/r/programming/comments/1mk7dkt/vs_code_1103_released_with_gpt5_tool_limit/)
How should we learn from bugs?
https://www.reddit.com/r/programming/comments/1mk4s6d/how_should_we_learn_from_bugs/
submitted by /u/typesanitizer (https://www.reddit.com/user/typesanitizer)
[link] (https://typesanitizer.com/blog/bug-analysis.html) [comments] (https://www.reddit.com/r/programming/comments/1mk4s6d/how_should_we_learn_from_bugs/)
Litestar is worth a look - James Bennett
https://www.reddit.com/r/programming/comments/1mk41jp/litestar_is_worth_a_look_james_bennett/
submitted by /u/Smooth-Zucchini4923 (https://www.reddit.com/user/Smooth-Zucchini4923)
[link] (https://www.b-list.org/weblog/2025/aug/06/litestar/) [comments] (https://www.reddit.com/r/programming/comments/1mk41jp/litestar_is_worth_a_look_james_bennett/)
Dotfiles feel too intimate and personal to share : Juha-Matti Santala
https://www.reddit.com/r/programming/comments/1mk2a0f/dotfiles_feel_too_intimate_and_personal_to_share/
submitted by /u/Xadartt (https://www.reddit.com/user/Xadartt)
[link] (https://hamatti.org/posts/dotfiles-feel-too-intimate-and-personal-to-share/) [comments] (https://www.reddit.com/r/programming/comments/1mk2a0f/dotfiles_feel_too_intimate_and_personal_to_share/)
Tamp: The world's best compression library for microcontrollers. Try it online now with our new javascript bindings.
https://www.reddit.com/r/programming/comments/1mjz519/tamp_the_worlds_best_compression_library_for/
<!-- SC_OFF -->Tamp is a low-memory, DEFLATE-inspired lossless compression library optimized for embedded and resource-constrained environments. Tamp delivers the highest data compression ratios, while using the least amountof RAM and firmware storage. We just recently added support for javascript (compiling the C library to WASM via Emscripten) and created a demo website so it's easy to try it on files and text without having to install anything! <!-- SC_ON --> submitted by /u/guyfrom7up (https://www.reddit.com/user/guyfrom7up)
[link] (https://brianpugh.github.io/tamp/) [comments] (https://www.reddit.com/r/programming/comments/1mjz519/tamp_the_worlds_best_compression_library_for/)