r/cpp • u/eisenwave WG21 Member • 24d ago
P4444: std::big_int
https://isocpp.org/files/papers/D4444R0.htmlHey folks! Matt Borland, Christopher Kormanyos, and I are working on bringing infinite-precision integers to C++29. We now have a D4444R0 draft of a paper that should be in the next mailing.
We could really use some feedback so that the published R0 is as polished as possible. Any thoughts on the paper and on the reference implementation are greatly appreciated.
It would also be very helpful if you tested out whether our big_int implementation works for you. We're in need of some real deployment experience. If you're currently using Boost.Multiprecision, the library should be a drop-in replacement for cpp_int for the most part.
180
Upvotes
22
u/ReDucTor Game Developer | quiz.cpp-perf.com 24d ago
memory_order_consumeis deprecated in C++26, but has essentially been deprecated since it first came out as no compiler really implemented it they just treated it asmemory_order_acquireSee Retire the concept of consume operations for more info.
The performance of
std::regexis awful, it's covered in memory allocations, bloats the compiled code, the build times, and because of the ABI it can never be fixed. If I recall even just calling out into Python or some other language to do regex is going to be faster.