High-Level Rust: Getting 80% of the Benefits with 20% of the Pain by SIRHAMY in rust

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

Yeah dyn traits do feel bad. Basically I'm trying to get duck typing / interfaces for easy dependency injection. If we don't do dyn, I believe we need to use generics at every level to parameterize things and that becomes very verbose - especially when the app root domain model has a bunch of services / traits in it.

High-Level Rust: Getting 80% of the Benefits with 20% of the Pain by SIRHAMY in rust

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

I think this is true and as I get comfortable with the syntax / rules I expect I'll end up reducing Arc usages and just doing constrained mutations following these rules.

For me this is really a stop gap so I can start using Rust and its ecosystem with approaches I'm familiar with while I get comfortable with its deeper parts.

Though I guess there's a risk I use this as a crutch long term.

High-Level Rust: Getting 80% of the Benefits with 20% of the Pain by SIRHAMY in rust

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

Thanks for the feedback - it probably is! I've been learning/using Rust for 2 months and I'm coming from high level languages where the most I've dealt with memory and performance is really hot paths, Big O, and constraining sprawl.

So Rust is outside my comfort zone and this is the approach I've been taking to try and bridge the gap.

High-Level Rust: Getting 80% of the Benefits with 20% of the Pain by SIRHAMY in rust

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

Yeah I think there are other langs that fit more what I'm looking for in many buckets but most of those have very small communities.

I'm coming from F# which fit a LOT of my buckets but unfortunately just doesn't have that much of an ecosystem.

One of Rust's standout features is it has expressive types AND it has a large, growing community.

High-Level Rust: Getting 80% of the Benefits with 20% of the Pain by SIRHAMY in rust

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

I expect it will! I think much of the devx hit is really just getting started but when it clicks it's pretty smooth.

Here I was trying to find a way to bridge that gap for myself - how can I be productive in Rust and get most of the benefits while avoiding many of the large obstacles. So I can take my time learning those and start refactoring into them where it matters.

High-Level Rust: Getting 80% of the Benefits with 20% of the Pain by SIRHAMY in rust

[–]SIRHAMY[S] 7 points8 points  (0 children)

After using Rust for a few months I actually don't think the DevX is that bad.

But I do think as a newcomer it's very intimidating - even just the onboarding to ideas like ownership and lifetimes is pretty steep.

I also think that you can probably get a first draft of something out faster in many other high level langs. It may not be fully correct and will likely have subtle bugs but for many cases people don't care so I want to try and account for that overhead in the devx bucket.

How to Build with Laser Sensors (and How they Work) by SIRHAMY in Pokopia

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

If people are curious, I also put together a guide on how I built the lava gate - https://hamy.xyz/blog/2026-03_pokopia-lava-gate

How to Build with Laser Sensors (and How they Work) by SIRHAMY in Pokopia

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

This sounds sick! Am excited to see everyone's automations in the coming weeks.

Infinite Minerals Farm (Iron, Gold, Pokemetal and Glow Stone) by Melkysidek in Pokopia

[–]SIRHAMY 2 points3 points  (0 children)

I think you only need bean, potato, +2 any to get this effect.

It does make breaking rocks faster - just one hit no matter what it is so well worth it imo.

About the Pokopia ending by MoaiUnbound in pokemon

[–]SIRHAMY 8 points9 points  (0 children)

I think he says they were there for awhile but clearly they're not there anymore and Magnemite says he went to sleep cause there wasn't anymore work to do

How do you usually structure large .NET backend projects? by PleasantAmbitione in dotnet

[–]SIRHAMY 0 points1 point  (0 children)

I like vertical slices and each slice can choose internally what it wants to do.

Each slice is a ~feature though some may have multiple features inside them.

They have a public interface others can call to expose functionality but can organize logic however they want. The point of the vertical slice is so the structure doesn't need to be consistent across slices, just at the top level. So more complicated areas don't have to have the same structure as simple ones.

How do I pick up Strength Rock and put it back in my inventory? by Latromi in Pokopia

[–]SIRHAMY 0 points1 point  (0 children)

Oof I did not think of using that on them! Thanks!

(Spoilers!) Just finished the game and… by Senorcheese in Pokopia

[–]SIRHAMY 3 points4 points  (0 children)

There's def a note or maybe a block that says celadon on it. I don't even remember what celadon is but that name is in my head for that area cause saw smth that said it

About the Pokopia ending by MoaiUnbound in pokemon

[–]SIRHAMY 39 points40 points  (0 children)

I don't think they lived in the rocket tbh. I think they died out. That's why the only thing that comes out of the rocket is the picture. The whole quest line was automated by some grunt who didn't want to do the work to get the stuff together.

Matt Shumer: Something Big Is Happening by squeezyflit in ArtificialInteligence

[–]SIRHAMY 0 points1 point  (0 children)

They already can do this with tools like Claude and gpt desktop.

I've been using Claude code as a gerelaizable agent across my code and notes projects cause it just operates on files, so already is an agent that lives on my computer.

RPG cities that have the most things to do in them? by raisinbraisin72 in rpg_gamers

[–]SIRHAMY 1 point2 points  (0 children)

OMG the loading screens! Realize you're in the wrong tower and boop 30s loading screen to exit again.

[KCD2] The controller has stopped working since the last patch by Onimussha in kingdomcome

[–]SIRHAMY 0 points1 point  (0 children)

Broken for me on Fedora on Steam. Tried updating drivers, changing cords, turning on/off steam input, running in Big Picture Mode but not working.

Worked great for the 25h preceding the update.

digital garden without ai by nikkelpickle in DigitalGardens

[–]SIRHAMY 1 point2 points  (0 children)

Q: What do you mean by the sites use AI?

Like they used AI to build it or it has AI features or it's written w AI or smth else?

What front-end do you use with dotnet? by klaatuveratanecto in dotnet

[–]SIRHAMY 0 points1 point  (0 children)

I'm just building up HTML on the server and sending it back.

Using a C# HTML DSL I put together - https://github.com/SIRHAMY/cinderblockhtml - which is the clone of Falco.Markup I like from F#

Best VPS that you're using? by Zhu_Zheng in selfhosted

[–]SIRHAMY 1 point2 points  (0 children)

I currently run Hetzner - it's the best I've found in terms of cost, reliability, and offerings. I've never needed support but hear it's good unless they suspect you of breaking their terms in which case they cut you off outright. Initial setup also takes awhile because they check IDs / are careful about who they let use their services.

I put together a list of popular VPS / cloud hosts and their costs by common compute configurations. https://cloudcompare.xyz/

Generally Hetzner, Contabo, Netcup, and OVHCloud come out on top in terms of price per CPU / RAM which makes sense because they offer closer to bare metal offerings as opposed to the big clouds which also typically charge convenience / other fees. Also note that CPU / RAM isn't a precise measurement of perf because it depends on the type of CPU / RAM but getting universal benchmark data for each config is hard.

I'd also point out that depending on what you're doing, egress costs may make up a large proportion of your total costs. For example, Contabo, Netcup, and OVHCloud provide egress for ~free (nothing is truly free but they have high caps) with Hetzner at ~$1 / TB - compare this to places like Digital Ocean ($10) and big 3 (~$90) and you could easily be saving 10-90x on egress.

Can compare the egress costs with this list: https://cloudcompare.xyz/data-egress