cpp

Tag

Cards List
#cpp

The complement of true is true, except when it's false

Lobsters Hottest ↗ · 4h ago Cached

A blog post analyzing WG21's P4313R1 proposal for C++ bitmask enum operations and exploring the pitfalls of integral promotion and boolean conversion when performing bitwise operations (such as ~true) on small integral types and bool.

0 favorites 0 likes
#cpp

Show HN: Yantra – an LALR(1) parser generator for C++

Hacker News Top ↗ · 3d ago Cached

Yantra is an open-source LALR(1) parser generator and compiler-compiler written in C++23 with an integrated lexer, UNICODE support, AST builder and top-down AST walkers, supporting both amalgamated single-file output and drop-in hpp/cpp generation.

0 favorites 0 likes
#cpp

Qt 6.12 LTS Released

Lobsters Hottest ↗ · 3d ago Cached

Qt 6.12 LTS is released with five years of maintenance, enhanced cybersecurity features, UI performance improvements, and compliance with the EU Cyber Resilience Act (CRA) for commercial users.

0 favorites 0 likes
#cpp

SDF vs. MSDF vs. Slug: GPU Text Rendering

Hacker News Top ↗ · 4d ago Cached

AlphaPixel publishes Slughorn, a C++20 implementation of Eric Lengyel's Slug GPU text rendering technique (dedicated to the public domain in March 2026), and compares SDF, MSDF, texture atlas, and Slug approaches for rendering crisp vector glyphs at arbitrary scales on the GPU.

0 favorites 0 likes
#cpp

Writing Efficient C++ Code

Hacker News Top ↗ · 2026-09-25 Cached

This article discusses techniques for writing efficient C++ code, emphasizing data-oriented design and performance optimization for applications like games and real-time processing.

0 favorites 0 likes
#cpp

Type Punning in C and C++

Hacker News Top ↗ · 2026-09-22 Cached

This article explains type punning in C and C++, warning about the undefined behavior of pointer casts due to strict aliasing rules and recommending unions or memcpy for safe type punning.

0 favorites 0 likes
#cpp

laya.cpp: Optimized laya near-instant decision making

Reddit r/LocalLLaMA ↗ · 2026-09-20

laya.cpp is an optimized C++ implementation for near-instant decision making, built on ggml with custom CUDA kernels, demonstrating significant speed improvements over Python for the Laya model.

0 favorites 0 likes
#cpp

@geniusvczh: Finally figured out where all the complaints about astra come from. Today I opened a blank repo and asked it to do a C+…

X AI KOLs Timeline ↗ · 2026-09-14

The author identifies that complaints about astra arise from its lack of accumulated context for good code generation, and shows improvement by importing GacUI's context into a new repository.

0 favorites 0 likes
#cpp

@JasonBotterill: Reverse engineered the original Xbox version of Futurama as native MacOS game in C++

X AI KOLs Following ↗ · 2026-09-06 Cached

Developer Jason Botterill reverse engineered the original Xbox version of Futurama as a native macOS game in C++, sharing the project in response to an OpenAI Developers tweet about GPT-6 Astra.

0 favorites 0 likes
#cpp

On forcing all derived classes to implement a specific non-virtual method, part 1

The Old New Thing (Raymond Chen) ↗ · 2026-08-27 Cached

The article discusses techniques in C++ to enforce derived classes to implement a specific non-virtual method, using examples from C++/WRL and C++/WinRT, and critiques a code review scenario where comments were used instead of proper enforcement.

0 favorites 0 likes
#cpp

A little helper class for managing LPPROC_THREAD_ATTRIBUTE_LISTs

The Old New Thing (Raymond Chen) ↗ · 2026-08-13 Cached

This blog post presents a C++ helper class using the Windows Implementation Library (WIL) to manage LPPROC_THREAD_ATTRIBUTE_LIST allocations with RAII, offering both throwing and non-throwing variants.

0 favorites 0 likes
#cpp

I ported vLLM's serving stack to C++20: 66 MiB binary, no Python at inference, output checked token-for-token against vLLM

Reddit r/LocalLLaMA ↗ · 2026-08-06

The author ports vLLM's serving stack to C++20, creating a 66 MiB binary with no Python at inference, token-for-token verifiable against vLLM and competitive in throughput on tested hardware.

0 favorites 0 likes
#cpp

Characterizing the Quality Profile of AI-Generated C++ in Production

Hugging Face Daily Papers ↗ · 2026-08-06 Cached

A large-scale empirical study analyzing 3.52 million C++ code changes in production to compare AI-generated versus human-written code quality, finding higher coupling and compute overhead but showing targeted feedback can mitigate issues.

0 favorites 0 likes
#cpp

Thoroughly Understanding C++ ABI

Hacker News Top ↗ · 2026-08-02 Cached

A deep dive into C++ ABI, explaining binary interface concepts, CPU/OS dependencies, object file formats like ELF and PE32+, and calling conventions.

0 favorites 0 likes
#cpp

const_cast: A Necessary Evil

Lobsters Hottest ↗ · 2026-07-29 Cached

The article explains why const_cast is sometimes necessary in C++, specifically for moving objects out of a std::priority_queue, and how to do it safely.

0 favorites 0 likes
#cpp

Parsers don't have to be complicated

Hacker News Top ↗ · 2026-07-29 Cached

A blog post introducing bx::Scanner, a small zero-copy, allocation-free set of scanning primitives that simplify writing parsers without full parser generators or complex PEG libraries.

0 favorites 0 likes
#cpp

C/C++ projects packaged for Zig

Hacker News Top ↗ · 2026-07-27

A tool that packages existing C/C++ projects for use with the Zig build system, enabling easier integration.

0 favorites 0 likes
#cpp

Interconverting std::function with copyable_function

Lobsters Hottest ↗ · 2026-07-27 Cached

Technical analysis of the interconversion between std::function and std::copyable_function in C++26, discussing implementation approaches and performance trade-offs, with specific note that libstdc++ currently uses a less optimal approach.

0 favorites 0 likes
#cpp

Show HN: Max Studio Tools – C++ DSP Modules for Max and Ableton Live

Hacker News Top ↗ · 2026-07-24 Cached

A suite of C++ DSP modules for Max/MSP and Ableton Live, emulating classic studio EQs and compressors with optional oversampling.

0 favorites 0 likes
#cpp

The PImpl idiom and the C++26 std::indirect type

Lobsters Hottest ↗ · 2026-07-23 Cached

Explains the PImpl idiom in C++ and how the upcoming C++26 std::indirect type simplifies its implementation, reducing boilerplate and manual memory management.

0 favorites 0 likes
Next →
← Back to home

Submit Feedback