On Friday, 17 February 2017 at 19:44:10 UTC, Temtaime wrote:

Just get LDC.
Make it use JIT.
And you'll get all the features working.
Writing slow interpreter is ... wasting efforts.

For your information LLVM takes about 5 milliseconds to start up, it also takes a lot of time to generate code even when completely unoptimized. For usual one-shot CTFE functions this leads to a _HUGE_ pessimisation of performance. For the quite common usecase of returning a literal out of function templates newCTFE takes UNDER a MICROsecond. There is no way LLVM could even come close no matter how many caching layers one adds.

Reply via email to