Advent of Code 2022

In 2022 I was participating in Advent of Code for the first time. AOC is usually used as an opportunity to try and learn a new language. I decided to try 25 languages instead—a new one every day. I went through the list of favourite programming languages reported in StackOverflow survey from 2022 for inspiration.

Try: Clojure Scala Java Assembly Elixir OCaml TypeScript Swift Fortran COBOL Dart

Better not try: PHP Kotlin VBA F# C# SAS APL Crystal MATLAB Groovy Delphi Solidity Objective-C HTML/CSS PowerShell SQL

Else if madness

Post scriptum

Matt Might did the same and he actually finished the AOC.

16 C++

Graph navigation with templates

2022-12-16

15 R

Intervals and sets in R

2022-12-15

14 Ruby

Ruby has a nice documentation

2022-12-14

13 Haskell

Haskell recursions, pattern matching and text file parsing

2022-12-13

12 Lua

Tables as lists, dictionaries, queue

2022-12-12

11 Erlang

Monkey business in BEAM

2022-12-11

10 C

Reading files with fgets and rendering CRT monitor with sprites

2022-12-10

09 Lisp

Chasing tails with lists and recursion in Common Lisp

2022-12-09

08 Julia

Scouting in the forest with Julia

2022-12-08

07 Rust

Stack implemented as a vector, substrings using slices

2022-12-07

06 Javascript

Queues and counters implemented with JavaScript objects

2022-12-06

05 Go

String processing and stack manipulation with slices and the standard library

2022-12-05

04 Perl

Counting overlaps in the infamous write-only Perl

2022-12-04

03 Bash

Clumsy string processing in Bash

2022-12-03

02 Python

Conditions and conditions again in Python

2022-12-02

01 AWK

Summing and finding maxima with good old Unix tools

2022-12-01
published: 2022-12-01
last modified: 2023-07-08

https://vit.baisa.cz/notes/code/advent-of-code-2022/