<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 20, 2016 at 3:02 PM, Sergei Meshveliani <span dir="ltr"><<a href="mailto:mechvel@botik.ru" target="_blank">mechvel@botik.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
And GHC is faster in a constant ratio of about 10.<br>
I think this is due to the difference between unary coding arithmetic in<br>
Agda's Standard library and n-ary one of GHC.<br>
For example, 12 * 12 costs 12 additions in DoCon-A and, probably, 3-4<br>
machine instructions in GHC<br>
(do I understand right of what is happening there ?).<br></blockquote><div><br></div><div>No, natural number operations (_+_, _*_ etc) are compiled to the corresponding</div><div>Haskell Integer operations.</div><div><br></div><div>/ Ulf</div></div></div></div>