tunetardis

joined 1 year ago
[–] tunetardis@lemmy.ca 7 points 1 week ago (1 children)

The thing about human-induced warming is that it has a rather pronounced effect at night when the planet is trying to shed the heat built up over the day and no longer can as effectively.

I am not a botanist, but I wonder if desert plants are adapted to take advantage of the cool desert nights to recover from the intense daytime heat? If so, I could see where they would be in trouble now.

[–] tunetardis@lemmy.ca 10 points 1 week ago (2 children)

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.

[–] tunetardis@lemmy.ca 1 points 1 week ago

I suppose the same could be said on the lemmy side. There's no reason someone couldn't write a lemmy app that lets you do what an RSS client does in terms of only showing content from a selected subgroup of communities.

[–] tunetardis@lemmy.ca 3 points 1 week ago (2 children)

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.

[–] tunetardis@lemmy.ca 6 points 1 week ago* (last edited 1 week ago) (4 children)

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.

[–] tunetardis@lemmy.ca 1 points 1 week ago

This reminds me of when I had to roll my own dynamic memory allocator for an obscure platform. (Something I never want to do again!) I stuck metadata in the negative space just before the returned pointer like you say. In my case, it was complicated by the fact that you had to worry about the memory alignment of the returned pointer to make sure it works with SIMD and all that. Ugh. But I guess with strings (or at least 8-bit-encoded strings), alignment should not be an issue.

[–] tunetardis@lemmy.ca 1 points 1 week ago

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.

[–] tunetardis@lemmy.ca 2 points 1 week ago (3 children)

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.

[–] tunetardis@lemmy.ca 9 points 2 weeks ago

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…

[–] tunetardis@lemmy.ca 4 points 2 weeks ago (1 children)

I didn't even have a color monitor :'( I would've been jealous of yours.

I almost quit programming too when my brother walked in one day as I was feverishly typing. "What? You're programming basic? That's for losers." Then he whips up a ski slalom game in a single incomprehensible line of apl and I was like wtaf?

Today I'm a professional dev and my bro is a perl hacker. I still can't understand a line of his code.

[–] tunetardis@lemmy.ca 10 points 2 weeks ago (2 children)

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.

 

Came across a facebook page showing the new electric ferry in service, but can't find any other news confirming this. Is this for real?

 

Saw this bird on the way to work today. It was perched on a log sticking out of the pond at Lions Civic Gardens. That's that little park south of the mall where the library is. The Merlin app ID'd it as a double-breasted cormorant. Possibly a juvenile given its coloration, though it was a good size!

1
submitted 1 year ago* (last edited 1 year ago) by tunetardis@lemmy.ca to c/kingston_ontario@lemmy.ca
 

Saw this guy on my way to work this morning.

 

I'm looking for an escooter small and light enough for my daughter to take onto a bus and then ride a km or two through a college campus?

But I'm having trouble finding a suitable model. Whenever I go to a dealer, they always want to sell me something rather huge and heavy. She's not that big. Maybe 5'3 with a slender build? When I suggest perhaps their child model would be more suitable, they say they wouldn't be up to the task for one reason or another.

Any suggestions on what to look for?

 

It’s Ghostbusters: Afterlife in case it’s not obvious. There is supposed to be some sort of pre-show put on by the Haunted Walk people.

 

Which of these have you seen?

I watched and rather enjoyed Reacher without ever realizing the Kingston connection. In Crimson Peak, we stood in for a Victorian era Buffalo NY if I'm not mistaken. I watched Alias Grace and a lot of it was shot around the Penn. I remember Blues Brothers 2000 had an opening scene in front of Millhaven. And I think I've seen a few Murdoch Mysteries shot here?

 

We actually made that drive once and it took > 4 hrs iirc. But we did in December when every little town had its Christmas lights up and it was much more enjoyable than the 401.

 

Heard a loud pecking on my office window and turned around to see this little guy!

 

Be careful if you’re travelling today. (Alas, my band is playing at a campground near Westport next. And yes, it has a trailer park. RIP me.)

 

Mother Nature be like: Why is that electric ferry still not running? Need a boost?

 

The sun still hasn’t set. Happy solstice everyone!

 

Apparently, it's a site that lets people on particular subreddits find alternatives.

view more: ‹ prev next ›