• 0 Posts
  • 32 Comments
Joined 11 months 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.




  • For me it’s even weirder than that. Those pictures exist in my mind and I can “feel” them there but the conscious part of me that’s supposed to see them can’t see shit. I can describe to you the things that are in them or even draw them out as they exist in my mind, but I can’t see them. The part of me that’s giving directions? It can “see” the map of the building and my position in it just fine like it’s staring straight at a live minimap, but the conscious part of me that should be able to visualize that stuff? Nothing. I close my eyes and try to visualize that dog and I see nothing but black. But I can feel the presence of the image that the part of me that does the mental conjuring of images is making.

    It’s like turning the monitor off on a computer. Everything is still running even though you can’t see it.



  • It’s hard to describe for me. Cuz I don’t actually “see” anything I try to imagine. If I close my eyes and try to visualize say an image of a desk at a window all I see is darkness. The image exists, I can I guess I’d say “feel” it there and i could even draw it. But I can’t “see” it. Like the part of me that’s making the picture is drawing it on a live stream but the part of me that should be seeing the stream has the monitor off.

    Same with the whole internal monologue thing. I don’t “hear” the words in my head or “see” them written out in my imagination but I kinda just “feel” them there. It poses a problem when my mind really gets going because there will be often like half a dozen different distinct thoughts I can feel in there. So I end up having to talk to myself out loud in order to keep from losing whatever thread I’m trying to follow.







  • My landlord is actually a community nonprofit group that owns several units in our neighborhood. They do rent for the most part based on income. I forget the exact breakdowns but iirc it’s capped on the upper end at an actually reasonable percentage of your income so you’re not paying most of your paycheck to rent. Then my wife and I are on the low end because we’re on a fixed income. Before we got approved for section 8 we paid their lowest flat rate which is basically just enough to cover property taxes and maintenance which iirc percentage wise was a higher percentage of our income than their normal rate is but it still wasn’t crazy for us.

    Then they use the excess to do things like update the units to make them more energy efficient, community organizing, etc. They’ve also bought out a couple of abandoned houses in the area and redeveloped them so people can actually live in them.

    I personally don’t have a problem with landlords per se. Not everybody wants to own a home and deal with all of the maintenance and things that go along with it. I don’t even necessarily have a problem with them getting paid to deal those things. What I personally have a problem with is housing being used as passive incomea free money cheat.



  • EmptySlime@lemmy.blahaj.zonetoAutism@lemmy.worldRespect
    link
    fedilink
    English
    arrow-up
    16
    ·
    3 months ago

    My son can be a hell of a smart ass at times as all 12 year old kids can be. He’s autistic, was diagnosed with Oppositional Defiant Disorder, the whole 9. But it’s the damnedest thing, when I talk to him like he’s a person with his own agency, treat him with dignity and respect, and explain to him why I want something from him he happily hops right up and does exactly what I ask. It’s the craziest thing.


  • EmptySlime@lemmy.blahaj.zonetoAutism@lemmy.worldRespect
    link
    fedilink
    English
    arrow-up
    18
    arrow-down
    1
    ·
    3 months ago

    Yep, like anything with the goal of changing behaviors it all comes down to what behaviors you’re targeting, why you’re targeting them, and how you’re planning to discourage the targeted behavior and enforce the desired replacement.

    It’s great if you’re trying to change behaviors that cause the autistic person distress and interfere with them living a fulfilling and happy life, but horrible if you’re aim is to just enforce blind conformity for the sake of it.

    My wife is autistic as are at least 2 of our 3 kids, with the third awaiting his own evaluation. She studied ABA in college because when you tell a woman with autism and severe OCD that actually a lot of human behavior is ordered and explainable if you understand the underlying reasons the behaviors exist she tends to jump on it to explain all of the “stupid social bullshit” she’s had to deal with all her life.


  • Pretty much yeah. That’s the problem and how it can become a very bad thing. Same as really any method that seeks to shape behaviors. Are you targeting this behavior because it actually causes distress and interferes with the autistic person’s enjoyment of life? Or are you just trying to breed conformity for the sake of conformity?


  • EmptySlime@lemmy.blahaj.zonetoAnarchism@lemmy.dbzer0.comRespect
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    3 months ago

    Some people think it’s some kind of autism cure. It’s just understanding the reasons behind behaviors in order to increase behaviors that are desirable and decrease behaviors that are undesirable. Problems could arise from what ends up being defined as undesirable behavior and how that reinforcement is done but that’s true of basically anything with the goal of changing behaviors.

    My wife is autistic and studied it herself because it helped her understand all the “social bullshit” as she called it.