• 1 Post
  • 62 Comments
Joined 1 year ago
cake
Cake day: June 11th, 2023

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



  • You raise a good point that it would be nice to have more control over which group of communities you are drawing from at a given time. (Is there a way to group subscriptions and switch between them?) It’s a bit disconcerting to see 5 tech headlines and then suddenly something about the war in Ukraine or whatever. It jars my train of thought. With an RSS client, you can group feeds however you want.

    That said, my experience with RSS readers is not quite so idyllic. In the end, rather than having nicely partitioned feed groups by topic, I wind up having to separate the ones that produce content frequently but with a poor signal-to-noise from those that post once in awhile but are generally worth your time. With something like lemmy, people are helping you do the work of finding the more interesting content from that site that posts every 10 minutes.


  • Anyways, did I miss anything?

    I think the big problem in link aggregation is how to sort/prioritize content for the end user. RSS does not provide a way to do this, nor should it as far as I’m concerned. It should simply be about public content being tagged in a standardized way for any app to come along and organize it using whatever algorithm.

    A simple RSS reader has the problem that the more prolific sites will tend to flood your feed and make it tedious to scroll through miles of links. Commercial news portals try to learn your tastes through some sort of machine learning algorithm and direct content accordingly. This sounds like a good idea in theory, but tends to build echo chambers around people that reinforce their biases, and that hasn’t done a lot of good for the world to put it mildly.

    The lemmy approach is to use one of a number of sorting algorithms built atop a crowd-sourced voting model. It may not be perfect, but I prefer it to being psychoanalyzed by an AI.

    Btw there was a post from about a month ago where someone was offering to make any RSS feed into a community. I’ve subscribed to a few of them and it’s actually pretty awesome.


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


  • Well, I managed to join a hispanic choir at a Portuguese church and I must say we’re having a blast, language barriers notwithstanding. I am of neither ethnicity but I just play violin so it doesn’t matter. And man, latino hymns rock!

    Of course I don’t understand a thing the priest is saying. This week I thought hang on, I’ll just run Google Translate as he’s speaking. But I think there’s a problem. It could be he’s speaking Spanish with a thick Portuguese accent and it wasn’t coming out right? Unless he was actually saying:

    …And sushi are big carts of yesterday and today as farms catalyzed for purposes. He is not saying about Jesus…


  • To me, it seems the right have been getting ever more extreme in the ugliest ways imaginable. The left, then, has to decide whether to become more inclusive of those who lean somewhat right but are feeling alienated at this point. Do they take in the refugees, or do they stick to their principles and leave a void in the middle? In short, it’s an identity crisis and people are taking sides.

    As a Canadian, I look at US politics and see only a centrist and right party. In some ways, the Democratic Party is further right than our Conservative Party, though the latter would certainly want to change that if we let them. There are some Democrats who are uncompromisingly left like say Bernie Sanders, but they are in the minority.


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


  • The nice thing about a foot is that it divides into 12 inches, which gives you many options for measuring portions of a foot compared to metric units. But the problem is not with the metric system. It is with our base 10 numerals.

    It’s actually not that hard to count to 12 on your fingers. You can even do it on one hand by pointing your thumb at the sections (phalanges) of your fingers. If you bring your other hand into it, you can even reach 144!

    Regarding the τ = 2π thing, I brought this up with my mathematician/classical Greek enthusiast brother. He said “Tau? Why tau? I would’ve gone with Ϡ (sampi). It’s not used for much anymore. Would be great to bring it back…”









  • I’ve caught my wife doing this on numerous occasions. The typical scenario is we’ll meet after work someplace for dinner. I’m on my bike and she’s driving. So we head home separately and she arrives first. But as I’m putting the bike away, I see a light turning on behind me and it’s her climbing out of the car.

    I’ve seen this also at fast food parking lots and it puzzles me even more. There’s a guy just sitting there not eating or doing anything. Did he eat already? Was he not hungry and but his partner was so he’s just waiting for them?

    Last time I saw one of these guys as I was entering the restaurant. I ate my lunch and sat around for maybe 20 min because I prefer not to cycle again immediately after eating. Then I come out and the dude is still there, staring off into space.


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