c-plus-plus

Tag

Cards List
#c-plus-plus

C++ Lifetime-End Pointer-Zap and OOTA Progress

Lobsters Hottest · 14h ago Cached

At the June 2026 C++ standards committee meeting in Brno, three papers enabling lifetime-end pointer zap were voted into C++29, solving a problem since the 1998 standard, and progress was made on forbidding out-of-thin-air (OOTA) values in the draft standard.

0 favorites 0 likes
#c-plus-plus

I benchmarked Claude's "Fast C++". It wasn't faster

Reddit r/LocalLLaMA · 5d ago Cached

A developer benchmarks Claude's C++ code, finding that prompting for maximum speed often introduces memory-safety violations without actual performance gains, debunking the assumed trade-off between speed and safety.

0 favorites 0 likes
#c-plus-plus

quicktok: a faster tokenizer (exact and byte-identical with tiktoken) [P]

Reddit r/MachineLearning · 2026-06-16

quicktok is a fast and exact BPE tokenizer in C++ that is byte-identical with tiktoken, achieving 2–11x speedup over existing alternatives. It supports cl100k, o200k, GPT-OSS, Llama-3, and Qwen2.5/3 encoders.

0 favorites 0 likes
#c-plus-plus

Memory safety CVEs differ between Rust and C/C++

Hacker News Top · 2026-06-15 Cached

An analysis of how memory safety CVEs are reported differently in Rust vs C/C++, arguing that Rust's design reduces certain classes of vulnerabilities even when bugs exist.

0 favorites 0 likes
#c-plus-plus

Parsing JSON at compile time with C++26 static reflection

Lobsters Hottest · 2026-06-15 Cached

C++26's #embed and static reflection, combined with the simdjson library, allow JSON parsing at compile time, turning configuration files into compile-time constants with no runtime overhead.

0 favorites 0 likes
#c-plus-plus

Orthodox C++ (2016)

Lobsters Hottest · 2026-06-12 Cached

Orthodox C++ is a minimal subset of C++ that avoids modern features, advocating for a simpler, C-like style to improve readability and compatibility.

0 favorites 0 likes
#c-plus-plus

Faking keyword arguments to functions in C++

Hacker News Top · 2026-06-09 Cached

This article demonstrates a technique to simulate Python-style keyword arguments in C++ by using structs with designated initializers, improving code readability without macros or template magic.

0 favorites 0 likes
#c-plus-plus

Rotation revisited: Avoiding having to calculate the gcd when doing cycle decomposition

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

This article explains a technique to avoid calculating the greatest common divisor when performing cycle decomposition in std::rotate, as used in OpenJDK's Collections.rotate method. It provides a C++ implementation that tracks the count of rotated elements to determine when all cycles are complete.

0 favorites 0 likes
#c-plus-plus

C++: The Documentary

Hacker News Top · 2026-06-05 Cached

A documentary about the 40-year history of C++ premiered on YouTube, featuring key figures like Bjarne Stroustrup and highlighting its evolution from Bell Labs to global adoption.

0 favorites 0 likes
#c-plus-plus

Branchless Quicksort faster than std:sort and pdqsort with C and C++ API

Hacker News Top · 2026-06-02 Cached

A new branchless Quicksort implementation (blqsort) using sorting networks outperforms std::sort and pdqsort on Apple M1 and AMD Ryzen systems, available as single-header C and C++ libraries. It achieves speedups through branchless partitioning, median-of-medians pivot selection, and custom sorting networks for small arrays.

0 favorites 0 likes
#c-plus-plus

Rotation revisited: Another unidirectional algorithm

The Old New Thing (Raymond Chen) · 2026-06-02 Cached

Raymond Chen revisits a unidirectional rotation algorithm for swapping adjacent memory blocks, explaining its recursive approach and performance characteristics.

0 favorites 0 likes
#c-plus-plus

llama: limit max outputs of `llama_context` by am17an · Pull Request #23861 · ggml-org/llama.cpp

Reddit r/LocalLLaMA · 2026-06-01 Cached

llama.cpp is an open-source LLM inference engine in C/C++ with minimal dependencies and support for various hardware and quantization methods. This pull request limits the maximum outputs of llama_context.

0 favorites 0 likes
#c-plus-plus

I ported NVIDIA Parakeet (speech-to-text) to ggml: same output as NeMo, faster, GGUF-quantized, no Python

Reddit r/LocalLLaMA · 2026-05-31

NVIDIA's Parakeet speech-to-text models have been ported to pure C++/ggml, achieving byte-identical output to NeMo, up to 5x faster inference on GPU, and quantized GGUF variants for efficient deployment anywhere without Python or PyTorch.

0 favorites 0 likes
#c-plus-plus

C++ CLI for folder encryption with AES-256-GCM and USB-based key loading

Hacker News Top · 2026-05-28 Cached

A Linux CLI tool written in C++ that encrypts folders using AES-256-GCM, hides file and folder names with an encrypted mapping, and supports USB-based key loading.

0 favorites 0 likes
#c-plus-plus

How Virtual Tables Work in the Itanium C++ ABI

Lobsters Hottest · 2026-05-26 Cached

A detailed blog post explaining how virtual tables (vtables) are implemented in the Itanium C++ ABI, covering vtable structure, mangled names, and virtual function dispatch.

0 favorites 0 likes
#c-plus-plus

C Constructs That Still Don’t Work in C++ — and a Few That Changed

Lobsters Hottest · 2026-05-23 Cached

A blog post updating the classic survey of C constructs that don't work in C++, covering changes in C++20 and C23 standards that affect compatibility.

0 favorites 0 likes
#c-plus-plus

How do I use Win32 structures from the Windows Runtime?

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

This article explains how to use Win32 structures in the Windows Runtime by declaring shadow structures with the same layout, including specific examples and alternatives for common structures.

0 favorites 0 likes
#c-plus-plus

Everything in C is undefined behavior

Hacker News Top · 2026-05-20 Cached

An experienced C++ developer argues that all non-trivial C and C++ code contains undefined behavior, making memory safety impossible and calling into question the continued use of these languages in modern software development.

0 favorites 0 likes
#c-plus-plus

Making cross-platform SIMD code pleasant

Lobsters Hottest · 2026-05-11 Cached

The author details the third iteration of the bx library's cross-platform SIMD abstraction, advocating for a typeless approach and SSA-style coding to simplify low-level performance optimization across different CPU architectures.

0 favorites 0 likes
#c-plus-plus

25+ years of pathfinding problems with C++

Lobsters Hottest · 2026-05-11 Cached

The Engineering Director of Age of Empires provides an in-depth analysis of the technical debt in the series' pathfinding system over the past 25 years, pointing out that legacy code, dynamic map mechanics, and floating-point errors caused by SIMD instruction sets replacing x87 extended precision are the root causes of classic bugs such as units clipping through walls.

0 favorites 0 likes
Next →
← Back to home

Submit Feedback