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.

What if anything have we learned from C++? [video]

46 pointsby rdudekulalmost 10 years ago

10 comments

yeurekaalmost 10 years ago
I started programming in C++ in the late 90&#x27;s and I used to be confused about what features to use and found it easy to make a mess.<p>But I am happy I stuck with it as it opened up opportunities to work in a lot of different and interesting domains like games, mobile apps, interactive art installations, trading systems and video and film processing apps. Also, most of my code is platform independent and very efficient.<p>There are a few interesting alternatives at the moment, namely Rust and Swift, but for now C++ does everything I want and since C++11 it really feels like a much more modern language.
评论 #9941024 未加载
toolslivealmost 10 years ago
&quot;most researchers prefer an inefficient language because it&#x27;s easier to get a paper to improve an inefficient language... I&#x27;ve seen dozens of papers on getting lisp almost as fast as C++, on getting Java almost as fast as C++. You can&#x27;t do that with C++&quot;.<p>A paper from the man himself on getting a type switch in C++ almost as fast as what you get in OCaml. <a href="http:&#x2F;&#x2F;www.stroustrup.com&#x2F;OOPSLA-typeswitch-draft.pdf" rel="nofollow">http:&#x2F;&#x2F;www.stroustrup.com&#x2F;OOPSLA-typeswitch-draft.pdf</a><p>Lot&#x27;s of other places where he&#x27;s omitting things because he wants to plug C++.<p>Also, he also seems to be confused between &quot;an efficient language&quot; and &quot;a language that allows you to create something that runs efficiently&quot;.
评论 #9940948 未加载
realharoalmost 10 years ago
I really wish there was a &quot;syntactic-sugar-on-top-of-C++&quot; language that would compile down to C++ and have 100% compatibility with the existing C++ ecosystem (so that you can just directly use a class from any C++ library).<p>Something like TypeScript is to JavaScript, or like Kotlin is to Java. Would make the experience much nicer without having to wait on the slow C++ standardization process or deal with all the backwards compatibility baggage from the past (to a degree).
评论 #9940972 未加载
评论 #9941037 未加载
评论 #9941172 未加载
评论 #9943882 未加载
infradigalmost 10 years ago
After twenty years of using it? That I was wrong, that plain-old C really is better.
评论 #9940696 未加载
评论 #9940989 未加载
评论 #9940753 未加载
评论 #9941131 未加载
评论 #9940733 未加载
frou_dhalmost 10 years ago
Don&#x27;t leave it forever to introduce a proper module system. Textual inclusion and manual header file maintenance is bronze-age programming.
fit2rulealmost 10 years ago
Lua is my C++. If I need speed - I&#x27;ll just write it in C and interface to the Lua environment.
cm2187almost 10 years ago
That introducing kids to programming using C++ will ensure they never want to try again.
评论 #9941036 未加载
评论 #9941545 未加载
taericalmost 10 years ago
This video was more engaging than I was expecting. To the point that I am not sure what I was expecting.<p>There did seem to be too much apologizing for how other people messed up the original idea of C++. Same for patronizing much of the industry. I can&#x27;t claim it was unwarranted, but a lot of patronizing.
hotwatermusicalmost 10 years ago
I still hope someone will do transcript for it. Slides are missing some parts from talk.
louithethridalmost 10 years ago
No matter how elegant things are, the garbage collected, the pointers untoucheable, the libarys all optimized and readymade and the code jit-compiled to get near C - on the day your C ustomer demands that one feature too much - you want to have C ontroll.