[Agda] evaluation in compilation

Andreas Abel andreas.abel at ifi.lmu.de
Mon Oct 1 15:52:20 CEST 2012


Hello Serge,

I'd try

   twothousand = 2000

   ... sort (f twothousand) ...

Can you post your code such that we can see what is going on in MAlonzo?

Thanks,
Andreas

On 01.10.2012 12:34, Serge D. Mechveliani wrote:
> Please, how to prevent a compilation time evaluation?
>
> In my example,  sort (f 2000)   builds a certain list of 2000 naturals
> and sorts it; `main' prints the result list.
>
> And  Agda-2.3.0.1 + MAlonzo + lib-06  is not able to _compile_ this in
> any reasonable time. Probably this is because it tries to evaluate a
> constant list  (f 2000)  at the compilation time
> (for (f 30), it is compiled fast enough).
>
> I look into the compilation options and do not find a relevant key.
> I do not know, may be I am missing something simple.
>
> Thanks,
>
> ------
> Sergei
> _______________________________________________
> Agda mailing list
> Agda at lists.chalmers.se
> https://lists.chalmers.se/mailman/listinfo/agda
>


-- 
Andreas Abel  <><      Du bist der geliebte Mensch.

Theoretical Computer Science, University of Munich
Oettingenstr. 67, D-80538 Munich, GERMANY

andreas.abel at ifi.lmu.de
http://www2.tcs.ifi.lmu.de/~abel/


More information about the Agda mailing list