calcopiritus

joined 1 year ago
[–] calcopiritus 0 points 1 week ago

Just ask your ISP for more upload speed (and pay for it). It's a thing you can do.

[–] calcopiritus 1 points 1 week ago

Also, most importantly. Assembly.

[–] calcopiritus 1 points 1 week ago (2 children)
[–] calcopiritus 19 points 1 week ago (2 children)

Nonsense. Rust is clearly the superior blood type.

[–] calcopiritus 26 points 2 weeks ago (10 children)

Cat girls are not furries. And I'm willing to die on this hill.

[–] calcopiritus 3 points 2 weeks ago (1 children)

Why would they ever force this?

The purpose of MFA is to:

Mitigate using the same password on multiple sites and one of them has a data breach.

Mitigate the impact of keyloggers/other kinds of malware.

Mitigate the bad security of bad passwords.

Mitigate the password manager's own data breach.

If you have at least two braincells, you will chose a unique and secure password for your password manager. That's the point of password managers, that you only have to remember 1 password so it can be unique and strong. Also, a password manager (specially open source) should have almost perfect security, so them being hacked should not be a concern.

The only thing MFA is doing on password managers is to mitigate malware. Which I don't think is a good justification to force everyone the hassle of MFA.

Fine if the wanna give the option of MFA, but don't force it on everyone.

[–] calcopiritus 15 points 2 weeks ago (1 children)

For those interested in Spain politics.

Spain is divided in autonomous communities (AC), they are like states of USA.

There was an enormous flood in the AC of Valencia. Since the right wing rules over that AC, they handled it horribly. The left wing government and other ACs offered aid, however Valencia refused it, multiple times.

Of course, the right wingers are blaming it on the left wing government for not doing enough.

[–] calcopiritus 10 points 2 weeks ago

It used to be a serious offense to stage a coup.

[–] calcopiritus 2 points 3 weeks ago (1 children)

More like because the hardware cost is much higher.

Devs work on an open source project. They usually don't expect to get paid for their time, so the fact that "python allows for more features in the same time" doesn't play as much of a role (I don't even think this is a fact, more like a theory).

The hardware does have to get paid though. There's no one out there building servers and generating energy for them for free. So less the hardware costs, the better.

Instances AFAIK run on donations. If there are not enough donations to keep the servers up, there is no Lemmy.

Reddit could afford to be on python because they ran on VC money and made losses year after year. I don't think that a donation-based platform can afford that.

[–] calcopiritus 1 points 3 weeks ago

It cost them at least one lifelong customer.

[–] calcopiritus 5 points 3 weeks ago (1 children)

If you need to use bash a lot just to learn 2 "keywords", then it's not a good language.

I have looked at bash scripts in the past, and even written some (small amount). I had to look up -z and -n every time. I've written a lot more python than bash, that's for sure. But even if I don't write python for a year, when needed I can just write an entire python script without minimal doc lookups. I just need to search if the function I want is part of syd, os or path.

The first time I want to do an else if my IDE will mark it red and I'll write eliffrom then on, same thing if I try to use { }.

If a bash script requires at least one array and one if statement, I can write the entire thing in python faster than I can search how to do those 2 things in bash.

[–] calcopiritus 3 points 3 weeks ago

Well, to get a boolean out of a bit array you have to do some operations. So at first it doesn't make it more performant. Compilers probably don't automatically make them bitarrays because of that.

However, the memory savings means less cache used. And a cache miss is way more expensive than those bit operations. So they should be more performant. I'm sure someone out there has done the actual research and there's a good reason why compilers don't make all booleans bitarrays.

 

For those that don't know: Mount Balrior Raid Expert is an achievement of the new W8 raid. To get that achievement you have to obtain 100 points for each of the bosses of the wing. You obtain one point for each person in your squad for whom it was the first kill time ever that they kill that boss.

  1. It is a pyramid scheme. By design, only about 1/11 players can get it (at best).
  2. It encourages people that don't wanna train to do trainings. They are irritated more easily and are way less patient towards new players. Because they don't wanna train new people, they only want to get the achievement.
  3. It will only be harder as time goes on to get this achievement, further increasing the toxicity of it, as people rush to get it.
  4. It makes non-training runs worse. If there is an underperformer, you can't kick him because people will get angry that they wont get points for the achievement and they will leave. If you don't kick him, you'll both waste time on easily preventable wipes and people will also leave because of it.

Training runs should be done by people that actually want to train. If you want to encourage trainings, you should reward re-clearing wings, doesn't matter if it's a training run or not.

 

I want to do basically this:

struct MyStruct < T> {
    data: T
}

impl < T> for MyStruct < T> {
    fn foo() {
        println!("Generic")
    }
}

impl for MyStruct < u32> {
    fn foo() {
        println!("u32")
    }
}

I have tried doing

impl < T: !u32> for MyStruct < T> {
    ...
}

But it doesn't seem to work. I've also tried various things with traits but none of them seem to work. Is this even possible?

EDIT: Fixed formatting

view more: next ›