Yan Yi

Today I Learned

Random stuff I learned and wanted to remember. Notes to my future self so I don’t have to relearn everything - because my brain has limited storage and Google isn’t always available.

TIL: Importing Constructors in Gleam

Unlike the Result type, I learned that I needed to import the Option type constructors in Gleam.

TIL: Importing Constructors in Gleam

TIL: No `if`s in Gleam

There are no `if`s in Gleam. I tried some alternatives other than the standard `case` statements.

TIL: No `if`s in Gleam

TIL: I Don't Understand This Gleam Pipe Compiler Error

I tried to figure out why the pipe syntax did not work in Gleam. Turns out, it might be how Gleam evaluates based on functions precedence.

TIL: I Don't Understand This Gleam Pipe Compiler Error

TIL: Gleam Pattern Matching and Pipe

It has been slightly more than two years since I have written any Elm. Plus with the advancement of AI-assisted coding, I have not really written much …

TIL: Gleam Pattern Matching and Pipe

TIL: Claude Code with Chinese LLMs

I was playing around with Chinese Large Language Models (LLMs). Both Kimi K2 and GLM-4.5 feel a bit slower than Claude Sonnet 4 when I’m using Claude …

TIL: Claude Code with Chinese LLMs

TIL: Setting Up Gleam with asdf

I have been eyeing Gleam since 2023 but never really got to it. It’s a functional programming language. Also, Large Language Models (LLMs) are likely …

TIL: Setting Up Gleam with asdf