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.

Ask HN: Is C++ making a comeback due to a slowdown in CPU improvements?

2 pointsby tsenkovabout 9 years ago

2 comments

jbandela1about 9 years ago
I would say not really. In the late 90&#x27;s and early 2000&#x27;s, there was a big push toward managed languages because the typical desktop had CPU to spare compared with what people did with it.<p>Since then, two things have happened. First, smart phones and other mobile devices placed a premium on battery life, and the CPU can no longer be as power hungry as it is on the desktop.The best way to conserve power is to &quot;race to sleep&quot;, finish what you are doing quickly so the cpu can go back to sleep. Efficient languages such as this help in this regard.<p>Next, more and more code is being run in datacenters on servers that serve thousands or millions of users. Using a more efficient language like C++ means you can have more users on a single box because you efficiently use CPU and memory. This in turn reduces your equipment costs, cooling and electricity costs, and possibly network costs since you have fewer machines doing more stuff.<p>Concurrent with these trends, C++11&#x2F;C++14 have greatly improved the usability of the language. With Modern C++11&#x2F;14, programmers can often be just as productive (if not more so) as they would be using a managed language, and still get the performance benefits of C++.<p>All these factors have combined to cause a resurgence in interest in C++.
Davidbrczabout 9 years ago
C++ has been well and alive since the 80&#x27;, although it was a bit sleepy during the years 2000.