Fri 16 Jul 2021

time(1) and CPU frequency scaling

Is it wrong to measure processes using time(1)? In my particular case, it was wrong. But it really depends on what you want to know. You can also look at it like this: The fact that the user value increases and the frequency drops so much actually tells you that this might be a bit too much load for your machine.

Source: time(1) and CPU frequency scaling, an article by Peter Hofmann.

Unsafe Rust: How and when (not) to use it

In this guide, we’ll explain everything you need to know about unsafe Rust. We’ll focus on the following:

  • Myths about unsafe Rust
  • When not to write unsafe code
  • Dealing with uninitialized memory
  • Mutating the immutable
  • Intrinsic(s) motivation
  • Inline assembly
  • Interfacing foreign functions
  • Tools for writing unsafe Rust

Source: Unsafe Rust: How and when (not) to use it, an article by Andre Bogus.