flabberghaster

flabberghaster wrote

The one thing i find hard about rust is that most of the programs I write for my day to day use are things that basically just call linux system calls, or use popular C libraries, things that C++ is extremely good at. Or they're things that are trivial to do in python.

So as much as I like Rust, I don't actually know how to perform a sha256sum on a file and then set an xattr for it (without shelling out or downloading a random crate).

It's little things like that that keep it from being my go-to, but it's really good and I want to use it more.

6

flabberghaster OP wrote

"Self-declared leftists are supporting maduro, Putin, and Assad. Whoever they think they're on the side of, it's not workers." Who even thinks this one? Yet I could dig up a blue sky post from a fairly mainstream person saying it. This one in particular bugged me with the equating of the three of them. But what leftist is supporting Putin?

Plenty of people like, don't want a war with Russia and think arming Ukraine is dangerous, and you can critique that if you want, but there's no "leftists" supporting Putin.

4

flabberghaster wrote

IDK I think there is a use for keeping the same stream open if you're a big website serving a lot of clients tbh. Each TCP handshake takes three packets minimum (unless you use TCP fastopen which is its whole own thing), and then if you want SSL on top of that there's even more latency, especially for slow connections, plus the computation, which is small per request but if you're a big site serving a lot of people it adds up. Even if you're not jamming your page full of ten trillion google ads it can add up.

Using the same connection again if you expect the client to make another one pretty soon makes a lot of sense.

I don't do web dev tho so what do I know.

7