Expert developer, Buddhist

  • 0 Posts
  • 37 Comments
Joined 1 year ago
cake
Cake day: June 21st, 2023

help-circle

  • Are you high?

    Why am I writing this post? Not because I hope for something or believe in change. These are just words. I could write this at the end, but then you would be looking for answers for me while reading, and I don’t need them. They won’t change anything.
    So here it is. I don’t claim to be a software development guru or a C language expert. I’m just a simple developer.

    What? People stopped using C because it takes forever to write. You’re still stuck adding null terminators to string arrays and stressing about memory leaks and overflows. Even the Linux kernel / Linux Torvalds are moving towards Rust. That’s evolution, and sometimes evolution is messy

    Then the rest of your thing seems to be about how people shouldn’t make money from coding? That’s one of the most valuable skills of the information age, and you can become a millionaire in a decade doing it

    Just contribute to open source if you want to do some “good deeds”







  • Well, generously I think this guys point is that you shouldn’t use rust for developing actual game logic (you’d use those higher level scripts). For game logic, it’s bad bc it’s not very iterative - and the rest of the stack sucks too but everyone knew that getting into it. But yes, I’m sure you could make a game engine with it


  • Yeah idk Rust seems superior in the less useful ways. Go’s tooling, fast build times, hyper efficient parallel GC (not kidding, it’s world class), interfaces, and simplicity are really killer features. Though honestly, even after many years, channels still confuse me - it’s like plumbing, but plumbing needs pressure gauges, emergency valves, and buffers - so it always ends up with this string cheese of events spread over multiple files. I end up using a mutex half the time


  • Lung@lemmy.worldtoRust@programming.devLeaving Rust gamedev after 3 years
    link
    fedilink
    arrow-up
    29
    arrow-down
    6
    ·
    edit-2
    5 months ago

    Interesting to read about how borrow checker constraints affect iteration speed in game dev

    Yeah seems like the wrong choice overall. I think Rust found its way to the niche of being a “new C” that’s pretty much just for when you need something very optimized like kernel modules and backend hotpaths (and Firefox I guess). That’s a cool niche to fill

    I most enjoy Go for servers, and JS unfortunately is mandatory for many things. I don’t tend to write code that requires Rust’s performance. For mobile, the Flutter stack with Dart is pretty cool. For automation & simple cli, shell scripts suit me fine (but any language can do this ok). Python is tragic, Java is evil, C# is MS Java, node/npm are a toxic hazard, and webassembly with preloaded runtimes in browsers cant come soon enough


  • Lung@lemmy.worldtoProgramming@programming.dev...
    link
    fedilink
    arrow-up
    24
    arrow-down
    1
    ·
    edit-2
    5 months ago

    Shout-out to the Flutter-Dart stack that Google made. Neither are outstanding, but Flutter compiles to native code for every platform including mobile and web. This is way more convenient than React Native (which funny enough doesn’t really work on web). Dart is a much saner lang than JS and the UI framework is much saner than React. Dependency management is fast and easy without NPM and webpack trash. So for my recent project I embedded a flutter app inside a static website, and can also have it run native on desktop or wherever. The only real downsides are an extra 1.5mb load for the dart runtime stuff, and some need to fiddle with platform specific issues and configs. Upside is I need neither xcode nor node


  • Lung@lemmy.worldtoProgramming@programming.dev...
    link
    fedilink
    arrow-up
    23
    ·
    5 months ago

    Well configuring NeoVim is basically game development / modding. But yeah it’s built as an embedded mostly single thread thing so. I also used it for AwesomeWM many years ago, whole thing was lua. I do think it’s one of the most elegant languages ever designed, with it’s very simple table/metatable mechanics









  • Try it like this: go for a walk in nature and focus on the senses. Try to really feel yourself walking, feel the clothes on your body, the wind, the distant sounds. As things enter your perception, be grateful for them. The dogs and children, the leaves and sun. Perhaps contemplate how: (1) this sensation (of ex “dog”) feels inside you (2) the miracle of its construction, the billions of particles, the quantum effects underneath, and the orchestral perfection of its movement (3) all the relationships people have with their dogs (4) how dogs affect the entire world

    This technique gives you a large “surface area” for gratitude droplets to coalesce. With a little repetition, you can get very high doing this technique, making it fun and self reinforcing. Ultimately all sensations can be integrated into your larger self-experience, changing the small, separate identity, into a large all encompassing compassionate one

    My understanding: the fundamental skills are attention (focus/zoning in), awareness (broad attention of sensation), and gratitude (compassion/metta/love). You can train these skills whenever is the most enjoyable, including painting, dance, gardening, working out. Gratitude is the one that makes the most happiness up front, check out the “hedonic treadmill”