3
26
tortoise

@tortoisewrath.com

Software engineer and collector of expensive hobbies.

I was /u/TortoiseWrath but then reddit imploded.

tortoise 67 points 3 years ago

Or driving in general. As an American who didn't get a driver's license until I was 21 (gasp! so old) due to some reasons, I can attest that many, many people here simply can't comprehend the idea of someone over 17 or so not having one. I got turned away from a hotel once because they didn't know how to use a passport as an ID.

The only other people I've met with this problem were immigrants. And we were always able to bond over lamentations of how difficult it is to solve this problem... the entire system to get a license here is built around the assumption that everyone does it in high school, so every step of the way is some roadblock like "simply drive to your driving test appointment"...

path: 0 3057800 3058090, hotness: undefined, score: 67, children: 10
tortoise 36 points 3 years ago

./*

not sufficiently evil for my tastes

path: 0 294238, hotness: undefined, score: 36, children: 7
tortoise 25 points 3 years ago

Not relevant to lemmy (yet), but this does break down a bit at very large scales. (Source: am infra eng at YouTube.)

System architecture (particularly storage) is certainly by far the largest contributor to web performance, but the language of choice and its execution environment can matter. It's not so important when it's the difference between using 51% and 50% of some server's CPU or serving requests in 101 vs 100 ms, but when it's the difference between running 5100 and 5000 servers or blocking threads for 101 vs 100 CPU-hours per second, you'll feel it.

Languages also build up cultures and ecosystems surrounding them that can lend themselves to certain architectural decisions that might not be beneficial. I think one of the major reasons they migrated the YouTube backend from Python to C++ isn't really anything to do with the core languages themselves, but the fact that existing C++ libraries tend to be way more optimized than their Python equivalents, so we wouldn't have to invest as much in developing more efficient libraries.

path: 0 236386 263148, hotness: undefined, score: 25, children: 1
tortoise 8 points 3 years ago

prison

path: 0 3057881, hotness: undefined, score: 8, children: 1
tortoise 7 points 3 years ago

does not involve Elon Musk or Mark Zuckerberg

RemindMe! 3 weeks

(has anyone buillt a remindmebot for lemmy yet)

path: 0 293952 294010, hotness: undefined, score: 7, children: 3
tortoise 6 points 3 years ago

Guys I'm starting to think Arkansas State might not be able to pull this one off

path: 0 3058980, hotness: undefined, score: 6, children: 0
tortoise 5 points 3 years ago

hh3tf.golden.exe is 1536 bytes, compiled from C, and comes with a comma and exclamation point:

I'm actually surprised it's that large, but Windows gonna Windows.

path: 0 267967 292614, hotness: undefined, score: 5, children: 3
tortoise 4 points 3 years ago

in a town of this size they probably knew the guy and thought (correctly, as it turns out) he'd be back in jail by Friday and didn't want to do the paperwork again

path: 0 3059558 3061278, hotness: undefined, score: 4, children: 0
tortoise 4 points 3 years ago

WOOOO I had to mash "search" for a while but I think I'm here now

path: 0 201822 201920, hotness: undefined, score: 4, children: 0
tortoise 4 points 3 years ago

If you can read this, the Ansible playbook mostly Just Worked™ to install it on a clean Debian VPS. I actually did start over at one point because I wanted to change the domain name after learning there's not currently any way to use different domains for the UI and usernames like there is in Mastodon (relevant github issue); from that, I suspect it should be good about not clobbering anything except maybe SSL certs for existing nginx sites.

For some reason, my nginx also now seems to try to use the cert lemmy installed by default, even on a site I just set up to only listen on port 80 (http://gillen.dev). So that's kinda weird, but just installing a new cert for such a site with certbot fixes it (https://sdg.fyi).

It still seems to be struggling a little bit: votes and comments on this thread are taking a looong time to show up here (your comment just got here and it says it was from 24 minutes ago)... or maybe I'm just impatient :)

Of course, the real test will be when it comes time to update to the next Lemmy version...

path: 0 201766 201861 201991 202515, hotness: undefined, score: 4, children: 2
tortoise 4 points 3 years ago

Confirmed that I am able to comment on that thread if I manually set the comment language to English, but leaving it as the default "Select language" makes it spin forever.

path: 0 262837 263177, hotness: undefined, score: 4, children: 3
tortoise 4 points 3 years ago

Yes, but there's no point in comparing ourselves to those now that they're going away...

path: 0 263753 263763 263949, hotness: undefined, score: 4, children: 0
tortoise 4 points 3 years ago

I wonder if YouTube still uses Python to this day

We do not.

path: 0 236386 272472 292077, hotness: undefined, score: 4, children: 0
tortoise 4 points 3 years ago

Ehhhhhhh. Using a relational database for Lemmy was certainly a choice, but I don't think it's necessarily a bad one.

Within Lemmy, by far the most expensive part of the database is going to be comment trees, and within the industry the consensus on the best database structure to represent these is... well, there isn't one. The efficiency of this depends way more on how you implement it within a given database model than on the database model itself. Comment trees are actually a pretty difficult problem; you'll notice a lot of platforms have limits on comment depth, and there's a reason for that. Getting just one level of replies to work efficiently can be tricky, regardless of the choice of DBMS.

Looking at the schema Lemmy uses, I see a couple opportunities to optimize it down the road. One of the first things I noticed is that comment replies don't seem to be directly related back to the top-level post, meaning you're restricted to a breadth-first search of the comment tree at serving time. Most comments will be at pretty shallow depths, so it sometimes makes sense to flatten the first few levels of this structure so you can get most relevant comments in a single query and rebuild the tree post-fetching. But this makes nomination (i.e. getting the "top 100" or whatever comments to show on your page) a lot more difficult, so it makes sense that it's currently written the way it is.

If it's true (as another commenter said) that there's no response caching for comment queries, that's a much bigger opportunity for optimization than anything else in the database.

path: 0 236386 237977 293940, hotness: undefined, score: 4, children: 0
tortoise 3 points 3 years ago

My posts are going to be used for LLM training regardless.

path: 0 204101, hotness: undefined, score: 3, children: 0
tortoise 3 points 3 years ago

This is the main reason I'm here - I realized that with an account on lemmy.world or something some admin somewhere could just unilaterally decide to defederate some major server and I wouldn't be able to get to half the communities I like anymore. And lo and behold, beehaw.org defederated lemmy.world while I was setting this up.

I always thought this mechanic would drive a lot of people away from the fediverse, but mastodon still seems to be pretty active after the mass migrations from Tumblr and Twitter so what do I know?

path: 0 201695 202272 202411, hotness: undefined, score: 3, children: 1
tortoise 3 points 3 years ago

My other reason is that it's the only way to know I picked an instance that isn't going to just go away without me and take my account with it. It will be an interesting day when the first major lemmy instance goes down...

path: 0 275074 275429 276983 277074 291847, hotness: undefined, score: 3, children: 0
tortoise 3 points 3 years ago

American here. The nearest swimming pool to my hometown was in Canada. So no.

Edit: I don't think this is normal

path: 0 3057605 3057690 3057732 3057915, hotness: undefined, score: 3, children: 4
tortoise 3 points 3 years ago

Oh yeah, I make no claim that any of my experiences are anywhere near universal. Basically no part of the American experience is.

path: 0 3057605 3057690 3057732 3057915 3058198 3058217, hotness: undefined, score: 3, children: 0
tortoise 2 points 3 years ago

Getting 0 yards, a false start, and a starter ejected for targeting is definitely one of the opening drives of all time.

path: 0 3064608, hotness: undefined, score: 2, children: 1

thanks for using Leebra!

go to feed...