On Sunday, 25 April 2021 at 21:27:55 UTC, sighoya wrote:
On Monday, 19 April 2021 at 06:37:03 UTC, FeepingCreature wrote:
Native CTFE and macros are a beautiful thing though.
What did you mean with native?
When cx needs to execute a function at compiletime, it links it
into a shared object and loads it back with dlsym/dlopen. So
while you get a slower startup speed (until the cache is filled),
any further calls to a ctfe function run at native performance.
Plus, it means the macro is ABI compatible with the running
compiler, so the compiler can pass objects back and forth without
a glue layer.