• 2 Posts
  • 222 Comments
Joined 1 year ago
cake
Cake day: June 11th, 2023

help-circle



  • Sometimes people will say “That person’s name!” or “Those group of people!” in anger. “That Donald Trump! How dare he claim immigrants are eating pets?” to give you a current example.

    When spoken of a family member or mutual acquaintance with a chuckle, it means more like “That person has some strange quirk but what can you do? We still love him.”

    For example, you might hear “That dog! Always chasing his own tail.” So I think this is likely what you were getting from that conversation? It’s certainly not a criticism of your use of the word “people”.




  • Yeah. My wife is always wanting to go on a cruise and I’m having none of it.

    One thing I will add regarding the nature of this curse is that it only manifests when I am the sole occupant of the bedroom. For example, I used to share a bedroom with my older sister, but within a week of her moving out and rejoicing at having the whole place to myself, the ceiling opened up.

    So I suppose I would be safe on the ship as long as my wife is there with me? In our current home, she was my sole protection, but has recently taken to sleeping on the basement cot due to hot flashes. This leaves me staring nervously at the ceiling. It’s now or never, curse!






  • There were breaking changes between C and C++ (and some divergent evolution since the initial split) as well as breaking changes between different releases of C++ itself. I am not saying these never happened, but the powers that be controlling the standard have worked hard to minimize these for better or worse.

    If I took one of my earliest ANSI C programs from the 80s and ran it through a C++23 compiler, I would probably need to remove a bunch of register statements and maybe check if an assumption of 16-bit int is going to land me in some trouble, but otherwise, I think it would build as long as it’s not linking in any 3rd party libraries.


  • I think the thing with C++ is they have tried to maintain backward compatibility from Day 1. You can take a C++ program from the 80s (or heck, even a straight up C program), and there’s a good chance it will compile as-is, which is rather astonishing considering modern C++ feels like a different language.

    But I think this is what leads to a lot of the complexity as it stands? By contrast, I started Python in the Python 2 era, and when they switched to 3, I was like “Wow, did they just break hello world?” It’s a different philosophy and has its trade-offs. By reinventing itself, it can get rid of the legacy cruft that never worked well or required hacky workarounds, but old code will not simply run under the new interpreter. You have to hope your migration tools are up to the task.



  • Oh, so you’re talking about text representation in an editor or something along those lines? That’s kind of a separate problem isn’t it?

    At the lowest level though, I suppose you still need to consider whether to use null-terminated segments. I think I’d still be going length + data, though I wouldn’t worry about packing down the length representation like with serialization formats. Your code will need to be highly cognizant of the length of strings and managing dynamic memory allocation all over the place, so it’s good to have those lengths quickly accessible at all times.


  • Better in what sense? I put some thought into this when designing an object serialization library modelled like a binary JSON.

    When it got to string-encoding, I had to decide whether to go null-terminated vs length + data? The former is very space-efficient, particularly when you have a huge number of short strings. And let’s face it, that’s a common enough scenario. But it’s nice to have the length beforehand when you are parsing the string out of a stream.

    What I did in the end was come up with a variable-length integer encoding that somewhat resembles what they do in UTF-8. It means for strings < 128 chrs, the length is a single byte. Longer than that and more bytes get used as necessary.



  • Honestly, I wouldn’t mind if they made a version that just stays in one age indefinitely and lets you explore it in an open world sort of way?

    Like take Minecraft. I played that for years without even knowing there is an end game, and it came as something of a shock when someone told me. You can finish Minecraft?!?

    But then I was like meh, leave me alone. I’m trying to build Noah’s Ark with a functioning village on top and a crystal waterfall down to the animal sanctuary below. And I still haven’t completed the Mars colony. Wonder how the pandas are doing over there?



  • I’m a musician. I can’t afford top tier sound!

    Tbh I can live with what I’ve got at home. A garden variety setup today still sounds better than something high-end did when I was growing up. Just give me some decent channel separation and I can zone out.

    Where there is still significant room for improvement is in stage sound. Why do monitors always have to sound like sh*t? It’s like bands spend all their budget on amps and PAs and whatever dregs are left over go to the monitors. And house sound. Don’t even get me started. Maybe their gear was good once (probably not) but it’s invariably seen one beer spill too many.


  • I haven’t done so personally. A lot of my old activity had to do with helping people with programming questions, so if it’s still useful to someone on occasion, I don’t feel inclined to remove it.

    I left reddit a little over a year ago now, and I don’t really care about what goes on over there. I made my statement of displeasure by simply ending all activity on the platform. I figure whatever legacy I left will eventually descend into irrelevance without my having to physically delete it all. At this point, that just sounds like work.