You can see a list of Recommended Posts here.

For better experience to read this blog, here are a few suggestions for you:

  • 3 Categories:
    • Elucidator: My personal thoughts and musings.
    • Foreigners: A collection of helpful content I’ve discovered across the web.
    • Code: Chronicles of my project journeys and solutions to various problems.
  • Click on the title of the blog to have a better reading experience.
  • cite your sources if you copy content.
Read more »

Rust is Poem, Code like a Poet

When I first met Rust, it felt strangely familiar—C++’s control and Python’s expressiveness. It is like something of both and in between.
Then it clicked: writing Rust is like composing a traditional Chinese poem.

Element Rust Classical Chinese Poem (律诗 / 绝句)
Constraints Ownership, borrowing, lifetimes, type safety Fixed syllable counts, tonal patterns, rhymes
Form Forces you to be precise, concise, and intentional Forces elegant expression within tight limits
Beauty Comes from structure and flow: safety, performance, clarity Comes from symmetry, contrast, and rhythm
Mental Shift You must think before you write You must feel and measure before you ink
Reward Zero-cost abstractions, safety, performance Emotional depth, timeless aesthetics
Read more »

When using linux with proxy, one may encounter error like this:

1
2
3
4
5
$ pip install -r requirements.txt 
ERROR: Could not install packages due to an OSError: Missing dependencies for SOCKS support.

WARNING: There was an error checking the latest version of pip.

This one line will solve the issue:

Read more »
0%