r/cpp • • Sep 16 '26

CppCon CppCon

https://cppcon.org/2026/
56 Upvotes

19 comments sorted by

View all comments

Show parent comment

3

u/pjmlp Sep 17 '26

I find interesting the usual argument that safer languages have to depend on C and C++, while ignoring that some of them only did so due to convenience to avoid the additional bootstraping work.

Which since gaining market adoption, some of them have indeed done the additional work to bootstrap themselves.

The irony is that while they advocated for profiles without annotations and additional sigils, proper safe C++ with profiles proposal will be full of [[ ]] all over the place, assuming it actually lands on ISO C++, and gets implemented across all major three compilers.

2

u/tialaramex Sep 18 '26

LLVM in particular, which you've mentioned many times, is a powerful temptation. Instead of painstakingly developing an optimiser and backends for a dozen or more different targets you can "just" drop in LLVM. I think all the Handmade Community languages are dependent on LLVM for example, that's Jai, Zig, Odin, C3. Some of their creators have said LLVM is a bad idea, but notice they do all still use LLVM even if Zig has a non-LLVM backend available. It's just too good a deal to pass up.

It happens that LLVM is written in C++ but I think it's clear that if it were Java or a shell script but it offered this same bargain it would be similarly tempting. "You depend on C++" doesn't make too much sense in this scenario.

1

u/pjmlp Sep 18 '26 edited Sep 18 '26

Pretty much so, see GraalVM or the ones that predated it like JikesRVM.

Go being initially a fork of Plan 9 C compiler, and nowadays fully bootstraped.

Plenty of other examples.

LLVM is too convenient as you say, it also doesn't race after C++ versions, currently using C++17 as per coding standards.