Top Tweets for #ConstEval
@veimmone @elonmusk @tetsuoai I meant up to c++26, this includes c++20/23 also. Basically constexpr/consteval, compile time polymorphism, compile time memory allocation, function overloading, templates, explicit casting, inheritance, namespaces, constinit, lambda functions, compile time if else, and many more
rust-analyzer now handles consteval errors and rustc_private attributes without choking. The fix surfaces compile-time constant evaluation failures in the IDE instead of silently bailing, and lets you work with unstable compiler internals when you need them.
Rustdoc's doc_cfg attribute messages got a small but welcome polish, clearer, less noise.
Extern custom derives stabilized in rustc after a long ride through nightly. One fewer feature gate to worry about.
RFC to refactor the libs team is live for discussion. Governance stuff, but worth a read if you care how stdlib decisions get made.
A few rollups landed across rust, rust-analyzer, and the crates index. Routine, but the consteval fix is the one that'll hit your editor. #rustlang
https://t.co/3671HL0O0l
rust-analyzer now returns proper error consts when consteval fails, stopping solver hangs on broken const expressions.
Rustc_private support for rustc_proc_macro landed, unblocking macro work that needs compiler internals.
PowerPC inline ASM got a fix: scalar floats were ending up in the wrong vector lane on little endian systems.
Rust's next solver perf issue with fully_perform_locally got ripped out. unic-ucd benchmarks breathed easier.
Consteval correctness in rust-analyzer has been a quiet pain point. This one actually moves the needle. #rustlang
https://t.co/3671HL0O0l
@sergio_77777777 Unfortunately I'm failing to see how "if constexpr" or "if consteval" would help!
Is there a way to check if we can default construct T at compile time in C++?
Meaning is there a way to check if the default constructor of T is marked as constexpr or consteval?

That is correct. It is this way so you don't have to have separate functions for run time -vs- compile time cases. If you would like a compile error if the function cannot run at compile time, you would use consteval
It doesn't need to know all params at compile time because constexpr functions can run at compile time or run time. A function that can ONLY run at compile time is a consteval function, not a constexpr function.
Of course it's not often that all args would be known at compile time. If so, then it would be a consteval function, rather than a constexpr function. It does speed up runtime in the few times it does happen.
Are we under-using constexpr/consteval because it’s “too complex”…
or because most devs still think C++ is just runtime + RAII?
@SimonDesire3 C++ with constinit/consteval and templates be like:

🚀 Just read “C++26 Reflections adventures & compile‑time UML” by Gianluca on ReachableCode (posted July 31, 2025)
He demonstrates how C++26’s new ^^ lift and [: :] splice operators enable compile‑time generation of class diagrams in PlantUML style—no external tools required. Everything runs in a consteval function producing a UML .dot diagram as a literal string at compile time.
The author walks through:
Using std::meta::info reflections to introspect types and values
Building a PlantUML representation with recursive traversal
Handling member composition, pointer/reference decay, and context sensitivity
Abundant code examples make it super clear.
Blog: https://t.co/YA3oQdFKZ0
#cpp #cpp26 #metaprogramming #reflection #UML #Cplusplus
@yutongwu111140 consteval is such a beautiful thing
@yutongwu111140 Pls write consteval function that evaluate format string from argument count and don't do this
@jcelerie Actually, with consteval, you force your function to be evaluated at compile time thus, the returned int will be a constant expression. The beauty with consteval is the neat compiler error message if you try to call the function in a non constant expression
P2564R0 consteval needs to propagate up
consteval(とかis_constant_evaluated)はソースコード上の文脈によって振る舞いが決定されているので、直感的��ゃないところがある(そしてむずかしい・・・
https://t.co/C3LjjJ9arh
Last Seen Hashtags on Sotwe
dsaproject
Seen from Korea
SaboorAlyOfficial
Seen from Korea
リジュラン最安値
Seen from Korea
EspañaCocinaAbierta
Seen from United States
BlueArchive
Seen from Vietnam
snapchattttttt
Seen from Brazil
state manufacturing
Seen from Belgium
les
Seen from United States
brosis
Seen from Guatemala
StayWithUsHanbin
Seen from United States
Most Popular Users

Elon Musk 
@elonmusk
239.5M followers

Barack Obama 
@barackobama
118.5M followers

Cristiano Ronaldo 
@cristiano
114.3M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.3M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.1M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.7M followers

X 
@x
60.6M followers










