Same person as @Gobbel2000@feddit.de, different instance.

  • 1 post
  • 30 comments
Joined 2 years ago
Cake day: April 3rd, 2024
  • I was momentarily confused that this article is pretty much the script of a YT video by Hardware Unboxed I saw recently, but then I noticed that he is literally the author.

    While all these developments point in a very worrying direction, I think there are some positives to this: Fewer performance gains means longer upgrade cycles, longer support windows and less pressure on consumers to keep soending money on upgrades (although the eventual upgrade is now way more expensive).

  • But you can just as well make an exception to allow errors when -e is enabled with something like command || true, or even some warning message.

    I feel like, while it does occur, allowing errors like this is more unusual than stopping the script in an error, so it’s good to explicitly mark this case, therefore -e is still a reasonable default in most cases.

  • The CSR (compressed sparse row) format is a very simple but efficient way of storing sparse matrices, meaning matrices with a large amount of zero entries, which should not all occupy memory. It has three arrays: one holds all non-zero entries in order, read row by row, the next array contains the column indices of each non-zero element (and therefore has the same length as the first array), the third array indices into the first array for the first element of each row, so we can tell where a new row starts.

    On sparse matrices it has optimal memory efficiency and fast lookups, the main downside is that adding or removing elements from the matrix requires shifting all three arrays, so it is mostly useful for immutable data.