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.

Linus Torvalds on C++

26 pointsby support_ribbonsabout 9 years ago

10 comments

snhkickerabout 9 years ago
This was written when someone just said to you<p>&gt; When I first looked at Git source code two things struck me as odd: &gt; 1. Pure C as opposed to C++. No idea why. Please don&#x27;t talk about portability, &gt; it&#x27;s BS.<p>no reason to rage when some tells you to change your whole project because he doesn&#x27;t like your choices you can ignore him but sometimes you don&#x27;t (he should have skipped the email), This isn&#x27;t C++ bashing more than just being angry someone told you change your design because C isn&#x27;t easy to handle strings with(Said in the emails).This is just someone getting angry because you are making him look guilty(in his mind) for not making a different decision when he clearly doesn&#x27;t even need to do this work and if you don&#x27;t like his work don&#x27;t use it man, Sometimes people get angry for small reasons we all do but some get angry more than others but doesn&#x27;t mean the angry bashing is his opinion or what reality is. C&#x2F;C++ or whatever isn&#x27;t really compared here.
reacwebabout 9 years ago
Linus wanted to compile the kernel in C++ in 1993, but there were bugs in the compiler and performance issues (related to exceptions if I remember well). He has switched back to C in 0.99.13: <a href="https:&#x2F;&#x2F;github.com&#x2F;kernelslacker&#x2F;linux-historic-scripts&#x2F;blob&#x2F;master&#x2F;changelogs&#x2F;0.99.13.txt" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kernelslacker&#x2F;linux-historic-scripts&#x2F;blob...</a><p>I think his hate of C++ comes from this bad experience.
peterevansabout 9 years ago
Well... not to be a C++ apologist, but bear in mind that these comments were made by Linus back in 2007 and 2004. His views may not have changed, but C++ has certainly changed since then.
评论 #11721618 未加载
评论 #11721735 未加载
评论 #11721587 未加载
bhaavanabout 9 years ago
With all due respect to Linus, this mail chain is just unreasoned argument. He vaguely mentions poor memory management and nothing else which is faulty in C++. It would have been helpful to reason out his choices then go on tirade of slang.
评论 #11721771 未加载
onestoneabout 9 years ago
This is 9 years old. Linus has been happily writing C++ for some time now. For example: <a href="https:&#x2F;&#x2F;github.com&#x2F;torvalds&#x2F;subsurface&#x2F;commit&#x2F;56ed3f1c6119b9ac86f602455d54318623640056" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;torvalds&#x2F;subsurface&#x2F;commit&#x2F;56ed3f1c6119b9...</a>
bovermyerabout 9 years ago
Rants like this can be seen as good examples of behavior to discourage. Linus has several positive traits, but compassion and humility are not among them.<p>Generally speaking, we should not give someone a pass on poor behavior just because they&#x27;re technically talented.
gpderettaabout 9 years ago
When Linus speaks, you shut up an listen; he is an incredibly competent engineer and is opinion is always worth something.<p>Then again, when Linus rants, you take out the popcorns, sit on the side and just enjoy the show.
评论 #11722046 未加载
Zelmorabout 9 years ago
I have been looking for an up to date website framework like werc (on which cat-v runs) for a personal site, blog, photo gallery, but could not find anything. I am seriously bothered by the amount of bloat that is present in self-hosting projects, qhere the latest and greatest flashy javascript libabry needs to be a baseline feature, and you definitely will need a non-relational database just to be able to host a bloody blog&#x2F;site.<p>I just want something like werc but in active development...
评论 #11721574 未加载
stuaxoabout 9 years ago
This never gets old.
democracyabout 9 years ago
&gt;&gt; In fact, in Linux we did try C++ once already, back in 1992.<p>Wow, I didn&#x27;t know they had computers back then!!!