• 3 Posts
  • 22 Comments
Joined 2 years ago
cake
Cake day: June 17th, 2023

help-circle















  • Leaking memory is safe

    Rust’s memory safety guarantees make it difficult, but not impossible, to accidentally create memory that is never cleaned up (known as a memory leak). Preventing memory leaks entirely is not one of Rust’s guarantees in the same way that disallowing data races at compile time is, meaning memory leaks are memory safe in Rust. We can see that Rust allows memory leaks by using Rc<T> and RefCell<T>: it’s possible to create references where items refer to each other in a cycle. This creates memory leaks because the reference count of each item in the cycle will never reach 0, and the values will never be dropped.







  • knowledge management refers to how to organize, store, retrieve, and use information.

    In the context of personal knowledge management using tools like Logseq, the definition could be something like this:

    Personal Knowledge Management (PKM) is the practice of capturing, organizing, and making sense of one’s own observations, ideas, and experiences to understand and share knowledge. It’s about creating a system that allows you to capture thoughts and ideas easily, make connections between different pieces of information, and retrieve and use this knowledge effectively.

    For example, if you’re learning a new topic, you might read a variety of sources and take notes in Logseq. Over time, you’d review and refine these notes, connecting new insights to existing ones, creating a rich, interconnected knowledge base.