c-plus-plus

Tag

Cards List
#c-plus-plus

Modernizing a 25-year-old minimal C++ unit testing framework (Part 2)

Hacker News Top ↗ · 2026-07-02 Cached

The article continues the series on modernizing a 25-year-old minimal C++ unit testing framework, focusing on using inline variables and modules to fix issues with file-specific counters and header dependencies.

0 favorites 0 likes
#c-plus-plus

Pystd standard library, similar-ish functionality with a fraction of the compile time

Lobsters Hottest ↗ · 2026-06-29 Cached

Pystd is a from-scratch C++ standard library designed to drastically reduce compilation times, achieving full builds in seconds compared to the standard library's minute-long compilations, while providing similar functionality.

0 favorites 0 likes
#c-plus-plus

@chessMan786: How to Build a Neural Network from Scratch in C++ Are you looking for a clear and practical explanation of how neural n…

X AI KOLs Timeline ↗ · 2026-06-28 Cached

A tweet promoting a guide on building a neural network from scratch in C++, aimed at providing a clear and practical explanation of how neural networks work.

0 favorites 0 likes
#c-plus-plus

@nihui: zimage-ncnn can now do more than text-to-image! LanPaint inpainting and ControlNet control are here! No Python, no PyTorch, no diffusers, no CUDA needed. Only depends on C++ and ncnn, fully local offline V…

X AI KOLs Timeline ↗ · 2026-06-27

The zimage-ncnn tool adds LanPaint inpainting and ControlNet control features. No Python/PyTorch/CUDA required, only depends on C++ and ncnn, supports fully local offline operation on Vulkan or CPU.

0 favorites 0 likes
#c-plus-plus

A C++ implementation of a fast hash map and hash set using hopscotch hashing

Hacker News Top ↗ · 2026-06-26 Cached

The hopscotch-map library is a C++ implementation of fast hash map and hash set using hopscotch hashing, offering better performance than std::unordered_map in most cases.

0 favorites 0 likes
#c-plus-plus

Announcing Silk: a silky smooth fiber runtime for ClickHouse

Lobsters Hottest ↗ · 2026-06-25 Cached

Silk is a new stackful-fiber library and scheduler for ClickHouse, designed to improve asynchronous I/O performance with NUMA-aware work stealing, io_uring, and zero heap allocation in the hot path. It targets I/O-bound components like distributed cache, object storage, and network I/O.

0 favorites 0 likes
#c-plus-plus

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

Lobsters Hottest ↗ · 2026-06-24 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 ↗ · 2026-06-20 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
← Previous
Next →
← Back to home

Submit Feedback