• 1 Post
  • 47 Comments
Joined 1 year ago
cake
Cake day: July 18th, 2023

help-circle
  • It’s been almost a decade since I used C++ and had to verify, but after some quick searching around it looks like it hasn’t changed a ton since I last looked at it.

    You can use smart pointers, and certainly you should, but it’s a whole extra thing tacked on to the language and the compiler doesn’t consider it an issue if you don’t use them. Using new in C++ isn’t like using unsafe in rust; in rust your code is almost certainly safe unless marked otherwise, whereas in C++ it may or may not be managed properly unless you explicitly mark a pointer as smart.

    For your own code in new codebases this is probably fine. You can just always make your pointers smart. When you’re relying on code from other people, some of which has been around for many years and has been written by people you’ve never heard of, it becomes harder to be sure everything is being done properly at every point, and that’s where many of these issues come into play.


  • brenticus@lemmy.worldtoLinux@lemmy.mlLadybird announcement
    link
    fedilink
    arrow-up
    37
    arrow-down
    1
    ·
    3 days ago

    C and C++ require more manual management of memory, and their compilers are unable to let you know about a lot of cases where you’re managing memory improperly. This often causes bugs, memory leaks, and security issues.

    Safer languages manage the memory for you, or at least are able to track memory usage to ensure you don’t run into problems. Rust is the poster boy for this lately; if you’re writing code that has potential issues with memory management, the compiler will consider that an error unless you specifically mark that section of code as unsafe.


  • There are a lot of ethical concerns around Chinese worker treatment, economic concerns around Chinese subsidies driving the price down, privacy concerns around Chinese tech’s tendency to phone home, geopolitical concerns around giving China even more power in our nation…

    But honestly, same. Nowadays I can’t get a car at a decent price in a decent time frame, even worse if I want an EV, so what’s the expectation? The auto industry has dropped the ball so hard that China would trivially dominate the EV industry if they were allowed to compete. That’s bad, but it’s so bad because the local industry isn’t even in the ballpark of good enough.


  • Nenshi was a good mayor with a meh council and his frustration with dumb political issues came forth in ways that felt like actual human emotions, even if some people thought he was arrogant.

    He was pretty obviously the right choice here. Everyone’s platforms were basically the same. Ganley and Stonehouse are basically unknown, and Hoffman is more known for being the overweight health minister than anything else, unfair though that may be. He is the most recognizable of the leadership candidates by a mile, he has actual demonstrated leadership abilities we hardly see from anyone nowadays, and Calgarians generally like him. The only major downside is that he’s not a currently sitting MLA, but he would probably win any riding in Calgary handily.

    Calgary is pretty much a swing city at this point, since Edmonton goes mostly NDP and the smaller regions mostly go UCP, so someone Calgary can get behind is automatically a huge bonus. There’s a better chance of seeing another NDP government under him than basically anyone else in the province.



  • Honestly? Bash. I tried a bunch a few years back and eventually settled back on bash.

    Fish was really nice in a lot of ways, but the incompatibilities with normal POSIX workflows threw me off regularly. The tradeoff ended up with me moving off of it.

    I liked the extensibility of zsh, except that I found it would get slow with only a few bits from ohmyzsh installed. My terminal did cool things but too slowly for me to find it acceptable.

    Dash was the opposite, too feature light for me to be able to use efficiently. It didn’t even have tab completion. I suffered that week.

    Bash sits in a middle ground of usability, performance, and extensibility that just works for me. It has enough features to work well out of the box, I can add enough in my bashrc to ease some workflows for myself, and it’s basically instantaneous when I open a terminal or run simple commands.




  • I feel the same way regarding whether this legislation would be enforceable or good, but there are a lot of ways developers could make this work that they currently don’t. That includes bot players, local multiplayer functionality, dedicated server tools, IP-based connections, etc. Many DRM and anti-cheat implementations also cause problems and would need to be either removed or only used in certain contexts.

    Right now in a lot of games if you aren’t playing multiplayer on official servers through official matchmaking functions with invasive kernel-level anti-cheat there’s no other way to play, but that hasn’t always been the case nor does it need to be the case.


  • Just to be clear, a majority of wildfire response efforts are provincial and CAF basically gets called in when resources are tapped out across the country. And Quebec actually did privatize their wildfire emergency response a while back, although I don’t know the details on how that compares against their public agency. And lots of bits and pieces of response are either privatized or partially privatized in many provinces, such as aircraft and helicopter resourcing.

    All that said: yeah, CAF just needs to be trained better for emergency response functions. It’s most of what we use our armed forces for anyways. I’ve heard plenty of stories of CAF being deployed and then sitting around for a week because their radios aren’t compatible and they don’t know how to integrate into a unified command structure. These are the things that need to be sorted out, not throwing more money at more entities who can complicate things.








  • A lot of bits in that article sound weird but on the whole the traditional retire-at-65 concept is definitely fading away. I think it underplays how much of that is affordability (how many people even think they’ll be able to retire at 65?) but even then I’m seeing friends take long breaks from work regardless of retirement, I’m seeing people work less traditional jobs that they can find different fulfillment in, and I know a rare few who are past retirement age and asked if it was okay to keep working because they love what they do.

    I’m personally planning on retiring at 55 when my pension hits the point that it can easily support me, even if another decade of work would grow it further. Who needs money when you have another decade of healthy life? As we learn more about longevity and aging it’s looking more like I’ll have more healthy years ahead of me than any of my grandparents did and I may as well use them.



  • Hey, nothing wrong with being excited about discovering new things about a show you love! Even the German word bit, it’s super prevalent in fantasy (especially Japanese fantasy), so most people have had that exact realization at some point with some show, so now it just feels obvious haha.


  • A lot of the framing of modern Japanese fantasy derives from Dragon Quest. There is some MMO-specific stuff mixed in at times, like the raiding terms, but the tropes mostly shake out from a time well before the Internet was a thing.

    The bit about old clans and such is especially not an MMO-specific thing, it’s just life. It’s something everyone experiences, and the exploration of those themes in varied ways account for a large part of why the show is so universally praised.

    That said, if the MMO framing helps you to get a deeper understanding of the show you go for it. Part of appreciating art is finding your own ways to engage and relate with it.