AdventOfCode.Template
advent-of-code-2021
Our great sponsors
AdventOfCode.Template | advent-of-code-2021 | |
---|---|---|
5 | 4 | |
37 | 1 | |
- | - | |
4.1 | 0.0 | |
5 months ago | 9 months ago | |
C# | JavaScript | |
MIT License | 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.
AdventOfCode.Template
-
From Script to Scaffold in F#
Earlier this year, I wrote about scripting and automation in VSCode using typescript as part of an ongoing project to reduce time consuming repetitive actions in my professional life. So this seemed like a perfect opportunity to do something similar at a more targeted domain space. Additionally, I'd seen a few examples of AOC runners floating around (pre-built libraries and templates that come with hope to help streamline the mechanics of participating in AOC). There are a few solutions in the .NET ecosystem, but they're all in C#!
-
[C#] [.NET] AoCHelper: Benchmark/framework library + template
You can use it 'as-is', or start from this template to better understand how it works 😊
-
[2021] Big Inputs for Advent of Code 2021 Puzzles
I didn't really care about executing times, but using C# I ran into array size limits which made me switch to my approach. I'm using eduherminio/AdventOfCode solver framework which returns 0.5ms as a result, which I'm pretty sure is not correct tough. Adding a stopwatch to the executing method returns 3ms. Hope that helps.
-
I am doing Advent of Code in C# using the new .NET 6 this year. Hope others will join the journey.
Great, me too! Check out this c# template on github for an easy way to manage the problems
- [C#] [.NET] Repo template and library to measure performance
advent-of-code-2021
-
[2021] Big Inputs for Advent of Code 2021 Puzzles
My original, unoptimized JS solution runs 9999999 in about 440 seconds. I thought that I'd cut that down with some heavy optimization, but it still takes the exact same time. Some loose profiling shows that most of the time is actually spent waiting for memory accesses, not in the CPU. I guess that's due to all the BigInts.
-
What is the best way to read a text file of your input in your language of choice?
I'm using Javascript (NodeJS) again this year. I've got a small common/io.js module that exports this function:
-
-🎄- 2021 Day 1 Solutions -🎄-
Javascript [Part 1] [Part 2]
What are some alternatives?
AdventOfCode2020 - My solutions for Advent Of Code 2020
advent-of-code-typescript-starter - Typescript template in Node.js for Advent of Code event
advent-of-code - Advent of Code
advent2019-fast - Advent of Code 2019 optimized solutions in C++
AoCHelper - Helper .NET library for solving Advent of Code puzzles
aoc2021
AoC2021.NET6 - My solutions for Advent of Code 2021. Written in C# using .NET 6's top-level statements and implicit usings with a focus on using new .NET 6 features and LINQ.
adventofcode - Solutions for problems from AdventOfCode.com
AdventOfCodeDayTemplate - The template for dotnet CLI for AdventOfCode day solution.
BQN - An APL-like programming language. Self-hosted!
adventofcode2020 - Python solutions to https://adventofcode.com/2020
adventofcode - Answers to Advent of Code