Trying to solve Advent of Code 2022 in 25 different languages (1 day = 1 language)

Related tags

Command-line aoc2022
Overview

Advent of Code 2022: 15/25 langs

I’ll try to solve this Advent of Code using different language for each day. Any programs needed to run the code will be available via dev shell in the flake.nix.

Languages

Day Language Link
1 GNU Awk ./day01/
2 GNU sed ./day02/
3 Nix ./day03/
4 jq ./day04/
5 VimScript ./day05/
6 PCRE ./day06/
7 POSIX Shell ./day07/
8 Ada ./day08/
9 Haskell ./day09/
10 GNU Octave ./day10/
11 Elixir ./day11/
12 Raku ./day12/
13 Clojure ./day13/
14 Lua ./day14/
15 Futhark (+ some C) ./day15/

check.sh

You can use check.sh script in the root directory of the repo to run all tests for one or every day.

Working Rust installation is needed for this to work. Development shell in flake.nix provides one.

$ ./check.sh      # Run all tests for every available day
$ ./check.sh 2    # Run all tests for the second day
$ ./check.sh 1 3  # Run all tests for the first and the third day

This script will exit with non-zero status if any of the checks failed.

Directory structure

In each day* directory there are following files and subdirectories:

Path Contents
./README.md Description & various info
./in/ Input files for the task
./in/demo1.txt Example for the first part
./in/demo2.txt Example for the second part
./in/part1.txt Input file for the first part
./in/part2.txt Input file for the second part
./out/*.txt Correct answers for the corresponding inputs
./code/ Code of the solution
./build/ Build artifacts
./build/.keep Empty file, required to commit ./build/
./scripts/ Scripts for building & running the solution
./scripts/build.sh Build the solution
./scripts/run.sh Run the solution with specified input

How to use run.sh

$ dayX/scripts/run.sh demo 1  # Run the first on the example
$ dayX/scripts/run.sh part 1  # Run the first part on the real input
$ dayX/scripts/run.sh demo 2  # Run the second part on the example
$ dayX/scripts/run.sh part 2  # Run the second part on the real input
You might also like...
  🦀 Rust solutions for Advent of Code 2022
🦀 Rust solutions for Advent of Code 2022

🎄 Advent of Code 2022 Solutions for Advent of Code in Rust. 2022 Results Day Part 1 Part 2 Day 1 ⭐ ⭐ Day 2 ⭐ ⭐ Day 3 ⭐ ⭐ Day 4 ⭐ ⭐ Day 5 ⭐ ⭐ Day 6 ⭐

My try at Advent of Code 2022 in Rust.

Advent of Code 2022 My solutions to Advent of Code 2022, written in Rust. I love seeing the variety of solution other people come up with, so I decide

Solutions to Advent of Code 2022 in Rust  🦀

AdventOfCode2022 🎄 Solutions to AoC 2022 in Rust 🦀 Usage cargo run --release --bin DAY # run a specific day cargo run --release # run all

Here are my Advent of Code solutions for 2022.

advent-of-code-2022 This repository contains my Advent of Code solutions for 2022. I am doing them in Ruby, Crystal, and Rust, and as I release each d

Advent of Code 2022 - my answers

Advent of Code 2022 my answers Development occurs in language-specific directories: Haskell Kotlin Python Rust Day1.hs Day1.kt day1.py day1.rs Day2.hs

🎄 My Advent of Code solutions in Rust. http://adventofcode.com/2022

Advent of Code 2022 in Rust My Advent of Code 2022 solutions in the Rust programming language. This repository holds a separate Rust project for each

Advent of Code 2022 - in Rust!

Advent of Code 2022 My solutions to problems in 2022 edition of Advent of Code, written in Rust. How to use this repo: The best way to see how solutio

My Advent of Code 2022 solutions, in Rust.

AoC 2022 My solutions for the 2022 edition of Advent of Code in Rust. Simply run cargo run --release --bin dayXX to solve. Some days require z3, insta

Rust-advent - Learning Rust by solving advent of code challenges (Streaming live on Twitch every Monday)
Rust-advent - Learning Rust by solving advent of code challenges (Streaming live on Twitch every Monday)

Rust advent 🦀 🐚 Learning Rust by implementing solutions for Advent of Code problems. 🎥 HEY, we are live-streaming our attempts to solve the exercis

Owner
Max “Goldstein” Siling
Doing horrible things with Rust
Max “Goldstein” Siling
🎄 Advent of Code written in various languages. (2015-2022)

?? Advent of Code This repository contains my solutions to the Advent of Code puzzles. Every year, I will try to solve the puzzles in a different lang

Tommy 2 Dec 15, 2022
Advent of Code, this year I will attempt the 25 different languages challenge

Advent of Code 2022 As this is my third year doing Advent of Code, this time I will try the 25 Different Languages Challenge, which is solving the pro

Andreu Vall Hernàndez 7 Dec 27, 2022
I will be attempting Advent of Code 2022 with Rust, a language I have never learned before.

Advent of Code 2022 This year, I will be attempting Advent of Code with Rust, a language I have never learned before. I will also be taking some notes

null 4 Jan 7, 2023
Terminal UI for leetcode. Lets you browse questions through different topics. View, solve, run and submit questions from TUI.

Leetcode TUI Use Leetcode in your terminal. Why this TUI: My motivation for creating leetcode-tui stemmed from my preference for tools that are lightw

Akarsh 8 Aug 10, 2023
🎄 My solutions to Advent of Code 2022.

?? advent-of-code-2022 Overview This repository contains my solutions to Advent of Code 2022. I decided to take this year as an opportunity to learn R

Vighnesh Shenoy 3 Dec 15, 2022
Advent of Code 2022 (Rust)

Advent of Code 2022 ?? | -+- A /=\ /\ /\ ___ _ __ _ __ __ __ i/ O \i / \/

Dominik Harmim 2 Dec 15, 2022
Solutions to Advent of Code 2022 puzzles

Solutions to Advent of Code 2022 puzzles

null 3 Dec 15, 2022
Advent of Code 2022 Solutions (in Rust)

Advent of Code 2022 My solutions for Advent of Code 2022, written in Rust. This repository provides a good template for anyone interested in writing t

Sam Mohr 3 Dec 2, 2022
My solutions for Advent of Code 2022, written in Rust

Template largely copied from RikvanToor/aoc-rust-template, upgraded for clap v4. This template can be forked/cloned from beeb/aoc-rust. Usage First, f

Valentin Bersier 2 Dec 15, 2022
Advent of Code 2022 in Rust 🦀

Advent of Code 2022 in Rust ??

Philippe Bouamriou 3 Dec 2, 2022