TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Goodbye, Rust. I wish you success but I'm back to C++ (sorry, it is a rant)

265 pointsby veidelis6 months ago

31 comments

ksec6 months ago
&gt;Rust is a superior technology to C++....it disciplines you to do the things the right way.<p>&gt;But Rust is better in the same way that Betamax was better than VHS, Mastodon is better than Twitter, Dvorak keyboards are better than QWERTY, Esperanto is better than English and Lua is better than Javascript: in communication technologies, adoption and critical mass are 90% of the game and the other 10% are bikeshedding, at best. And programming languages are a communication technology, they&#x27;re means to communicate ideas to other programmers.<p>Love this. May be I should repost this every time there is an argument about Rust. And to expand on that, in communication technology, the one easier to use is going to get wider spread &#x2F; adoption. And while there were never much hype around Go, I think it is a very good example.<p>But a lot of Rust [1] ideas are now being polished and used elsewhere like Swift. I am sure we will continue to be experimented in other languages and real world to test whether the trade off is worthwhile.<p>[1] ( ok may be Cyclone or something earlier in case someone wants to nitpick )
评论 #42272299 未加载
评论 #42270240 未加载
评论 #42270170 未加载
评论 #42270593 未加载
评论 #42279239 未加载
评论 #42278911 未加载
评论 #42274574 未加载
评论 #42270650 未加载
devnullbrain6 months ago
This maps to my own experience in the UK. Every time I search for a C++ job, I inevitably end up discussing my fondness of Rust but inability to use it at work. The interviewer will typically reply mentioning discussions of using it for greenfield projects - but I know it won&#x27;t result in me writing anything of substance.<p>2 years ago, seeing a somewhat applicable Rust job-description made me 90% certain it was about cryptocurrency fintech. Now, a few defence roles are creeping in, presumably due to the US government distancing itself from unsafe languages. Neither are fields I really want to work in. And what a shame it would be if such a great language was relegated to being an Ada alternative.<p>I try to keep on top of Rust, - it&#x27;s the most likely candidate to put me out of a job - but it will be a long time before there are no more legacy C++ codebases. Being the COBOL guy of the future doesn&#x27;t sound too bad.
评论 #42269292 未加载
评论 #42269603 未加载
评论 #42269350 未加载
评论 #42269220 未加载
评论 #42269183 未加载
评论 #42269501 未加载
评论 #42269400 未加载
causal6 months ago
This is kind of silly to me. You don&#x27;t have to break up with Rust to use C++.<p>Look for opportunities to adopt Rust, especially greenfield projects. We don&#x27;t have to eliminate all C++ codebases first.
评论 #42269298 未加载
评论 #42269248 未加载
评论 #42269373 未加载
评论 #42269706 未加载
评论 #42269226 未加载
npalli6 months ago
I wonder how much of this love of Rust stems from the fact that he actually didn&#x27;t have a full time job programming in Rust. When one starts off doing hobby projects in Rust the experience can be very pleasant thanks to cargo (btw, it is a bit puzzling that vcpkg is not adopted more broadly in C++ land since the gap from cargo is not that bad).<p>However, once you get a job writing programs and find out you need to quickly prototype, refactor the code or make changes under a strict deadline, not good, it quite literally is the worst language to make large scale updates beating even C++. This is not counting the other memory safe languages (golang, C#, Java, Kotlin, etc..) which is where you should first target.
评论 #42269847 未加载
评论 #42270020 未加载
评论 #42269819 未加载
评论 #42270261 未加载
评论 #42269957 未加载
评论 #42269768 未加载
评论 #42269833 未加载
评论 #42269960 未加载
评论 #42272128 未加载
评论 #42269877 未加载
fsckboy6 months ago
I like C. I learned it a long time ago, it was one of my favorite languages to learn, and I&#x27;m comfortable using it.<p>I&#x27;m open to learning new languages, but learning new languages from people who talking nothing but trash about C does not inspire confidence. Nobody who loves unix says &quot;you need to try Windows.&quot; At the same time, Windows lovers trash Unix. So the two schools remain separate.<p>if you want to sell Rust, find people who like C who will recommend Rust and shut everybody else up, then people who like C will listen.<p>edit: thought of one, the soles of shoes
评论 #42270466 未加载
catlifeonmars6 months ago
IMO choice of language is a design decision. Weighing the pros and cons of a particular language without specifying the use case and project requirements seems ass backwards to me.<p>To illustrate, consider if we rewrite the title: “Goodbye, Phillips head screwdrivers, I wish you success, but I’m back to flat heads”. Seems silly, doesn’t it?<p>To be fair though, I imagine this article is written as a reaction to Rust proponents making similar arguments.
评论 #42269593 未加载
评论 #42279095 未加载
评论 #42279301 未加载
评论 #42271013 未加载
评论 #42272862 未加载
azangru6 months ago
&gt; But Rust is better in the same way that Betamax was better than VHS, Mastodon is better than Twitter, Dvorak keyboards are better than QWERTY, Esperanto is better than English and Lua is better than Javascript<p>Esperanto is certainly not better than English; and I really doubt Lua is better than Javascript.
评论 #42269411 未加载
评论 #42269517 未加载
评论 #42269419 未加载
评论 #42272385 未加载
评论 #42269749 未加载
eggy6 months ago
I like the Betamax vs. VHS, X vs. Mastodon bit, because technically if you want a safe, high-integrity programming language today, you would choose SPARK2014, the Ada language that has a legacy of mission-critical real-world software projects for decades, proven verification tools and and it is easy to read and write. Rust gained favor with the tech crowd, while SPARK was being used in avionics, aerospace, and other high-assurance software. Why would you choose Rust a relatively new, unproven language (cite some mission critical software that has been running for a decade written in Rust besides a browser) for crypto, aerospace, AWS, and other critical areas? Programming language adoption is just as much about fashion as it is about a true pros&#x2F;cons in tech.
评论 #42270299 未加载
srj6 months ago
Am I the only one who loves writing C++? I&#x27;ve used some newer languages like Kotlin, and that&#x27;s good too, but I always come back to C++. I think a lot of the criticism is from the old way it was written, before C++11&#x2F;17.
评论 #42270043 未加载
评论 #42270778 未加载
评论 #42271723 未加载
评论 #42272735 未加载
cedws6 months ago
C and C++ are languages of an era. C++ will be unseated eventually but it will take another decade at the minimum for a new generation of programmers who have used the &#x27;modern&#x27; languages from day one to overthrow the incumbents. Then another few decades to rewrite everything.
评论 #42269456 未加载
评论 #42270751 未加载
评论 #42270199 未加载
评论 #42293896 未加载
评论 #42269481 未加载
jvanderbot6 months ago
The root issue I have with this and many other articles is the false dichotomy around this vs that programming language.<p>I would feel comfortable interviewing for a Rust, C++, job, and probably a C, Pytbon position as well, just because the industry I&#x27;m in might require it.
synergy206 months ago
For me, Rust has a size issue, its std lib after strip is at least 3x as to libstdc++, and Rust is default to statically link to that lib! When you have a few Rust binaries, the storage space adds up quickly, not a good fit for embedded boards where storage is limited(same problems for Go, by the way).<p>Why can&#x27;t Rust have a mode to do what c&#x2F;c++&#x2F;etc doing, that is, a reasonably sized standard library to link to? Yes I&#x27;m aware of &#x27;how to minimize rust size&#x27; and &#x27;prefer-dynamic&#x27;, still comparing to c&#x2F;c++, it is so much worse when storage size is a concern.
评论 #42270845 未加载
评论 #42274732 未加载
评论 #42279473 未加载
评论 #42273761 未加载
tikhonj6 months ago
&quot;Popularity is the only thing that matters, and Rust is not popular enough.&quot;<p>What a fundamentally narrow and depressing point of view.<p>&quot;Nobody gets fired for IBM&quot; should not be an aspirational sentiment!<p>And the top comments take the first part axiomatically and only disagree on how (un)popular Rust is.<p>Lots of ideas and technologies can be useful and successful without becoming massively popular. There&#x27;s a reason we don&#x27;t all eat McDonalds and listen to Pop music.<p>So why shouldn&#x27;t we expect the same from different ways of thinking about and practicing programming? It&#x27;s clearly possible to be productive and effective in &quot;unpopular&quot; languages—I&#x27;ve seen it first-hand with OCaml and Haskell teams, and secondhand with lots of other tech—so why not <i>encourage</i> that? I&#x27;d rather have an industry that values good taste than slavish trend-following, thank you very much.
评论 #42270090 未加载
评论 #42269979 未加载
评论 #42270398 未加载
评论 #42271001 未加载
fny6 months ago
I deeply appreciate the mood, but when the NSA started pushing memory safety and TRACTOR launched, I doubled down.
评论 #42269462 未加载
dmitrygr6 months ago
For personal projects, I use C because it is fun and brings me joy without getting in my way, while Rust brings me pain, and (when i must seek help) derision from the community. Here, I choose fun and joy.<p>For work I use C because that is what all existing non-toy kernels are written in and will continue to be written in until long after i&#x27;ve retired, been buried, and decomposed. Here, i choose what employers want and will pay for.
评论 #42279608 未加载
whatyesaid6 months ago
Rust is slow to develop and prototype in. It&#x27;s good if you&#x27;re a big company not the average Joe.<p>We need a better C++ (&quot;systems&quot;) base language that could have an optional borrow checker or bounded model checker enabled.
评论 #42269392 未加载
评论 #42269305 未加载
评论 #42269304 未加载
评论 #42269503 未加载
评论 #42269287 未加载
评论 #42269733 未加载
评论 #42269425 未加载
评论 #42269851 未加载
astonex6 months ago
Just give me a modern C++ like language with fast compilation, easy to pull in packages, and build tooling. Basically Go with no GC.
评论 #42269296 未加载
评论 #42270435 未加载
评论 #42272596 未加载
kazinator6 months ago
You can make a pointer-based graph structure with cycles in C++ without a fuss. You can decide how the memory managed and implement exactly that with minimal barriers in your way.
评论 #42271095 未加载
PeterWhittaker6 months ago
Another commenter mentioned the NSA and safe languages, which is what prompted our move...<p>...and I have to say, Rust is fantastic. I was reading the O&#x27;Reilly book when I was doing some gnarly three-star C work and I kept thinking that it would likely be far easier and safer in Rust.<p>We&#x27;re now at the point where all new work is Rust and that gnarly, performant AF piece of C that just flies will be replaced with a simpler, safer Rust version.<p>Another commenter mentioned speed of prototyping. That was a concern for me, too, but so far real life has shown me the opposite: prototyping is only slightly slower, mostly because I am having to learn various Crates instead of using system calls and their libc variants I&#x27;ve known for years, but incremental debelopment from proto to poc to mvp to product is faster because there is far less dumb at each step: if it built, it is safe(r) to extend.<p>Maybe it is because so much of what we do is low level high performance system programming, I dunno, but, after 37 years, I may soon have invoked a C compiler for the last time.
tschellenbach6 months ago
come to the land of no drama, no changes and always productive Go :)
评论 #42269711 未加载
评论 #42269949 未加载
评论 #42269559 未加载
评论 #42270052 未加载
AstralStorm5 months ago
About the only remaining issues I personally face is the suspicious lack of plotting libraries, and bit of an insufficiency in maths libraries, especially for higher level operations than just linear algebra.<p>There&#x27;s no scipy, numpy and matplotlib equivalent yet. Both C and C++ do better in this particular area...<p>Peroxide is a good start, but it cheats much like scipy by calling into Fortran, while having some very pecuilar APIs thanks to that.
rezmason6 months ago
I don&#x27;t think the goal of Rust has to be to unseat C++, just like the goal of Macs is no longer to unseat Windows. Here are some nobler goals:<p>* be a language that users and non-users believe is better<p>* be a language that people learn things in before entering the industry<p>* be a language for solving important problems, if not every problem<p>* if a billionaire buys C++ and makes it terrible, be an alternative<p>Edit: unrelated— I <i>really</i> struggle with writing lists on HN. :-(
评论 #42269641 未加载
dysoco6 months ago
&gt; The majority of the Rust programming jobs asks primarily for deep knowledge in specialized technologies: cryptocurrencies&#x2F;blockchain, finance trading, machine learning&#x2F;data analysis, obscure network protocols, cybersecurity, etc.<p>I agree, but that&#x27;s a lot of fields and C and C++ jobs ask for the same: finance trading, videogames, machine learning, electronics, legacy protocols, etc. So I don&#x27;t see how this is unique to Rust but doesn&#x27;t apply to C++.<p>Yeah I see very few and far between job offers for Rust but I can say the same for C or C++, and new companies are using Rust not the former languages. Maybe it&#x27;s easier in the USA. Usually C or C++ jobs ask for embedded knowledge, whereas Rust ones don&#x27;t.
评论 #42269320 未加载
librasteve6 months ago
goodbye raku, it’s back to perl
ribadeo6 months ago
Meh, I&#x27;ll take his closing advice. If this were written in 2018 i might agree. Rust is currently exploding, however. C++ is footgun central, which is the opposite of typesafe. Go doesn&#x27;t care about typesafety, and had it&#x27;s heydey already. Rust is eating everything in 2024. People have begun to appreciate an approach to maintaining comprehensive typesafety from the db to user input. Rust is capable of holding much info about what it specifies, and is basically lossless as a specification. Rust is already eating the world, it just took a couple of decades of committee bikeshedding to achieve it. People are starting to understand why typesafety matters, as they flail around in bug soup.
zb36 months ago
If Rust was really that superior, would companies using it not have a competitive advantage in the market?
评论 #42269401 未加载
评论 #42269230 未加载
评论 #42269294 未加载
评论 #42269277 未加载
评论 #42269311 未加载
评论 #42269265 未加载
评论 #42269263 未加载
jksmith6 months ago
&quot;There is an huge junkyard of technologies that failed to gain broad acceptance, many of them far more revolutionary than Rust (e.g.: Lisp, Smalltalk). I don&#x27;t see why those technologies&#x27; story can be avoided.&quot;<p>Yeah, but I think more importantly much of the value that Rust brings would have been available 30 years ago if language development&#x2F;selection wasn&#x27;t so siloed, full of biases, and driven by (often undeserved) popularity.
评论 #42275110 未加载
skobes6 months ago
&gt; And the problem with Rust is that it just doesn&#x27;t have critical mass and, frankly, I don&#x27;t think it will ever have.<p>Isn&#x27;t this premature? Rust is still pretty new.
评论 #42269159 未加载
评论 #42269191 未加载
评论 #42269158 未加载
joshdavham6 months ago
&gt; the problem with Rust is that it just doesn&#x27;t have critical mass and, frankly, I don&#x27;t think it will ever have<p>Let’s check back in a couple of years!
评论 #42270406 未加载
sedatk6 months ago
TL;DR: “Rust isn’t popular enough”
readthenotes16 months ago
&quot;Dvorak keyboards are better than QWERTY,&quot;<p>As I understand it, the advantage of Dvorak was that in the study that promoted it, the Dvorak people got retraining and the qwerty people were taken as is.<p>Once both sets were sent through training, the Dvorak advantage disappeared