tanenbaum
tanenbaum | AdventOfCode2023 | |
---|---|---|
1 | 1 | |
58 | 0 | |
- | - | |
5.8 | 7.0 | |
5 months ago | 5 months ago | |
OCaml | Rust | |
BSD 3-clause "New" or "Revised" License | - |
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.
tanenbaum
-
Advent of Code 2023 is nigh
I built an OCaml starter project for Advent of Code that I've been using. Take a look if you'd like to give OCaml a spin!
https://github.com/Sixstring982/tanenbaum
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?
advent_of_code_ex - Advent of Code solutions in Elixir, and a bunch of musings on them.
advent-of-code-rust - 🎄Starter template for solving Advent of Code in Rust.
advent2023 - scribblings at advent of code 2023
fs_playground - F# Playground
swift-interpreter - Build an interpreter in Swift
advent-of-code - Advent of Code 2022 solutions
kino_aoc - A helper for Advent of Code (a smart cell) for Elixir Livebook
adventofcode - My Advent of code challenges
scryer-prolog - A modern Prolog implementation written mostly in Rust.