Commit graph

57 commits

Author SHA1 Message Date
Antoine Martin 36154b6780 all: fix clippy lints for rust 1.65 2022-12-06 01:17:46 +01:00
Antoine Martin d7a77e9283 fix various clippy lints from 1.57 2021-12-04 17:42:52 +01:00
Antoine Martin ebc57d58b6 cargo: bump to 2021 edition 2021-11-25 16:34:29 +01:00
Antoine Martin e82df94852 clippy: fix lints 2021-11-25 16:23:56 +01:00
Antoine Martin 8236dbc0c2 enable some additional clippy lints everywhere 2020-12-17 01:59:01 +01:00
Antoine Martin e25bc47f8f fix some pedantic clippy lints that make sense
- clippy::redundant-closure-for-method-calls
- clippy::explicit-iter-loop
2020-12-17 01:59:01 +01:00
Antoine Martin 8d11c817f3 bench: split to separate package
Unfortunately cargo doesn't allow optional dev dependencies (see
rust-lang/cargo#1596) so this is the workaround.

Previously, running `cargo test` triggered the build of all dev
dependencies, including criterion, which in turn pulls in a lot of
stuff. Running tests should be faster, hence this change.
2020-12-15 12:16:33 +01:00
Antoine Martin 9a2e37468f 2019: fix new clippy lints 2020-12-14 20:35:10 +01:00
Antoine Martin deb808faf3 2019: switch to anyhow 2020-12-14 20:35:10 +01:00
Antoine Martin aaaaadd901 2019: day14: finish 2019-12-15 01:28:14 +01:00
Antoine Martin 03d248cf9c 2019: day13: finish 2019-12-14 00:51:44 +01:00
Antoine Martin 9f77b90f81 2019: day12: part 2 2019-12-12 16:46:34 +01:00
Antoine Martin f0a9da6065 2019: day12: part 1 2019-12-12 15:10:47 +01:00
Antoine Martin 3ea1ca4ec5 2019: day07: simplify part2 logic 2019-12-12 13:44:33 +01:00
Antoine Martin 4e1fecf3ee 2019: day11: finish 2019-12-11 23:58:25 +01:00
Antoine Martin bbbde2836d 2019: day10: part 1 2019-12-10 18:36:53 +01:00
Antoine Martin d02364731d 2019: intcode: rename method to get last output 2019-12-09 16:42:54 +01:00
Antoine Martin 83fa28b21d 2019: day08: fix clippy lints 2019-12-09 16:34:48 +01:00
Antoine Martin 56adb541a0 2019: day09: finish 2019-12-09 16:27:06 +01:00
Antoine Martin 088f203f61 2019: intcode: prepare for day09
- Implement opcode 9
 - Support infinite memory
2019-12-09 16:25:17 +01:00
Antoine Martin 21b9b2d18f 2019: day08: finish 2019-12-08 17:12:26 +01:00
Antoine Martin c7a1ecf280 2019: da04: fix clippy lints 2019-12-08 15:56:08 +01:00
Antoine Martin 2b4173e80e bench: use more samples by default 2019-12-08 02:45:34 +01:00
Antoine Martin 83e99215fb 2019: day07: part 2 2019-12-07 23:04:50 +01:00
Antoine Martin 27f6a072da 2019: day07: part 1 2019-12-07 21:32:06 +01:00
Antoine Martin 72444351a8 2019: intcode: split to own module 2019-12-07 18:21:36 +01:00
Antoine Martin e468ec2952 2019: day05: allow intcode creation with memory 2019-12-07 17:43:15 +01:00
Antoine Martin d44dca92a0 2019: day05: allow for multiple inputs 2019-12-07 17:37:53 +01:00
Antoine Martin 5246fce2ef 2019: day05: refactor intcode 2019-12-07 17:22:52 +01:00
Antoine Martin d621d80bac 2019: day04: parse input once 2019-12-07 02:15:21 +01:00
Antoine Martin 3fd8cd924d 2019: day04: improve performance
Reuse allocated memory for digits
2019-12-07 02:14:51 +01:00
Antoine Martin 6f26cf5860 2019: day06: fix clippy lints 2019-12-07 00:31:10 +01:00
Antoine Martin 3a6e9d58b6 2019: day03: 100x speedup 2019-12-07 00:29:42 +01:00
Antoine Martin 989fc854d9 2019: day03: parse input only once 2019-12-06 19:47:25 +01:00
Antoine Martin 0c98050bc0 2019: add benchmarks 2019-12-06 19:07:57 +01:00
Antoine Martin 4bff689da0 aoc: stop printing inside run functions
This will make benching implementations easier
2019-12-06 19:06:49 +01:00
Antoine Martin 6f06d5d7ca 2019: day06: use a HashSet instead 2019-12-06 12:00:37 +01:00
Antoine Martin 0fa59d675b 2019: day06: part 2 2019-12-06 11:45:15 +01:00
Antoine Martin 1f364cd20f 2019: day06: part 1 2019-12-06 11:44:45 +01:00
Antoine Martin fb0bb469ee fix clippy lints 2019-12-05 16:35:39 +01:00
Antoine Martin 6202a3b1fd 2019: day05: part 2 2019-12-05 16:12:50 +01:00
Antoine Martin 6e1c3c989f 2019: day05: part 1 2019-12-05 15:45:19 +01:00
Antoine Martin f0f872c199 2019: day04: part 2 2019-12-04 23:40:12 +01:00
Antoine Martin 69000f9254 2019: day04: part 1 2019-12-04 23:18:01 +01:00
Antoine Martin a81ad7c114 2019: day03: part 2 2019-12-03 10:45:37 +01:00
Antoine Martin a4f54fec18 2019: day03: refacto part 1 2019-12-03 10:22:56 +01:00
Antoine Martin 0662208914 2019: day03: part 1 2019-12-03 09:52:39 +01:00
Antoine Martin 5bee7a0ce7 aoc: refactor main() function 2019-12-02 17:01:10 +01:00
Antoine Martin c4d9f6c2db 2019: removed unused types from lib.rs 2019-12-02 17:00:56 +01:00
Antoine Martin 9b27a57f0b 2019: day02: part 2 2019-12-02 12:14:40 +01:00