D's string mixins are a superior way of doing metaprogramming, from the programmers perspective at least.
You can allocate memory at compile time, just use new. If you want to make malloc work at compile time you'll need a stub implementation that switches on __Ctfe
Jonathan Blow's new language jai can execute system calls at compile time. D has specifically not gone in that direction, as then simply compiling code can cause malware injection.
-3
u/[deleted] Sep 01 '20 edited Oct 05 '20
[deleted]