News for hackers. Stuff that matters.
Re:Const vs. constexpr vs. consteval vs. constinit in C++20 by userbinator on Monday November 28, 2022 @10:23PM (#33783315)
The trick with C++ is to use and pick things to work on that haven't devolved into a massive abomination of complexity just to be trendy and "modern". I've found that something like the classic (pun intended) "C with classes" style is a good balance.

Personally, I prefer to use C (C89) which is high-level enough to be reasonably productive, while at the same time not high-level enough to discourage the creation of overly complex code.

There are surprisingly frequent posts here from people who have written their own C compiler. I don't think I've seen a single C++ one yet.

Re:Const vs. constexpr vs. consteval vs. constinit in C++20 by estebank on Tuesday November 29, 2022 @12:47AM (#33784114)
Are you baiting Walter for a reply? :)
Re:Const vs. constexpr vs. consteval vs. constinit in C++20 by JonChesterfield on Tuesday November 29, 2022 @09:14AM (#33787814)
`clang++ -ffreestanding` (without a standard library) is growing on me as a C89 replacement. There's some annoyances like std::launder that you need to implement using compiler intrinsics but it's feasible.