5 ms·
"Save the environment, code in C."
by adamnemecek 12y ago
"Save the environment, code in C."
- corysama 12y agoYou are getting downvotes, but energy efficient computation has been a large driver in the recent upsurge in interest in C++.
- adamnemecek 12y agoWait C++ is has been getting more popular? I'm not complaining (I mostly like C++), I guess I just didn't get the memo.
- pjmlp 12y agoLets see. - Symbiam was coded in C++ - GCC moved to C++ - Clang and LLVM are done in C++ - Mac OS X drivers are written in Embedded C++ subset - Windows team is moving the kernel code to be C++ compilable - JPL is moving to C++ - AAA game studios have dropped C around PS3/XBox 360 timeframe - It is the only common language available in all major mobile OS SDKs
- adamnemecek 12y agoI mean I was confused by the word 'recent', which to me means the last 2-3 years.
- pjmlp 12y agoA few items on my list cover your 'recent'. Decision to move Windows to C++ was announced by Herb Sutter in one of his Microsoft talks and the Windows 8 DDK was the first to support C++ in kernel code. JPL going C++ was covered at their CppCon 2014 talk. GCC switched to C++ as implementation language in 2012. In any case, I would say, all languages with native code compilers can be used in relation to energy efficient computation. It is just that C and C++ are the only ones on the radar of developers (and managers) looking for mainstream languages with native compilers.
- adamnemecek 12y agoTrue. Facebook has also been doubling down on C++ development it seems.
- pjmlp 12y agoThere is a talk from Andrei Alexandrescu at Going Native 2013 where he mentions one of Facebook KPIs is request per watt.
- pjmlp 12y ago"Save the environment. Make black hat hackers, anti-virus tool vendors jobless. Code in Ada."
- johan_larson 12y agoAnd run it on OS/370.
- johan_larson 12y agoThere's a lot to be said for keeping things as simple as possible. Although what qualifies as simple varies from application to application. I was doing some preliminary analysis for a small project recently, and considering various frameworks and tools. Eventually I realized I could implement what was needed using four JSPs producing static html, with a bit of styling in CSS. No AOP, no injection framework, no JavaScript. And no explicit differentiation between device types. The resulting application will start up quickly -- which is important when running in a PaaS environment -- and should work on any browser, including weird old stuff like Lynx. Less butterfly. More rat.