• 0 Posts
  • 87 Comments
Joined 1 year ago
cake
Cake day: July 9th, 2023

help-circle
  • I really enjoy programming, but generally I dislike cooking. I just want to eat, not spend time preparing to eat.

    My experience with cooking has been that because I don’t do it enough, I’m constantly dealing with food expiration dates and having to plan carefully around them.

    In comparison, I’ve got some servers that have been running maintenance free for 5+ years. (Probably not the most secure thing, but meh, I don’t have customers other than myself)

    I think programmers often have hobbies that are more physical though. For me, I like working on my car because turning bolts and working with my hands lets my brain turn off for a while. I could see cooking and following a recipe being in the same category for others.



  • I already had a server running docker, so throwing a few more containers in was trivial. There’s a docker-compose.yml published in the lemmy repo.

    Since my server was already running and had free space, it was literally free, but if you’re starting from scratch there’s more to consider.

    I’ve been self-hosting for over a year now, and the storage does add up. The postgres DB is 11GB, and pictrs service is getting bigger at 29GB. Between all the different services, it can eat up a decent bit of CPU. My (admittedly 10 year old CPU) sits at a load average of 1.9, so you’ll probably want 3 or 4 cores minimum. And based on my stats, 4GB of ram should be just enough to keep everything loaded.






  • It really depends on what you’re measuring. Good luck measuring the distance from a corner if you can’t get 0 to touch the end.

    Tape measures are almost always designed with this in mind, so you can hook the end over an edge, or butt it up against something and the measurement will be accurate both ways, since the metal end can slide in or out by just the right amount.







  • xthexder@l.sw0.comtoLinux@lemmy.mlSquare Enix invests in Linux distribution
    link
    fedilink
    arrow-up
    23
    arrow-down
    1
    ·
    edit-2
    2 months ago

    In theory it makes it possible for other games to use the same items to make stuff in their games (I doubt this in practice)

    I’ve heard this before, but there’s literally nothing preventing games from setting up some shared items on their own without NFTs. Nobody does it because companies want to keep their IP, and worrying about external items would be a nightmare to balance.

    NFTs solve like 1% of the problem of sharing items. So much more goes into making them actually work. For example: NFT id 5551337 is owned by the player: now what? How do you figure out what 3d model to render? What actions can you perform? How does it integrate with other systems? All of that is going to have to be custom for every game involved on a per-item basis.




  • That’s definitely a non-trivial amount of data. Storage fast enough to read/write that isn’t cheap either, so it makes perfect sense you’d want to process it and narrow it down to a smaller subset of data ASAP. The physics of it is way over my head, but I at least understand the challenge of dealing with that much data.

    Thanks for the read!


  • Neat, thanks for sharing. Reminds me of old mainframe computers where students and researchers had to apply for processing time. Large data analysis definitely makes sense for C++, and it’s pretty low risk. Presumably you’d be able to go back and reprocess stuff if something went wrong? Or is more of a live-feed that’s not practical to store?


  • It really depends what you’re doing. The last big project I did with C++ templates was using them to make a lot of compile-time guarantees about concurrency locks so they don’t need to be checked at runtime (thus trading my development time for faster performance). I was able to hide the majority of the templates from users of the library, and spent extra time writing custom static_assert messages.

    C++ templates are in fact a compile-time turing complete language, as crazy as that sounds.


  • Yep, sadly I’ve been exposed to a few such codebases before. I certainly learned a lot about how NOT to design a project.

    You’ve been at it longer than I have, but I’ve already had coworkers look at me like I’m a wizard for decoding their error message. You do get a feel for where the important parts of the error actually are over time. So much scrolling though…