Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--sharing doesn't seem to work in emacs #2241

Closed
m0davis opened this issue Oct 7, 2016 · 1 comment
Closed

--sharing doesn't seem to work in emacs #2241

m0davis opened this issue Oct 7, 2016 · 1 comment

Comments

@m0davis
Copy link

m0davis commented Oct 7, 2016

--sharing seems to not work in emacs (--interaction) mode. The code below runs fast when Agda is invoked from the command line with --sharing. Doing similarly from emacs is slow. (NB When testing, be sure to first remove all builtin *.agdai files.)

open import Agda.Builtin.Bool
open import Agda.Builtin.Nat
open import Agda.Builtin.Equality

-- M n k = n modulo k
M : Nat -> Nat -> Nat
M 0       k = 0
M (suc n) k
  with suc (M n k)
... | r
  with r < k
... | true = r
... | false = 0

test-M : M 100 10 ≡ 0
test-M = refl
@m0davis
Copy link
Author

m0davis commented Oct 7, 2016

I guess this was already talked about here (#426 (comment)) and here (#1867).

@m0davis m0davis closed this as completed Oct 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant