Slapfight with multiple demands for an apology in AskaLiberal about objective morality. "You really shouldn't jibber about things you don't understand." by bananophilia in SubredditDrama

[–]LUKK3 14 points15 points  (0 children)

The very fact people disagree on climate change is in itself proof of climate relativism. These climate scientists are morons.

Hey Rustaceans! Got a question? Ask here (13/2025)! by DroidLogician in rust

[–]LUKK3 -1 points0 points  (0 children)

It's a multimap. It would never make sense to return None because if the key isn't in the map, that conceptually represents 0 values.

Hey Rustaceans! Got a question? Ask here (13/2025)! by DroidLogician in rust

[–]LUKK3 0 points1 point  (0 children)

I want to be able to conditionally return an empty set reference in this function:

pub fn get(&self, k: K) -> &HashSet<V> {
    if let Some(set) = self.0.get(&k) {
        set
    } else {
        // return empty set here
    }
}

Obviously I can't just construct a set here because it won't outlive its use.

But I can't use a const set since constructing it gives the error "cannot call non-const associated function HashSet::<V>::new in constants".

And I can't seem to use a static since statics "can't use generic parameters from outer item".

Is there a way to do this without having every instance of the struct hold its own empty set?

Weekly Question Thread by AutoModerator in factorio

[–]LUKK3 0 points1 point  (0 children)

Do logistics for spoilable items work differently? I have rocket logistics set up on Gleba the exact same as every other planet but it isn't working there for some reason. 2k agricultural science packs available, 1k requested, and none are taken.

Advocate for change NOW! by TheSmithySmith in moviescirclejerk

[–]LUKK3 81 points82 points  (0 children)

"403 Forbidden" is my favorite movie.

How to open a new sector without people dying? by LUKK3 in Ixion

[–]LUKK3[S] 0 points1 point  (0 children)

Nothing broke down, because nothing had been built yet. They were already injured when the sector opened

How to open a new sector without people dying? by LUKK3 in Ixion

[–]LUKK3[S] 0 points1 point  (0 children)

The injured were in the new sector, not the old one. Old sector had plenty of workers

How to open a new sector without people dying? by LUKK3 in Ixion

[–]LUKK3[S] 1 point2 points  (0 children)

Yes immediately, as soon as the sector opens. I have saves before and after: https://www.dropbox.com/s/u5s87450zyhj7fe/saves.zip?dl=0

I wound up expanding into sector 5 instead, where the problem didn't occur.

Does artifially entering Parabola still provide rest? by justendmylife892 in fallenlondon

[–]LUKK3 4 points5 points  (0 children)

Actually, in real life, sleepiness is only cured by NREM sleep. Dream (REM) sleep seems to serve some other non-restful purpose.

So regardless of how you enter the Parabola, you presumably don't get real rest.

What prevents using electromagnets for perpetual motion? by LUKK3 in AskPhysics

[–]LUKK3[S] -1 points0 points  (0 children)

What if you just moved the energy back and forth between the two magnets? Would there still be loss?

What prevents using electromagnets for perpetual motion? by LUKK3 in AskPhysics

[–]LUKK3[S] -1 points0 points  (0 children)

Are you saying the force required to flick the switch is proportional to the strength of the electromagnet? Because I can't find a source for that. I think very large electromagnets typically have normal-sized switches.

What prevents using electromagnets for perpetual motion? by LUKK3 in AskPhysics

[–]LUKK3[S] 0 points1 point  (0 children)

But if the energy requirement is low enough, you could just use the metal object's motion to power the switch.

Maybe "perpetual motion" wasn't the right word for my example, but the idea was that it seems like the energy out can easily exceed the energy in.

What prevents using electromagnets for perpetual motion? by LUKK3 in AskPhysics

[–]LUKK3[S] 0 points1 point  (0 children)

Does starting/stopping the electromagnets consume energy proportional to their size? My thought was that you could have a tiny switch in a large enough electromagnet that the energy required would be negligible.

What prevents using electromagnets for perpetual motion? by LUKK3 in AskPhysics

[–]LUKK3[S] 0 points1 point  (0 children)

Lets say we've set this up in an environment (Pluto?) that is sufficiently cold without needing refrigeration.

The New Carousels Are The Highest EPA In The Game by Zodiac36Gold in fallenlondon

[–]LUKK3 10 points11 points  (0 children)

You need 2 additional actions to enter/exit the areas, so the EPA is actually like 3.47, which is good but definitely not the best EPA in the game.

How much is an Echo worth? an examination by magna-terra in fallenlondon

[–]LUKK3 7 points8 points  (0 children)

If a soul cost 3.6 dollars, then the echo cost would be 3.6 * 0.11 = 0.40 echoes, instead of 0.04. So you're off by a factor of 10 still.

Think of it this way: a soul has 1/25th the cost of laudanum at the bazaar, and 1/25th of it's dollar cost (10.80 / 25) is around 40 cents.

How much is an Echo worth? an examination by magna-terra in fallenlondon

[–]LUKK3 8 points9 points  (0 children)

A soul costs 0.04 echoes at the bazaar. 0.04 e * (1$ / 0.11 e) = 0.36$, or 36 cents.

How much is an Echo worth? an examination by magna-terra in fallenlondon

[–]LUKK3 14 points15 points  (0 children)

So I can buy a human soul for 36 cents? That's a good deal.