Re: CTFE

2018-05-10 Thread Jiyan
Thank you very much

Re: CTFE

2018-05-09 Thread jzakiya
Secifically, in `~/nim-0.18.0/compiler/vmdef.nim` set `MaxLoopIterations* = 1_000_000_000` (1 Billion) then rebuild sysem: `./koch boot -d:release`

Re: CTFE

2018-05-09 Thread mashingan
This post mentioned that [https://forum.nim-lang.org/t/3658/1#22788](https://forum.nim-lang.org/t/3658/1#22788)

Re: CTFE

2018-05-09 Thread Hlaaftana
The max instruction number has been increased since 0.18.0, it's gone from 1.5 million to 1 billion. However this release is not out yet

CTFE

2018-05-09 Thread Jiyan
Hey, wanted to ask whether it is possible to increase the number of possible ctfe iterations. For example: proc f(): int = var c = 0 for i in 0..10: c += 1 return c proc g():int = for i in 0..100: result += f() const

CTFE examples

2017-03-19 Thread MikeB
Are there (more) inspiring examples for compile time function evaluation use cases? I've stumbled upon examples for "generating look-up tables" (CRC32) and "enabling syntactic sugar", but would like to gain more food-for-thought. BR Mike