Hello
Topic is opened following this one hard-apu-haskell
I have the impression (maybe I am wrong) that the haskell code on the server side is executed directly (with runhaskell) and not compiled then executed (ghc myprogram.hs && ./myprogram).
My impression comes from the fact that there is a 10x performance gap between compiled and not compiled.
Ran locally the program that failed (not compiled) took 1.2s, and let’s say that the machines are much slower on the server because of the charge they have to handle. It’s understandable that it could take longer and not pass the test.
But after compiling, the program finishes all 13 tests cases in a row in less than 0.19s (including overhead of Hunit + execution +profiling + without any optimisation option), even with the server being slower, the test should definitely pass
Anyway, I would like like to know whether those are compiled or not.
And if not, then why not doing it ? what’s the point of taking a compiled language if this one is not compiled.
I really like CG and Haskell, and I want to do both !!
I really look forward to take a full advantage of this language, and beat “brute force” puzzles with haskell instead of being afraid to try them and get stuck whenever I should start relying on my language execution time
Hoping the best,
Olivier