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++ 139
article thumbnail

My C++ Now 2023 talk is online: “A TypeScript for C++”

Sutter's Mill

Thanks again to C++ Now for inviting me to speak this year in glorious Aspen, Colorado, USA! The talk I gave there was just posted on YouTube, you can find it here: At CppCon 2022, I argued for why we should try to make C++ 10x simpler and safer , and I presented my own incomplete experimental compiler, cppfront.

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

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

AVIF for Next-Generation Image Coding

The Netflix TechBlog

By Aditya Mavlankar, Jan De C**k¹, Cyril Concolato, Kyle Swanson, Anush Moorthy and Anne Aaron TL; DR We need an alternative to JPEG that a) is widely supported, b) has better compression efficiency and c) has a wider feature set. This is followed by quantization and entropy coding. Advanced Video Coding ( AVC ) format.

Code 212
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.

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

Auctions ( Code , ID ) INCLUDE ( Quantity ) ; -- Enable batch-mode Window Aggregate. Auctions ( ID ) WHERE ID = - 1 AND ID = - 2 ; When describing the logic behind the solutions, I’ll assume the Auctions table is populated with the following small set of sample data: ID Code Quantity -- -. Code = 'D'. )

C++ 138