• 0 Posts
  • 108 Comments
Joined 5 months ago
cake
Cake day: April 9th, 2024

help-circle





  • Reading this, the return impl complexity seemed insane.

    Then, by accident, i programmed on a pet project until 4 in the night, and boom, I’ve had the exact problem they’re solving. Remembered that I usually need an extra lifetime in the impl definition, and boom, it worked. Doesn’t seem so insane anymore.

    (Was working on a little Webservice with warp, and returning their filters from a function)












  • /dev/random and other “files” in /dev are not really files, they are interfaces which van be used to interact with virtual or hardware devices. /dev/random spits out cryptographically secure random data. Another example is /dev/zero, which spits out only zero bytes.

    Both are infinite.

    Not all “files” in /dev are infinite, for example hard drives can (depending on which technology they use) be accessed under /dev/sda /dev/sdb and so on.