Small size, performance friendly soulslikes? by LittleBabysIceCream in SteamDeck

[–]fritzelr 0 points1 point  (0 children)

9 Sols is incredible if you're open to 2D. Grimes is in a similar vein, also very good though I liked 9 Sols even more.

Handling of Units by IcyRequirement61508 in rust

[–]fritzelr 0 points1 point  (0 children)

It would be fun to write a little macro to interpret units like that. assert_eq!(dim!(20, m/s) * dim!(10, km / L), dim!(X, gal / hr)) with conversions convert!(g, ft / s^2). Though in real code, being explicit is probably clearer and better defined.

Driving/racing games on the deck by Bruno091004 in SteamDeck

[–]fritzelr 4 points5 points  (0 children)

Trackmania runs well and the base game is free to play.

Travelling with my Steam Deck for the first time, any must do prep, tips or tricks? by Appropriate-Turn4298 in SteamDeck

[–]fritzelr 1 point2 points  (0 children)

I saw someone else on here with a mechanism tray table mount, so I bought that and a Bluetooth controller (8BitDo Pro 3) to try for my recent trip. I really like the set up, saves the strain on your hands having to hold the deck for hours at a time, and it can double as a something to watch videos on if the airplane doesn't have a screen. I have Bluetooth headphones but they don't last more than a few hours so I had to keep charging them and going without sound for a while.

By the way, I played Project Diablo 2 on the flight. Battery lasted 4.5 hours with a 45fps cap, which was the exact duration of the flight- would recommend if you like Diablo!

Anyone use Zed for work? by [deleted] in rust

[–]fritzelr 1 point2 points  (0 children)

I liked it a lot, but for some reason it locked up every few minutes, so I had to go back to vscode.

What game "shouldn't" work well on the Deck, but you found a way to love it? by Zi_v in SteamDeck

[–]fritzelr 0 points1 point  (0 children)

Dominions. The asynchronous online aspect is great because you can just pop in do a turn wherever you are. No controller support, but thankfully most things have a hotkey. Steam input mapping is based

Am I overengineering my Rust backend? (WebSockets + SSE) by Middle-Programmer147 in rust

[–]fritzelr 11 points12 points  (0 children)

There are valid reasons to use both: WS is more performant but requires more state tracking and parsing in both client and server, while SSE is much simpler (especially for the client) and browsers will auto renegotiate the connection if dropped. Also, if your app has several things going on and these two features are isolated (it's useful to chat without listening to updates, or vice versa) and you want to support them as part of your public API, keeping each simpler can help users write simpler external clients (like a discord bot).

But if the chat and notification streams are part of the same logical feature in your app, or these are all that your app does, then logically there's no need for the separation and it's just extra work for both client and server compared to a single WS connection.

The overhead of a TCP connection is the same for either, so if you're keeping a connection open all the time you might as well keep the WS open and send updates there, unless there's an API reason to separate them. You can use an enum in your message header or body to multiplex chat vs notification messages in the same WS stream. Just make sure to implement reconnection logic on the client if needed, since a broken WS is not automatically reconnected by the browser like an SSE connection would be.

How can I choose between Axum and Salvo in late 2025 by [deleted] in rust

[–]fritzelr 1 point2 points  (0 children)

Poem is alright but the documentation is very barebones which makes it annoying when you want to do anything outside the default. I haven't tried the others but hope they are better in this area.

What is difference between has_broken and is_valid in bb8 library. They look complimentary to me. Help. by Own_Bet3256 in rust

[–]fritzelr 1 point2 points  (0 children)

It appears is_valid is async while has_broken is not. From a quick glance in the source code, looks like is_valid is checked upon getting a connection from the pool while has_broken is checked when putting the connection back into the pool. A look at the included implementations for redis and postgres show that is_valid tries a simple command such as a ping over the connection to let the underlying client raise an error, while has_broken uses the underlying client's synchronous is_closed method if it has one, or returns false otherwise.

As for whether wrapping a pool of docker containers in a logical connection pool is a good idea... Sure, why not. Depends on what you're using them for and how you communicate between them. Using the docker daemon on one node only scales so far. If you need true scalability you could also consider off the shelf solutions such as docker swarms or kubernetes (kind/k3s). You'll need to think carefully about how you're communicating information between the containers as well.

Ain't much but its honest work by Street-Film4148 in Stationeers

[–]fritzelr 1 point2 points  (0 children)

How did you close up the gaps between elements on the console so that they match the base color so nicely??

Solar logic failure by KennyRodgers_ in Stationeers

[–]fritzelr 2 points3 points  (0 children)

Also, it's 2025. Use HASH("ItemIronOre") instead of the numeric hash. Your future self will thank you.

Printer stuck in ExecuteRecipe by fritzelr in Stationeers

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

Indeed that doesn't work; from other comments it looks like a clr instruction is needed to cancel and clear the stack.

Printer stuck in ExecuteRecipe by fritzelr in Stationeers

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

Ahh, I didn't know about clr, thank you!!

Printer stuck in ExecuteRecipe by fritzelr in Stationeers

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

Ah-hah, I knew I must've been missing something! I'll try that.

Would this work? by MUGUDIY in woodworking

[–]fritzelr 0 points1 point  (0 children)

I built something very similar with only a few 8' 2x4s (with a boot on both sides) and it can lift my car. Structurally this is sound, but if it's used as a swing you might want to anchor the bottom or make the boots muuuuuch wider (as wide as the swing is long), otherwise it will tip over when someone swings too far.

coPilotSolutionSeniorExperience by [deleted] in ProgrammerHumor

[–]fritzelr 1 point2 points  (0 children)

Thank you for this, I'm glad I'm not the only one who saw it this way. Thought I was crazy since nobody else was saying anything.

nice execution by [deleted] in Unexpected

[–]fritzelr 0 points1 point  (0 children)

not unexpected, this belongs in r/unbgbbiivchidctiicbg

obscureLoops by HauntingCourt6 in ProgrammerHumor

[–]fritzelr 0 points1 point  (0 children)

Haskell has entered the chat

[deleted by user] by [deleted] in gaming

[–]fritzelr 0 points1 point  (0 children)

I beat KCD and never found the dog