Why the Vec grid of my tool is that slow in Rust

Time flows and now it is November. The AOC is coming in just one month. I was checking the first year of AOC I completed back in 2017. When I was working on day 3, I was going to use the AOC map that I had made in the AOC tools I worked on during the last several AOCs.

Read More

Re-write from lazy_static to LazyLock.

From Rust 1.80, LazyLock is now part of the stable channel. To be honest, it is the first time I realized the Rust team was trying to stabilize the lazy_static feature. This is great news because I have been using lazy_static in some of my projects, and I am eager to rewrite them using LazyLock (LazyCell).

Read More

2023 review

Today is the last day of 2023, and I think I should review how my development has progressed this year.

Read More

Advent of Code 2023 journey

The AoC 2023 has finished! Just like last year, I am going to record my AoC 2023 journey in this post. This year, I sought a lot of help from my friends in the chatting group we made last year, and the geniuses on Reddit. I truly learned a lot, including several algorithms I had never even heard of before.

Read More

Re-make my Raspberry Pi after a stupid mistake

I was trying to play around using my local mac emacs slime to connect the swank server on my raspberry pi. Initially, it cannot work, but I use the ssh tunnel to forward the ports to make it work. However, I try to figure out why it cannot connect directly. It is because the raspberry pi doesn’t open the port.

Read More

Migrating to Apple Silicon Mac

After a year’s wait, I finally got my M2 aarch64 chip MacBook Pro. And after one day of usage, there are some experiences I should write down about migrating from the old intel macbook pro to this new one.

Read More

Set tree-sitter of my emacs

I noticed open Cargo.toml in my emacs didn’t show colors/highlights one day. After check the error messages, I figured out a new word that tree-sitter.

Read More

Personal CI/CD

I am not a Jenkins’ fan in my whole (not long) career. I always feel frustrated when I have to write jenkinsfile or use some other tools based on jenkins.

Read More

A tiny compare and optimize of my tiny project

I am trying to learn OCaml several weeks ago. My personal hobbits is writing a tiny project for fun with new language which I am learning. So, for OCaml, I wanna to rewrite my old code-it-later project. At beginning, I just want to practice, then I get some experiments.

Read More