The central insight of #zfs and imo what makes it have totally bananas behavior if you don't spend time tuning it, is that the engineers designing it very clearly said to themselves: what would page tables for hard drives look like? And then set about implementing exactly that.

This is distinct from almost every other filesystem that said "how can we marginally improve on b-trees" and then did that with varying levels of success.

re: actually re: koboldposting

The Dragons have woken.

A Dragon: "She only ripped up two pillows, knocked over one thing in the kitchen, and ate a little trash. That's it. That's a good kobold!"

The other Dragon: "That's a good kobold!"

actually re: koboldposting

Kobold is letting the Dragons have their rest but may go get a book.

clarification/reassurance? re: angel/bpd shitpost

I forgot to cw that as a subtoot, but it's not about anyone on fedi & the person it is about watched us draft it.

I got #nerdsniped over on the bird site with the knowledge that one can build a #statemachine to do a one-pass check if a number is divisible by some pre-set number. (Which means there is a #regex for each of these state machines)

Basic principle is this, using division by 3 in base 10 as an example:

* have a state for each possible remainder: 0, 1, 2

* for each state, we make transitions for each possible input digit

* to do this we multiply the state's number by the base, add our input digit, then calculate the remainder of that, producing the end of that transition. E.g. for state 2, input digit 5, we multiply 2 by 10 (20) add 5 (25) then calculate the remainder (1) So there's a transition from 2 to 1 for the input digit 5.

The full machine for dividing by 3 in base 10 is attached.

In base 10, there's a handy trick to determine if some random number is divisible by 3: add up all the digits, and if the resulting sum is divisible by 3, the original number is divisible by 3.

You can also build a state machine for this trick, which ends up being the exact same state machine as the one produced above.

This means that my two favourite number tricks are actually the same number trick!

queer plural monsters | our body is 21+ | interactions and follow requests welcome | minors DNI | please gently the kobolds

Joined Nov 2022