• 0 Posts
  • 24 Comments
Joined 1 year ago
cake
Cake day: August 7th, 2023

help-circle
  • #include <stdio.h>
    
    int main() {
    
    Long long x = 0x7165498511230;
    
    while (x) putchar(32 + ((0xC894A7875116601 >> ((x >>= 4) & 15) * 7) & 0x7F));
    
    return 0;
    }
    

    Might be wrong on a few things here as I haven’t done C++ in a while, but my understanding is this. I’m sure you can guess that this is just a very cheekily written while loop to print the characters of “Hello, World!” but how does it work? So first off, all ASCII characters have an integer value. That 32 there is the value for the space character. So depending on what ((0xC894A7875116601 >> ((x >>= 4) & 15) * 7) & 0x7F)) evaluates down into you’ll get different characters. The value for “H” for example is 72 so that first iteration we know that term somehow evaluated to the number 40 as 72 - 32 = 40.

    So how do we get there? That big number, 0xC894A7875116601 is getting shifted right some number of bits. Let’s start evaluating the parenthesis. (X >>= 4) means set x to be itself after bit shifting it right by 4 bits then whatever that number is we bitwise AND it with 15 or 1111 in binary. This essentially just means each iteration we discard the rightmost digit of 0x7165498511230, then pull out the new right most digit. So the first iteration the ((x >>= 4) & 15) term will evaluate to 3, then 2, then 1, then 1, etc until we run out of digits and the loop ends since effectively we’re just looking for x to be 0.

    Next we take that number and multiply it by 7. Simple enough, now for that first iteration we have 21. So we shift that 0xC894A7875116601 right 21 bits, then bitwise AND that against 0x7F or 0111 1111 in binary. Just like the last time this means we’re just pulling out the last 7 bits of whatever that ends up being. Meaning our final value for that expression is gonna be some number between 0 and 127 that is finally added to 32 to tell us our character to print.

    There are only 10 unique characters in “Hello, World!” So they just assigned each one a digit 0-9, making 0x7165498511230 essentially “0xdlroW ,olleH!” The first assignment happens before the first read, and the loop has a final iteration with x = 0 before it terminates. Which is how the “!” gets from one end to the other. So they took the decimal values for all those ASCII characters, subtracted 32 then smushed them all together in 7 bit chunks to make 0xC894A7875116601 the space is kinda hidden in the encoding since it was assigned 9 putting it right at the end which with the expression being 32 + stuff makes it 0 and there’s an infinitely assumed parade of 0s to the left of the C.







  • Now there’s a rule the certainly totally didn’t come from a ton of people playing “Chaotic Neutral means I get to be a ‘lol so random xD’ murder hobo” type characters at all.

    Now I’m not really a fan of forcing people to play Good alignment characters, but my god if there was ever someone that wouldn’t be allowed to play anything but Lawful/Neutral Good at my table it would be Mr. “I can just be a Good Slave Owner” over there.




  • EmptySlime@lemmy.blahaj.zonetoMEOW_IRL@sopuli.xyzmeow🍗irl
    link
    fedilink
    English
    arrow-up
    25
    ·
    6 months ago

    Depends on the cat. Sometimes it genuinely is gifting but sometimes they bring you stuff like this because they think you’re a dumb hairless cat that doesn’t know how to hunt properly.

    We had mice in my old apartment after bringing me like 4 dead ones my oldest cat that I got as a kitten from my cousins barn cats pointed me to a live one it had cornered. Lil fucker sits up next to it, looks down at it and meows repeatedly. Doesn’t stop until I kill the mouse myself. After that he never brought me another mouse.


  • EmptySlime@lemmy.blahaj.zonetoMemes@lemmy.ml#memes
    link
    fedilink
    English
    arrow-up
    46
    arrow-down
    1
    ·
    8 months ago

    Nah, for the Kpop group it’s a shortening of the group’s full Korean name Bangtan Sonyeondan which in English translates to “Bulletproof Boy Scouts”. Though in recent years they apparently also added “Beyond the Scene” to try to show how they’ve grown since they first began.




  • One time I was dealing with a really bad migraine while I was running register at Walmart. I was barely functioning and could barely stand up straight. This lady comes through my line starting out all compassionate until she suggests that she lead me in a prayer that Jesus might heal me. I try to politely decline because I’d rather not hold up the line forming behind her. Well, also because I’m atheist but I had been in customer service for years at that point and knew better than to bring that tidbit up.

    This lady starts into the most hate fueled tirade I’ve ever heard. Talking about how I’m a heathen, my migraine was a punishment directly from God, I deserve every second of my suffering, and calling me everything but a child of God. All because I tried to politely decline a performative prayer from her because there were now 3 people in line behind her. Like 20 minutes later I got taken out in an ambulance because I fainted from the pain trying to stand up after using the bathroom on my break.

    Another guy tried to get me to discount his entire order because he supposedly knew the guy that owned the contacting company that built the store. Try to tell him that I don’t have the ability to do that and he’d have to talk to a manager. He gets right up in my face and starts yelling about how no one else ever had a problem with it and how with one phone call he could make it so I would never be able to work at Walmart again. Along with several threats to my person. If I never set foot behind a cash register again it’ll be too soon.


  • It’s not a thing in the sense of it being some innate part of the universe. But it’s very real in the sense of societal expectations. It’s all our natural differences, but Neurotypical is just the acceptable amount of difference that society is built around and caters to. If you fall outside of that you’re neurodivergent. Of course people aren’t sorted into playing life on easy mode; their level of difference simply naturally falls in that acceptable range. They don’t have to think about it like someone else might because it just comes naturally to them. It’s considered a disability because everyone is expected to operate inside of that acceptable range and if you can’t then you’re broken according to society.





  • Agreed fellow allosexual, Sex IS indeed OP.

    … What’s that? They said OPSEC? The fuck is an OPSEC? Some new part of the queer alphabet soup that I haven’t heard of?

    Sorry, that little skit played out in my head after reading your reply. It’s a weird thing when your intrusive thoughts turn to shitposting. I feel like that person on a leash meme where the thing I’m trying to control is a coked up shitpost tulpa.