VA-11 Hall-A Bar
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cqst [she/her] to linuxmemes@lemmy.worldEnglish • 4 months ago

the perfect browser

lemmy.blahaj.zone

message-square
166
669

the perfect browser

lemmy.blahaj.zone

cqst [she/her] to linuxmemes@lemmy.worldEnglish • 4 months ago
message-square
166
  • @Zacryon@feddit.org
    link
    fedilink
    1•4 months ago

    I think it boils down, how we define “memory safe”. C++ is perfectly memory safe, if you know what you’re doing. A lot of people don’t. Which is why Rust was born. that doesn’t make C++ a memory-unsafe language. It just demands more responsibility from the user. A design philosophy that comes with a lot more flexibility than Rust can offer.

    Which is fine. Both languages have their perks. But saying C++ isn’t memory safe, while Rust is, is in my opinion just plainly wrong. Besides, with “unsafe” Rust inherently already the door for memory issues.

    Modern C++ practises and dev patterns can handle most memory issues in C++ pretty easily. Consider smart pointers for example, or RAII.

    It’s not the language’s fault if it is used wrong.

    • @dreugeworst@lemmy.ml
      link
      fedilink
      1•4 months ago

      Which language would you say is not memory safe then? Is there any serious language out there where you should expect memory issues if you don’t make any mistakes?

    • @WhyJiffie@sh.itjust.works
      link
      fedilink
      English
      1•4 months ago

      https://en.m.wikipedia.org/wiki/Memory_safety

      https://www.memorysafety.org/docs/memory-safety/

      https://media.defense.gov/2022/Nov/10/2003112742/-1/-1/0/CSI_SOFTWARE_MEMORY_SAFETY.PDF

      https://www.cisa.gov/news-events/news/urgent-need-memory-safety-software-products

      why do you want to redefine what the term means? why does it hurt to admit that C++ is not memory safe? It’s not about your weakness.

    • @lolcatnip@reddthat.com
      link
      fedilink
      English
      1•4 months ago

      If the standard is “you know what you’re doing and never make mistakes”, then all languages are memory safe. All you’re doing is arguing against memory safety as a concept by redefining the term in such a way that it becomes meaningless.

      • @Zacryon@feddit.org
        link
        fedilink
        1•4 months ago

        Yupp. I’ve changed my stance on this.

        Since C++ doesn’t enforce memory safe programming paradigms, it is inherently memory unsafe.

linuxmemes@lemmy.world

!linuxmemes@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linuxmemes@lemmy.world

Hint: :q!


Sister communities:
  • !tech_memes@lemmy.world
  • !memes@lemmy.world
  • !lemmyshitpost@lemmy.world
  • !risa@startrek.website

Community rules (click to expand)

1. Follow the site-wide rules
  • Instance-wide TOS: https://legal.lemmy.world/tos/
  • Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like “every user of thing”.
  • Don’t get baited into back-and-forth insults. We are not animals.
  • Leave remarks of “peasantry” to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
4. No recent reposts
  • Everybody uses Arch btw, can’t quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
6. (NEW!) Regarding public figures

We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.

  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.

 

Please report posts and comments that break these rules!


Important: never execute code or follow advice that you don’t understand or can’t verify, especially here. The word of the day is credibility. This is a meme community – even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don’t remove France.

  • 350 users / day
  • 2.84K users / week
  • 6.51K users / month
  • 17.3K users / 6 months
  • 26.1K subscribers
  • 1.73K Posts
  • 86.1K Comments
  • Modlog
  • mods:
  • Kevin
  • @zephyr@lemmy.world
  • @rtxn@lemmy.world
  • BE: 0.19.1
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org