Disclaimer: I am a hobbyist

I have dabbled in Rust and programmed quite a bit in C++.

I realized, the whole fricking boon of C++ over Rust is the fact that it MINIMIZES dependencies, while rust goes for a free for all and has hundreds to thousands of separate crates (did you vet all of them?) to even prototype anything serious to begin with. Even if rust was good I am not going to spend years of my time vetting crates every fricking time and have that anxiety looming. Maybe it's stockholm syndrome but I kinda felt like memory debugging in valgrind was kinda comfy.

Tip Your Landlord Shirt $21.68

Black Rifle Cuck Company, Conservative Humor Shirt $21.68

Tip Your Landlord Shirt $21.68

  1. 1 month ago
    Anonymous

    was a good post until you mentioned valgrind which I never had to use in my entire life because I don't make logical mistakes like that when RAII exists, stick to rust

  2. 1 month ago
    Anonymous

    bringing dependencies into a c++ project is so difficult that it's actually easier to just make do without them, and if you really insist then you write your own

    • 1 month ago
      Anonymous

      I have no idea what you're talking about, C++ dependency management is how everything should've worked.

    • 1 month ago
      Anonymous

      this, anything outside of big libraries like mysql is not worth to depend on, the devs are completely autistic and like to break multiplatform support for stupid features low IQ plebs requested

      • 1 month ago
        Anonymous

        >the devs are completely autistic and like to break multiplatform support for based features
        I do this every time without even thinking about consequences as long as it results in me being able to say
        >You use Windows, which is a choice.

    • 1 month ago
      Anonymous

      >best case scenario: include header file
      >worst case scenario: link .lib file and maybe add some macro somewhere (which is always explained in the documentation)
      wow so... difficult?
      how come rustoids always get filtered by the easiest things?

  3. 1 month ago
    Anonymous

    I don't care, I made a decision in life to never have to deal with makefiles.

    • 1 month ago
      Anonymous

      you can do that by fricking off and never touching a single line of code again, nocodeshitter, makefiles are simple and direct, and noone needs more

      • 1 month ago
        Anonymous

        >and noone needs more
        I need less. I’d rather use a bootstrap program to compile my project and eliminate an extra dependency.

        • 1 month ago
          Anonymous

          make takes less than a minute to build even on shittiest hardware I can find in my garage, have a nice day.

        • 1 month ago
          Anonymous

          How do you handle conditional compilation you street shitter

      • 1 month ago
        Anonymous

        Makefiles are simple when you are a NEET hobbyist, not when working with 270 engineers.

    • 1 month ago
      Anonymous

      Make is good b***h
      Cmake thougheverbeit...

      • 1 month ago
        Anonymous

        CMake is terrible, after using it for several years I don't understand how can anyone think that Make is worse.

  4. 1 month ago
    Anonymous

    >I never wrote a line of C++ or Rust code in my life.
    >Is my post believable?

    • 1 month ago
      Anonymous

      It is, up to the part where valgrind is mentioned.

  5. 1 month ago
    Anonymous

    Guys i cant decide between rust c and cpp
    You think we will see operating systems in rust?
    I want to get into binary exploitation but im thinking it might be a dead field if everything is written in rust within 5 years

    • 1 month ago
      Anonymous

      >You think we will see operating systems in rust?
      RedoxOS has been a thing for multiple years.

      • 1 month ago
        Anonymous

        >hobbyist project
        fricking lmao

        • 1 month ago
          Anonymous

          Moving the goalpost

          • 1 month ago
            Anonymous

            https://betterprogramming.pub/6-operating-system-emulators-written-entirely-in-javascript-5506a4df2d04
            js is safer than rust. why dont you use those?

          • 1 month ago
            Anonymous

            Majority of managed languages are safer than Rust or other systems programming languages.
            What's your point even? That's literally 101 CS knowledge

          • 1 month ago
            Anonymous

            that bringing up a hobbyist os to prove rust is a proven systems language is moronic
            i wouldnt be surprised somewhere some autismo dweeb wrote an entire os based on brainfrick

          • 1 month ago
            Anonymous

            >prove rust is a proven systems language
            That was never the topic of the conversation.

            What are you even talking about?

          • 1 month ago
            Anonymous

            moving goalposts

          • 1 month ago
            Anonymous

            alt picrel

    • 1 month ago
      Anonymous

      You cant future-proof but you are better off having learned something in those 5 years then nothing at all.

      • 1 month ago
        Anonymous

        C++ is future proof, LLVM will never be rewritten in Rust

        • 1 month ago
          Anonymous

          Not a single language is future proof and there is nothing in your political camp addled mind that can change that.

          • 1 month ago
            Anonymous

            ok goodluck inventing new things that will not replace the old because you're too stupid to understand

    • 1 month ago
      Anonymous

      So if we have C and CPP, what happened to CP?

      • 1 month ago
        Anonymous

        >what happened to CP
        it's located on the average rust troony's harddrive

    • 1 month ago
      Anonymous

      You don't just learn a language and stick with it your whole career, you learn whatever you need as you need it. The one you should pick now is whichever will result in you actually writing something, which for me is rust because I'm tired of C's tooling.

    • 1 month ago
      Anonymous

      learn zig

  6. 1 month ago
    Anonymous

    [...]

    >installing a library to your system ONCE and linking to it is le bad
    >having package manager built for language compile code EVERY TIME you need to link to the library is le good
    have a nice day summergay

  7. 1 month ago
    Anonymous

    [...]

    it was implied
    >but yes
    I can read your mind, I can also tell that you're a nocodeshitter and should have a nice day
    Also this is a solved problem, most libraries provide pkg-config support
    All you need to do in a Makefile is
    override CXXFLAGS += $(pkg-config --cflags libcurl)
    override LDLIBS += $(pkg-config --libs libcurl)

    And it all just fricking works.

    • 1 month ago
      Anonymous

      >"most" libraries
      Lmao.
      >And it all just fricking works.
      You know that nothing about building C++ just fricking works.
      And even if it did work like you said, it would still a pretty sad state of affairs. Where should a new c++ programmer even learn that information? https://isocpp.org/get-started doesn't mention make or pkg-config. Should everyone lurk on IQfy to read (you)r posts?
      The truth, which you already know, is that C++ is a language that Just Doesn't Work out of the box. It's pretty much the same as python and the whole pip/pipx/pipenv/poetry disaster, it's your responsibility to figure out which 3rd party external tool out of the dozens shilled on the internet is the one that actually makes the language work as advertised.

      I think he's talking about library dependencies, what are you talking about? Also everyone knows the correct way to use c++ is to restrict yourself to a small subset of the language where you're effectively programming C with some niceties. You can perfectly write regular C and then add stuff like templates to it occasionally.

      >Also everyone knows the correct way to use c++ is to restrict yourself to a small subset of the language where you're effectively programming C with some niceties.
      That's the core of the issue. You say that C++ just works IF you also have a bunch of supplemental knowledge and avoid all the traps. Then you say that "everybody" knows these things. But in the real world most actual C++ users have completely different ideas, they don't restrict to the same subset of language, or they don't restrict at all, they use dozens of different terrible build systems, etc. And any newcomer to C++ learning about it is overwhelmingly more likely to run into all this bad advice rather than your "good" advice.
      Meanwhile with Rust (or like Zig, Go, Odin, ...) anyone can just follow half a page of documentation of an official site, and have everything Actually Just Work on the first try.

      • 1 month ago
        Anonymous

        everything I tried to build in my entire life literally just worked
        >You know that nothing about building C++ just fricking works.
        stopped reading there

        How do you handle conditional compilation you street shitter

        ./configure --enable-some-bloat
        My configure is a custom bash script by the way, maybe if I cared about irrelevant troonix systems I'd use autotools but I don't. It works on Linux, Windows and MacOS, don't care, seethe.

        • 1 month ago
          Anonymous

          Then I guess C++ is used mostly by literal morons, since they spend such an insane amount of resources building all these build systems trying to fix something that literally just works.
          And it has to be a special kind of moronation unique to C and C++, because people don't really do any of this in other languages.

          • 1 month ago
            Anonymous

            What other people do doesn't affect me, bash and Make literally works for all of my usecases, average codeshitter nowadays is a literal street shitter, and you can't judge tools by how well street shitters can use them, homosexual.

          • 1 month ago
            Anonymous

            >bash and Make literally works for all of my usecases
            Well, I thought this was a thread discussing programming languages in general. But if it's specifically about the usecases of one particular homosexual on IQfy, then I can't really argue with your opinion there. Sorry for the misunderstanding.

          • 1 month ago
            Anonymous

            My usecase is my code compiling on 3 major platforms with a simple
            ./configure
            make
            make install

            Which just happens to fit 100% of usecases you disingenuous troony.

          • 1 month ago
            Anonymous

            Seethe, chud. Any corporate level c++ codebase is an absolute clusterfrick to maintain, especially the build process. Yeh, you might end up using a makefile but that file is gonna look convoluted as shit and over the years becomes a nightmare to maintain.

          • 1 month ago
            Anonymous

            my Makefile isn't convoluted, and it scales to any amount of files and subprojects because I actually know how to use GNU Make

          • 1 month ago
            Anonymous

            And you can build for different targets? How do you switch build configs?

          • 1 month ago
            Anonymous

            The speed at which trannies go from scathing supposition to polite intellectualism lets you know that they, like their self-identity, are fabrications of shallow depth.

          • 1 month ago
            Anonymous

            Dont be mean :/

          • 1 month ago
            Anonymous

            I actually talked to a troony one-on-one the other day and was immensely respectful, but firm in my beliefs. He had platitudes on his profile about being nice to others and not judging them, and sometimes complained with little cat faces to 'not be mean.'
            Of course, when the troony perceived he had made a good point, he instantly turns hostile and vitriolic, and when stuck in a paradox, reverts back to complaining about the meanness of others.

            Being nice to people, and reciprocating, is what founds civilized society and the greatness of man. But good will (being nice) can absolutely not be performed universally; those who do are sucked dry by sociopaths. Trannies are the ultimate embodiment of a false victim seeking to relentlessly suck the good will out of our most virtuous humans.

            For this reason, the troony must be treated as cruely as possible. The signalling of despair is so crucially important that allowing confused young men who cannot become productive to support their mental illness through exploitation of the good will of others is a practice, which left unchecked, leaves those truly in need of help, and those who would repay you tenfold for it, lost in a sea of noise.

            Thankfully, the troony is easily stereotyped and tolerance for them is ever diminishing.

          • 1 month ago
            Anonymous

            >Being nice to people, and reciprocating, is what founds civilized society and the greatness of man
            go outside moronic homosexual, civilization is just layers of banter.

          • 1 month ago
            Anonymous

            No, high-trust is what defines civilization. You are welcome to move to Africa and see what you get otherwise. You'll be writing code in beads on a string.

          • 1 month ago
            Anonymous

            banter is implicitly only possible in high trust society, didn't know I needed to explain this, when noone trusts anyone what happens is anything is taken as direct attack and you have grounds for cancel culture and wars

          • 1 month ago
            Anonymous

            > didn't know I needed to explain that society is just layers of banter duuuuude
            I don't know if you need to get on or off pills, anon.

          • 1 month ago
            Anonymous

            dumb troony

          • 1 month ago
            Anonymous

            I'm the guy who called out the troony, you absolute vegana.

          • 1 month ago
            Anonymous

            Yes I know that you're a troony, can you tell me something I didn't know instead?
            You're literally a low testosterone male if you think that talking shit to eachother and not getting mad or killing eachother over it isn't a sign of high IQ.

          • 1 month ago
            Anonymous

            ugh
            nta but youre no longer on nu/misc/ here, anon
            this board has a slightly higher iq, kek

          • 1 month ago
            Anonymous

            >obsessed with /misc/
            moronic troony, every /misc/ post is just muttmerican news, why would I be posting there as a white european?

          • 1 month ago
            Anonymous

            with pol
            >prosneeds to use every /misc/ idiom he manages to fit in his post
            behold and despair

          • 1 month ago
            Anonymous

            >/misc/ idiom is when I'm a troony and get called out for being one

          • 1 month ago
            Anonymous

            duh.
            calling people trannies cuz you get btfod is a nu-pol idiom.
            here you call people trannies bc they are actual trannies. nuances. youre gonna have to learn em.

          • 1 month ago
            Anonymous

            https://xmake.io/#/guide/syntax_description?id=syntax-description

  8. 1 month ago
    Anonymous

    >minimizes dependencies
    The language features themselves have circular dependencies on each other: you can't use RAII or most of the standard library without exceptions, and exceptions require RAII.

    std::initializer_list is technically a standard library class, yet it has built-in support in the language (similar to Java String).

    I could go on, but you get the idea.

    • 1 month ago
      Anonymous

      >nooo not dae heckin exceptions
      if you weren't a moronic nocodeshitter you wouldn't have a problem writing your own specialized solution for specialized problem where
      >NOOOO, NOT DAE EXCEPTIONS, NO EXCEPTIONS HERE SIR!!!

    • 1 month ago
      Anonymous

      I think he's talking about library dependencies, what are you talking about? Also everyone knows the correct way to use c++ is to restrict yourself to a small subset of the language where you're effectively programming C with some niceties. You can perfectly write regular C and then add stuff like templates to it occasionally.

      • 1 month ago
        Anonymous

        >Also everyone knows the correct way to use c++ is to restrict yourself to a small subset of the language where you're effectively programming C with some niceties
        where does this low IQ subhuman monkey take originate from? Provide source.
        t. actual C++ programmer

        • 1 month ago
          Anonymous

          >where does this low IQ subhuman monkey take originate from?
          Most features in C++ are an ABI nightmare. Even simple features like RVO can bite you in the ass in really unexpected ways. Did you know the ternary operator fricks RVO in the ass? Beyond that it's a matter of overabstraction being a surefire way to enshitify your programs, with the consensus being that even templates should be used VERY sparingly.

          >Provide source.
          This is not even controversial in the least. Read and listen to what people who actually do systems programming say. There is a reason game devs spin their own standard libraries and don't use the STL or exceptions. Using constructors well takes significan't effort, at least if you want to do it well, since you have to manage a bunch of constructors for it to work properly.

          I've been programming C++ for 15 years.

        • 1 month ago
          Anonymous

          from every major company that does anything serious with c++ on their own, all the abstract c++philes migrated to other very-high-level languages already

          • 1 month ago
            Anonymous

            Care to tell me when your Rust version of V8 will be implemented? Dying to see.

          • 1 month ago
            Anonymous

            There is a zig version :3

          • 1 month ago
            Anonymous

            there isn't, have a nice day nocodeshitter

          • 1 month ago
            Anonymous

            Why so angry :<
            Whatever happened, I hope, tomorrow will be a better day for you 🙂

          • 1 month ago
            Anonymous

            my day will be better when you have a nice day, your kind shouldn't exist on this planet

          • 1 month ago
            Anonymous

            this degenerate cringe-tier anime is worse than gore, you have to be literally mentally challenged or 3 years old

        • 1 month ago
          Anonymous

          >where does this low IQ subhuman monkey take originate from? Provide source.
          Ciniles that tried to migrate to C++ but got filtered hard by high level concepts came up with the idea of "C with classes" as a defense mechanism.

          • 1 month ago
            Anonymous

            Interesting, I just use all features as I need them, I love wrapping shitty cnile libraries and making them easy to use by hiding all irrelevant error checking for errors that never happen

          • 1 month ago
            Anonymous

            The "right way" is to use ever evolving currently recommended set of good practices. There is plenty of old deprecated features and practiced that you should avoid for one reason or another. But sticking to what what recommended at the moment you've started project is fine to as to not have to constantly refactor long standing projects. But the absolute worst people do is newcomers that learn the language from various random guides from different time, and just mix and match whatever random crap they think they understand and create a sucking Frankenstein out of this already confusing language.

          • 1 month ago
            Anonymous

            are you talking about all those irrelevant books that teach pre C++11 shit?

            Reminder that pre C++11 shit is just C with classes and the way it sounds is equal in how shit it is in practise.

  9. 1 month ago
    Anonymous

    >I realized, the whole fricking boon of C++ over Rust is the fact that it MINIMIZES dependencies
    This is just a byproduct of there being no package manager for C++.

    Personally I am very against package managers, even for scripting languages. I think it invariably brings software quality down. At least Rust has half decent libraries though, something like node or python really suffers from these issues.

    Giving the average moron an easy way to distribute their trash has done more damage to the software landscape than anything else.

    • 1 month ago
      Anonymous

      portage is the only good package manager and that's what I use to install my libraries (and document how they should be installed for subhumans who don't use gentoo)

    • 1 month ago
      Anonymous

      >This is just a byproduct of there being no package manager for C++.
      Xmake is a package manager for c++.

      • 1 month ago
        Anonymous

        https://xmake.io/#/guide/syntax_description?id=syntax-description

        garbage, still using make

  10. 1 month ago
    Anonymous

    C++ doesn't minimize dependencies. The only difference is that Rust keeps its packages small, which makes them easy to understand.
    While in C++, "one" dependency is a million lines of code. i. e. almost any boost library has a transitive dependency on another boost library.
    Pull a small boost library and you get the whole collective. The other issue is that C++ libraries are often pervasive. It's almost a guarantee that in a real project you'll have 10 different string types with inconsistent error handling

    • 1 month ago
      Anonymous

      You can simply not depend on boost. There are so many libraries that do same thing that you literally never need to use boost.

      • 1 month ago
        Anonymous

        And what should I use instead of QT?

        • 1 month ago
          Anonymous

          write tools for commandline, noone needs GUI

          And you can build for different targets? How do you switch build configs?

          >build configs
          top of my Makefile contains
          include configure.mk

          Which is autogenerated using ./configure, if targets were vastly different, lets say I wanted to build for embedded system that has no OS, I'd have ./configure.specialsnowflaketarget, but anyway, your stunted problem solving skills aren't my business.

          • 1 month ago
            Anonymous

            Kinda messy i guess but doesn't sound too bad
            Still comfy to just cargo run

  11. 1 month ago
    Anonymous

    C++ doesn't minimize dependencies. It's build system simply sucks ass so much that adding dependencies is often tricky, unreliable and pain to deal with in general. That's why people are forced to not add too many of them and keep reinventing the wheel instead.
    If C++ actually followed Unix philosophy, with dependencies being modular and easily compostable, you'd also seen a lot of smaller modules that focus on doing one thing and doing it right. C++ ecosystem is just too fractured and non-portable for anything like that to be feasible, so instead you end up with everything being bloated and hard to interop. Just look how fricking huge BOOST is.

    • 1 month ago
      Anonymous

      > It's build system simply sucks ass so much that adding dependencies is often tricky
      bullshit
      All you need to do to add a new dependency is to write add_requires("libraryname") in xmake.lua

      see https://xmake.io/#/guide/project_examples?id=using-the-c-library

      • 1 month ago
        Anonymous

        >add_requires
        worthless magic incantation

  12. 1 month ago
    Anonymous

    C++ noob here
    Is there any alternative to CMake?

    • 1 month ago
      Anonymous

      No

      • 1 month ago
        Anonymous

        Yeah, Meson

        There's 100 alternatives and they all suck.
        Just use a better language that lets you do useful things without forcing you to research build systems.
        Your time is worth more than that.

        rust and cargo

        Fricking hell...

        • 1 month ago
          Anonymous

          i stopped using c++ as my main language many years ago, as did many other smart people. it's in a death spiral hence why i switched to rust then and only use c++ because i have to for one type of project

          • 1 month ago
            Anonymous

            Literally me

            This is passable for simple projects that fit into how meson is structured.
            However GNU Make existed for you all along and all you have to do is learn it.
            [...]
            >death spiral
            C++ has been literally improving all this time while Rust is as shit to use as it was 10 years ago

            >C++ has been literally improving all this time
            That's true that they are trying, but committee is completely incapable of designing good features nor they have balls to do any significant change. Things like destructive moves, removing header files, adding good convenient module system, improving handling of platforms without unwinding/heap should be their top priority, but look what are they doing. Nothing of value.

          • 1 month ago
            Anonymous

            They added enough useful features as a white man that C++ has been a joy to program in lately, sorry to tell you but your brown skin is not my problem.

          • 1 month ago
            Anonymous

            I'm not an American, I have only seen a non-white person once in my life.

    • 1 month ago
      Anonymous

      Yeah, Meson

      • 1 month ago
        Anonymous

        This is passable for simple projects that fit into how meson is structured.
        However GNU Make existed for you all along and all you have to do is learn it.

        i stopped using c++ as my main language many years ago, as did many other smart people. it's in a death spiral hence why i switched to rust then and only use c++ because i have to for one type of project

        >death spiral
        C++ has been literally improving all this time while Rust is as shit to use as it was 10 years ago

        • 1 month ago
          Anonymous

          >C++ has been literally improving all this time
          very false
          >Rust is as shit to use as it was 10 years ago
          objectively a lie

        • 1 month ago
          Anonymous

          If it's closer to perfection that is maven then it's automatically superior to your obsolete Black personlicious shellscripts

    • 1 month ago
      Anonymous

      There's 100 alternatives and they all suck.
      Just use a better language that lets you do useful things without forcing you to research build systems.
      Your time is worth more than that.

      • 1 month ago
        Anonymous

        Makefile is as bad as your brain.
        t. exceptionally gifted

    • 1 month ago
      Anonymous

      rust and cargo

    • 1 month ago
      Anonymous

      yes, but nobody uses those so its better to just use cmake so adding dpendencies isnt hell

  13. 1 month ago
    Anonymous

    I like CMake

  14. 1 month ago
    Anonymous

    NI

    • 1 month ago
      Anonymous

      I haven't used Meson, but I've seen a lot of C++ devs shitting on it. On this basis alone, I assume it might be pretty good.

      • 1 month ago
        Anonymous

        It's a tool for somewhere between cmake fizzbuzz and bazel autism which is perfect for a small team like my own

  15. 1 month ago
    Anonymous

    who ask

    • 1 month ago
      Anonymous

      I'm curious. I cant decide between c++ and rust and which one is more desired by employers in the long run. It's fricking me up. C++ veterans keep shitting on it but C and C++ are #2 and #3 on the TIOBE index.

      Idk what the frick to learn.

      • 1 month ago
        Anonymous

        just learn C++, rust share some intricacies with C++, if you decide to learn rust later on, you will do it quickly with all the C/C++ knowledge

        • 1 month ago
          Anonymous

          also one more thing, I learned all rust core concepts in a week, for example, rust borrow checker and ownership model, it instantly made sense to me, if I had not C/C++ knowledge, that would take some time to understand

Your email address will not be published. Required fields are marked *