c++

Tag

Cards List
#c++

Sharp template to NInfer: -42% output tokens, same speed

Reddit r/LocalLLaMA · yesterday

Sharp v22.1 template reduces Qwen model output tokens by 42% without speed loss, integrated into an NInfer fork for 5090 via C++ modifications.

0 favorites 0 likes
#c++

Reducing C++ template bloat by factoring out the type-dependent portions of the function, practical exam

The Old New Thing (Raymond Chen) · yesterday Cached

The article explains how to reduce C++ template bloat by factoring out type-dependent portions of functions, using a practical example with Windows DispatcherQueueHandler to de-templatize code.

0 favorites 0 likes
#c++

Reducing C++ template bloat by factoring out the type-dependent portions of the function

The Old New Thing (Raymond Chen) · 2d ago Cached

This article explains techniques to reduce C++ template bloat by factoring out type-dependent code into helper objects or using span-based approaches, enhancing code efficiency and maintainability.

0 favorites 0 likes
#c++

On wrapping a callable in a lambda that just calls it with the same parameters

The Old New Thing (Raymond Chen) · 3d ago Cached

The article explains that wrapping a callable in a lambda is unnecessary when the inner lambda can be used directly, highlighting that C++ lambdas are syntactic sugar for classes with function call operators.

0 favorites 0 likes
#c++

The Two Factions of C++

Hacker News Top · 6d ago Cached

The article discusses the internal conflicts within the C++ community regarding ABI breaks and memory safety, alongside government warnings and big tech companies shifting towards Rust.

0 favorites 0 likes
#c++

Understanding std::counting_semaphore and std::binary_semaphore from C++20

Lobsters Hottest · 2026-08-08 Cached

This article explains C++20's std::counting_semaphore and std::binary_semaphore, covering their API, usage for limiting concurrency and signaling between threads, and important details.

0 favorites 0 likes
#c++

When Compilers Disagree About UTF‑8

Hacker News Top · 2026-08-05 Cached

A deep dive into optimizing UTF-8 decoding in the utfcpp library, revealing that Clang and GCC generate different assembly for ASCII fast paths, leading to significant performance differences.

0 favorites 0 likes
#c++

Making an agile version of a Windows Runtime delegate in C++/WinRT, part 9

The Old New Thing (Raymond Chen) · 2026-07-30 Cached

Raymond Chen continues his series on building an agile Windows Runtime delegate in C++/WinRT, comparing how C++/WinRT, C++/CX, and WRL handle non-marshalable delegates and agile reference creation.

0 favorites 0 likes
#c++

C++ float-to-int conversion can be undefined behavior

Lobsters Hottest · 2026-07-30 Cached

A blog post highlights that C++ float-to-int conversion is undefined behavior when the value doesn't fit, and points out that Microsoft's GSL library's safe narrowing function 'gsl::narrow' also suffers from this UB, contrary to its documentation.

0 favorites 0 likes
#c++

Kimi K3 text-only for llama.cpp

Reddit r/LocalLLaMA · 2026-07-27 Cached

Kimi K3 text-only model is now supported in llama.cpp, enabling local inference of this open-source LLM using the C++ inference engine.

0 favorites 0 likes
#c++

Memory Safety Absolutists

Lobsters Hottest · 2026-07-25 Cached

The article critiques memory safety absolutism in programming language debates, arguing that new approaches like Fil-C have trade-offs and that dismissing Rust as unsafe ignores practical benefits.

0 favorites 0 likes
#c++

Fil-C: Garbage In, Memory Safety Out

Lobsters Hottest · 2026-07-23 Cached

Fil-C is a fully memory-safe implementation of C/C++. It bundles pointer values with boundary information using invisicaps at the LLVM IR stage, achieving high compatibility with a performance penalty of about 4x.

0 favorites 0 likes
#c++

Building a Fast Lock-Free Queue in Modern C++ from Scratch

Hacker News Top · 2026-07-22

A guide to implementing a fast lock-free queue in modern C++, covering techniques for concurrent data structures without locks.

0 favorites 0 likes
#c++

How Fast Can Reward Models Score? A Systems Study of C++ and PyTorch Inference Runtimes for RLHF

Hugging Face Daily Papers · 2026-07-22 Cached

This paper presents a systems study comparing C++ and PyTorch inference runtimes for reward model scoring in RLHF pipelines, finding that ONNXRuntime provides speedups on CPU while torch.compile leads on GPU, with batching strategy mattering more than language or runtime.

0 favorites 0 likes
#c++

Gecode 6.3.0 and 6.4.0 are released

Lobsters Hottest · 2026-07-16 Cached

Gecode 6.3.0 and 6.4.0 are released after a long pause, bringing a modernized build system (CMake) and updated MiniZinc integration.

0 favorites 0 likes
#c++

C++20 Improved the For-Loop Syntax

Hacker News Top · 2026-07-11 Cached

C++20 introduces a new syntax for range-based for loops that allows declaring an initializer in the loop scope, matching the convenience of languages like Python and Lua.

0 favorites 0 likes
#c++

Initial ET backend by marty1885 · Pull Request #24179 · ggml-org/llama.cpp

Reddit r/LocalLLaMA · 2026-07-10 Cached

A pull request adds an initial ET backend to llama.cpp, expanding hardware support for LLM inference.

0 favorites 0 likes
#c++

@vivekgalatage: Better be late than never. I know C++26 is all around, but many of those features have baseline versions stemming from …

X AI KOLs Timeline · 2026-07-09 Cached

A detailed overview of all C++20 core language features with examples, serving as a cheat sheet.

0 favorites 0 likes
#c++

Trust your compiler: Modern C++

Hacker News Top · 2026-07-01 Cached

Article comparing old C++ performance tricks with modern compiler capabilities, showing that compilers can now optimize naive code better than hand-tuned hacks. Includes benchmarks on AMD Zen 5 with Clang 21.

0 favorites 0 likes
#c++

Show HN: A statically typed, cross-platform, easily bootstrappable build system

Hacker News Top · 2026-06-30 Cached

BUSY is a lean, statically typed, cross-platform build system for GCC, Clang, and MSVC toolchains, designed for easy bootstrapping and minimal dependencies.

0 favorites 0 likes
Next →
← Back to home

Submit Feedback