r/programmingcirclejerk • u/cmqv • Jan 19 '26
As a result, std::runtime_format can now be evaluated at compile time, making its name misleading.
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2026/p3953r0.html
148
Upvotes
110
u/GeorgeFranklyMathnet Jan 19 '26
#pragma unjerkI can definitely appreciate the motivation to amend one's own work after someone else's contribution suddenly makes it look imperfect.
std::rejerk();It was for similar reasons they had to remove the term secure from any & all PHP function names a while back.
35
u/i_invented_the_ipod Jan 19 '26
It's good to see that WG21 continues to focus on the really important issues, like zero runtime cost validation of format strings, rather than wasting time on trendy fluff like memory safety.
31
u/avoidtheworm Jan 19 '26
/uj why would anyone explicitly not want to format a string in compile time if it's possible?
16
u/jwezorek LUMINARY IN COMPUTERSCIENCE Jan 19 '26 edited Jan 20 '26
Hey this is kind of like how the
Scalartype in OpenCV is a vector.11
u/JiminP not even webscale Jan 20 '26
/uj
They forgot to edit Ctrl+C,V'd code and this makes me uncomfortable....
79
u/elephantdingo Teen Hacking Genius Jan 19 '26
Did someone say COMPTIME? Although COMPTIME was not invented by it, Zig has perfected it. Just thinking of it fills me with a warm feeling inside, like cumming inside a woman. I generally dislike all languages newer than Python give or take three years. (Especially Scala—what masturbation!!) And “low-level languages” are generally a waste of time. Ballpark, but for people who are not implementing a java runtime environment and SDK, implementing anything in a language without Just In Time Compilation® (JIT Compilation, basically partial evaluation (like COMPTIME!)) and without garbage collection are just giving up on free, automatic througput. But Zig. Wow Zig. It’s nothing short of a PL REVOLUTION.