So this first version, (helped by Claude) persistently did the build but failed to do the release….. Then, after some more experimentation: This complete workflow solution: Key changes I made: This approach eliminates the need to manually create tags. Now every push to your main branch will automatically create a new release with all your […]
Rust’s Tokio async runtime provides two common ways to execute multiple async tasks concurrently: tokio::join! and tokio::spawn(). Choosing the right one is crucial for efficiency and proper task management. In this article, we’ll break down their differences, advantages, and when to use each with examples. Later on in the article well use JoinSet Understanding tokio::join! […]
Challenge: Race Condition & Mutex Fix ๐๏ธ๐ You’re building an async counter where multiple tasks try to update a shared number at the same time. But there’s a problem: Rust doesnโt allow shared mutable access without safety measures. Your Mission: Hints: When you use await, it pauses the task, not the thread. Here’s the distinction: […]
1. gossipsub 2. mdns (Multicast DNS) 3. noise 4. swarm::{NetworkBehaviour, SwarmEvent} 5. tcp 6. yamux Summary Table Name Type Purpose gossipsub PubSub Message propagation in P2P networks. mdns Discovery Finds peers in local networks. noise Encryption Secure communication between peers. NetworkBehaviour, SwarmEvent Core API Defines P2P behavior and handles events. tcp Transport Reliable peer communication. […]
Documenting what I’ve learned creating a Dockerized MCP Server in Python ๐ In this article I give the links and show the syntax to build the server inside a Docker image ready for you to provide to users of Claude, Cursor and all clients capable of using an MCP server. Create Model Context Protocol (MCP) […]
Let me break down the process of creating this chat application into three phases, explaining the shared state aspect and unique challenges compared to typical Arc/Mutex tutorials. Phase 1: Setting Up the Basic Structure In Plain English: First, you’ll need to establish the foundational structure of your application. This means creating the basic server that […]
Let’s extend our MCP server’s capabilities using resource templates – one of the most powerful features of the Model Context Protocol (MCP) ecosystem. What Are Resource Templates? Resource templates allow you to define dynamic resources using URI patterns. Unlike static resources with fixed URIs, templates let you create resources whose URIs and content can be […]
Question: Where is this held? As tokens in the LLM? (Maintains a conversation history list with message roles and content) Answer: The conversation history is held in memory as a Python list variable, not as tokens in the LLM. In the code, you can see this implementation: This is a regular Python list that contains […]