AdventOfCode2020
aoc-2020
Our great sponsors
AdventOfCode2020 | aoc-2020 | |
---|---|---|
5 | 5 | |
24 | 3 | |
- | - | |
2.4 | 1.8 | |
4 months ago | over 3 years ago | |
Assembly | 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.
AdventOfCode2020
-
What languages have you learnt with AoC and now you love...or ended as "meh"?
Back in 2020 I challenged myself to use a different language for each day of AoC. Some of the languages I heard of for the first time. From that brief experience:
-
Different language every day
I did it last year, you can check the list and some reflections here. I have also collected a list of other people's attempts.
-
Which language should I pick ?
Depends on what you already know and what you expect to learn. Last year I challenged myself to solve each puzzle in a different language, but this year I'll stick to Haskell.
-
[YEAR - 2015] Every day with a new language !
I did the same thing this year: https://github.com/bereal/AdventOfCode2020/, and also collected other people's attempts. I added a link to your repo to the collection.
-
-🎄- 2020 Day 22 Solutions -🎄-
Elixir
aoc-2020
-
[2020] Optimized solutions in C++ (291 ms total)
Figured I'd post my benches as well, see below. Everything done in Rust (link to source).
-
-🎄- 2020 Day 24 Solutions -🎄-
Here's my day 24 in Rust, using SIMD as usual :) (and offset coordinate encoding to make a SIMD-friendly 2-D cell grid)
-
-🎄- 2020 Day 22 Solutions -🎄-
Borrowed both ideas in my version :) On my input your version runs at 3ms, mine in 1.5ms, so it might be faster on some inputs (link). I initially started with something similar to yours but then figured why not use 512-bit ints, so that the notion of 'head' and 'tail' disappears as your head then stays at position 0 (so, e.g., to remove a card, you just right-shift the whole bigint). Also used a tiny bit of simd along the way.
Part 1 + Part 2
What are some alternatives?
Advent_of_Code_in_Pascal - My solutions to the Advent of Code, in Free Pascal
hac - HAC Ada Compiler - a small, quick Ada compiler fully in Ada
aoc-2020 - My solutions for https://adventofcode.com
advent-of-code-2020 - Answers and solutions for Advent of Code 2020.
advent-of-code-go - All 8 years of adventofcode.com solutions in Go/Golang; 2015 2016 2017 2018 2019 2020 2021 2022
AdventOfCode-Java - adventOfCode(Language.JAVA);
hashbrown - Rust port of Google's SwissTable hash map
advent-of-code-2020
aoc2020 - Advent of Code 2020
advent-of-code - My solutions for Advent of Code
aoc2020
perlweeklychallenge-club - Knowledge base for The Weekly Challenge club members using Perl, Raku, Ada, APL, Awk, Bash, BASIC, Bc, Befunge-93, Bourne Shell, BQN, Brainfuck, C3, C, CESIL, C++, C#, Clojure, COBOL, Coconut, Crystal, D, Dart, Dc, Elm, Emacs Lisp, Erlang, Excel VBA, Fennel, Fish, Forth, Fortran, Gembase, GNAT, Go, Haskell, Haxe, HTML, Idris, IO, J, Janet, Java, JavaScript, Julia, Kotlin, Lisp, Lua, M4, Miranda, Modula 3, MMIX, Mumps, Myrddin, Nim, Nix, Node.js, Nuweb, OCaml, Odin, Ook, Pascal, PHP, Python, Postscript, Prolog, R, Ring, Ruby, Rust, Scala, Scheme, Sed, Smalltalk, SQL, Swift, Tcl, TypeScript, Visual BASIC, WebAssembly, Wolfram, XSLT and Zig.