adventofcode2023
adventofcode2023 | AdventOfCode2023 | |
---|---|---|
1 | 1 | |
7 | 0 | |
- | - | |
8.6 | 7.0 | |
4 months ago | 5 months ago | |
Prolog | Rust | |
- | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
adventofcode2023
-
Advent of Code 2023 is nigh
A Prolog solution:
https://github.com/emiruz/adventofcode2023/blob/main/day01/p...
AdventOfCode2023
-
Advent of Code 2023 is nigh
I ended up using parser combinator library nom. It's not something I use daily, therefore parsing became a puzzle on its own.
Nom already has a parser for numbers. However, I didn't find an elegant way to take at most one digit. In the end I used take_while_m_n, and mapped it with u64::from_str().
Another challenge was absence of something such as find_all, that would repeatedly try to parse beginning from each character and then return all matches. I ended up writing my own combinator.
https://github.com/drola/AdventOfCode2023/blob/main/src/bin/...
What are some alternatives?
kino_aoc - A helper for Advent of Code (a smart cell) for Elixir Livebook
advent_of_code_ex - Advent of Code solutions in Elixir, and a bunch of musings on them.
tanenbaum - OCaml Advent of Code starter project
advent2023 - scribblings at advent of code 2023
swift-interpreter - Build an interpreter in Swift
scryer-prolog - A modern Prolog implementation written mostly in Rust.
adventofcode - 🎅 Repo where anyone can solve puzzles from adventofcode.com
advent-of-code-rust - 🎄Starter template for solving Advent of Code in Rust.