• 0 Posts
  • 138 Comments
Joined 1 year ago
cake
Cake day: July 3rd, 2023

help-circle











  • The best book I’ve ever bought on programming, and the second best book I bought for a class in uni, was https://dl.acm.org/doi/book/10.5555/1824214 it may be worth checking out on libgen and buy if it suits your needs.

    Whenever I do low-level programming on the AVR architecture, I’ll make a memory map. As in I’ll map out where I’ll put what. It may not be suitable for more complex programs, but it does the job for me. And it has enabled teamwork in assembly in the past.

    If you want to work in a language that doesn’t offer memory management, but manually mapping memory isn’t feasible either, how about building your own memory management? Or perhaps use an RTOS? I’ve used freeRTOS before on various arm-based micros, and it does take a bit to get started, but after that it’s easy sailing.

    Sorry for the following tangent, all semi intelligent content in this comment is found above this line.
    BTW I tried CoOS once, I wouldn’t recommend it… OK it was 12 years ago, I can’t remember exactly what was wrong other than the documentation was crap, but I don’t need to remember why to hold a grudge.


  • BigDanishGuy@sh.itjust.workstoRetroGaming@lemmy.worldHow hard could it be?
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    3
    ·
    edit-2
    28 days ago

    #include <iostream> // because writing to the console is not included by default.
    int main()
    {
    std::cout << "C++ is simple and fun ... you cretin\n";
    return 0;
    }

    I had a machine language course in uni, parallel with a C++ course. Not a fun semester to be my wife, or a relative of any of my classmates. Best case our brains were in C++ mode, worst case you needed an assembler to understand us.

    And yes I know my code format will piss people off, I don’t care, it’s the way I write when other less informed people don’t force me to conform to their BS “Teh oPeNiNg bracket shouwd bwee on teh sam line ass teh declawation

    Edit: added a \n for the sake of pedantry :)


  • A twelve year old who stabs another twelve year old 19 times is outside of normal.

    I agree, it is not normal.

    I’d be fine with executing anyone who does that,|…]

    You must American, most of the civilized world would show compassion and try to help the preteen.

    […] at any age,[…]

    You would be fine with executing a 5yo who had a temper tantrum and stabbed their friend? You’d probably have to do it yourself, would you still be fine with it then? How would you like to do it? With a gun, or would you poison the 5yo?

    […] unless it’s in self defense.

    OK, you’re definitely American, nobody but Americans have this distorted an idea of self-defense. Stabbing someone 19 times is never self-defense.

    If you don’t mind me asking, do you consider yourself a religious person? If yes, what faith?


  • Even though three others have chimed in, as OP I’m gonna give it a go as well.

    First off, I’m definitely not an expert. My job was mainly to stay with people who had been constrained to their bed, using leather straps. Other times to make sure the patient had as much freedom as possible, without doing certain things. So pretty low level stuff, like talking, minding my own business, and occasionally dodging fecal matter (not figuratively!)

    I met adults who had been psychotic since their early teens. And I met people who were admitted on account of a bad reaction to drugs, mainly marijuana, resulting in them being aggressive and delusional. Then the next week they would be calm and rational, behaving like you and me.

    I can’t tell you what can be treated, and what can’t. But I can tell you that I’ve met people who did stop being psychotic for the rest of their life. And I can tell you that far far most patients were able to, periodically, live somewhat ordinary lives after getting help.