Reddit Programming – Telegram
Reddit Programming
210 subscribers
1.22K photos
125K links
I will send you newest post from subreddit /r/programming
Download Telegram
What if TUI regions were Erlang-style actors?
https://www.reddit.com/r/programming/comments/1q63eio/what_if_tui_regions_were_erlangstyle_actors/

<!-- SC_OFF -->I experimented treating each terminal UI region as an independent actor with message-passing and supervision. Yes overkill for simple TUIs, but more complex tuis have overlapping problems: Isolation: Each region owns its state. No shared mutables, no "where did this change?" debugging. Explicit data flow: When the footer repaints, I know which message triggered it. Supervision: If a region crashes, a supervisor restarts it. App continues. Matters for long-running dashboards or other apps like that. Children never write to the terminal directly - they send render requests to the parent. Single-writer semantics enforced by architecture. Wrote it up on my blog with source code to fiddle around with: https://www.rodriguez.today/articles/reactive-tui-architecture-with-actors Curious if others have applied distributed systems patterns to UI problems? <!-- SC_ON --> submitted by /u/rrrodzilla (https://www.reddit.com/user/rrrodzilla)
[link] (https://www.rodriguez.today/articles/reactive-tui-architecture-with-actors) [comments] (https://www.reddit.com/r/programming/comments/1q63eio/what_if_tui_regions_were_erlangstyle_actors/)
Sandboxes: a technical breakdown of containers, gVisor, microVMs, and Wasm
https://www.reddit.com/r/programming/comments/1q69bxn/sandboxes_a_technical_breakdown_of_containers/

<!-- SC_OFF -->Hi everyone! I wrote a deep dive on the isolation boundaries used for running untrusted code, specifically in the context of AI agent execution. The motivation was that "sandbox" means at least four different things with different tradeoffs, and the typical discussion conflates them. Technical topics covered: - How Linux containers work at the syscall level (namespaces, cgroups, seccomp-bpf) and why they're not a security boundary against kernel exploits - gVisor's architecture: the Sentry userspace kernel, platform options (systrap vs KVM), and the Gofer filesystem broker - MicroVM design: KVM + minimal VMMs (Firecracker cloud-hypervisor, libkrun) - Kata Containers - Runtime sandboxes: Wasm's capability model, WASI preopened directories, V8 isolate boundaries It's an educational piece, just synthesizing what I learned building this stuff. I hope you like it! <!-- SC_ON --> submitted by /u/BeowulfBR (https://www.reddit.com/user/BeowulfBR)
[link] (https://www.luiscardoso.dev/blog/sandboxes-for-ai) [comments] (https://www.reddit.com/r/programming/comments/1q69bxn/sandboxes_a_technical_breakdown_of_containers/)
Solving Weighted Random Sorting at Scale (O(N log N) approach)
https://www.reddit.com/r/programming/comments/1q6f2ez/solving_weighted_random_sorting_at_scale_on_log_n/

<!-- SC_OFF -->I recently wrote about a routing challenge I faced at Microsoft regarding weighted random sorting for fail-over lists. While many implementations use an iterative "pick and remove" loop, these are often O(N2 log N) and scale poorly. I've detailed how to use the Efraimidis-Spirakis algorithm to perform a mathematically perfect weighted sort in a single pass. This is particularly useful for anyone building load balancers, traffic dispatchers, or systems dealing with streaming data. Full article and C# code examples: https://byteaether.github.io/2026/the-weight-of-decisions-solving-weighted-random-sorting-at-scale/ <!-- SC_ON --> submitted by /u/GigAHerZ64 (https://www.reddit.com/user/GigAHerZ64)
[link] (https://byteaether.github.io/2026/the-weight-of-decisions-solving-weighted-random-sorting-at-scale/) [comments] (https://www.reddit.com/r/programming/comments/1q6f2ez/solving_weighted_random_sorting_at_scale_on_log_n/)
I got paid minimum wage to solve an impossible problem (and accidentally learned why most algorithms make life worse)
https://www.reddit.com/r/programming/comments/1q6fyhf/i_got_paid_minimum_wage_to_solve_an_impossible/

<!-- SC_OFF -->I was sweeping floors at a supermarket and decided to over-engineer it. Instead of just… sweeping… I turned the supermarket into a grid graph and wrote a C++ optimizer using simulated annealing to find the “optimal” sweeping path. It worked perfectly. It also produced a path that no human could ever walk without losing their sanity. Way too many turns. Turns out optimizing for distance gives you a solution that’s technically correct and practically useless. Adding a penalty each time it made a sharp turn made it actually walkable. But, this led me down a rabbit hole about how many systems optimize the wrong thing (social media, recommender systems, even LLMs). If you like algorithms, overthinking, or watching optimization go wrong, you might enjoy this little experiment. More visualizations and gifs included! <!-- SC_ON --> submitted by /u/Ties_P (https://www.reddit.com/user/Ties_P)
[link] (https://open.substack.com/pub/tiespetersen/p/i-got-paid-minimum-wage-to-solve) [comments] (https://www.reddit.com/r/programming/comments/1q6fyhf/i_got_paid_minimum_wage_to_solve_an_impossible/)
How We Built a Website Hook SDK to Track User Interaction Patterns
https://www.reddit.com/r/programming/comments/1q6gn0j/how_we_built_a_website_hook_sdk_to_track_user/

<!-- SC_OFF -->a small blog on how we are working on a sdk to track user interactions on client side of things, and then use it to find patterns of customer interactions, this is just a components of the approaches we have tried <!-- SC_ON --> submitted by /u/Working-Dot5752 (https://www.reddit.com/user/Working-Dot5752)
[link] (https://blog.crowai.dev/blog/website-hook-sdk-evolution/) [comments] (https://www.reddit.com/r/programming/comments/1q6gn0j/how_we_built_a_website_hook_sdk_to_track_user/)
Why I hate WebKit: A (non) love letter from a Tauri developer
https://www.reddit.com/r/programming/comments/1q6hs9o/why_i_hate_webkit_a_non_love_letter_from_a_tauri/

<!-- SC_OFF -->I’ve been working on Hopp (a low-latency screen sharing app) using Tauri, which means relying on WebKit on macOS. While I loved the idea of a lighter binary compared to Electron, the journey has been full of headaches. From SVG shadow bugs and weird audio glitching to WebKitGTK lacking WebRTC support on Linux, I wrote up a retrospective on the specific technical hurdles we faced. We are now looking at moving our heavy-duty windows to a native Rust implementation to bypass browser limitations entirely. Curious if others have hit these same walls with WebKit/Safari recently? <!-- SC_ON --> submitted by /u/kostakos14 (https://www.reddit.com/user/kostakos14)
[link] (https://gethopp.app/blog/hate-webkit) [comments] (https://www.reddit.com/r/programming/comments/1q6hs9o/why_i_hate_webkit_a_non_love_letter_from_a_tauri/)
5 Fun & Handy Curl Command-Line Tricks You Should Try | NextGen Tools
https://www.reddit.com/r/programming/comments/1q74eli/5_fun_handy_curl_commandline_tricks_you_should/

<!-- SC_OFF -->I collected a few curl commands many people never try. Each one runs directly in your terminal. • ASCII animations, including a running man and a parrot
• Live weather forecasts from the terminal
• Instant IP and location info
• A classic Rickroll, terminal style All examples work with a single command. No setup. I wrote a short post with copy-paste commands and quick explanations:
[https://www.nxgntools.com/blog/5-fun-and-handy-curl-command-line-tricks-you-should-try?utm\_source=reddit]() (https://www.nxgntools.com/blog/5-fun-and-handy-curl-command-line-tricks-you-should-try?utm%5C_source=reddit%5D()) If you know other fun or useful curl endpoints, share them. <!-- SC_ON --> submitted by /u/doppelgunner (https://www.reddit.com/user/doppelgunner)
[link] (https://www.nxgntools.com/blog/5-fun-and-handy-curl-command-line-tricks-you-should-try?utm_source=reddit) [comments] (https://www.reddit.com/r/programming/comments/1q74eli/5_fun_handy_curl_commandline_tricks_you_should/)
🚀 9Router - Access 15+ AI Models (Claude, GPT, Gemini, DeepSeek...) Through One Endpoint. Free OAuth providers + Auto-fallback
https://www.reddit.com/r/programming/comments/1q767m5/9router_access_15_ai_models_claude_gpt_gemini/

<!-- SC_OFF -->Hey everyone! I just converted CLIProxyAPI(Go) to JavaScript and named it 9Router. I don't know Go, but found CLIProxyAPI so useful that I ported it to JavaScript. Features: 🔄 Access 15+ AI providers through a single endpoint (Claude, Codex, Gemini, Copilot, Qwen, iFlow, GLM, MiniMax, OpenRouter...) 🔐 Support both OAuth and API Key authentication Installation: Just run npx 9router 🛠️ Compatible with multiple CLIs: Cursor, Claude Code, Cline, RooCode... 🎲 Combo Models: Chain multiple models with automatic fallback on errors 📦 Ollama format support for CLIs like Cline, RooCode... ☁️ Cloud deployment ready for Cursor (since Cursor can't use localhost) Why use it: 🆓 COMPLETELY FREE: iFlow: 9 models (Qwen3, Kimi K2, DeepSeek R1/V3.2, MiniMax M2, GLM 4.6/4.7) Qwen: 3 models (Qwen3 Coder Plus/Flash, Vision) Antigravity: Gemini 3 Pro/Flash 💰 SUBSCRIPTIONS CHEAPER THAN APIs: Claude Code, OpenAI Codex, GLM, MiniMax, Kimi K2 subnoscriptions: reset every 5 hours Much cheaper than calling APIs directly Use quota allocation instead of pay-per-request 🚀 FAST: Setup in < 1 minute, no complex configuration 🔒 SECURE: Self-hosted, your data stays private 🛡️ RELIABLE: Auto-fallback on rate limits/errors 💻 CROSS-PLATFORM: Mac, Linux, Windows, easy VPS deployment Links: 👉 Website: https://9router.com (https://9router.com/)
👉 GitHub: https://github.com/decolua/9router
👉 NPM: https://www.npmjs.com/package/9router Give it a try and let me know what you think! <!-- SC_ON --> submitted by /u/decolua (https://www.reddit.com/user/decolua)
[link] (https://9router.com/) [comments] (https://www.reddit.com/r/programming/comments/1q767m5/9router_access_15_ai_models_claude_gpt_gemini/)
I built a "Zero Trust" linter for AI-generated code
https://www.reddit.com/r/programming/comments/1q768at/i_built_a_zero_trust_linter_for_aigenerated_code/

<!-- SC_OFF -->After catching my third // TODO: implement this later in production code written by an AI assistant, I decided to build a tool to catch these issues before they ship. AntiSlop is a CLI tool that acts as a safety net for AI-generated code. It scans your codebase for the "lazy artifacts" that LLMs often leave behind: Stub functions and empty implementations console.log / print() debugging statements Hedging comments like "temporary", "for now", "simplified" Unhandled errors in critical paths The key differentiator: it uses tree-sitter AST parsing instead of regex, so it actually understands code structure and ignores string literals. Supports Rust, Python, JavaScript/TypeScript, and Go. Install: cargo install antislop npm install -g antislop GitHub: https://github.com/skew202/antislop Would love feedback from others dealing with AI code in production. What's your workflow for reviewing AI-generated code? <!-- SC_ON --> submitted by /u/Diligent-Bread-6942 (https://www.reddit.com/user/Diligent-Bread-6942)
[link] (https://github.com/skew202/antislop) [comments] (https://www.reddit.com/r/programming/comments/1q768at/i_built_a_zero_trust_linter_for_aigenerated_code/)
Looking for a job in Switzerland.
https://www.reddit.com/r/programming/comments/1q76qmv/looking_for_a_job_in_switzerland/

<!-- SC_OFF -->Hi, after months and months spending time on LinkedIn job board, I’m wondering is there a better way for searching jobs in Switzerland. Which sites I can look for besides LinkedIn? I’m looking for Python roles (fields: Data science, AI, Python backend or Blockchain development roles.) Have more than 3y work experience in automovite industry working with Python and for Blockchain, I’m a self learner. I’m EU citizen (just mentioning, I know that Switzerland is not in the EU 🙂). <!-- SC_ON --> submitted by /u/Lane114 (https://www.reddit.com/user/Lane114)
[link] (https://blog.posttfu.com/best-cities-in-switzerland-for-job-opportunities/) [comments] (https://www.reddit.com/r/programming/comments/1q76qmv/looking_for_a_job_in_switzerland/)