chiark / gitweb /
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Ben Harris [Sat, 25 May 2024 22:35:24 +0000 (23:35 +0100)]
17b finally done
I got confused and forgot that jets didn't reset for each rock. Once
that was fixed it was only a bit slow.
Ben Harris [Sat, 25 May 2024 21:22:22 +0000 (22:22 +0100)]
17b works on example
Ben Harris [Sat, 25 May 2024 10:15:20 +0000 (11:15 +0100)]
17a done
Ben Harris [Tue, 21 May 2024 21:10:06 +0000 (22:10 +0100)]
17a starting to work
need to not restart jet sequence for each rock, though
Ben Harris [Tue, 21 May 2024 19:10:31 +0000 (21:10 +0200)]
16b done
A little light memoization did the trick (but 27s CPU time!)
Ben Harris [Tue, 21 May 2024 15:36:56 +0000 (17:36 +0200)]
16a done
Ben Harris [Tue, 21 May 2024 15:24:55 +0000 (17:24 +0200)]
16a: example completes in reasonable time
Ben Harris [Tue, 21 May 2024 11:00:36 +0000 (13:00 +0200)]
16a: faster search, now 19 levels in a minute
Ben Harris [Tue, 21 May 2024 10:38:32 +0000 (12:38 +0200)]
16a: correct but slow exhaustive search
Ben Harris [Tue, 21 May 2024 09:08:29 +0000 (11:08 +0200)]
15b done
Utter mess with lots of debugging, which I've left in for posterity.
Ben Harris [Wed, 15 May 2024 15:53:02 +0000 (17:53 +0200)]
15b: found constraining beacons
Ben Harris [Wed, 15 May 2024 14:45:39 +0000 (15:45 +0100)]
15a done
Ben Harris [Wed, 15 May 2024 10:34:46 +0000 (11:34 +0100)]
15a: input parsing
Ben Harris [Tue, 14 May 2024 16:19:58 +0000 (17:19 +0100)]
14b done
I dodged the bug by sticking the floor on by simpler means.
Ben Harris [Tue, 14 May 2024 15:12:30 +0000 (16:12 +0100)]
14b kind of works but gives weird internal CBQN errors
Ben Harris [Tue, 14 May 2024 14:58:00 +0000 (15:58 +0100)]
14a done
Ben Harris [Tue, 14 May 2024 12:16:38 +0000 (13:16 +0100)]
14a: map constructed
Ben Harris [Tue, 14 May 2024 06:45:01 +0000 (07:45 +0100)]
14a: short-circuit boolean ops because I think I'll need them
Ben Harris [Mon, 13 May 2024 20:03:39 +0000 (21:03 +0100)]
13b done
Ben Harris [Mon, 13 May 2024 19:43:28 +0000 (20:43 +0100)]
13a working on the example but probably subtly wrong
Ben Harris [Mon, 13 May 2024 13:33:52 +0000 (14:33 +0100)]
13a: most of the list parser done
Ben Harris [Sun, 12 May 2024 10:57:52 +0000 (11:57 +0100)]
12: factorise contruction of can_go_x arrays somewhat
Ben Harris [Sun, 12 May 2024 10:41:46 +0000 (11:41 +0100)]
12: Use the primitive •_while_: it's actually easier to understand
Ben Harris [Sun, 12 May 2024 10:19:46 +0000 (11:19 +0100)]
12b done
Ben Harris [Sun, 12 May 2024 10:08:51 +0000 (11:08 +0100)]
12a done
Ben Harris [Sat, 11 May 2024 10:53:52 +0000 (11:53 +0100)]
11a: faster Inspect copied back from 11b
Ben Harris [Sat, 11 May 2024 09:58:31 +0000 (10:58 +0100)]
11a and 11b done
Ben Harris [Fri, 10 May 2024 08:41:26 +0000 (09:41 +0100)]
10b done
Ben Harris [Fri, 10 May 2024 08:10:18 +0000 (09:10 +0100)]
10a done
Ben Harris [Thu, 9 May 2024 13:00:31 +0000 (14:00 +0100)]
09: prep cleanup
Ben Harris [Thu, 9 May 2024 12:49:19 +0000 (13:49 +0100)]
09b done
Ben Harris [Thu, 9 May 2024 12:43:49 +0000 (13:43 +0100)]
09a: restructure to calculate head and tail paths separately
Ben Harris [Thu, 9 May 2024 12:34:55 +0000 (13:34 +0100)]
09a: split head and tail steps
Ben Harris [Thu, 9 May 2024 08:40:52 +0000 (09:40 +0100)]
09a done
Ben Harris [Thu, 9 May 2024 08:35:56 +0000 (09:35 +0100)]
09a working on example
Ben Harris [Thu, 9 May 2024 08:25:58 +0000 (09:25 +0100)]
09a: successfully tracing path using fold
Ben Harris [Wed, 8 May 2024 13:37:29 +0000 (14:37 +0100)]
08: explicitly construct rotations as powers of ⌽∘⍉
Ben Harris [Wed, 8 May 2024 13:29:16 +0000 (14:29 +0100)]
08: rotate maps rather than mirroring
This is now consistent across 08a and 08b.
Ben Harris [Wed, 8 May 2024 13:26:13 +0000 (14:26 +0100)]
08b done
Ben Harris [Wed, 8 May 2024 08:29:13 +0000 (09:29 +0100)]
08a done
Ben Harris [Tue, 7 May 2024 21:26:37 +0000 (22:26 +0100)]
07: slight cleanups though I'm still not happy
Ben Harris [Tue, 7 May 2024 20:27:47 +0000 (21:27 +0100)]
07b done (also slight readability improvement in 07a
Ben Harris [Tue, 7 May 2024 20:17:59 +0000 (21:17 +0100)]
07a done
Ben Harris [Tue, 7 May 2024 18:24:54 +0000 (19:24 +0100)]
07a: store paths in the normal order (root to leaf)
Ben Harris [Tue, 7 May 2024 12:41:01 +0000 (13:41 +0100)]
07a: extract only regular files
Ben Harris [Tue, 7 May 2024 12:36:44 +0000 (13:36 +0100)]
07a: got a list of files with full paths
Ben Harris [Tue, 7 May 2024 08:14:37 +0000 (09:14 +0100)]
07a trivial CLI that can cd
Ben Harris [Mon, 6 May 2024 19:46:50 +0000 (20:46 +0100)]
06: simplify code to use monadic / (Indexes)
Ben Harris [Mon, 6 May 2024 05:43:02 +0000 (06:43 +0100)]
06b done
Ben Harris [Mon, 6 May 2024 05:42:18 +0000 (06:42 +0100)]
06a: parameterise main block by length of marker
Ben Harris [Mon, 6 May 2024 05:37:18 +0000 (06:37 +0100)]
06a gratuitously more tacit version
Ben Harris [Mon, 6 May 2024 05:36:27 +0000 (06:36 +0100)]
06a done
Ben Harris [Sun, 5 May 2024 15:26:05 +0000 (16:26 +0100)]
05: simpler Prep
Ben Harris [Sun, 5 May 2024 12:13:43 +0000 (13:13 +0100)]
05b: remove a comment that only applied to 05a
Ben Harris [Sun, 5 May 2024 12:12:27 +0000 (13:12 +0100)]
05a: another place where a scalar can be automatically promoted
Ben Harris [Sun, 5 May 2024 12:09:48 +0000 (13:09 +0100)]
05a: slightly simpler Prep1Proc
Ben Harris [Sun, 5 May 2024 12:07:17 +0000 (13:07 +0100)]
05b done
Ben Harris [Sun, 5 May 2024 11:58:41 +0000 (12:58 +0100)]
05a: slightly prettier ExecuteMove
Ben Harris [Sun, 5 May 2024 11:55:56 +0000 (12:55 +0100)]
05a done
Ben Harris [Sun, 5 May 2024 11:32:25 +0000 (12:32 +0100)]
Tidy up and comment map prep in 05a
Ben Harris [Sun, 5 May 2024 10:28:33 +0000 (11:28 +0100)]
Prep for 05a
Ben Harris [Sat, 4 May 2024 12:02:59 +0000 (13:02 +0100)]
A bit more Split fettling in 04
It was silly to have an operator that immediately called its operand on
its argument and did nothing else with the operand. Better to have a
function that takes the output of the operand as its left argument.
That avoids the confusion I had over whether the operator should take a
function that acts on a single element or on the whole list: it now
takes neither.
This doesn't even make calling the function any harder. It just changes
F _split x into F⊸Split x.
Ben Harris [Sat, 4 May 2024 08:50:08 +0000 (09:50 +0100)]
git ignore *.eg and *.in
Those are the names I use for my input files
Ben Harris [Sat, 4 May 2024 08:49:13 +0000 (09:49 +0100)]
Genericise Split to modifier _split in 04
Ben Harris [Sat, 4 May 2024 08:41:12 +0000 (09:41 +0100)]
04b done
Ben Harris [Sat, 4 May 2024 08:39:02 +0000 (09:39 +0100)]
04a done
Ben Harris [Fri, 3 May 2024 13:10:41 +0000 (14:10 +0100)]
Slight simplification of 03b
I think I've understood ˘ now. It's like ¨ but for rows rather than
elements.
Ben Harris [Fri, 3 May 2024 09:26:10 +0000 (10:26 +0100)]
03b done
Still don't really understand the interaction of ˝ and ˘ though.
Ben Harris [Fri, 3 May 2024 09:00:37 +0000 (10:00 +0100)]
03a done
Ben Harris [Fri, 3 May 2024 08:22:56 +0000 (09:22 +0100)]
03a just needs priority
Ben Harris [Thu, 2 May 2024 13:30:43 +0000 (14:30 +0100)]
02a and 02b done
Ben Harris [Thu, 2 May 2024 09:59:51 +0000 (10:59 +0100)]
01b done
Ben Harris [Thu, 2 May 2024 09:43:07 +0000 (10:43 +0100)]
01a done