Commit Graph

349 Commits

Author SHA1 Message Date
d2d66dc763 2020 day 23 part 1: re-use part 2 (unfinished) code 2022-10-08 20:56:50 +02:00
284eeb3dea 2020 day 23 part 1 (bash). Ooops. This won't do part 2 :-( 2022-10-06 16:42:30 +02:00
f74a1ffb8a delete .projectile and .dir-locals.el 2022-10-05 16:36:57 +02:00
b001690c95 delete .projectile and .dir-locals.el 2022-10-05 16:31:28 +02:00
0fe04e43dc 2019 day 9: cleanup code (see TODO in commit notes)
TODO:
- rename peek/poke
- remove the costly test on valid instruction in run()
- use array for i/o instead of input and output.
   Then merge prg_{add,get}_{input,output}
- add a pipe function to move one program output to (another) input
- remember in next AoC to use _unused to keep interesting unused functions
2022-10-04 22:49:01 +02:00
bd851b6524 2019 day 09: parts 1 & 2 2022-10-04 22:04:50 +02:00
Bruno
1cfd1c81f0 day 19 day 9: save unfinished work from laptop 2022-10-04 12:12:48 +02:00
Bruno
130f2a4d54 2019 day 9 init from day 7 2022-10-04 07:34:29 +02:00
625966f5b8 2019 day 8: parts 1 & 2 2022-10-03 10:54:54 +02:00
521e6e1bca 2019 day 8 init 2022-10-01 19:52:56 +02:00
bacbc6eded typo 2022-10-01 19:49:43 +02:00
5694883ef5 2019 day 6: remove count of allocated tries/objects 2022-10-01 19:07:05 +02:00
6a43725e30 fix copyright year 2022-10-01 18:34:20 +02:00
4d938b6cd7 2019 day6: simplify code, remove forgotten outputs 2022-10-01 18:31:52 +02:00
0c9b93b42a update copyright 2022-10-01 18:20:02 +02:00
04fcca5829 update copyright 2022-10-01 18:19:19 +02:00
ddfa8cf05b 2019 day 7, final version + update RESULTS.txt 2022-10-01 16:39:34 +02:00
5008963937 2019 day 7 part 2, before cleanup 2022-10-01 15:50:33 +02:00
155e066ed2 2019 day 7, part 1 2022-09-30 19:22:12 +02:00
626bd1df41 init 2019 day 7 with day 5 source, typo in day 6 2022-09-30 16:28:22 +02:00
8ed39e52b7 simplify part 2: use depths difference instead of two parent lists 2022-09-29 20:08:50 +02:00
e83b690822 2019 day 6 : add structure diagrams (Thanks Emacs' artist-mode !) 2022-09-29 19:41:51 +02:00
0004b2091e 2019 day 6: remove dead code, trie contains object ptr instead of object 2022-09-28 18:47:20 +02:00
a201283599 2019 day 6: parts 1 and 2, before cleaning (lots of printf ;-) 2022-09-28 15:25:01 +02:00
d5c37f5d48 cosmetic changes 2022-09-28 15:24:18 +02:00
1c10926cf9 bits.h: add rolXX(), rorXX(), ilog2(), bits_per(), etc... 2022-09-28 15:22:25 +02:00
94c6b2eec5 add attribute(__pure__) 2022-09-28 15:21:11 +02:00
b50f3a7098 switch from gnu99 to gnu11 2022-09-28 15:16:41 +02:00
8783eca22c 2019 day 6 init 2022-09-25 12:28:40 +02:00
3d18e36ff4 2019 day 5: fix wrong link in README, replace struct with typedefs 2022-09-25 12:26:07 +02:00
b6af1f3edb 2019 day 5: Update results & README 2022-09-24 18:48:20 +02:00
Bruno
68d81fd1da 2019 day5: cleaner (final ?) version 2022-09-24 12:13:14 +02:00
Bruno
b206ee5b87 2019 day5: fix run-example.sh reversed results 2022-09-24 12:12:12 +02:00
Bruno
13c977957f 2019 day 5: working version before cleanup 2022-09-24 08:01:57 +02:00
Bruno
d0adb2378a 2019 day 5: set all examples + test script 2022-09-24 07:55:47 +02:00
d1221ab086 2019 day 5: add examples from day 2, add _stringify in br.h 2022-09-22 10:11:24 +02:00
f2b32f236d 2019 day 5 init (with day 2 code) 2022-09-21 09:43:50 +02:00
696273367a 2019: update Makefile from day 4 2022-09-21 09:27:33 +02:00
f7336d6814 when rule 4 is violated, skip to next possible number 2022-09-20 22:01:43 +02:00
a461bf2842 typo 2022-09-20 20:02:23 +02:00
0ce9f9aafa Add --show-error-list=yes to valgrind options. Invalid opcode again!
To run "make memcheck", uncomment Makefile line 36 (-m no-tbm).
Without this, I get :
vex amd64->IR: unhandled instruction bytes: 0x8F 0xEA 0xF8 0x10 0xFF 0x23 0x1D 0x0 0x0 0x89
vex amd64->IR:   REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0
vex amd64->IR:   VEX=0 VEX.L=0 VEX.nVVVV=0x0 ESC=NONE
vex amd64->IR:   PFX.66=0 PFX.F2=0 PFX.F3=0
==888233== valgrind: Unrecognised instruction at address 0x109336.
2022-09-20 19:58:30 +02:00
ea530e7d8d 2019 day 4, minor is_valid() simplification 2022-09-20 19:57:27 +02:00
2694f8d4d0 2019 day 4, parts 1 and 2 2022-09-20 19:22:13 +02:00
f9a80239b4 2019 day 4 init 2022-09-20 13:55:15 +02:00
ffb27a8338 2019 day 3 cleanup 2022-09-20 13:39:08 +02:00
dbfc914efb test newline in org paragraph 2022-09-19 20:15:30 +02:00
c4772bb416 typo in day03 README.org 2022-09-19 20:05:13 +02:00
bc8dac927a fix broken Makefile for valgrind + fix day02 memory leak. 2022-09-19 20:01:11 +02:00
42d1f7bf48 README.org cleanup, update RESULTS.txt, build README.org with Makefile 2022-09-19 19:59:26 +02:00
828d13f967 2019 day 3 + add br.h for some useful stuff (min, max... macros) 2022-09-19 19:35:37 +02:00