Code Archaeology
Author

Code Archaeology

Learn from the past to understand the present

67
Articles
0
Likes
24
Views
0
Comments
Recent Articles

Latest from Code Archaeology

67 recent articles
Code Archaeology
Code Archaeology
Sep 11, 2025 · Artificial Intelligence

Linear Regression Basics: Gradient Descent & Feature Standardization with PyTorch

This tutorial introduces linear regression fundamentals, explaining features, labels, weights, bias, and mean squared error loss, then demonstrates gradient descent optimization in PyTorch, reveals how unscaled features break convergence, and shows feature standardization fixing the problem.

PyTorchfeature scalingfeature standardization
0 likes · 6 min read
Linear Regression Basics: Gradient Descent & Feature Standardization with PyTorch
Code Archaeology
Code Archaeology
Aug 19, 2025 · Backend Development

Netty 4.2's io_uring bufferRing: Design, Implementation, and Performance Trade-offs

This article dissects Netty 4.2's integration of Linux io_uring's bufferRing mechanism, explaining its ring-buffer data structure, single-tail-pointer design, Netty's IoUringBufferRing encapsulation, per-connection buffer group binding, SQE submission with IOSQE_BUFFER_SELECT, CQE flag handling, and the incremental/bundle optimizations that reduce buffer waste and CQE overhead.

JavaLinux kernelNetty
0 likes · 10 min read
Netty 4.2's io_uring bufferRing: Design, Implementation, and Performance Trade-offs
Code Archaeology
Code Archaeology
Aug 5, 2025 · Artificial Intelligence

LLM Inference Explained: Prefill, Decode, and KV Cache Mechanics

This article explains the LLM inference process, detailing the prefill and decode stages, tokenization, KV cache mechanics, and key metrics like TTFT and ITL, while introducing inference frameworks MindIE and LMDeploy with their optimization features.

DecodeKV cacheLLM inference
0 likes · 8 min read
LLM Inference Explained: Prefill, Decode, and KV Cache Mechanics
Code Archaeology
Code Archaeology
Jul 21, 2025 · Artificial Intelligence

Hands-On MCP: Decoding the Model Context Protocol with Live JSON-RPC Examples

This article demystifies the Model Context Protocol (MCP) by walking through a practical fetch-mcp example, then detailing the JSON-RPC 2.0 application layer interactions — initialization, tool listing, and tool calling — and comparing STDIO versus Streamable HTTP transport layers for remote MCP server communication.

AI engineeringJSON-RPCLLM tool integration
0 likes · 11 min read
Hands-On MCP: Decoding the Model Context Protocol with Live JSON-RPC Examples
Code Archaeology
Code Archaeology
Jul 15, 2025 · Backend Development

AF_XDP Explained: Zero-Copy Packet Processing via eBPF Ring Buffers

This article explains AF_XDP, the user-space socket interface for XDP that enables zero-copy packet processing via shared memory (UMEM) and four single-producer/single-consumer ring queues (RX, TX, FILL, COMPLETION), detailing the packet receive/send flow and the BPF_MAP_TYPE_XSKMAP for redirecting packets to user space.

AF_XDPBPF_MAP_TYPE_XSKMAPLinux kernel networking
0 likes · 8 min read
AF_XDP Explained: Zero-Copy Packet Processing via eBPF Ring Buffers
Code Archaeology
Code Archaeology
Jun 6, 2025 · Cloud Native

eBPF XDP Tutorial: Packet Parsing, Rewriting & Redirection

This article walks through the first three packet processing lessons of the xdp-project/xdp-tutorial, covering packet parsing with verifier errors, packet rewriting with debugging tips using nc and bpf_printk, and packet redirection nuances with veth pairs and XDP_REDIRECT/XDP_TX requirements.

XDPeBPFpacket parsing
0 likes · 7 min read
eBPF XDP Tutorial: Packet Parsing, Rewriting & Redirection