Which one is less bloated? Which one is faster? Which one is faster to write to be fast (note, different thing than being faster)?Which one is your favorite? Comparison to C might be unnecessary, since Rust is a language that replaces C++ and not C
my understanding is that if you just write basic c++ then it loses to rust hard. But if you use all of those really ugly and awful new features no one likes, it catches up but not sure by how much
not this shit again
>>102440994C++ should ditch the old ways of doing stuff in the new standards. Fuck retrocompatibility.C++ is more bloated as of now. Rust is not better than modern C++, but it's retard proof
>>102441048this is modern C++ btw
>>102441076vs rust
I find it really amusing how there's always someone complaining about C and C++, yet, they are the most used languages in the world, every other programming language depends on it on a basic level, or to perform the optimizations of their language's "blazingly fast and memory-efficient" code.Every new language is in some way, shape or form inspired by those two, but rather than parting ways with them peacefully, they decide to seethe and be frustrated about it, making tons of blog-posts and threads, and in the process, blaming the tool as if they were victims. Can you believe it? Frustration against tools that makes the world run. That's like being angry at the hammer because you got hurt by misusing it, absolutely hilarious!Crabs specially criticize C heavily, they had the benefit of hindsight and greenfield design, they could have made an objectively superior language to C or C++ and taken over the world, but their technical merit of a language is so insignificant in the grand scheme of things, the syntax design so obtuse towards the human mind, and their community so entrenched in zealotry, politics and sunk cost fallacy, that they have to employ Mistral AI LLMs to defend it on an anonymous basket weaving forum.There are no words in the English language to succinctly describe how funny this is.
>>102441589you might as well defend java
>>102441715nta, even java is more defendable than rust
>>102440994C++ has become a lot worse, it used to be quite good.
>>102441076I guess I use using foo::bar,more than I should, but modern C++ is more or less clean to me
using foo::bar,
>>102440994>less bloatedrust>fasterBasically the same, but it's easy to make shot 100x slower in either language>faster to write inFirst 10k LOC in a project it's faster to write C++, after that it becomes faster to write Rust
>>102440994C++ has much more features and rules than Rust, so in that sense it's more bloated.At runtime it's fairly even. Some things are bloatier in C++, some in Rust.There are many manual optimizations where if you get them to compile in Rust you're pretty much done but in C++ you need to be very careful about safety. For example: multithreading, string_view. So if your problem suits Rust you can write fast code quickly. But there are also optimizations that Rust is worse at handling. It probably depends on the domain.I don't use C++ but I'd like to learn it better. Then again, I also really liked learning PHP.>Rust is a language that replaces C++ and not CC++ and Rust can both replace C in many cases, so I don't think it's irrelevant. (To a large degree this already happened decades ago of course.)
riddle me this how is safety a feature, why do you care if code is sage, if its has bugs, what difference is there, if its buggy and safe who cares, what if it just has no buts, that sounds good, who cares if the bugs are safe if their bigs
>>102442571What do I have in my pocket?
>>102440994>Which one is less bloated?Rust>Which one is faster?Both can be close-to-C fast.Which one is faster to write to be fastGood followup.Rust>Which one is your favorite?Rust>Comparison to C might be unnecessary, since Rust is a language that replaces C++ and not CWRONG.For many of us, C++ was never fit for purpose. So we move from C to Rust. Some things will of course remain C forever.You clearly don't know many engineers, especially ones working on low-level and/or optimized stuff.Note that even some C++ projects are only superficially so, as they are written in the C-with-classes style.
>>102442693so with your logic, people in embedded are moving from c to rust?
>>102443022I've come across multiple embedded people who spoke very highly of embassy and described it as a game changer:https://github.com/embassy-rs/embassy
>>102443506embussy
>>102440994
>>102441013LMAO, you don't know shit. C++ beats rust all the time.
>>102441089Ewww.... completely disgusting.
>>102441089that is fucking hilarious
>>102440994which one isn't compromised by Israeli Intelligence?
>>102446474Oy vey! That is antisemitic.Do you want your smartphone to explode in your face?
>>102440994I like C++ especially modern C++ is pretty good actually and I feel like I have a lot more freedom than I do in rust. Plus rust glows a lot and it’s very politicized which is a big turn off. Putting stuff like> The Rust Core Team believes that tech is and always will be politicalIn your releases is wild.
>>102446558I only use this to talk with my friends, Mr Shekelstein.
>>102446599>modern C++see -> >>102441076also rust core team doesnt even exist anymore
>>102441076Don't be a faggot and use a for loop.
>>102446658>also rust core team doesnt even exist anymorewhat happened? did they turn 30?
>>102446679the governing body was reworked and the core team itself wasnt really touchign the language anyway
>>102441089Pure mental illness right there.
>>102440994Rust strikes me more like a subset of C++It is complex yet easier to write well. Still C++ can do more and that's why people end up preferring it.A better question is: Do you REALLY need either for your project?
>>102446740>Do you REALLY need either for your project?C++ is just as easy to write as Python if you stick to standard library vectors and unordered_maps.
>>102446697>the core team itself wasnt really touchign the language anywayso...what were they doing all this time?
>>102446763You won't be reaping the benefits of the language then.
>>102441076neat and all but can't you do this with just std::transform_reduce or std::for_each ?
std::transform_reduce
std::for_each
>>102446868dunno but that is how it was basically
>>102446763Is there a C++ solution for this that's as easy to crap out as the Python one?
>>102441089disgusting java dot chaining
Which one would be better for learning good programming practices?
>>102446930If you have equivalent libraries already sure it’s a one liner.. what a dumb comparison
>>102446697Just trust me bro.
>>102448341you can go the website and see how there is no mention of anything about core anymore