C++ - Reddit
226 subscribers
48 photos
8 videos
1 file
25.7K links
Stay up-to-date with everything C++!
Content directly fetched from the subreddit just for you.

Join our group for discussions : @programminginc

Powered by : @r_channels
Download Telegram
clice 1.0: a C++ language server built on Clang, with C++20 modules out of the box, non-self-contained headers, and crash isolation

Hi r/cpp! I've been working on clice, a C++ language server built on Clang, for about two and a half years, and 1.0 is out today. The main differences from clangd:

- Every compile runs in a worker process, so a Clang crash costs one request instead of the whole server.

- C++20 modules work out of the box from a `compile_commands.json`, with PCHs and PCMs cached on disk across sessions.

- Non-self-contained headers are compiled in the context of a file that includes them, and you can switch contexts and build configurations.

- Template support: completion and go-to-implementation through dependent names, using instantiations when there are any.

- A CLI to index, query, refactor and modularize whole projects.

The post covers the features and the story behind it. Binaries for Linux, macOS and Windows (x64 and arm64) are on the release page, and the VS Code extension is on the Marketplace. Feedback and bug reports are very welcome!

Release post: https://ykiko.me/en/articles/2105384023094834022/

https://redd.it/1xwyk9n
@r_cpp
Why haven't C++ subset compilers been made/caught on?

At work, I write real time software. Seeing where allocations happen and having guarantees on the behaviour of code would be nice. Compile times can be much faster and optimisations can also be aggressive when you know you're restricted to a subset of the language.

https://redd.it/1xxiyvm
@r_cpp
GUI Toolkit Slint 1.19 is out with backdrop blur, animated GIFs, and inertial scrolling on iOS and Android
https://slint.dev/blog/slint-1.19-released

https://redd.it/1xxmgf8
@r_cpp
What ever happened to the Felix language?

I remember being at the 2002 ACCU conference and seeing a talk by James Dennett on the then-brand-new Felix language titled "Felix -- what comes after C++?". It seemed like it actually stood a chance of being a viable C++ successor, given that it was designed to be fully interoperable with existing C++ code by compiling to C++. At the time, SWIG was a popular way to interface with C++, in theory by pointing it at your header file, but that didn't work so well in practice, especially with templates. Felix, on the other hand, could even use the STL natively. Early on, it had support for expression macros, token stream macros, pattern matching, fibers/coroutines, and more.

It seems development has stalled since 2024, not long after the so-called "Year of C++ Successor Languages" (2022) when we first saw Val, Carbon, and CppFront/Cpp2.That's still 24 years of development by the language's inventor (John Skaller), a long time for anyone to devote to something. Did it ever have any adoption, maybe in a small deployment somewhere, or was it perpetually experimental? Did it ever play a role in getting features adopted into C++, or did it stay mostly unnoticed in the corner of the internet? Is it at all relevant today, given so many other projects that are potential successors of or incubators for C++?

https://redd.it/1xxubh3
@r_cpp
New C++ Conference Videos Released This Month - November 2026 (Updated To Include Videos Released 2026-11-09 - 2026-11-15)

**C++Now**

2026-11-09 - 2026-11-15

* Lightning Talk: Bool - Implicitly Dangerous - Jeff Garland - [https://youtu.be/dlFSJbtY49I](https://youtu.be/dlFSJbtY49I)
* Lightning Talk: Mixed-Mode Rings: io\_uring\_context for Kernel 7.x - Robert Leahy - [https://youtu.be/Be1RA\_ypYrU](https://youtu.be/Be1RA_ypYrU)
* Lightning Talk: Our Most Treacherous Adversary - James McNellis - [https://youtu.be/degCN1CSd5w](https://youtu.be/degCN1CSd5w)

2026-11-02 - 2026-11-08

* Lightning Talk: The Hidden Superpower of Modern CPUs - Why ILP Can Make “More Work” Run Faster - Sampad Acharya - [https://youtu.be/WZl7tMBBn3U](https://youtu.be/WZl7tMBBn3U)
* Lightning Talk: When Weird Things Happen - Ruslan Arutyunyan - [https://youtu.be/VEIJkIEKEQ4](https://youtu.be/VEIJkIEKEQ4)
* Lightning Talk: A Metaprogramming Checklist - Ben Deane - [https://youtu.be/6n\_mOFP\_kBA](https://youtu.be/6n_mOFP_kBA)

2026-10-26 - 2026-11-01

* AI is Forcing us to Obey Scott Meyers - Jody Hagins - [https://youtu.be/CiaZq4kCH08](https://youtu.be/CiaZq4kCH08)
* C++ Libraries - The Road Ahead - Jeffrey Garland - [https://youtu.be/bNipVnNaDdk](https://youtu.be/bNipVnNaDdk)
* Lightning Talk: ?: - Jonathan Müller - [https://youtu.be/TLj6NVx5xvk](https://youtu.be/TLj6NVx5xvk)

**ACCU**

2026-11-09 - 2026-11-15

* C++26 Uncovered - Everything You Need to Know About the New Standard - Inbal Levi - [https://youtu.be/1r5Hl1EoaYo](https://youtu.be/1r5Hl1EoaYo)
* C++ Templates - Two-Phase Lookup - Amir Kirsh - [https://youtu.be/rQgj9agTqok](https://youtu.be/rQgj9agTqok)
* Fearless Concurrency in C++ - Tristan Brindle - [https://youtu.be/-FP6tLlCxWE](https://youtu.be/-FP6tLlCxWE)

2026-11-02 - 2026-11-08

* Implementing C++ Standard Library - Design and Optimisations in Libc++ - Hui Xie - [https://youtu.be/9efvPYY7CuY](https://youtu.be/9efvPYY7CuY)
* How Invariant are Invariants? - David Olsen - [https://youtu.be/TLk4mm4u02A](https://youtu.be/TLk4mm4u02A)
* The Biggest Misconception of Computer Science - Alex Dathskovsky - [https://youtu.be/EwgkN3an1Gs](https://youtu.be/EwgkN3an1Gs)

2026-10-26 - 2026-11-01

* Creating Composable Callables in Contemporary C++ - Using Senders / Receivers as a Frame Graph - Björn Fahller - [https://youtu.be/A4mMO5xeQDA](https://youtu.be/A4mMO5xeQDA)
* Incrementally Migrating C++ to a Memory Safe Language with Swift - Tim Condon - [https://youtu.be/LMQ21X6\_2FQ](https://youtu.be/LMQ21X6_2FQ)
* CallMeMaybe - Building Modern Runtime Reflection via C++26 - Laurie Kirk - [https://youtu.be/cA0F3wRtZIU](https://youtu.be/cA0F3wRtZIU)

**ADC**

2026-11-09 - 2026-11-15

* Protect, License, Distribute with PACE Fusion Security - Ryan Wardell, Brett g Porter & Ted Barram - [https://youtu.be/-JaMVZXYlBE](https://youtu.be/-JaMVZXYlBE)
* The Dawn of Electronic Musical Instruments in Japan - Fumio Mieda - [https://youtu.be/sNJrlMXd9dg](https://youtu.be/sNJrlMXd9dg)
* Talk to Your Synth - Sound Design as a Conversation - Aurnik - [https://youtu.be/LnR0Zj6NB\_w](https://youtu.be/LnR0Zj6NB_w)

2026-11-02 - 2026-11-08

* Are You Shipping Your Source Code? - Ryan Wardell - [https://youtu.be/ToPPQ6uTUJ0](https://youtu.be/ToPPQ6uTUJ0)
* Porting a Native C++ Synth Engine to the Browser: Lessons from Katokatone - Kazuhito Inoue - [https://youtu.be/KmX7mfkvDHg](https://youtu.be/KmX7mfkvDHg)
* Generative Instruments with Large Piano Models - Tomek Roszczynialski - [https://youtu.be/EO-hGj8\_BUY](https://youtu.be/EO-hGj8_BUY)

2026-10-26 - 2026-11-01

* TX/RX Part 2 - AI Audio on the Raspberry Pi - Kieran Coulter - [https://youtu.be/QSiyLDHoBpo](https://youtu.be/QSiyLDHoBpo)
* JUCE in DJ Products - Current Status and Future Prospects - Masamichi Tomii, Akihito Yamada & Tetsuro Abe - [https://youtu.be/VElORkcpE78](https://youtu.be/VElORkcpE78)
* Generative Instruments with Large Piano Models - Tomek Roszczynialski - [https://youtu.be/EO-hGj8\_BUY](https://youtu.be/EO-hGj8_BUY)

https://redd.it/1xxv1wi
@r_cpp
Il mio primo programma c++ effettivamente più complicato

Premessa: frequento una classe in cui non sono ancora stati fatti i cicli for, while, if, do while.

Sono molto gasato perché sto imparando a programmare senza aiuto del professore (che alla richiesta di spiegarmi come funzionano i cicli mi ha risposto che non devo saperlo perché non saprei farli). In un mese di c++ sono un po' indietro rispetto alla media, ma mi sento migliorato ultimamente. Ho fatto una calcolatrice che può calcolare prodotto somma e sottrazione tra un numero predefinito (dall' utente) di valori.

Sono molto gasato

https://redd.it/1xzhqvl
@r_cpp
Google talk at REBASE'26: Agentic Coding is not going to save C++

So the REBASE'26 conference happened recently, and besides the whole thing of what Carbon has achieved or never will, there are talks like this one from Google folks, regarding what they are doing with their C++.

The talk is all about the recent ongoing migration discussed on Google security blog, and other related efforts.

https://www.youtube.com/watch?v=Ob0CMX8s55s

https://redd.it/1y0bqfb
@r_cpp
journey begins

freshman cs student

new to coding in general

need advices and when should i think iam good in c++ and pursue another languages

https://redd.it/1y0att5
@r_cpp
FixedString - A fully functional C++ string implementation that exists only on the stack, without dynamic memory allocation
https://gitlab.com/Monsterovich/fixedstring

https://redd.it/1y0p2v0
@r_cpp
How can we get MSVC to actually test their compiler?

It seems like every update to MSVC over the past year has had some sort of massive basic compiler regression, that the team refuses to actually hotfix because regressions are not actually considered problematic. What can we do to change this and actually make regressions fixable without waiting 6+ months?

https://redd.it/1y2w1j5
@r_cpp
std::contracts::controls::enforced

From P4451R2,

\#include <contracts>
int f(int x)
pre<std::contracts::controls::enforced>(x > 0)
post<std::contracts::controls::enforced>(r : r > 0)
{
contract_assert<std::contracts::controls::enforced>(x > 0);
return x;
}

Long, 3 levels deep namespace? And

\> Because the label is found by ordinary name lookup, a namespace alias or a using-directive works
as well:
namespace scl = std::contracts::controls;

Same issue as with C++11 UDL: inconvinient to use, especially in headers, since include + alias is required - aliases will not make it better, in my opinion.

That makes me sad. Am I the only one?

https://redd.it/1y31isw
@r_cpp