• 0 Posts
  • 138 Comments
Joined 1 year ago
cake
Cake day: June 21st, 2023

help-circle

  • There was a period some years ago where Firefox and Chrome were leapfrogging each other: Firefox would get slow and crap so I’d switch, then Chrome would get slow and crap and I’d switch back to FF, and so on. I’ve been on Chrome for quite a while it seems, until this development with uBO, well for me the internet is unusable without a shitblocker, so that’s the end of Chrome. Thankfully FF is up to the job.










  • 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.