advent_of_code
Advent_of_Code
Our great sponsors
advent_of_code | Advent_of_Code | |
---|---|---|
5 | 14 | |
0 | 7 | |
- | - | |
0.0 | 3.7 | |
over 1 year ago | 6 months ago | |
Ada | Python | |
- | 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.
advent_of_code
-
It's a brand new year! January 2023 What Are You Working On?
I've updated the README file of my github repository where I have put solutions to Advent of Code. The README file outlines my thoughts and considerations when writing the code which uses a minimal subset of the full Ada language, uses AdaControl to know the intended subset is used, how memory safety and resource management in general has been done when not taking advantage of SPARK. https://github.com/joakim-strandberg/advent_of_code
-
Outsider's Guide to Ada
I am aware that controlled types are associated with performance penalty although I haven't fully understood why. When I write Ada code I try to avoid using them although sometimes there seem to be no workaround like for example when using Gautier's multi precision integer implementation when doing Advent of Code 2021 (https://github.com/joakim-strandberg/advent_of_code, the "Big_Int_Holder" package in advent_of_code_2021.adb). Return value optimization (RVO) does make me think of extended return and limited types in Ada 2005, although as was discussed in the video that move semantics is more than that. Thanks for bringing up the subject!
-
AdaCore and Ferrous Systems Joining Forces to Support Rust
It's kind of the opposite for me. It takes much less time to understand what Ada-written code is doing compared to any of the C-type languages, or even Rust. It is very plainly written. Verbose, yes, but much more plainly written.
Just take a look at this, and tell me it's not legible: https://github.com/joakim-strandberg/advent_of_code/blob/mas...
-
-🎄- 2021 Day 2 Solutions -🎄-
Ada95, part one (full code at https://github.com/joakim-strandberg/advent_of_code/):
-
Ada and Advent of Code 2021
Ouch, link doesn't work, due to escape characters. The proper link: https://github.com/joakim-strandberg/advent_of_code
Advent_of_Code
-
Advent of Code day 12 advise
Then I came across this Python solution, which was quite short and concise. So I implemented this solution in F#, but I had to use a mutable. I couldn't figure out how to get rid of this mutable. Is there a way, or is this solution not a F# one?
-
-🎄- 2021 Day 21 Solutions -🎄-
My solutution in Python. Using itertools.cycle for part 1 and functools.cache for part 2.
-
-🎄- 2021 Day 16 Solutions -🎄-
My solution in Python. This one was fun! Thanks for the many samples and the detailed description.
-
-🎄- 2021 Day 15 Solutions -🎄-
My solution in Python. At first I was really struggling but then I luckily found some A* pathfinding code I wrote many years ago.
-
-🎄- 2021 Day 14 Solutions -🎄-
My Solution in Python. This one is pretty compact and amazingly fast thanks to collections.Counter and functools.lru_cache. Here is the function for counting the elements:
-
-🎄- 2021 Day 12 Solutions -🎄-
My solution in Python. A simple search without recursion.
-
-🎄- 2021 Day 11 Solutions -🎄-
My solution in Python. It's astonishing how much trouble I had today despite my experience with cellular automata.Lots of off-by-one errors and problems with synchronicity.
-
-🎄- 2021 Day 7 Solutions -🎄-
My solution in Python. I realised that I could use the median for part 1 and mean for part 2 like some others here.
-
-🎄- 2021 Day 6 Solutions -🎄-
My solution in Python. Today was fun and very easy. I immediately came to the same conclusion as others here to simply count the number of fish per age group.
-
-🎄- 2021 Day 5 Solutions -🎄-
My solution in Python. Now it starts to get interesting. I need to remind myself to use collections and itertools more often.
What are some alternatives?
misra-rust - An investigation into what adhering to each MISRA-C rule looks like in Rust. The intention is to decipher how much we "get for free" from the Rust compiler.
advent-of-code-2021 - 🎄 My Advent of Code solutions in Rust. http://adventofcode.com/2021
aoc-ada-2021 - Advent of Code 2021 in Ada
advent-2021-kotlin - :christmas_tree: Advent of Code 2021: Solutions in Kotlin
advent-of-code - My Advent of Code solutions through the years - mostly JS
advent-of-code-2021
AdventOfCode - My solutions to Advent of Code
aoc-2021-rust
adventOfCode - https://adventofcode.com/
advent-of-rust-2021 - Solutions to Advent of Code 2021 in Rust
aoc21
specter - Clojure(Script)'s missing piece