Nim Nuggets: Nim talk at Strange Loop 2021

Ola Fosheim Grøstad ola.fosheim.grostad at
Mon Oct 18 12:16:36 UTC 2021

On Monday, 18 October 2021 at 11:42:47 UTC, jfondren wrote:
> Part of your 'facts' are accusing Walter of simply lying about 
> his memories of ctfe and its reception, as if everyone in all 
> programming communities was obliged to be constantly aware of 
> every innovation anywhere in computing. The average compiler 
> developer, shown Forth, was going to say "well, yeah, if you 
> have a single pass compiler and are constantly compiling into 
> an interactive environment, I guess you could get compile-time 
> interaction this way, but I don't see how I could do anything 
> like that."

Dynamic languages can in general support "compile time function 
evaluation". One strategy is to run a program then force a 
core-dump and use a core-dump loader as the executable. Making a 
point of ctfe only makes sense in the context of C++ type 
construction. In that regard it is an improvment (over using C++ 
templates in a functional programming manner).

More information about the Digitalmars-d mailing list