这里那里
An assistant that reviews GitHub pull requests, live. It reads CI status and the repository's own convention docs, not just the diff. Repo-level RAG is achieved.
A Last.fm scrobbler for macOS that logs playback from any source. Written first in C++/Objective-C++, later rewritten in Go. The now-playing line on this site comes from it.
-F/System/Library/PrivateFrameworks; the Go version bridges through CGo, which means marshalling types on both sides of the C boundaryA demo-grade RPC framework over TCP, with service discovery, load balancing and connection reuse.
A demo-grade order system in Go, split across four services, covering the path from placing an order to fulfilling it.
Kernel subsystems built inside a RISC-V teaching operating system: signals, scheduling, virtual memory, user-level threads.
kernel_entry just before the context is restored. Delivering one saves mepc and 32 registers into the process's saved_signal_ctx, rewrites mepc to the handler, and puts the signal number in a0 and the trampoline's address in raSYS_SIGRETURN to the syscall argument page and issues ecall, and the kernel restores what it savedSIGKILL and default handling skip that path entirely, rewriting mepc to the program's exit entry so user code cannot intercept themwalk() allocates an L2 page on demand and returns a pointer to the PTE so permission bits can be edited directly, with sfence.vma after a switch and identity-mapped regions set up alongside0x80200000–0x80400000 as a NAPOT region with r/w/x for user mode, written straight into the pmpaddr0 and pmpcfg0 CSRsthread_create / thread_yield / thread_exit. A thread cannot free its own stack while running on it, so reclamation is deferred to the next create or yieldA Unix-like file system in user space, read and write, with two unit-test suites totalling 39KB.
bit_set, bit_clear and bit_test, updated on creation, write and truncationparse splits a path into components, translate walks the directories to turn it into an inode numbergetattr, readdir, create, mkdir, unlink, rmdir, rename, chmod, utime, truncate, read, write and statfs, with both reads and writes completetruncate reclaims or adds data blocks to reach the new length and keeps the bitmap in step; rename handles adding and removing directory entries on both sides of a movegen-disk.py builds a disk image from a description, read-img.py dumps one, diskfmt.py formats