Re: How to make this compile

2017-11-26 Thread Araq
> What I assume you are saying is helper is some Nim source program that will > produce the output that gemPGparameters does. The expression you give will > then execute helper at run time and provide its results to const parameters > at its compile time. Is this interpretation correct?

Re: How to make this compile

2017-11-26 Thread jzakiya
I'm trying to understand what you are suggesting with your response, especially because what I ultimately want to do in this instance I will want to do with other bigger generators. What I assume you are saying is `helper` is some Nim source program that will produce the output that

Re: How to make this compile

2017-11-26 Thread Araq
Don't run it at compile-time? Use a helper program and read in the result via `const parameters = parseInt(staticExec("nim c -r helper"))`

How to make this compile

2017-11-26 Thread jzakiya
The code below works, but when I try to run it using P17 the compiler throws an error about the `gcd` proc. Using P17 causes `gcd` to be called on the order of 250,000 times, as `modpg = 510510` Here's the code. # Create constant parameters for chosen PG at compile time proc