Heading Back to Home: Summer Ramblings
2026-07-25
忙了這麼久總算是能回家了。 前段時間堆出了倆大事,一箇是數學這邊的開題報告,另一是數學敎育的中期報告; 早就想寫了但是一直沒動筆(鍵盤)就是這箇原因吧。
5780 words
|
29 minutes
Control Flow in Haskell: Traversing Structures and Paradigms
Where did my for-loop go? A guide to expressing control flow in Haskell through recursion, folds, lazy structures, and knot-tying.
12111 words
|
61 minutes
Applicative-Controlled Monads: Change the Way Your Monads Work.
Combine the static nature of Applicatives with the sequential power of Monads. Learn to build inspectable workflows in Haskell for dependency extraction, DAG visualization, and automatic concurrency.
5330 words
|
27 minutes
High-Performance Haskell: SlotMap Implementation
Exploring high-performance Haskell by implementing a mutable SlotMap for an order matching engine. Attempting to mimic Rust's memory efficiency backfired with a 20x performance drop due to SoA/AoS mismatches and GC overhead. A valuble lesson on why mixing low-level mutability with high-level immutable abstractions is a bad idea.
8282 words
|
41 minutes
Déjà Vu
有一粒螞蟻,在一小块空地上,繞着圈、俳佪,風很大,吹得有點冷。
1046 words
|
5 minutes
Catching Dust, Finding Hikari
我有目的性地寫了這篇 Blog,大槪是因爲發現自己兪發想不起過去了。
8605 words
|
43 minutes
Lens: An Elegant Way to Operate on Complex Data Structures
A deep dive into Haskell Optics. Learn how to derive Van Laarhoven Lenses, Prisms, and Traversals from scratch, and discover how to build a robust Opaque Optics system with better composition and compiler error messages using type-level programming.
5234 words
|
26 minutes
Type-Level Magic: A Type-Safe Stack DSL in Haskell
2026-02-26
Building a Haskell stack DSL that rejects invalid programs at compile time.
3806 words
|
19 minutes