version2
Vector class library, latest version (by vectorclass)
advent-of-code | version2 | |
---|---|---|
1 | 6 | |
2 | 1,220 | |
- | 1.6% | |
10.0 | 5.8 | |
over 1 year ago | 3 months ago | |
Swift | C++ | |
- | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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
Posts with mentions or reviews of advent-of-code.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-03.
-
-๐- 2022 Day 4 Solutions -๐-
I updated the solution to use the overlap standard library function and to implement a "fullyContains" function (impl. here: github)
version2
Posts with mentions or reviews of version2.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-08.
-
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?
What are some alternatives?
When comparing advent-of-code and version2 you can also consider the following projects:
advent-of-code - My solutions to the Advent of Code
highway - Performance-portable, length-agnostic SIMD with runtime dispatch
aoc - advent of code
aoc22 - Advent of Code solutions for 2022 (in Python)
swift - The Swift Programming Language
advent2022
AoC - Advent of Code
adventOfCode2022
aoc-2022 - Advent of Code 2022
simde - Implementations of SIMD instruction sets for systems which don't natively support them.
advent-of-code
Day4 - My (messy) Python3 solution for day4's puzzle.