Halfrost-Field README

The project's README from github.com/halfrost/Halfrost-Field. As one markdown file: README.md.

Halfrost-Field

English  |  中文

visitor badge

GitHub

⭐️ Why I Created This Repository

People often say that reading the source code of open-source frameworks can significantly improve one’s skills, so I have also tried reading open-source framework source code and analyzing and understanding it in detail. Here I record my thoughts and insights from reading open-source framework source code, hoping they will be helpful to other developers. I will keep updating the articles in this repository; if you’d like to follow along, please give it a star.

📖 Table of Contents

🔥 LLM

Project Version Article
vLLM v1 @ 6cf7b26bd vLLM Source Walkthrough: From generate() to the First Token
Entrypoints: LLM, CLI, and the OpenAI-Compatible Server
V1 Process Architecture: API Server, EngineCore, and GPU Workers
EngineCore Loop: Request Lifecycle, Step, and Output Processing
Scheduler: Continuous Batching and Chunked Prefill

🐳 Go

Project Version Article
Go 1.16 darwin/amd64 A Go Beginner's Journey
A First Look at How Go Compile Commands Execute
In-Depth Analysis of Go Slice Internals
How to Design and Implement a Thread-Safe Map? (Part 1)
How to Design and Implement a Thread-Safe Map? (Part 2)
LRU / LFU in Interviews: Bronze vs. King
In-Depth Study of Go interface Internals
The Three Laws of Go reflection and Best Practices
Inside Go Concurrency Primitives — Channel Internals
Spatial Search golang/geo Understanding n-Dimensional Space and n-Dimensional Spacetime
Efficient Multidimensional Point Indexing Algorithms — Geohash and Google S2
How Is CellID Generated in Google S2?
Finding the LCA in a Quadtree in Google S2
The Magical De Bruijn Sequence
How to Find Hilbert Curve Neighbors in a Quadtree?
How Does Google S2 Solve the Optimal Spatial Covering Problem?
                                                            
Code <T> share keynote

🍉 Machine Learning

Project Version Article
Machine Learning Andrew Ng Stanford University Table of Contents
                                                            
Week1 —— What is Machine Learning
Week1 —— Linear Regression with One Variable (Gradient Descent)
Week2 —— Multivariate Linear Regression
Week2 —— Computing Parameters Analytically
Week2 —— Octave Matlab Tutorial
Week3 —— Logistic Regression
Week3 —— Regularization
Week4 —— Neural Networks Representation
Week5 —— Neural Networks Learning
Week5 —— Backpropagation in Practice
Week6 —— Advice for Applying Machine Learning
Week6 —— Machine Learning System Design
Week7 —— Support Vector Machines
Week8 —— Unsupervised Learning
Week8 —— Dimensionality Reduction
Week9 —— Anomaly Detection
Week9 —— Recommender Systems
Week10 —— Large Scale Machine Learning
Week11 —— Application Example: Photo OCR

🚀 JavaScript

Project Version Article
JavaScript ECMAScript 6 A JavaScript Beginner's Pitfall Diary
Starting with JavaScript Scope
Unraveling the Mystery of this & that
JSConf China 2017 Day One — JavaScript Change The World
JSConf China 2017 Day Two — End And Beginning
Vue.js 2.3.4 A Cross-Platform App for Three Platforms Built with Vue Full Stack + Electron
The Era of the Mega Front End (Part 1) —— Componentization in Vue and iOS
Ghost 1.24.8 Ghost Blog Setup Diary
Ghost Blog Upgrade Guide
Flashy "New" Tricks for Ghost Blogs
Optimizing Blog Performance Scores
                                                            

📝 Protocol

Project Version Article
HTTP 1.1 Overview of HTTP Basics
HTTP 2 [RFC 7540] Hypertext Transfer Protocol Version 2 (HTTP/2)
Unveiling HTTP/2: How HTTP/2 Establishes Connections
HTTP Frames and Stream Multiplexing in HTTP/2
Frame Definitions in HTTP/2
HTTP Semantics in HTTP/2
Things to Note in HTTP/2
Common Questions in HTTP/2
[RFC 7541] HPACK: Header Compression for HTTP/2
A Detailed Look at the HTTP/2 Header Compression Algorithm — HPACK
Practical Examples of HTTP/2 HPACK
[RFC 7301] TLS Application-Layer Protocol Negotiation Extension
WebSocket Version 13 WebSocket for Full-Duplex Communication
Protocol-buffers proto3 Protobuf: An Efficient Data Compression and Encoding Format
Protobuf: An Efficient Data Serialization/Deserialization Format
FlatBuffers 1.9.0 FlatBuffers Explained: Schema
FlatBuffers Explained: Encode
FlatBuffers Explained: FlexBuffers
TCP Overview of TCP/IP Basics
Advance_TCP
TLS Cryptography
Overview of Cryptography
A Tour of Symmetric Encryption Algorithms
A Tour of Public-Key Cryptography Algorithms
What Is a Message “Fingerprint”?
What Is a Message Authentication Code?
Ubiquitous Digital Signatures
Everywhere You Look: Public-Key Certificates
The Essence of Secrets: Keys
The Root of Unpredictability—Random Numbers
TLS TLS 1.3
How to Deploy TLS 1.3?
[RFC 6520] TLS & DTLS Heartbeat Extension
[RFC 8446] The Transport Layer Security (TLS) Protocol Version 1.3
TLS 1.3 Introduction
TLS 1.3 Handshake Protocol
TLS 1.3 Record Protocol
TLS 1.3 Alert Protocol
TLS 1.3 Cryptographic Computations
TLS 1.3 0-RTT and Anti-Replay
TLS 1.3 Compliance Requirements
TLS 1.3 Implementation Notes
TLS 1.3 Backward Compatibility
TLS 1.3 Overview of Security Properties
HTTPS TLS 1.2/TLS 1.3 HTTPS: Revisiting the Basics (1) — Introduction
HTTPS: Revisiting the Basics (2) — The TLS Record Layer Protocol
HTTPS: Revisiting the Basics (3) — An Intuitive Look at the TLS Handshake Process (Part 1)
HTTPS: Revisiting the Basics (4) — An Intuitive Look at the TLS Handshake Process (Part 2)
HTTPS: Revisiting the Basics (5) — Key Calculation in TLS
HTTPS: Revisiting the Basics (6) — Extensions in TLS
QUIC v44 [How

Halfrost-Field (halfrost/Halfrost-Field)

Searching Database…

这是什么?Halfrost-Field 是 halfrost 的个人技术博客归档,收录长篇深度文章,内容涵盖源码分析、系统设计和工程实践,例如 Go 内部机制、vLLM/LLM 推理服务、机器学习笔记和网络协议。
这是代码库还是文章阅读清单?它不是软件库,而是一份按项目或主题(LLM、Go、Machine Learning、JavaScript、Protocol)整理的文章目录,每一项都链接到一篇成文的深度解读。
内容是怎么组织的,我应该从哪里开始?README 按主题分成多个分区(LLM、Go、Machine Learning、JavaScript、Protocol 等),每个分区列出项目、版本以及相关文章链接。你只需选一个感兴趣的主题,比如 Go channel 内部机制或 TLS 1.3,然后打开对应的链接文章即可。
内容都有英文版吗?仓库同时提供英文和中文版本,但它最初是一个中文博客,所以部分较早或较新的条目可能只有中文原文,翻译版还在补充中。
这份合集适合谁看?适合希望超越框架使用、深入理解其内部原理的开发者,内容从 Go 并发原语一直讲到 vLLM 的调度器和 TLS 1.3 握手。
vLLM 这部分讲了什么?它逐步剖析 vLLM 的内部实现:从调用 generate() 到生成第一个 token,涵盖 LLM、CLI 和兼容 OpenAI 的服务端入口,V1 版 API 服务器、EngineCore 与 GPU worker 的架构,以及调度器的连续批处理(continuous batching)和分块预填充(chunked prefill)。
这个内容还在更新吗?还在更新。作者明确表示会持续添加新文章,最近新增的内容包括 vLLM 源码的讲解。
作者为什么要建这个仓库?作者开始记录自己阅读开源框架源码时的心得,认为这种深度阅读的做法能显著提升开发者的能力,因此希望把这些内容分享给其他人。
除了 Go 和 LLM,还涵盖哪些主题?合集还包括吴恩达机器学习课程的笔记,JavaScript、Vue.js 和 Ghost 博客的深度解析,以及 HTTP/2、TLS 1.3、QUIC、WebSocket 和 Protocol Buffers 等协议内部机制。
Creator
halfrost
Size
105.5 MB
Stars
13.2K
Updated
CommitSep 30
Age
9y
Commits · 90 Days