r/programminghumor • • Sep 26 '26 • Bravo 1

Java VS C++

Post image
1.9k Upvotes

42 comments sorted by

View all comments

Show parent comment

2

u/TREE_sequence Sep 27 '26

C++26, with CTR and more functions being constexpr, takes it a step further. Now that std::log is constexpr, a fully-featured dtoa algorithm, with generated digit tables and such, can support any encoding, be configurable to a number of digits, and be evaluated at compile time. Why you would want to convert a floating-point number to text at compile time is another question entirely, but uh…it’s possible now! Also, compile-time polymorphism without CRTIP, and arbitrary-size tuple-likes that can be template parameters…it’s pretty fun

1

u/No-Magazine-2739 Sep 27 '26

Looks like just uncoordinated browsing over cpp reference.com won’t cut it to get a good understanding what C++26 brings.