One of the bits of code I'm secretly proudest of is this Logic abstraction in the cfg-expr crate, used to evaluate Cargo cfg() expressions. With this, you can use both Boolean and three-valued logic (and other logics with your own impls) to evaluate expressions.
Why is this useful? Well, sometimes we just don't know whether an expression should evaluate to true or false. Using the three-valued K3 logic (also seen in SQL) we can represent that as an unknown state.
https://docs.rs/cfg-expr/latest/cfg_expr/expr/trait.Logic.html
page 21 of part 4 of ICAO's document 9303, one of my favourite documents (it's the specification for passports, identity cards, and more)
https://www.icao.int/publications/Documents/9303_p4_cons_en.pdf
Super mad at Apple again tonight as I realize that you cannot have the Music app without Radio, the TV app without trailers for TV+, the or the Podcasts app without an un-hideable screen full of hideous murder-related content or the app store without exploitative IAP gambling-for-kids garbage. I can lock down a device so that a child can't listen to songs with the F-word in them but there is *no* way to say DO NOT SHOW THEM ENCOURAGEMENTS TO GAMBLING ADDICTION.
I do not want to be given iron-fisted control over my child's media habits, particularly as they grow up, but every "parental controls" app and setting is based on the idea that I need a way to prevent my kid from learning that trans people exist or that people say "shit" sometimes, not that I want to just give them a device which has the stuff that we have put on it that does not *advertise* other things to them constantly. I have no interest in preventing them from seeking out information.
#wikifinds “After the death of his younger brother Emil in an 1864 nitroglycerin explosion at the family's armaments factory in Heleneborg, Stockholm, Nobel founded Nitroglycerin AB in Vinterviken, Stockholm.”
I wrote a blog post about how it's hard to learn things on the internet, wait no actually it's about programming and math:
https://wareya.wordpress.com/2023/12/09/canonical-huffman-codes-are-a-speed-optimization-not-a-space-optimization/
Trans woman, bisexual, someone's fiancée, forever a programmer, poly, and former total mess
Avatar by mavica