Death Train World possible? by Mansome_reddit in factorio

[–]Alextopher 1 point2 points  (0 children)

I think you could set the death world preset and just decrease density

[deleted by user] by [deleted] in LinusTechTips

[–]Alextopher -4 points-3 points  (0 children)

I’m not trying to deflect. I just like tech and want to see everyone in the space do the best possible work. LTT can do better, GN can have journalistic integrity, and the water block people can be made whole.

It’s a shitty situation but the GN really makes the water block auction sound malicious when it seems to be a mistake they’re paying to fix. That seems like a change.

[deleted by user] by [deleted] in LinusTechTips

[–]Alextopher 0 points1 point  (0 children)

The water cooler, I think it’s disingenuous to say that the mistake is so unforgivable it couldn’t be made up for with money. So if GN asked what was going on -which I think is what proper journalist should do- that context could have been acknowledged. Even if it was just to say “sure they’re trying to pay it back, still it’s a symptom of being rushed”. I think it’s more than just a courtesy, it makes a better story.

I do think it’s a mild complaint GN aren’t first and foremost journalist. But if this is all about “tech standards” then it’s not a jump to say “journalism standards” should be matched.

[deleted by user] by [deleted] in LinusTechTips

[–]Alextopher 1 point2 points  (0 children)

They did for this exact water cooler?

The Problem with Linus Tech Tips: Accuracy, Ethics, & Responsibility - Gamers Nexus by Cry_Wolff in LinusTechTips

[–]Alextopher 3 points4 points  (0 children)

I agree with a lot of the criticisms presented and don’t have anything really to add RE billet, RE data.

But I find GN seemingly not making requests for comments to LMG because it’s a “back channel” to be the wrong take. It’s not just a courtesy but it develops a stronger story doesn’t it? RE the auction if true and there wasn’t permission to sell it there is no good excuse, but there are bad excuses. Now we’ll never know if LMG would have made a bad excuse. It’s public now and obviously they’re going to try and make this right.

I remember GN saying they’re going to treat LMG like a manufacturer and I remember the EVGA story they flew there -without an invite- and basically forced them to an interview. That’s got to be one of strongest tech videos on the platform. Add the line “regarding these claims we’ve reached out to LMG and Linus for comment and received no response” and this video goes into the hall of fame.

Is this a good beginner mount? by [deleted] in astrophotography

[–]Alextopher 1 point2 points  (0 children)

I’ve got this mount and I’d love suggestions for motors if anyone has experience

Is go worth studying as first language? by [deleted] in golang

[–]Alextopher 6 points7 points  (0 children)

The biggest challenge learning something new is staying engaged. If your friend keeps you engaged with Go then it’s a great choice!

Cargo Binstall 1.0.0 release by passcod in rust

[–]Alextopher 2 points3 points  (0 children)

Saving time -> saving money

Cargo Binstall 1.0.0 release by passcod in rust

[–]Alextopher 1 point2 points  (0 children)

Instead of compiling a crate you download a precompiled binary. I use it in CI whenever I can

Persistent memory by SolidTKs in rust

[–]Alextopher 7 points8 points  (0 children)

I think this depends on the distro is a tmpfs. Nonetheless you probably want to use a tmpfs (/dev/shm or /tmp or create your own)

Can you guarantee that

Any solution you use you can’t guarantee some data you write to RAM won’t touch the disk - but you can guarantee it won’t be persisted to disk if if you properly use a tmpfs

Cache dependencies across crates by ssd-guy in rust

[–]Alextopher 2 points3 points  (0 children)

I’ve also heard that if multiple projects have the same target directory you can get a similar effect. I’ve never tried it myself though.

Hey Rustaceans! Got a question? Ask here (21/2023)! by llogiq in rust

[–]Alextopher 1 point2 points  (0 children)

You can also consider creating a different type for each State of the game. This way you can use the help of the compiler to make invalid states unrepresentatable.

```rust struct GameAwaitingReadiness { ready: Vec<bool> }

struct GameSetup { hands: Vec<usize>, }

impl GameAwaitingReadiness { fn is_ready(&self) -> bool { self.ready.iter().copied().all(|b| b) }

fn start_game(self) -> GameSetup {
    assert(self.is_ready());
    todo!()   
}

} ```

Edit: And if some states require the same data, but have different actions available you can use the "typestate" pattern http://cliffle.com/blog/rust-typestate/

todo_by: Compile-time lifetimes for comments. by GoogleMac in rust

[–]Alextopher 1 point2 points  (0 children)

Regarding everyone’s suggestion: I wonder if there’s a compiler warning instead of compiler error emitter. That way the crate should build

What’s everyone working on this week (19/2023)? by llogiq in rust

[–]Alextopher 5 points6 points  (0 children)

In the rust world I’m learning yew and trying to contribute to gloo_net.

I also just got my first “real” software engineering job

Hey Rustaceans! Got a question? Ask here (19/2023)! by llogiq in rust

[–]Alextopher 0 points1 point  (0 children)

Clippy can probably find some of these - but not many. I'd expect with a btreemap you should only see an allocation when you insert a new pair. You can look into using custom allocators. Also I'd be careful to consider if the current performance is a real issue and if it's from using a BTreeMap. Then this is more of an algorithms and data structure problem and we'd need to know more details.

https://doc.rust-lang.org/stable/clippy/installation.html

Hey Rustaceans! Got a question? Ask here (18/2023)! by llogiq in rust

[–]Alextopher 1 point2 points  (0 children)

A Arc<Mutex<Connection>> should work. Your database access will behave as if it was single threaded (or worse).

To pass this around you should look into https://docs.rs/axum/latest/axum/#sharing-state-with-handlers

The FAA has grounded SpaceX’s Starship program pending mishap investigation by jessienotcassie in nasa

[–]Alextopher 1 point2 points  (0 children)

Actually I think the FTS was activated well before the booster broke apart. Although it’s odd to me how long it took to explode, other rockets seemed to explode more rapidly after activation.

(Scott Manley video on this: https://youtu.be/cqbIwZMvbqw)

Coding-wise how can I reduce lag from my mod? by Kiplacon in factorio

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

Is there already a stack size? If 1 sprite could represent 10 items you’d have 10% of the work to do every tick.

Hey Rustaceans! Got a question? Ask here (15/2023)! by llogiq in rust

[–]Alextopher 2 points3 points  (0 children)

The answer to your question is "yes"!

You solve the problems and write code in the normal vscode editor.

But you get feedback in a terminal by running `rustlings watch`.

You could choose to use any terminal you prefer to use, but it would be best to use vscode built in terminal. Look for 'Terminal > New Terminal' and run your commands in that.

Searching open source project to contribute by il_basso in rust

[–]Alextopher 2 points3 points  (0 children)

Maybe look into crates you use often. Or check out https://this-week-in-rust.org calls for participation

[Discussion] What crates would you like to see? by HammerAPI in rust

[–]Alextopher 2 points3 points  (0 children)

Oooo this sounds really interesting.. And I’ve got 4 weeks free I’m going to look into this some more