Remove c
article thumbnail

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

DZone

This begins not only in designing the algorithm or coming out with efficient and robust architecture but right onto the choice of programming language. The legacy languages — be it ASM or C still rule in terms of performance. There were languages I briefly read about, including other performance comparisons on the internet.

Java 207
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++ 139
Insiders

Sign Up for our Newsletter

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

Trending Sources

article thumbnail

Faster remainders when the divisor is a constant: beating compilers and libdivide

Daniel Lemire

I believe that all optimizing C/C++ compilers know how to pull this trick and it is generally beneficial irrespective of the processor’s architecture. In concrete terms, here is the C code to compute the remainder of the division by some fixed divisor d : uint32_t d =. ; // your divisor > 0. if ( ( i % 3 ) = = 0 ).

C++ 279
article thumbnail

cppfront: Spring update

Sutter's Mill

This update covers Acknowledgments, and highlights of what’s new in the compiler and language since last time, including: simple, mathematically safe, and efficient chained comparisons named break and continue “simple and safe” starts with. In today’s C++, this kind of comparison silently compiles but is a bug.

C++ 97
article thumbnail

Matching Supply With Demand — Solutions, Part 3

SQL Performance

But SQL Server doesn’t currently support an efficient combination of parallel order-preserving index operation prior to a parallel batch-mode Window Aggregate operator, so as a result, an explicit parallel Sort operator precedes each of the parallel Window Aggregate operators. That’s a pretty efficient plan! Itzik’s Solution.

C++ 138
article thumbnail

Additional T-SQL Improvements in SQL Server 2022

SQL Performance

One of the complexities that is of a specific importance to this section is comparisons that potentially involve NULL comparands, such as ones that you use in filter and join predicates. Most operators that you use in such comparisons, including the equals (=) and different than (<>) operators, use three-valued logic.

Servers 142
article thumbnail

Move, simply

Sutter's Mill

C++ “move” semantics are simple, and unchanged since C++11. Move: What it is, and how to use it In C++, copying or moving from an object a to an object b sets b to a ’s original value. Copy is always a valid implementation of move if the type didn’t provide anything more efficient. Yes, but don’t.

C++ 98