On Wednesday, December 2, 2020 at 11:59:23 PM UTC+1, Stephen Leake wrote:
> On these small files, can you really tell the difference in speed
> between GNAT and HAC? or (insert other favorite editor, mine is Emacs)
> and LEA? for me, everything is instantaneous.
From GNAT Studio I get a range of 1.5 sec (an i5 PC @2.9 GHz) to 9 sec (a lightweight laptop)
for building aoc_2020_12.adb (almost a benchmark for easy puzzles ;-) ).
On the same source, I run hac -v2 aoc_2020_12.adb:
Compilation finished in 0.000335500 seconds.
Part 1: Manhattan distance of the ship to (0,0): 1631 (1631.0)
Part 2: Manhattan distance of the ship to (0,0): 58606 (58606.0)
VM interpreter done after 0.008894500 seconds.
So, for this kind of puzzle, it makes a difference (correct solution to part 1 was sent at 00:11:01).
But agreed, it's quite rare.
Especially on today's puzzle, I didn't even consider using HAC...