<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rasuljanov Muhammadali</title>
    <description>The latest articles on DEV Community by Rasuljanov Muhammadali (@rasuljanov_alihon).</description>
    <link>https://dev.to/rasuljanov_alihon</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3995307%2Fa458ba0e-3cf3-43c5-9ab4-382119b486e6.jpeg</url>
      <title>DEV Community: Rasuljanov Muhammadali</title>
      <link>https://dev.to/rasuljanov_alihon</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rasuljanov_alihon"/>
    <language>en</language>
    <item>
      <title>HexCore: Zero-Trust Paged KV Cache Allocator</title>
      <dc:creator>Rasuljanov Muhammadali</dc:creator>
      <pubDate>Thu, 30 Jul 2026 16:43:07 +0000</pubDate>
      <link>https://dev.to/rasuljanov_alihon/hexcore-zero-trust-paged-kv-cache-allocator-1cep</link>
      <guid>https://dev.to/rasuljanov_alihon/hexcore-zero-trust-paged-kv-cache-allocator-1cep</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq4f577ff0pj2qwochnum.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq4f577ff0pj2qwochnum.png" alt=" " width="799" height="385"&gt;&lt;/a&gt;Efficient memory management is one of the biggest bottlenecks when scaling Large Language Model (LLM) inference runtimes. Memory fragmentation and unpredictable allocation latencies can severely degrade token generation performance.&lt;/p&gt;

&lt;p&gt;To tackle this problem, I built &lt;strong&gt;HexCore v2.2.0&lt;/strong&gt; — a zero-trust, ultra-low latency Paged KV Cache Allocator written in C++20 with CUDA kernels.&lt;/p&gt;




&lt;h2&gt;
  
  
  🔑 Key Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Paged KV Cache Allocator:&lt;/strong&gt; Minimizes latency and memory fragmentation during autoregressive decoding.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CUDA Accelerated Kernels:&lt;/strong&gt; Custom GPU implementations for Paged Attention and quantized memory layouts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero-Trust Memory Safety:&lt;/strong&gt; Fully guarded boundary checking verified with AddressSanitizer (ASan) and UndefinedBehaviorSanitizer (UBSan).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Python/PyTorch Bindings:&lt;/strong&gt; High-performance C++20 bindings for seamless integration into modern AI runtimes.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🛠 Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Core:&lt;/strong&gt; C++20, CUDA&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Integration:&lt;/strong&gt; Python, PyTorch (pybind11)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build System &amp;amp; CI:&lt;/strong&gt; CMake, GitHub Actions CI/CD&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🚀 Open Source &amp;amp; CI/CD Pipeline
&lt;/h2&gt;

&lt;p&gt;The repository includes complete GitHub Actions CI/CD workflows testing host bindings, sanitizer safety, and build integrity across multiple platforms.&lt;/p&gt;

&lt;p&gt;Check out the full source code and documentation on GitHub:&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://github.com/password162156/hexcore-llm" rel="noopener noreferrer"&gt;GitHub Repository: password162156/hexcore-llm&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I'd love to hear feedback, thoughts, or contributions from the C++ and AI systems engineering community! ⭐&lt;/p&gt;

</description>
      <category>cpp</category>
      <category>cuda</category>
      <category>ai</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Beyond open(): Designing a Crash-Safe, Atomic Hot-Patching Engine in Python</title>
      <dc:creator>Rasuljanov Muhammadali</dc:creator>
      <pubDate>Sun, 21 Jun 2026 12:56:58 +0000</pubDate>
      <link>https://dev.to/rasuljanov_alihon/beyond-open-designing-a-crash-safe-atomic-hot-patching-engine-in-python-4b7o</link>
      <guid>https://dev.to/rasuljanov_alihon/beyond-open-designing-a-crash-safe-atomic-hot-patching-engine-in-python-4b7o</guid>
      <description>&lt;p&gt;Why standard file operations are a liability in production&lt;br&gt;
In high-availability systems, file I/O is the "hidden killer." If a server process updates a configuration file and crashes midway, you're left with a corrupted state—or worse, a silent failure. I analyzed this bottleneck and built Shadow Kernel, an atomic hot-patching engine designed to handle critical data integrity with zero third-party dependencies.&lt;/p&gt;

&lt;p&gt;The Engineering Challenge&lt;br&gt;
Traditional open('w') operations are non-atomic. A sudden power loss or process kill leaves the file in an indeterminate state. My goal was to create a mechanism that guarantees:&lt;/p&gt;

&lt;p&gt;Atomicity: The file is either fully updated or left completely untouched.&lt;/p&gt;

&lt;p&gt;Exclusivity: Preventing concurrent race conditions during the patch cycle.&lt;/p&gt;

&lt;p&gt;Syntax Validation: Ensuring no malformed code ever hits the disk.&lt;/p&gt;

&lt;p&gt;The Architecture&lt;br&gt;
Shadow Kernel doesn't just write to a file; it executes a four-phase safety protocol:&lt;/p&gt;

&lt;p&gt;Phase 1: Pre-flight AST Validation. Before any I/O occurs, I leverage Python's ast.parse() to validate the syntax. If the code is broken, the engine aborts immediately, protecting the production state.&lt;/p&gt;

&lt;p&gt;Phase 2: Dual-Layer Locking. I implemented a two-tier locking system: threading.Lock for in-process safety, combined with fcntl.flock (exclusive, non-blocking) to prevent race conditions across different system processes.&lt;/p&gt;

&lt;p&gt;Phase 3: The Atomic Commit. Data is written to a temporary file (.tmp). Using fdatasync, I flush the kernel buffers directly to physical media. Finally, a POSIX os.replace operation—which is an atomic system-level swap—replaces the target file.&lt;/p&gt;

&lt;p&gt;Phase 4: Integrity Verification. A pre- and post-patch SHA-256 hash comparison ensures that the bytes written match the intended source. If there is a mismatch, the engine triggers an automatic rollback.&lt;/p&gt;

&lt;p&gt;Why this matters&lt;br&gt;
This isn't just about updating source code; it's about building resilient systems that can self-heal. By relying solely on the Python standard library, I've created a portable, high-integrity solution that can be dropped into any environment without adding dependency bloat.&lt;/p&gt;

&lt;p&gt;Closing Thoughts&lt;br&gt;
Engineering is the art of making software predictable in the face of inevitable hardware and system failures. Shadow Kernel is my attempt to bring the robustness of kernel-level file handling to Python application logic.&lt;/p&gt;

&lt;h1&gt;
  
  
  Python #SystemDesign #SoftwareEngineering #DataIntegrity #Backend #OpenSource #Programming #LowLevel #ResilientSystems
&lt;/h1&gt;

</description>
      <category>python</category>
      <category>showdev</category>
      <category>softwareengineering</category>
      <category>systemdesign</category>
    </item>
  </channel>
</rss>
