Compiling Opa programs takes a very long time

150 Views Asked by At

I just started learning Opa so please bear with me if my question is naive.

I'm following Opa book (found in binary package). Chapter 1 went so fine and smooth. Now when I try to build binary for chapter 2 (hello_wiki) on Linux, it takes a lot for my beefy laptop (Thinkpad T61) to finish the job.

[bahman@bleda hello_wiki]$ time opa hello_wiki.opa 
...
real    1m36.442s
user    1m34.497s
sys     0m4.540s

Is it normal? If yes, how do you folks develop/test your programs?

TIA,

-- Bahman

1

There are 1 best solutions below

4
On

No, it' not normal, it should takes only a few seconds.

Are you using the latest stable version, Build 687 (opa --version)?

Update:

Indeed, there is a problem with this hello_wiki, with the line:

db /wiki: stringmap(Template.default_content)

We will check what's going one. Keep in touch.