cpp

Tag

Cards List
#cpp

The Problem with C++ Safety: Modern C++ Is a Mindset, Not a Standard

Lobsters Hottest ↗ · 2026-11-02 Cached

Part 2 of a blog series arguing that Modern C++ is a mindset rather than a new standard: writing correct, fast, safe code by default via algorithms like std::equal and C++20 ranges instead of classic loop-based, error-prone constructs, and warning that AI tools are scaling up the generation of unsafe classic C++ code.

0 favorites 0 likes
#cpp

Prospero: A new coding harness for a more civilized age

Hacker News Top ↗ · 2026-10-31 Cached

nullprogram 介绍并开源了 Prospero——一个用 C++ 和 Dear ImGui 编写的轻量级 AI 编码 harness,资源占用比现有方案低约两个数量级,支持子代理、无头部署与桌面控制能力。

0 favorites 0 likes
#cpp

C++/WinRT overcorrection: Using make_self and immediately converting it to the projected interface

The Old New Thing (Raymond Chen) ↗ · 2026-10-28 Cached

Raymond Chen 的 The Old New Thing 博文,讲解 C++/WinRT 中创建自实现对象时 make 与 make_self 的区别,建议在无需访问实现类成员时直接使用 make 以避免不必要的间接转换。

0 favorites 0 likes
#cpp

Trials and Tribulations of Native Lua Compilation

Hacker News Top ↗ · 2026-10-18 Cached

A blog post detailing the development of clx, a compiler that translates Lua 5.5 source code into C++ for native compilation, replacing the Lua VM with a purpose-built runtime for compiled native Lua code.

0 favorites 0 likes
#cpp

The Double Headed Stack Allocator

Hacker News Top ↗ · 2026-10-15 Cached

A technical blog post explaining the double headed (bump) stack allocator, a classic fast memory allocation trick born from game animation programming at Surreal Software, where allocation is just an integer addition and deallocation resets the top-of-stack pointer.

0 favorites 0 likes
#cpp

GPT-Image-style photo editing on your own GPU (12 GB+): I built a zero-setup app for Qwen-Image 2.1 on stable-diffusion.cpp

Reddit r/LocalLLaMA ↗ · 2026-10-14

Kokon 是一款零配置的开源桌面应用,让用户在本地 GPU(12GB+)上直接使用 Qwen-Image 2.1 进行 GPT-Image 风格的照片编辑,基于 stable-diffusion.cpp,内置 MCP 服务器和 HTTP API。

0 favorites 0 likes
#cpp

I built BitRun: A standalone runner for 1-bit LLMs (100–127 t/s on Apple Silicon & 40–45 t/s on PC CPUs with zero compile)

Reddit r/LocalLLaMA ↗ · 2026-10-14

BitRun 是一个可在普通笔记本 CPU 上零编译运行 1-bit 三值 LLM 的独立工具,在 Apple M4 Pro 上可达 98–127 t/s、Intel i5 上 40–45 t/s,并修复了微软 bitnet.cpp 代码库中的多个底层 C++ 内核 bug 并提交了上游 PR。

0 favorites 0 likes
#cpp

I clustered two old Android phones to run a 27B LLM locally. Bypassed RAM limits via C++ RPC split and Hadamard Ternary math (No overheating)

Reddit r/LocalLLaMA ↗ · 2026-10-13

A high school student built a custom C++ engine (fork of llama.rn) that clusters two Android phones over USB via RPC to run a 27B ternary-quantized LLM locally, using runtime Hadamard transforms for addition-only math that keeps the phone cool at ~30°C.

0 favorites 0 likes
#cpp

llama.cpp v0.6.0 released with MTP speculative decoding for Qwen4Exp and lots more

Reddit r/LocalLLaMA ↗ · 2026-10-05 Cached

llama.cpp v0.6.0 获得正式发布,新增对 Qwen4Exp 的 MTP(Multi-Token Prediction)推测解码支持以及大量其他改进。

0 favorites 0 likes
#cpp

Can AI Build a Game Engine? (Yes)

Reddit r/singularity ↗ · 2026-10-05 Cached

The author tasked Claude (Fable 5.1) and GPT (GPT6 Astra) with independently building a production-grade C++ 3D game engine, first scoping the task and writing requirements documents to let the models work autonomously. The article explores whether AI can carry out game engine development end to end, and to what extent AI can replace an experienced engineering team.

0 favorites 0 likes
#cpp

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

Lobsters Hottest ↗ · 2026-10-04 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 ↗ · 2026-10-01 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 ↗ · 2026-09-30 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 ↗ · 2026-09-30 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
Next →
← Back to home

Submit Feedback