Nim Nuggets: Nim talk at Strange Loop 2021

Ola Fosheim Grøstad ola.fosheim.grostad at
Mon Oct 18 15:52:47 UTC 2021

On Monday, 18 October 2021 at 15:45:18 UTC, Imperatorn wrote:
> Still. The question was not about pow 😅

Choose a better example then. :-)

> It was about how poor C++ is doing stuff at compile time in 
> general.

There are many facets of C++. One is that the original C++ 
compilation model is built around hand-tuned separate compilation 
to handle very large projects. Most projects are not all that 
large, certainly none of my C++ projects. And what was large in 
the 90s is different from what is considered large now. So, that 
is the downside of using languages like C++ which has a long 
history. Although, I think this is a weakness that affects D too.

Anyway, most of the stuff I want to do at compile time in C++, 
can be done as constexpr. Although for source generation I 
sometimes prefer to use Python to generate C++ source as I find 
it more readable to have explicit code rather than meta code in 
the source.

More information about the Digitalmars-d mailing list