Remove c
article thumbnail

C++ safety, in context

Sutter's Mill

To talk about C++’s current safety problems and solutions well, I need to include the context of the broad landscape of security and safety threats facing all software. Many of the most damaging recent security breaches happened to code written in MSLs (e.g., tl;dr: I don’t want C++ to limit what I can express efficiently.

C++ 141
article thumbnail

SKP's Java/Java EE Gotchas: Clash of the Titans, C++ vs. Java!

DZone

The legacy languages — be it ASM or C still rule in terms of performance. But these are definitely ruled out for enterprise applications due to the complexity in development, maintainability, need for object orientation, and interoperability. C++ SOLUTION (Will Be Uploaded Later). These include Python, PHP, Perl, and Ruby.

Java 214
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

article thumbnail

f() vs f(void) in C vs C++

Nick Desaulniers

Prefer f(void) in C to potentially save a 1B instruction per function call when targeting x86_64 as a micro-optimization. Doesn’t matter for C++. While messing around with some C code in godbolt Compiler Explorer , I kept noticing a particular funny case. For example, the following C code: 1. The Problem.

C++ 111
article thumbnail

Trip report: Winter ISO C++ standards meeting (Prague)

Sutter's Mill

A few minutes ago, the ISO C++ committee completed its final meeting of C++20 in Prague, Czech Republic. ISO C++ committee in Prague, on the occasion of completing C++20 (February 2020) C++20 is done! Per our published C++20 schedule , we finished technical work on C++20 at this meeting.

C++ 98
article thumbnail

Reader Q&A: What’s the best way to pass an istream parameter?

Sutter's Mill

Consider both correctness and usability convenience for calling code. We can hopefully do it even more simply and elegantly in C++26/29. Pre-C++11 answer I recently received this question in email from my friend Christopher Nelson. So, before reading further: What would be your answer? OK, have you got an answer in mind?

C++ 74
article thumbnail

Draft FAQ: Why does the C++ standard ship every three years?

Sutter's Mill

More about that in the post-meeting trip report after the meeting is over… FAQs (As of pre-Cologne, July 2019) There are bugs in the standard, so should we delay C++20? If we had just another meeting or two, we could add <feature> which is almost ready, so should we delay C++20? Of course, and no. Of course, and no.

C++ 98
article thumbnail

Can Language Models Replace Compilers?

O'Reilly

Kevlin Henney and I recently discussed whether automated code generation, using some future version of GitHub Copilot or the like, could ever replace higher-level languages. As coding assistants become more accurate, it seems likely to assume that they will eventually stop being “assistants” and take over the job of writing code.