c++

Tag

Cards List
#c++

Efficient C++ Programming for Modern C++ CPUs, Chapter 4/part 2

Hacker News Top · 2026-06-20 Cached

This draft book chapter provides an infographic and detailed analysis of operation costs in CPU clock cycles for modern C++ CPUs, covering multiplication, division, and RTTI with latency tables for various architectures.

0 favorites 0 likes
#c++

Show HN: I wrote a C++ ray tracer from scratch without AI

Hacker News Top · 2026-06-15 Cached

A developer built Luz, a C++20 path tracer from scratch with zero dependencies, featuring Monte Carlo path tracing, global illumination, BVH acceleration, and a Blender-to-Luz exporter.

0 favorites 0 likes
#c++

The beauty and simplicity of the good old C-style void* in C++

Hacker News Top · 2026-06-06 Cached

The article discusses the pros and cons of using C-style void* pointers versus uint8_t* and std::span for passing memory blobs in C++, arguing for the simplicity and readability of void*.

0 favorites 0 likes
#c++

The C++ Standard Library Has Been Walking Itself Back for Fifteen Years, and the Receipts Are Public

Lobsters Hottest · 2026-06-04 Cached

A detailed catalogue of C++ standard library features that have been formally deprecated, informally discouraged, or are effectively broken but cannot be fixed due to ABI constraints, spanning from C++11 to C++26. The article argues a consistent pattern of the C++ committee shipping replacements for its own features, including a benchmark showing 58x P99 latency difference between Rust and C++ standard library containers.

0 favorites 0 likes
#c++

Sharing the result of a single Windows Runtime IAsyncOperation among multiple coroutines, part 3

The Old New Thing (Raymond Chen) · 2026-05-29 Cached

The article discusses a C++/WinRT pattern for caching the result of a Windows Runtime IAsyncOperation, including handling failures, so that multiple coroutines can share the cached result or exception.

0 favorites 0 likes
#c++

llama: use f16 mask for FA to save VRAM by am17an · Pull Request #23764 · ggml-org/llama.cpp

Reddit r/LocalLLaMA · 2026-05-29 Cached

This pull request for the llama.cpp inference engine implements using f16 mask for Flash Attention to reduce VRAM usage.

0 favorites 0 likes
#c++

Does bulk memmove speed up std::remove_if? (No.)

Lobsters Hottest · 2026-05-24 Cached

The article explores whether using bulk memmove in std::remove_if can improve performance over the traditional per-element move, and finds that it does not, due to overhead from bookkeeping and memmove's overlap check.

0 favorites 0 likes
#c++

Neoclassical C++: segmented iterators revisited

Hacker News Top · 2026-05-22 Cached

Revisits Matt Austern's 2000 paper on segmented iterators, which enable hierarchical algorithms to exploit data structure segmentation for performance, and discusses modern adoption in libc++ and Boost libraries.

0 favorites 0 likes
#c++

[WIP] Gemma 4 MTP

Reddit r/LocalLLaMA · 2026-05-20 Cached

llama.cpp is an open-source C/C++ library for efficient LLM inference on various hardware, supporting multiple quantization formats and GPU backends. This README details its features, installation, and recent updates including Hugging Face cache migration and multimodal support.

0 favorites 0 likes
#c++

New features in GCC 16: Improved error messages and SARIF output

Hacker News Top · 2026-05-19 Cached

GCC 16 introduces improved hierarchical error messages for C++ templates and updated SARIF machine-readable diagnostic output, enhancing developer experience.

0 favorites 0 likes
#c++

Simulating Infinity in Conway's Game of Life with Modern C++

Hacker News Top · 2026-05-18 Cached

The article describes building GOLDE, a simulator for Conway's Game of Life using the HashLife algorithm in modern C++, capable of simulating trillions of generations instantly.

0 favorites 0 likes
#c++

When can the C++ compiler devirtualize a call?

Hacker News Top · 2026-05-17 Cached

Explores when C++ compilers can devirtualize virtual function calls, covering cases like known dynamic types and final keyword, with comparisons across GCC, Clang, MSVC, and ICC.

0 favorites 0 likes
#c++

Bug Archeology: Solving a decade-old Swift/C++ mystery (with LLMs)

Lobsters Hottest · 2026-05-15 Cached

A developer recounts using LLMs to solve a decade-old bug in a Swift/C++ cross-platform music app, demonstrating how AI can assist in debugging complex issues.

0 favorites 0 likes
#c++

Int a = 5; a = a++ + ++a; a =? (2011)

Hacker News Top · 2026-05-12 Cached

Analyzes the undefined behavior of the C/C++ expression 'a = a++ + ++a;' for int a=5, demonstrating three possible results (11, 12, 13) due to compiler-dependent evaluation order and post-increment handling, with theoretical and experimental breakdown.

0 favorites 0 likes
#c++

I made rust's cargo copy but for CPP

Hacker News Top · 2026-05-10 Cached

CRow is a new open-source build system and dependency manager for C/C++ that mimics the simplicity of Rust's Cargo.

0 favorites 0 likes
#c++

A cache-friendly IPv6 LPM with AVX-512 (linearized B+-tree, real BGP benchmarks)

Hacker News Top · 2026-04-20 Cached

planb-lpm is a portable, MIT-licensed C++17 library implementing efficient IPv6 longest-prefix-match (LPM) using a linearized B+-tree with AVX-512 SIMD, featuring dynamic FIB support, Python bindings, and comprehensive benchmarking against real BGP data.

0 favorites 0 likes
#c++

Hunting a 34 year old pointer bug in EtherSlip (DOS Networking)

Hacker News Top · 2026-04-19 Cached

A developer recounts tracking down a 34-year-old NULL-pointer bug in the EtherSlip DOS packet driver using Open Watcom’s heap-corruption sentinel.

0 favorites 0 likes
#c++

How (and why) we rewrote our production C++ frontend infrastructure in Rust

Lobsters Hottest · 2026-04-18 Cached

NearlyFreeSpeech.NET rewrote their production C++ frontend infrastructure (nfsncore) in Rust, a critical system that handles routing, caching, and access control for all incoming requests. The migration was motivated by Rust's safety guarantees, performance, ecosystem strength, and the aging C++ codebase's limitations.

0 favorites 0 likes
#c++

jbeder/yaml-cpp

GitHub Trending (daily) · 2026-07-10 Cached

yaml-cpp is a YAML parser and emitter library for C++ that conforms to the YAML 1.2 specification.

0 favorites 0 likes
← Previous
← Back to home

Submit Feedback