Reddit Programming – Telegram
Reddit Programming
211 subscribers
1.22K photos
125K links
I will send you newest post from subreddit /r/programming
Download Telegram
Sandboxing AI Agents: Practical Ways to Limit Autonomous Behavior
https://www.reddit.com/r/programming/comments/1po8ar9/sandboxing_ai_agents_practical_ways_to_limit/

<!-- SC_OFF -->I’ve been exploring how to safely deploy autonomous AI agents without giving them too much freedom. In practice, the biggest risks come from: unrestricted tool access filesystem and network exposure agents looping or escalating actions unexpectedly I looked at different sandboxing approaches: containers (Docker, OCI) microVMs (Firecracker) user-mode kernels (gVisor) permission-based tool execution I wrote a deeper breakdown with concrete examples and trade-offs here : https://medium.com/@yessine.abdelmaksoud.03/sandboxing-for-ai-agents-2420ac69569e I’d really appreciate feedback from people working with agents in production. <!-- SC_ON --> submitted by /u/After_Customer251 (https://www.reddit.com/user/After_Customer251)
[link] (https://medium.com/@yessine.abdelmaksoud.03/sandboxing-for-ai-agents-2420ac69569e) [comments] (https://www.reddit.com/r/programming/comments/1po8ar9/sandboxing_ai_agents_practical_ways_to_limit/)
Building a Custom DatePicker in Java Swing and Persisting Dates in MySQL
https://www.reddit.com/r/programming/comments/1pooqzj/building_a_custom_datepicker_in_java_swing_and/

<!-- SC_OFF -->Java Swing doesn’t provide a modern DatePicker by default, so I built a custom calendar component in pure Swing and connected it to MySQL using JDBC. The calendar supports month/year navigation, date selection, and saving the selected date directly into a DATE column in MySQL. This is useful for forms like birth date, registration, or appointments. I shared a short video walkthrough and the full source code for anyone learning Java Swing or working on desktop projects. 📺 Video: Java Swing Custom Calendar DatePicker | Save Selected Date into MySQL Database (https://www.youtube.com/watch?v=pLI2I6TCiFw&t=426s)
💻 Code: Love2Programming (https://love2programming.com/post-list/2034) <!-- SC_ON --> submitted by /u/Substantial-Log-9305 (https://www.reddit.com/user/Substantial-Log-9305)
[link] (https://www.youtube.com/watch?v=pLI2I6TCiFw&t=426s) [comments] (https://www.reddit.com/r/programming/comments/1pooqzj/building_a_custom_datepicker_in_java_swing_and/)
System calls: how programs talk to the Linux kernel
https://www.reddit.com/r/programming/comments/1poy70l/system_calls_how_programs_talk_to_the_linux_kernel/

<!-- SC_OFF -->Hello everyone, I've just published the second post in my Linux Inside Out series. In the first post we demystified the Linux kernel a bit: where it lives, how to boot it in a VM, and we even wrote a tiny init program. In this second post we go one layer deeper and look at how programs actually talk to the kernel.
We'll do a few small experiments to see: how our init program (that we wrote in the first post) communicates with the kernel via system calls how something like `echo "hello"` ends up printing text on your screen how to trace system calls to understand what a program is doing I’m mainly targeting developers and self-hosters who use Linux daily and are curious about the internals of a Linux-based operating system. This is part 2 of a longer series, going layer by layer through a Linux system while trying to keep things practical and approachable. Link (part 2): https://serversfor.dev/linux-inside-out/system-calls-how-programs-talk-to-the-linux-kernel/
Link (part 1): https://serversfor.dev/linux-inside-out/the-linux-kernel-is-just-a-program/ Any feedback is appreciated. <!-- SC_ON --> submitted by /u/indieHungary (https://www.reddit.com/user/indieHungary)
[link] (https://serversfor.dev/linux-inside-out/system-calls-how-programs-talk-to-the-linux-kernel/) [comments] (https://www.reddit.com/r/programming/comments/1poy70l/system_calls_how_programs_talk_to_the_linux_kernel/)
Stack Overflow Annual Survey
https://www.reddit.com/r/programming/comments/1pozw5i/stack_overflow_annual_survey/

<!-- SC_OFF -->Some of my (subjective) surprising takeaways: Haskell, Clojure, Nix didn't make list of languages, only write-ins. Clojure really surprised me as it's not in top listed but Lisp is! Maybe it's because programmers of all Lisp dialects (including Clojure) self-reported as Lisp users. Emacs didnt make list of top editors, only write-in Gleam is one of most admired langs (never heard of it before!) Rust, Cargo most admired language & build tool - not surprising considering Rust hype uv is most admired tech tag - not surprising as it's a popular Python tool implemented in Rust What do you all think of this year's survey results? Did you participate? <!-- SC_ON --> submitted by /u/sohang-3112 (https://www.reddit.com/user/sohang-3112)
[link] (https://survey.stackoverflow.co/2025/technology/) [comments] (https://www.reddit.com/r/programming/comments/1pozw5i/stack_overflow_annual_survey/)
Further Optimizing my Java SwissTable: Profile Pollution and SWAR Probing
https://www.reddit.com/r/programming/comments/1pp0wg2/further_optimizing_my_java_swisstable_profile/

<!-- SC_OFF -->Hey everyone. Follow-up to my last post where I built a SwissTable-ish hash map on the JVM: https://www.reddit.com/r/programming/comments/1plbpzg/building_a_fast_memoryefficient_hash_table_in/ This time I went back with a profiler and optimized the actual hot path (findIndex). A huge chunk of time was going to Objects.equals() because of profile pollution / missed devirtualization. After fixing that, the next bottleneck was ARM/NEON “movemask” pain (VectorMask.toLong()), so I tried SWAR… and it ended up faster (even on x86, which I did not expect). <!-- SC_ON --> submitted by /u/Charming-Top-8583 (https://www.reddit.com/user/Charming-Top-8583)
[link] (https://bluuewhale.github.io/posts/further-optimizing-my-java-swiss-table/) [comments] (https://www.reddit.com/r/programming/comments/1pp0wg2/further_optimizing_my_java_swisstable_profile/)