version2
Advent-of-code
version2 | Advent-of-code | |
---|---|---|
6 | 25 | |
1,220 | 27 | |
1.6% | - | |
5.8 | 0.0 | |
3 months ago | over 1 year ago | |
C++ | Nim | |
Apache License 2.0 | - |
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.
version2
-
SIMD intrinsics and the possibility of a standard library solution
Vector class library - 938 GH stars
- Checking for the absence of a string, naive AVX-512 edition
-
-๐- 2022 Day 4 Solutions -๐-
Most of the time is spent parsing, but this problem lends itself nicely to a SIMD formulation, which using vectorclass doesn't even require detailed knowledge of the intrinsics. Hot runs take ~14 ยตs on a Core i9-12900K, including I/O. Full code is (here)[https://github.com/ahans/aoc2022/blob/main/cpp/day04.cc], the interesting part is this, where we process 32 elements at once:
- Significantly faster quicksort using SIMD
- Parsing JSON faster with Intel AVX-512
- What do you think is faster for batch-processing a lot of "double-type" arithmetic?
Advent-of-code
- -๐- 2022 Day 11 Solutions -๐-
- -๐- 2022 Day 9 Solutions -๐-
-
-๐- 2022 Day 6 Solutions -๐-
Wow, almost identical to mine: https://github.com/MichalMarsalek/Advent-of-code/blob/master/2022/Nim/day6.nim
- -๐- 2022 Day 4 Solutions -๐-
- -๐- 2022 Day 3 Solutions -๐-
- -๐- 2022 Day 2 Solutions -๐-
-
[2021] [Nim] Nim is Beautiful + All days in < 130ms
This year I was writing two sets of solutions in Nim. The first one focuses on idiomatic, nice and short and readable Nim. The other focuses purely on speed. The combined running times of the fast solutions is 130 ms. Please let me know if you have any tips on how to make my solutions more simple and/or idiomatic.
- -๐- 2021 Day 19 Solutions -๐-
- -๐- 2021 Day 18 Solutions -๐-
-
-๐- 2021 Day 15 Solutions -๐-
Beautiful Nim! My solution is actually very similar.
What are some alternatives?
highway - Performance-portable, length-agnostic SIMD with runtime dispatch
AdventOfCode2021 - Solutions to all 25 AoC 2021 problems in Rust :crab: Less than 100 lines per day and under 1 second total execution time! :christmas_tree:
aoc22 - Advent of Code solutions for 2022 (in Python)
aoc2021 - Solutions to Advent of Code 2021
advent2022
Wren - The Wren Programming Language. Wren is a small, fast, class-based concurrent scripting language.
adventOfCode2022
CSpydr - A static typed low-level compiled programming language inspired by Rust and C
simde - Implementations of SIMD instruction sets for systems which don't natively support them.
AdventOfCode_2022_Rust
Day4 - My (messy) Python3 solution for day4's puzzle.
AdventOfCode2021