fs_playground
fs_playground | AdventOfCode2023 | |
---|---|---|
2 | 1 | |
0 | 0 | |
- | - | |
8.3 | 7.0 | |
12 days ago | 6 months ago | |
Jupyter Notebook | 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.
fs_playground
-
Advent of Code 2023 is nigh
Perhaps for some puzzles, but I find this solution to be pretty elegant!
https://github.com/williamcotton/fs_playground/blob/ffbc57ac...
-
Shh: Simple Shell Scripting from Haskell
Huh, I was just tinkering with the same sort of thing with the same motivations but with F#:
https://github.com/williamcotton/fs_playground/blob/main/Scr...
Thanks for this, I’m going to borrow a lot of your concepts, especially the added infix operators, those are slick!
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?
shh - Simple shell like scripting from Haskell
advent_of_code_ex - Advent of Code solutions in Elixir, and a bunch of musings on them.
advent2023 - scribblings at advent of code 2023
tanenbaum - OCaml Advent of Code starter project
swift-interpreter - Build an interpreter in Swift
xonsh - :shell: Python-powered, cross-platform, Unix-gazing shell.
kino_aoc - A helper for Advent of Code (a smart cell) for Elixir Livebook
advent-of-code
scryer-prolog - A modern Prolog implementation written mostly in Rust.