<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News - Newest: &#34;C++&#34;</title><link>https://news.ycombinator.com/newest</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Thu, 11 Jun 2026 15:24:13 +0000</lastBuildDate><atom:link href="https://hnrss.org/newest?q=C%2B%2B" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[Show HN: ARB – A Differentiable Rigid Body Simulation Library Using C++23]]></title><description><![CDATA[
<p>Article URL: <a href="https://github.com/wbyates777/Articulated-Rigid-Body">https://github.com/wbyates777/Articulated-Rigid-Body</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48488330">https://news.ycombinator.com/item?id=48488330</a></p>
<p>Points: 2</p>
<p># Comments: 1</p>
]]></description><pubDate>Thu, 11 Jun 2026 10:00:08 +0000</pubDate><link>https://github.com/wbyates777/Articulated-Rigid-Body</link><dc:creator>wbyates777</dc:creator><comments>https://news.ycombinator.com/item?id=48488330</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48488330</guid></item><item><title><![CDATA[C++26: Cleaning up string literals]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.sandordargo.com/blog/2026/06/10/cpp26-string-literals-cleaned-up">https://www.sandordargo.com/blog/2026/06/10/cpp26-string-literals-cleaned-up</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48474705">https://news.ycombinator.com/item?id=48474705</a></p>
<p>Points: 1</p>
<p># Comments: 0</p>
]]></description><pubDate>Wed, 10 Jun 2026 11:26:28 +0000</pubDate><link>https://www.sandordargo.com/blog/2026/06/10/cpp26-string-literals-cleaned-up</link><dc:creator>ibobev</dc:creator><comments>https://news.ycombinator.com/item?id=48474705</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48474705</guid></item><item><title><![CDATA[What science can tell us about C and C++'s security (2020)]]></title><description><![CDATA[
<p>Article URL: <a href="https://alexgaynor.net/2020/may/27/science-on-memory-unsafety-and-security/">https://alexgaynor.net/2020/may/27/science-on-memory-unsafety-and-security/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48473986">https://news.ycombinator.com/item?id=48473986</a></p>
<p>Points: 1</p>
<p># Comments: 0</p>
]]></description><pubDate>Wed, 10 Jun 2026 10:02:58 +0000</pubDate><link>https://alexgaynor.net/2020/may/27/science-on-memory-unsafety-and-security/</link><dc:creator>tosh</dc:creator><comments>https://news.ycombinator.com/item?id=48473986</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48473986</guid></item><item><title><![CDATA[Faking keyword arguments to functions in C++]]></title><description><![CDATA[
<p>Article URL: <a href="https://nibblestew.blogspot.com/2026/06/faking-keyword-arguments-to-functions.html">https://nibblestew.blogspot.com/2026/06/faking-keyword-arguments-to-functions.html</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48473640">https://news.ycombinator.com/item?id=48473640</a></p>
<p>Points: 1</p>
<p># Comments: 0</p>
]]></description><pubDate>Wed, 10 Jun 2026 09:17:22 +0000</pubDate><link>https://nibblestew.blogspot.com/2026/06/faking-keyword-arguments-to-functions.html</link><dc:creator>ingve</dc:creator><comments>https://news.ycombinator.com/item?id=48473640</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48473640</guid></item><item><title><![CDATA[The C++ Documentary Won't Show You a Number. I Will]]></title><description><![CDATA[
<p>Article URL: <a href="https://hftuniversity.com/post/the-c-documentary-won-t-show-you-a-number-i-will">https://hftuniversity.com/post/the-c-documentary-won-t-show-you-a-number-i-will</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48467589">https://news.ycombinator.com/item?id=48467589</a></p>
<p>Points: 5</p>
<p># Comments: 1</p>
]]></description><pubDate>Tue, 09 Jun 2026 20:52:40 +0000</pubDate><link>https://hftuniversity.com/post/the-c-documentary-won-t-show-you-a-number-i-will</link><dc:creator>atcol</dc:creator><comments>https://news.ycombinator.com/item?id=48467589</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48467589</guid></item><item><title><![CDATA[What about OpenCL and CUDA C++ alternatives?]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.modular.com/blog/democratizing-ai-compute-part-5-what-about-cuda-c-alternatives">https://www.modular.com/blog/democratizing-ai-compute-part-5-what-about-cuda-c-alternatives</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48462577">https://news.ycombinator.com/item?id=48462577</a></p>
<p>Points: 6</p>
<p># Comments: 0</p>
]]></description><pubDate>Tue, 09 Jun 2026 15:41:21 +0000</pubDate><link>https://www.modular.com/blog/democratizing-ai-compute-part-5-what-about-cuda-c-alternatives</link><dc:creator>eatonphil</dc:creator><comments>https://news.ycombinator.com/item?id=48462577</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48462577</guid></item><item><title><![CDATA[Faking keyword arguments to functions in C++]]></title><description><![CDATA[
<p>Article URL: <a href="https://nibblestew.blogspot.com/2026/06/faking-keyword-arguments-to-functions.html">https://nibblestew.blogspot.com/2026/06/faking-keyword-arguments-to-functions.html</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48459999">https://news.ycombinator.com/item?id=48459999</a></p>
<p>Points: 2</p>
<p># Comments: 0</p>
]]></description><pubDate>Tue, 09 Jun 2026 12:05:12 +0000</pubDate><link>https://nibblestew.blogspot.com/2026/06/faking-keyword-arguments-to-functions.html</link><dc:creator>ibobev</dc:creator><comments>https://news.ycombinator.com/item?id=48459999</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48459999</guid></item><item><title><![CDATA[C++26 Reflection gives us universal template parameters]]></title><description><![CDATA[
<p>Article URL: <a href="https://quuxplusone.github.io/blog/2026/06/07/meta-to/">https://quuxplusone.github.io/blog/2026/06/07/meta-to/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48445021">https://news.ycombinator.com/item?id=48445021</a></p>
<p>Points: 4</p>
<p># Comments: 0</p>
]]></description><pubDate>Mon, 08 Jun 2026 13:22:02 +0000</pubDate><link>https://quuxplusone.github.io/blog/2026/06/07/meta-to/</link><dc:creator>ibobev</dc:creator><comments>https://news.ycombinator.com/item?id=48445021</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48445021</guid></item><item><title><![CDATA[The Smallest C++ Binary]]></title><description><![CDATA[
<p>Article URL: <a href="https://blog.weineng.me/posts/smallest_c">https://blog.weineng.me/posts/smallest_c</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48433804">https://news.ycombinator.com/item?id=48433804</a></p>
<p>Points: 2</p>
<p># Comments: 0</p>
]]></description><pubDate>Sun, 07 Jun 2026 11:25:43 +0000</pubDate><link>https://blog.weineng.me/posts/smallest_c</link><dc:creator>birdculture</dc:creator><comments>https://news.ycombinator.com/item?id=48433804</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48433804</guid></item><item><title><![CDATA[C++: The Programming Language Cover Raises Unanswered Questions]]></title><description><![CDATA[
<p>Article URL: <a href="https://devblogs.microsoft.com/oldnewthing/20260401-00/?p=112180">https://devblogs.microsoft.com/oldnewthing/20260401-00/?p=112180</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48432898">https://news.ycombinator.com/item?id=48432898</a></p>
<p>Points: 3</p>
<p># Comments: 0</p>
]]></description><pubDate>Sun, 07 Jun 2026 08:16:01 +0000</pubDate><link>https://devblogs.microsoft.com/oldnewthing/20260401-00/?p=112180</link><dc:creator>birdculture</dc:creator><comments>https://news.ycombinator.com/item?id=48432898</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48432898</guid></item><item><title><![CDATA[Porting Zircon (Fuchsia OS's kernel) C++ code to Rust]]></title><description><![CDATA[
<p>Article URL: <a href="https://cs.opensource.google/fuchsia/fuchsia/+/main:zircon/skills/cpp-to-rust-coder/SKILL.md">https://cs.opensource.google/fuchsia/fuchsia/+/main:zircon/skills/cpp-to-rust-coder/SKILL.md</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48431640">https://news.ycombinator.com/item?id=48431640</a></p>
<p>Points: 3</p>
<p># Comments: 1</p>
]]></description><pubDate>Sun, 07 Jun 2026 03:59:18 +0000</pubDate><link>https://cs.opensource.google/fuchsia/fuchsia/+/main:zircon/skills/cpp-to-rust-coder/SKILL.md</link><dc:creator>s314</dc:creator><comments>https://news.ycombinator.com/item?id=48431640</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48431640</guid></item><item><title><![CDATA[The C++ Documentary Won't Show You a Number. I Will]]></title><description><![CDATA[
<p>Article URL: <a href="https://hftuniversity.com/post/the-c-documentary-won-t-show-you-a-number-i-will">https://hftuniversity.com/post/the-c-documentary-won-t-show-you-a-number-i-will</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48429099">https://news.ycombinator.com/item?id=48429099</a></p>
<p>Points: 7</p>
<p># Comments: 1</p>
]]></description><pubDate>Sat, 06 Jun 2026 21:18:09 +0000</pubDate><link>https://hftuniversity.com/post/the-c-documentary-won-t-show-you-a-number-i-will</link><dc:creator>canyp</dc:creator><comments>https://news.ycombinator.com/item?id=48429099</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48429099</guid></item><item><title><![CDATA[The beauty and simplicity of the good old C-style void* in C++]]></title><description><![CDATA[
<p>Article URL: <a href="https://giodicanio.com/2026/06/05/how-to-declare-a-c-plus-plus-function-that-takes-a-blob-of-memory/">https://giodicanio.com/2026/06/05/how-to-declare-a-c-plus-plus-function-that-takes-a-blob-of-memory/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48427526">https://news.ycombinator.com/item?id=48427526</a></p>
<p>Points: 67</p>
<p># Comments: 170</p>
]]></description><pubDate>Sat, 06 Jun 2026 18:21:51 +0000</pubDate><link>https://giodicanio.com/2026/06/05/how-to-declare-a-c-plus-plus-function-that-takes-a-blob-of-memory/</link><dc:creator>movd128</dc:creator><comments>https://news.ycombinator.com/item?id=48427526</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48427526</guid></item><item><title><![CDATA[Building a Fast Lock-Free Queue in Modern C++ from Scratch]]></title><description><![CDATA[
<p>Article URL: <a href="https://jaysmito.dev/blog/blog/04-fast-lockfree-queues/">https://jaysmito.dev/blog/blog/04-fast-lockfree-queues/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48427179">https://news.ycombinator.com/item?id=48427179</a></p>
<p>Points: 3</p>
<p># Comments: 0</p>
]]></description><pubDate>Sat, 06 Jun 2026 17:40:55 +0000</pubDate><link>https://jaysmito.dev/blog/blog/04-fast-lockfree-queues/</link><dc:creator>tahazsh</dc:creator><comments>https://news.ycombinator.com/item?id=48427179</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48427179</guid></item><item><title><![CDATA[The back cover of C++: The Language raises questions not answered by front cover]]></title><description><![CDATA[
<p>Article URL: <a href="https://devblogs.microsoft.com/oldnewthing/20260605-01/?p=112391">https://devblogs.microsoft.com/oldnewthing/20260605-01/?p=112391</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48421079">https://news.ycombinator.com/item?id=48421079</a></p>
<p>Points: 155</p>
<p># Comments: 51</p>
]]></description><pubDate>Sat, 06 Jun 2026 03:23:47 +0000</pubDate><link>https://devblogs.microsoft.com/oldnewthing/20260605-01/?p=112391</link><dc:creator>paulmooreparks</dc:creator><comments>https://news.ycombinator.com/item?id=48421079</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48421079</guid></item><item><title><![CDATA[Show HN: Micron: a high performance C++23 (re)implementation of Libc and the STL]]></title><description><![CDATA[
<p>Howdy HN,<p>I've been working on micron for quite some time now, and I've finally gotten it to a state where I'm ready to share it with other people. I've really been pruning and testing it quite heavily for the past few weeks looking to flush out any bugs/inconsistencies. micron is a header-only C++23 core systems library that runs on Linux without libc, without libm, without the STL, and without any external dependencies at all. Fully freestanding. To my knowledge this is probably the only project of this kind, and the only libc implementation not in C. There _might_ be some Rust libc variant out there but I couldn't find any.<p>Why does this exist?
The STL makes a lot of decisions I disagree with; favoring generality over performance, safety theater that doesn't actually help anyone, ABI stability over bringing novel features to the language (regex, filesystem && company), and generally either being outdated compared to standard libraries of other languages or shipping solutions that are low performance (usually both). 
I wanted a library that treats the developer as the expert and makes development genuinely _simple and fun_. Every container in micron was written with that in mind. Most algorithms have hand-rolled SIMD loops wherever the math allows it, across amd64 (up to avx512), AArch64, and ARMv7 NEON.
The other reason is hard determinism and portability sanity. glibc is _obscenely_ bloated, making it painful to compile quickly, painful to port, and painful to reason about. Half of Linux distros don't properly ship cross-arch libc; the ones that do are often missing static versions; and just getting a truly static binary out of glibc is a battle all its own (Fedora doesn't even _ship_ static libc properly in their official repos because <i>security</i>). Cross-compiling for ARM32 on an amd64 host is a special kind of misery if you're depending on the system libc. micron eliminates that entire class of problem. There's a single flat source, header only, and you're done; same code, same behavior, whether you're targeting a server or a microcontroller-class Linux board.<p>Performance wise _most_ implementations in this library are either on par with the Standard Library (for things that can't be meaningfully sped up like container accesses) or greatly faster, near bleeding edge of what is out there. (one little side note is that right now most math kernel implementation code is more or less hardcoded for avx2 chips, there's no avx512/avx10 layer, so if you have a super modern cpu you won't get maximal performance over there).<p>As of right now, the library is _almost_ feature complete (at least to the point where I'd like to have it). There's a full linux sys layer (maps more or less all syscalls, the ones that aren't you have a full syscall table so you can call them whenever ie. syscall(SYS_*, ...)), full math implementation, containers (contiguous, maps, trees, sets, heaps, queues), strings, a full simd layer port (for amd64 + arm neon), concurrency (mutexes, atomics, threading), io, functional programming primitives, a semi complete gfx layer (OpenGL/Vulkan)... micron also ships with a full memory allocator inlined, so you don't need to depend on anything externally.<p>micron currently supports amd64/i386/aarch64/arm32 ONLY and is Linux ONLY. It might run on macOS, but no guarantees on that since too many things right now are effectively Linux hardcoded. Oh and you probably want at least kernel 5.0+ (5.11+ for certain fns) just to be safe. Didn't test it on anything older.<p>A true final note is that this isn't really as polished or professional as glibc _yet_. I'm still working on ironing out any defects, the library is generally stable but you _might_ run into edge case issues especially around cross-arch code or the less tested paths.<p>source: <a href="https://github.com/rfgplk/micron.cpp" rel="nofollow">https://github.com/rfgplk/micron.cpp</a>
Happy to answer questions about any of the internals. Thanks!</p>
<hr>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48415481">https://news.ycombinator.com/item?id=48415481</a></p>
<p>Points: 6</p>
<p># Comments: 3</p>
]]></description><pubDate>Fri, 05 Jun 2026 17:15:13 +0000</pubDate><link>https://github.com/rfgplk/micron.cpp</link><dc:creator>rfgplk</dc:creator><comments>https://news.ycombinator.com/item?id=48415481</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48415481</guid></item><item><title><![CDATA[C++ STL Container Complexities Quick Reference]]></title><description><![CDATA[
<p>Article URL: <a href="https://alyssaq.github.io/stl-complexities/">https://alyssaq.github.io/stl-complexities/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48411989">https://news.ycombinator.com/item?id=48411989</a></p>
<p>Points: 1</p>
<p># Comments: 0</p>
]]></description><pubDate>Fri, 05 Jun 2026 13:09:03 +0000</pubDate><link>https://alyssaq.github.io/stl-complexities/</link><dc:creator>BruceEel</dc:creator><comments>https://news.ycombinator.com/item?id=48411989</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48411989</guid></item><item><title><![CDATA[Quilt Implemented in C++]]></title><description><![CDATA[
<p>Article URL: <a href="https://github.com/skeeto/quilt.cpp">https://github.com/skeeto/quilt.cpp</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48411761">https://news.ycombinator.com/item?id=48411761</a></p>
<p>Points: 1</p>
<p># Comments: 0</p>
]]></description><pubDate>Fri, 05 Jun 2026 12:54:17 +0000</pubDate><link>https://github.com/skeeto/quilt.cpp</link><dc:creator>mooreds</dc:creator><comments>https://news.ycombinator.com/item?id=48411761</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48411761</guid></item><item><title><![CDATA[C++: The Documentary]]></title><description><![CDATA[
<p>Article URL: <a href="https://herbsutter.com/2026/06/04/c-the-documentary-released-today/">https://herbsutter.com/2026/06/04/c-the-documentary-released-today/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48408016">https://news.ycombinator.com/item?id=48408016</a></p>
<p>Points: 425</p>
<p># Comments: 317</p>
]]></description><pubDate>Fri, 05 Jun 2026 04:37:01 +0000</pubDate><link>https://herbsutter.com/2026/06/04/c-the-documentary-released-today/</link><dc:creator>ingve</dc:creator><comments>https://news.ycombinator.com/item?id=48408016</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48408016</guid></item><item><title><![CDATA[Documentary, "C++: The Most Consequential Programming Language"]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.youtube.com/watch?v=lI7tMxzSJ7w">https://www.youtube.com/watch?v=lI7tMxzSJ7w</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48404030">https://news.ycombinator.com/item?id=48404030</a></p>
<p>Points: 33</p>
<p># Comments: 2</p>
]]></description><pubDate>Thu, 04 Jun 2026 20:16:12 +0000</pubDate><link>https://www.youtube.com/watch?v=lI7tMxzSJ7w</link><dc:creator>pjmlp</dc:creator><comments>https://news.ycombinator.com/item?id=48404030</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48404030</guid></item></channel></rss>