• 1 Post
  • 130 Comments
Joined 1 year ago
cake
Cake day: June 21st, 2023

help-circle




  • Lower performance though. At each iteration through the string you need to compare the length with a counter, which if you want strings longer than 255 characters will have to be multibyte. With NTS you don’t need the counter or the multibyte comparison, strings can be indefinitely long, and you only need to check if the byte you just looked at is zero, which most CPUs do for free so you just use a branch-if-[not-]zero instruction.

    The terminating null also gives you a fairly obvious visual clue where the end of the string is when you’re debugging with a memory dump. Can you tell where the end of this string is: “ABCDEFGH”? What about now: “ABCD\0EFGH”?



  • I had a Sony phone once. It was shite. Couldn’t remember the date and time on a reboot.

    It was crap in other ways too but that was the one that annoyed me the most. Obviously the majority of the price went on the name and not the phone. Shame really, Sony used to be a name that meant quality, now they’re just another bunch of MBA-led enshittifiers.







  • Sorry I’m not well enough versed in American politics to know who’s blue or red.

    Whether you should vote or not doesn’t depend on the people around you. It is your right to have your say. The result is the cumulative effect of everyone in your area doing the same. Whether you think you’re surrounded by millions of blues or millions of reds doesn’t make any difference. Your perception may be incorrect, and your analysis, that there is literally zero chance that your vote will matter, is incorrect.

    Nobody knows the results of an election until the votes are in and have been counted. It doesn’t matter that your area has always been red, blue, green, turquoise, pink or whatever. Areas can change allegiance, and it is by individuals getting out and voting.

    If you don’t vote, you strengthen the position of those who vote the other way. It is not considered a protest vote because the system would prefer to consider this as voter apathy. If you want to register a protest vote and “none of the above” isn’t an option, find the official way to spoil your ballot paper and do that, but whatever you do, get out and vote.








  • letsgo@lemm.eetoScience Memes@mander.xyzPenguins ❤️
    link
    fedilink
    English
    arrow-up
    18
    arrow-down
    4
    ·
    3 months ago

    Has homosexuality been redefined?

    I thought huddling together for warmth in cold weather was a survival technique: a method for staying alive, rather than counting as a sex act.

    And two males bringing up an orphaned child seems like a jolly nice thing to do for the child and the community. If an orphanage is staffed by one sex, does that make the whole place a massive L/G orgy even if nobody is having sex with anyone else?