apparently this trick has fallen out of rust programmer folklore so PSA rust allows you to delay initialization of variables, and even Conditionally Initialize them
(it statically prevents you from messing up and will dynamically track whether they were initialized for cleanup)
this allows you to write things like this:
https://github.com/Gankra/socc-pair/blob/main/src/main.rs#L403-L411
How the first gen ipod that was reverse engineered to run #Rockbox:
1. Someone figured out that when loading a particular HTML page (for viewing on the device), the device would reboot. It crashed. A buffer overflow in the HTML viewer!
2. The device remembered what it did before the crash, so it would reload the HTML page again after boot. Unless you connected to it over USB and removed the HTML file it would stick in this cycle.
(continues...)
whenever i need inspiration in life, I go and re-read the life story of the Saint Equal-to-apostles Olga of Kyiv.
I invite you to read it, too! Wikipedia has a good summary: https://en.wikipedia.org/wiki/Olga_of_Kiev#Drevlian_Uprising
re: swepol, shitpost
Now that I think about it, it was probably prompted by something that the Moderate Party said or did
re: swepol, shitpost
Found this in my drafts and thought: YOLO, send it!
I have no idea what exactly prompted me to write it in the first place.
swepol, shitpost
Swedish people's empathy is being decommissioned, deemed "too costly"
LB: damn, that's bleak
Anyway, install Firefox
https://retr0.id/objects/d06dccd1-357a-47ab-a486-3c0ce8efa8ab
2862. Typical Seating Chart
title text: Now that airlines have started adding wheel locks to their drink carts, less than half of flights have one accidentally fall out through the hole.
(https://xkcd.com/2862)
(https://www.explainxkcd.com/wiki/index.php/2862)
you are developing a novel, highly efficient algorithm for shuffling music. do you:
a) file a patent
b) write a paper
c) write a post on instructables dot com
real heads of course choose c: https://www.instructables.com/Miller-Shuffle-Algorithm/
https://github.com/rust-lang/rust/pull/117472
Soon you will be able to write c"Hello" in rust and get a valid UTF-8 encoded *NUL-terminated* string. This is amazing for people who work with C APIs.
incredibly beautiful video https://youtube.com/watch?v=dgvzDzXtVYE
eepy... so sleepy... just like these rats
i hope they'll make someone's day! 🐀💤
eonmakes.etsy.com/listing/1629096125
#rat #rats #ratArt #stickers #stickerShop #smallBusiness #cute #cuteArt #ratsOfMastodon #ratsOfTheFedi #ratsOfTheFediverse #rodents #wholesome #sleepy #mastoArt #fediArt
Trans woman, bisexual, someone's fiancée, forever a programmer, poly, and former total mess