calcopiritus

joined 1 year ago
[–] calcopiritus@lemmy.world 2 points 20 hours ago

The const hash map is huge. It was always a pain the have const/static hash maps. Specially since most use cases don't need a DoS-resistant hash map. Will be migrating to 2024 as soon as possible.

[–] calcopiritus@lemmy.world 6 points 1 day ago

I didn't say that it's not used. I say that you shouldn't if you have the option.

If the entire X world uses Y technology. You have no choice other than using Y technology.

[–] calcopiritus@lemmy.world 8 points 1 day ago (4 children)

I don't think anyone actually chooses XML. There's no reason to use it over JSON unless you need to.

[–] calcopiritus@lemmy.world 6 points 3 days ago

Considering that using a keyword to name anything results in compiler (or worse! Interpreter) errors, and that libraries are a thing. And also that copy-pasting code from the internet is a thing. I don't think it would be a good idea to localize programming languages.

[–] calcopiritus@lemmy.world 1 points 6 days ago

In Spain, I have started buying mercadona's store-brand cola. It tasted basically the same as coca-cola at less than half the price and a fraction of the fascism.

[–] calcopiritus@lemmy.world 5 points 1 week ago (7 children)

I don't understand the complaint of "subpar IDE support".

It has the best IDE support of any language I've tried. It's IDE support is also just a language server, which you can just download in your editor of choice and it just works. Are the people that complain about it not using rust-analyzer?

[–] calcopiritus@lemmy.world 6 points 1 week ago

Your fellow man is probably a nazi if he bought a cyber truck.

[–] calcopiritus@lemmy.world 4 points 1 week ago (1 children)

Until I read this comment I was 100% certain the post was about short Germans somehow preferring having their balconies occluded by taller-than-them solar panels.

[–] calcopiritus@lemmy.world 0 points 2 weeks ago

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

[–] calcopiritus@lemmy.world 1 points 3 weeks ago

Also, most importantly. Assembly.

[–] calcopiritus@lemmy.world 1 points 3 weeks ago (2 children)
[–] calcopiritus@lemmy.world 19 points 3 weeks ago (2 children)

Nonsense. Rust is clearly the superior blood type.

 

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 ›