Tristan Brice Velloza Kildaire's avatar
Tristan Brice Velloza Kildaire
deavmi@deavmi.assigned.network
npub16c2f...xaj2
Computer programmer ๐Ÿง‘โ€๐Ÿ’ป, wine drinker ๐Ÿท, opinion haver ๐Ÿ—ฃ๏ธ, Roman Catholic โœ๏ธ I have quite a keen interest in compilers, operating systems, routing and food. XMR: 43jx2gRMRxBauz2gwKTb9VJyUqKNg7wVPVVhQd32cgUA6WGhs2haJXAHfrdTzTKdYfeGEbDT8FtkF45sKMAEyasWRSyG5Sj BTC: bc1qkvduq9rwray2ymrvkrven3m8vsp9ah55f4hnc4 SimpleX: https://simplex.chat/contact#/?v=2-7&smp=smp%3A%2F%2Fhpq7_4gGJiilmz5Rf-CswuU5kZGkm_zOIooSw6yALRg%3D%40smp5.simplex.im%2FG0HWkVbLHEAC38X3oPTL6iOLZnJ0gC32%23%2F%3Fv%3D1-3%26dh%3DMCowBQYDK2VuAyEAc_KgxEP05S0o28ZO2FoaWC-fmRPWsjRUYNGTiE9N-y8%253D%26srv%3Djjbyvoemxysm7qxap7m5d5m35jzv5qq6gnlv7s4rsn7tdwwmuqciwpid.onion
I been writing a lot of C code recently, hence why I have been so silent. There are some cool projects in the works but for now I'm going to be pretty silent and will only really report on them once I am actually done. Keep your eyes peeled for cool stuf! :)
Zooko Wilcox on the topic of privacy: Paraphrasing: "for a globally distributed network to be most successful it has to span not only continents and nations and networks and things like that... but it also has to span politics - you have to get people who have differing and opposing beliefs to also want it."
This is actually slander, IPv6 beats IPv4 anyday. Wanna write a link-local application? ff02::1%interface Wanna be actually reachable on the Internet? Get yourself a /48 NAT: Never heard of her (except for 64) image
Wait, y'all use firewalls? I had some Meta Cuck AI (tm) bot scraping my self-hosted Gitea instance and hitting all of the endpoints like /commit. I wish Mikrotik's RouterOS would let me send custom ASCII responses to all such source IPs so I can at least send obsceneties back to ZuckCuck Incorporated. The /commit endpoint is expensive, so this hammered my Gitea instance so much it crashed. Solution: Drop all packets from the IP somewhere in Virginia. image
This week's blog series was on implementing a cache map. This is a data structure that implements the same interface as a map but it has some extra behavior that a normal map does not normally entail. The first is that if a value is not present then it doesn't result in the returning of a value like `null` or the throwing of an exception indicating the failure. Rather, a specific function (of the user's choosing) is called with the key and it will return this value. It does, however, store this value into the map's internal data structures such that successive accesses will return it without invoking this "getter" function. Now, the reason it is called a c a c h e map is because this value has a lifetime associated with it and, one it expires, will cause the entry's removal from the map. Meaning that a successive keying-into the map will invoke the "getter" function when called after the lifetime has elapsed. This lifetime is also a configurable parameter that the user can choose. This was quite a fun one to implement it as I actually needed it in some other project of mine hence it felt good to implement something with a good reason. โšก๏ธ Post: #dlang #algos
โ†‘