advent-of-code-rust
AdventOfCode2023 | advent-of-code-rust | |
---|---|---|
1 | 7 | |
0 | 623 | |
- | - | |
7.0 | 7.8 | |
6 months ago | about 2 months ago | |
Rust | Rust | |
- | MIT 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.
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/...
advent-of-code-rust
-
A better project structure for Advent of Code in Rust
https://github.com/fspoettel/advent-of-code-rust best rust aoc template imo
-
Advent of Code 2023 - DAY 1
It's Christmas time and time for Advent of Code 2023 edition. Starting from today I will try to solve puzzles in Rust and publish a post a day in which I tell my solution. My goal is not to climb the leaderboard but to use the problems to practice writing Rust code and improve my language knowledge. Copilot yes or Copilot not? It's for learning so Copilot definitely not. The solutions will be available at the following git repository, as I don't have much time to write a template from scratch, I will use the starter template available here.
-
Advent of Code 2023 is nigh
If you haven't tried Rust:
Someone put together a very nice template in Rust that automatically downloads tests, solutions, creates a scaffold for the binaries, etc and submits solutions through CLI. I used this template last year to learn Rust and it got me "up and running" quickly and easily.
https://github.com/fspoettel/advent-of-code-rust
-
58 Rust Resources Every Learner Should Know in 2023
18. π¨π΄ Advent of Code is a yearly event where you can solve small (but high-quality) programming puzzles in any language you want. It can be applied to any language that you are learning. You might find this, this, and this repo useful as well where they provide templates and solutions for prior years.
-
Hey Rustaceans! Got a question? Ask here (14/2023)!
I know you mentioned you were using this an exercise to learn macros so feel free to ignore this, but I like using this template repository for Advent of Code. It treats each day as a separate binary, but main.rs will run through all the days.
-
-π- 2022 Day 8 Solutions -π-
I'm using this template. If you are familiar with Rust you could try running my code in this template to see what speeds you get. This is with the --release flag.
-
-π- 2022 Day 4 Solutions -π-
Great solve! Mine ended up being much more complicated since I tired to predict the part 2... Can recommend using a template so you dont have to repeat the whole cargo things, I use this one that builds templates, test and downloads input etc https://github.com/fspoettel/advent-of-code-rust
What are some alternatives?
advent_of_code_ex - Advent of Code solutions in Elixir, and a bunch of musings on them.
Advent-of-Code
advent2023 - scribblings at advent of code 2023
bat - A cat(1) clone with wings.
swift-interpreter - Build an interpreter in Swift
aoc2022 - Advent of Code 2022 on SCAMP
tanenbaum - OCaml Advent of Code starter project
AoC - my personal repo for the advent of code yearly challenge
kino_aoc - A helper for Advent of Code (a smart cell) for Elixir Livebook
advent-of-code - My solutions to the Advent of Code
scryer-prolog - A modern Prolog implementation written mostly in Rust.
advent-of-code - My (incomplete) solutions to the Advent of Code yearly challenges.