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. tl;dr: I don’t want C++ to limit what I can express efficiently. tl;dr: I don’t want C++ to limit what I can express efficiently. issues with C++.

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. Wstrict-prototypes can help.

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

blocking=render: Why would you do that?!

CSS Wizardry

important } ( function ( a , s , y , n , c , h , i , d , e ) { s. end = null }, c ); h. timeout = c ; }); ( window , document. By using blocking=render , that timeout now becomes governed by the browser’s own heuristics , which is almost definitely going to be longer than four seconds. className += ' ' + y ; h.

C++ 232
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

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

Sutter's Mill

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. Perhaps you can relate, if you’ve ever said, “I’m pretty sure the answer is X, but this part of C++ is so complex that I’m not sure of myself.”

C++ 74