Reddit Programming
207 subscribers
1.22K photos
123K links
I will send you newest post from subreddit /r/programming
Download Telegram
Modular Automation Core in Go Inspired by Apache/nginx Architecture
https://www.reddit.com/r/programming/comments/1lwi3ur/modular_automation_core_in_go_inspired_by/

<!-- SC_OFF -->My main inspiration for building visions-core was to create a modular foundation for automation, similar to the architectural philosophy behind Apache and nginx in the web server world. These projects have always impressed me with their extensibility—modules can be added or replaced without affecting the stable core. I wanted to bring this approach to automation tools, focusing on the following principles: Modularity: The goal is to let anyone build and plug in their own modules for automation tasks, just like you can with modules in Apache or nginx. Right now, the repo is just the core, but it's designed so developers can easily contribute new modules without changing the core code. Efficiency: I chose Go because it's a lightweight language with strong support for concurrency and low resource usage. This makes it ideal for running automation services that need to be scalable and fast. Clear Interfaces: The project exposes simple interfaces for extension, keeping the system decoupled and easy to maintain. If you're interested in modular architecture for automation or have experience with designing extensible systems in Go, I'd be interested in your thoughts on the interface patterns and architectural choices. You can check out the project here: https://github.com/Visions-Lab/visions-core What are some best practices for designing plugin systems in Go, or things I should watch out for as the ecosystem grows? <!-- SC_ON --> submitted by /u/BaseballTechnical139 (https://www.reddit.com/user/BaseballTechnical139)
[link] (https://github.com/Visions-Lab/visions-core) [comments] (https://www.reddit.com/r/programming/comments/1lwi3ur/modular_automation_core_in_go_inspired_by/)
Still Fuzzy on JavaScript Promises or Async/Await? Here’s a Free Mini-Course!
https://www.reddit.com/r/programming/comments/1lwixes/still_fuzzy_on_javascript_promises_or_asyncawait/

<!-- SC_OFF -->If you ever felt confused by JavaScript promises or async programming, you’re definitely not alone. I just put together a free mini-course on YouTube that breaks down the key concepts with step-by-step visuals and real examples. What’s inside this mini-course: What asynchronous programming really means, and why it matters How async works in JavaScript’s single-threaded world What a promise is, and how it helps Using .then, .catch, and .finally Understanding async and await Composing and chaining promises How to do the same with async/await Running promises in parallel vs. sequentially If you want to build a better intuition for async code, check it out. Hope it helps! Questions or feedback are welcome. <!-- SC_ON --> submitted by /u/kobihari (https://www.reddit.com/user/kobihari)
[link] (https://www.youtube.com/playlist?list=PLQABqXxilUEZKT8OpWa9ba0AFs1kP3eXo) [comments] (https://www.reddit.com/r/programming/comments/1lwixes/still_fuzzy_on_javascript_promises_or_asyncawait/)
I created a programming language in Go with built-in BDD testing. Looking for feedback and contributors!
https://www.reddit.com/r/programming/comments/1lwpvas/i_created_a_programming_language_in_go_with/

<!-- SC_OFF -->Hey, r/golang (https://www.reddit.com/r/golang)! For the past few months, I've been pouring my free time into a passion project: R2Lang, a new, dynamic programming language written entirely in Go. My main goal was to create a language where testing isn't just a library or an afterthought, but a core, first-class citizen of the syntax. The result is a simple, JavaScript-like language with a native BDD testing framework. TL;DR: I built a JavaScript-like scripting language in Go. Its main feature is a native BDD testing system (TestCase { Given/When/Then }). I'm looking for feedback, ideas, and collaborators to help it grow. GitHub Repo: https://github.com/arturoeanton/go-r2lang What is R2Lang? It's a dynamic, interpreted language designed for scripting, testing, and building simple web APIs. Think of it as a blend of JavaScript's simplicity and Go's concurrency model. Key Features: 🧪 Built-in BDD Testing: This is the core feature. You can write tests using a clean Given/When/Then structure directly in your code, without any external frameworks. 🚀 Simple & Familiar Syntax: If you know JavaScript, you'll be writing R2Lang in minutes. Easy Concurrency: It leverages Go's goroutines through a simple r2() function. 🧱 Object-Oriented: Supports classes, inheritance, and this. 🌐 Web Ready: Includes a built-in http library for creating web servers and REST APIs, inspired by Express.js. Here’s what the BDD syntax looks like in action: ```r2 // Function to be tested func add(a, b) { return a + b } // The test case itself TestCase "Verify that the add function works correctly" { Given func() { print("Preparing the numbers for the test.") // You can set up context here return { a: 5, b: 10 } } When func(context) { let result = add(context.a, context.b) print("Executing the sum...") return result } Then func(result) { // assertEqual is a helper, not yet a built-in keyword if (result != 15) { throw "Assertion failed: Expected 15, got " + result } print("Validation successful!") return "Test passed" } } ``` 💖 How You Can Help The language is functional, and I've written a full 6-module course to document it. However, it's still a young project with tons of room for improvement. I'd love to get some collaboration to take it to the next level. I'm looking for all kinds of help: Go Developers: To help improve the core interpreter. There are huge opportunities in performance (bytecode VM, JIT), memory management, and implementing new features from the Roadmap (https://github.com/arturoeanton/go-r2lang/blob/main/docs/en/roadmap.md). Language Enthusiasts: To give feedback on the syntax, features, and overall direction of the project. What do you love? What do you hate? Testers: I need people to break it! Write some complex scripts, find edge cases, and report bugs in the Issues (https://github.com/arturoeanton/go-r2lang/issues). Documentation Writers: The docs are there, but they can always be improved with more examples and clearer explanations. This has been a solo journey so far, and I'm really excited about the possibility of turning it into a community-driven project. Check out the GitHub repository to see the code, the full documentation, and the issue tracker. Thanks for taking a look! Any feedback, questions, or stars on GitHub would be amazing. Let me know what you think! <!-- SC_ON --> submitted by /u/ResolutionSmooth5259 (https://www.reddit.com/user/ResolutionSmooth5259)
[link] (https://github.com/arturoeanton/go-r2lang/) [comments] (https://www.reddit.com/r/programming/comments/1lwpvas/i_created_a_programming_language_in_go_with/)
Designing a Real time Chat Application
https://www.reddit.com/r/programming/comments/1lwzv8r/designing_a_real_time_chat_application/

<!-- SC_OFF -->Real-time chat applications like WhatsApp, Telegram, and Slack have transformed how we communicate. They enable instant messaging across devices and locations. These messaging platforms must handle millions of concurrent connections, deliver messages with minimal latency, and provide features like message synchronization, notifications, and media sharing. Here is the detailed article on How to design a Real-time Chat Application (https://javatechonline.com/how-to-design-a-real-time-chat-application/)? <!-- SC_ON --> submitted by /u/erdsingh24 (https://www.reddit.com/user/erdsingh24)
[link] (https://javatechonline.com/how-to-design-a-real-time-chat-application/) [comments] (https://www.reddit.com/r/programming/comments/1lwzv8r/designing_a_real_time_chat_application/)
Python heapq.nlargest vs list.sort
https://www.reddit.com/r/programming/comments/1lx384k/python_heapqnlargest_vs_listsort/

<!-- SC_OFF -->TL;DR: Do not micro-optimize. I nerd-sniped myself into benchmarking different ways to get the largest element of a list in Python. I made a few pretty plots and had some mildly interesting results. <!-- SC_ON --> submitted by /u/ddaanet (https://www.reddit.com/user/ddaanet)
[link] (https://ddaa.net/2025/python-heapq-vs-sort.html) [comments] (https://www.reddit.com/r/programming/comments/1lx384k/python_heapqnlargest_vs_listsort/)
Bioinformatics in Rust
https://www.reddit.com/r/programming/comments/1lx8drj/bioinformatics_in_rust/

<!-- SC_OFF -->Bioinformatics in Rust is a newly launched monthly newsletter, loosely inspired by scientificcomputing.rs (https://scientificcomputing.rs/). This site aims to highlight Rust crates that are useful, either directly or indirectly, in the field of bioinformatics. Each month, in addition to the crates, it features a research article that serves as a jumping-off point for deeper exploration, along with a coding challenge designed to test your skills and demonstrate Rust’s utility in bioinformatics. <!-- SC_ON --> submitted by /u/Kind-Kure (https://www.reddit.com/user/Kind-Kure)
[link] (http://dawnandrew100.github.io/seq.rs/) [comments] (https://www.reddit.com/r/programming/comments/1lx8drj/bioinformatics_in_rust/)
I built a vector-value database in pure C: libvictor + victordb (daemon) — AMA / Feedback welcome
https://www.reddit.com/r/programming/comments/1lxad98/i_built_a_vectorvalue_database_in_pure_c/

<!-- SC_OFF -->Hi everyone, I’ve been developing a C library called libvictor, originally just a fast vector index (Flat, HNSW, IVF). Over time, I added a simple embedded key-value store for storing raw byte values, indexed by keys or by vectors. To make it usable as a database, I built victord, a lightweight daemon (also in C) that uses libvictor under the hood. It allows: Creating multiple indexes Inserting, deleting, and searching vectors (with attached values) Fast ANN search with optional re-ranking A simple binary protocol (CBOR-based) Self-hosted, no external dependencies The idea is to have a small, embeddable, production-ready vector-value store — great for semantic search, embedding retrieval, and vector-based metadata storage. It’s still evolving, but I'd love feedback or questions. I plan to open source it soon. If you’re into low-level systems, databases, or vector search, AMA or follow the project — I’ll be sharing benchmarks and internals shortly. <!-- SC_ON --> submitted by /u/ebilli (https://www.reddit.com/user/ebilli)
[link] (https://github.com/victor-base) [comments] (https://www.reddit.com/r/programming/comments/1lxad98/i_built_a_vectorvalue_database_in_pure_c/)
Durable AI Loops: Fault Tolerance across Frameworks and without Handcuffs
https://www.reddit.com/r/programming/comments/1lxbe6e/durable_ai_loops_fault_tolerance_across/

<!-- SC_OFF -->Resilience, suspendability, observability, human-in-the-loop, and multi-agent coordination, for any agent and SDK. <!-- SC_ON --> submitted by /u/stsffap (https://www.reddit.com/user/stsffap)
[link] (https://restate.dev/blog/durable-ai-loops-fault-tolerance-across-frameworks-and-without-handcuffs/) [comments] (https://www.reddit.com/r/programming/comments/1lxbe6e/durable_ai_loops_fault_tolerance_across/)