Ben Chuanlong Du's Blog

It is never too late to learn.

Memory Layout in Rust

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Different Types of Memory in Rust

Rust has 3 different types of memory: static memory, stack memory and heap memory.

  1. Static variables live in static memory and is determined at compile time. It is suggested that you define large data variables as static so that they live in the static memory instead of stack memory to avoid stack overflow problems. Of course, another way is to put those variables into heap memory (but at the cost of slight performance loss).

Tips on Frontend Development

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

The State of Frontend in 2022 has a good discussion about the state and trend of frontend technologies as of 2022.

Useful Tools for Web Development

  1. Rome provides unified developer tools …

Parser Generators

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

pest

Pest is a general purpose parser written in Rust with a focus on accessibility, correctness, and performance. It uses parsing expression grammars (PEG) as input, which are similar in spirit …

Tips on Valgrind

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!