• Stars
    star
    159
  • Rank 228,747 (Top 5 %)
  • Language
    Rust
  • License
    GNU General Publi...
  • Created over 1 year ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐ŸŽ„ 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 day and part.

I attempt to develop a standalone, elegant, compact and fast solution for each problem (two each day).

Previous year I did the same, solving everything in under a second:

Timings

Here is how long each solution runs. All solutions are measured (non scientifically) in bench.rs on an AMD Ryzen 9 5900X (24) @ 3.7GHz machine running Linux.

part A part B
day 1 0.027 ms 0.031 ms
day 2 0.006 ms 0.006 ms
day 3 0.015 ms 0.016 ms
day 4 0.040 ms 0.039 ms
day 5 0.020 ms 0.019 ms
day 6 0.001 ms 550 ns
day 7 0.008 ms 0.011 ms
day 8 0.045 ms 0.177 ms
day 9 0.120 ms 0.290 ms
day 10 0.001 ms 0.003 ms
day 11 0.019 ms 5.72 ms
day 12 0.294 ms 51.22 ms
day 13 0.238 ms 0.277 ms
day 14 0.226 ms 6.14 ms
day 15 0.003 ms 16.19 ms
one-by-one (1 CPU core) parallel
everything 81.32 ms 51.86 ms

Run solutions

Each Rust project contains a input.txt file, holding the puzzle input. Simply run the project to see the solution appear.

# Switch to day 1a, and run it
cd day01a
cargo +nightly run --release

# or run everything in parallel
cd ../runner
cargo +nightly run --release --bin runner-par

# or benchmark every day
cd ../runner
cargo +nightly run --release --bin bench

Some solutions require Rust Nightly, that's why +nightly is included.

Other years

License

This project is released under the GNU GPL-3.0 license. Check out the LICENSE file for more information.

More Repositories

1

ffsend

๐Ÿ“ฌ Easily and securely share files from the command line. A fully featured Firefox Send client.
Rust
6,600
star
2

send-instances

๐ŸŒ A list of public Send instances. Mirror.
647
star
3

lazymc

๐Ÿ’ค Put your Minecraft server to rest when idle.
Rust
478
star
4

advent-of-code-2021

๐ŸŽ„ My Advent of Code solutions in Rust. http://adventofcode.com/2021
Rust
240
star
5

prs

๐Ÿ” A secure, fast & convenient password manager CLI using GPG and git to sync.
Rust
189
star
6

advent-of-code-2020

๐ŸŽ„ My Advent of Code solutions in Rust. http://adventofcode.com/2020
Rust
118
star
7

send-docker-compose

โ˜๏ธ Basic Docker compose configuration for Send. https://gitlab.com/timvisee/send-docker-compose
Shell
108
star
8

apbf

Tool to brute force Android security pattern through TWRP recovery. https://gitlab.com/timvisee/apbf
Rust
95
star
9

ffsend-api

๐Ÿ“ฌ A fully featured Firefox Send API client written in Rust.
Rust
87
star
10

advent-of-code-2023

๐ŸŽ„ My Advent of Code solutions in Rust. http://adventofcode.com/2023
Rust
79
star
11

pixelpwnr

๐ŸŽ† Insanely fast pixelflut client for images and animations written in Rust.
Rust
53
star
12

qr2term-rs

๐Ÿ“Š Stupidly simple Rust crate to render a QR code in the terminal.
Rust
49
star
13

pixelpwnr-server

๐ŸŽ† Blazingly fast GPU accelerated pixelflut server written in Rust.
Rust
45
star
14

version-compare

โ†”๏ธ Rust library to easily compare version strings. Mirror from https://gitlab.com/timvisee/version-compare
Rust
39
star
15

dungeon-maze

:goberserk: DungeonMaze Craft Bukkit plugin - An amazing world generator for Bukkit and Spigot
Java
27
star
16

docker-compose-mssql

๐Ÿณ Docker configuration for an Microsoft SQL server on Linux using docker-compose
Shell
22
star
17

dotfiles

:octocat: Tim does dotfiles
Vim Script
21
star
18

copypasta-ext

๐Ÿ“‹ Useful extensions for the Rust copypasta crate.
Rust
14
star
19

barbapappa

๐Ÿน Bar management application to manage transactions and inventory. Mirror from https://gitlab.com/timvisee/barbapappa
PHP
12
star
20

raytrace-rs

๐Ÿ”ฎ A ray tracer in Rust.
Rust
10
star
21

pixelpwnr-render

๐ŸŽ† Blazingly fast GPU accelerated pixelflut renderer written in Rust.
Rust
9
star
22

steam-rp2g

Remote Play Together any Steam game.
Rust
8
star
23

wikitrans

๐Ÿ“œ Super simple CLI tool for translating words/terms using Wikipedia. https://gitlab.com/timvisee/wikitrans
Rust
8
star
24

rust-clipboard-ext

๐Ÿ“‹ Useful extensions for the rust-clipboard library.
Rust
7
star
25

wrdcntr

๐Ÿ’จ A simple yet very fast word counter witten in Rust
Rust
7
star
26

timvisee.com

๐ŸŒ Source code for my personal website, mirror from https://gitlab.com/timvisee/timvisee.com
SCSS
7
star
27

yaml-wrapper

A YAML wrapper for Java to make it much easier to use these configuration files
Java
7
star
28

pixelpwnr-cast

๐Ÿ“บ Insanely fast pixelflut client to cast your screen written in Rust.
Rust
7
star
29

key-barricade

๐Ÿ”‘ A Java based game engine using OpenGL, game implementation example.
Java
6
star
30

advent-of-code-2019

๐ŸŽ„ My Advent of Code solutions in Rust. http://adventofcode.com/2019
Rust
6
star
31

voxeltex-engine

๐Ÿ”ฎ A Java based game engine using OpenGL
Java
6
star
32

update-proton-ge

A script to update your Proton GloriousEggroll installation. Mirror from https://gitlab.com/timvisee/update-proton-ge
Shell
5
star
33

safe-creeper

๐Ÿ”ง Safe Creeper Craft Bukkit plugin
Java
5
star
34

ban-binance-bot

๐Ÿค– A bot to ban Binance advertising bots in public Telegram chats. https://gitlab.com/timvisee/ban-binance-bot
Rust
5
star
35

dworek

๐ŸŽฒ Create virtual drug labs in real-world locations with your cartel. Conquer labs owned by other cartels to become the drug production MVP.
JavaScript
4
star
36

cv

Personal curriculum vitae. Mirror from https://gitlab.com/timvisee/cv
TeX
4
star
37

merge-mania

Merge Mania game. Mirror from https://gitlab.com/timvisee/merge-mania
Rust
4
star
38

pokoebox

๐Ÿ”‰ A portable boombox with media center project. Mirror of https://gitlab.com/timvisee/pokoebox
Rust
4
star
39

HhsBigJava

Java
3
star
40

i3lock-slick

๐Ÿ” A CLI tool to easily make i3lock look slick.
Rust
3
star
41

aivd-kerstpuzzel-2021-18-solver

๐ŸŽ„ Solver for the AIVD kerstpuzzle 2021 #18.
Rust
3
star
42

NumberGuessGame

The Number Guess Game. An Arduino HHS challenge.
CMake
3
star
43

hhs-p6-webshop-project

C#/ASP.NET webshop collaboration project for college (HHS) period 6.
C#
3
star
44

chbs

๐ŸŽฒ A crate providing secure passphrase generation based on a wordlist, mirror from https://gitlab.com/timvisee/chbs
Rust
3
star
45

took-rs

โŒš Easily measure & report elapsed time in Rust. https://gitlab.com/timvisee/took-rs
Rust
3
star
46

hhs-p7-movie-recommendation-engine

๐ŸŽฅ Big data project for college (HHS) period 7
Jupyter Notebook
3
star
47

git-state

๐Ÿงช Probe git repository state
Rust
3
star
48

arduino-universal-led-strip-driver

๐Ÿšฅ An universal LED strip driver for Arduino that is easy to use, and allows features like animators.
CMake
3
star
49

BlackBox-Backup

BlackBox Backup, the right way. Backing up data as easy as loosing it.
Java
2
star
50

HhsArduinoCircuitAdvanced

The Arduino "circuit" project, as challange of the HHS, for MingYan Li. This is an advanced version, with object and library usage to improve the overall quality.
CMake
2
star
51

notes-toolbox

Toolbox project for compiling notes into PDF's, slides and some other formats!
Rust
2
star
52

DungeonMazeApiExample

A Dungeon Maze API Example plugin
Java
2
star
53

tty-read-rs

Read raw real-time input from the terminal in Rust
Rust
2
star
54

LoopSolver

Solver for the Loop mobile game.
Java
2
star
55

TestTheTeacher

TestTheTeacher
Java
2
star
56

CarbonCMS-Old

Carbon CMS
PHP
2
star
57

pokoebox-distro

๐Ÿ”‰ PokoeOS Linux distro for PokoeBox: A portable boombox with media center project. Mirror of https://gitlab.com/timvisee/pokoebox-distro
Shell
2
star
58

OVRally

PHP
2
star
59

HhsArduinoCircuit

The Arduino "circuit" project, as challange of the HHS, for MingYan Li. This is a fairly basic version of the project to keep everything nice and simple.
CMake
2
star
60

Manager

Permissions and Economy manager for bukkit plugins
Java
2
star
61

ProAmp

C++
2
star
62

simple-survival-games

A simple to use Survival Games plugin for Minecraft Bukkit Servers.
Java
2
star
63

lumber-bot

๐ŸŽฒ Simple lumber game bot.
Java
2
star
64

vigenere-cipher-simple

๐Ÿ”“ A simple attempt at solving a vigenรจre ciphertext, mirror from https://gitlab.com/timvisee/vigenere-cipher-simple
Rust
2
star
65

GlowstoneLanterns

Glowstone Lanterns Bukkit plugin
Java
2
star
66

DungeonMazeApiTest

DungeonMaze Api Test, for the Dungeon Maze Craft Bukkit plugin - An amazing world generator for bukkit
Java
1
star
67

Projectify

1
star
68

Frogger

Frogger, a practical computer science project.
C++
1
star
69

peperone

A stupidly simple command-line stopwatch.
Rust
1
star
70

got-team49-public

Public mirror of gameoftrades/got-team49 repository
Java
1
star
71

ScreepsAI

JavaScript
1
star
72

MinecraftRunner

A custom Minecraft Launcher
Java
1
star
73

TVNLib

TVNLib CraftBukkit plugin
Java
1
star
74

DragonRealmsCore

Dragon Realms core plugin
Java
1
star
75

hhs-p6-cs-programming

C# Programming exercises for college (HHS) period 6.
C#
1
star
76

advent-of-code-2017

My go on the advent of code challenge in 2017.
Rust
1
star
77

leap-rs

Rust
1
star
78

SimpleShowcase

Simple Showcase Craft Bukkit plugin for Minecraft Bukkit servers
Java
1
star
79

risc-bot

๐Ÿค– A Telegram bot by Tim Visรฉe for useful actions, mirror from https://gitlab.com/timvisee/risc-bot
Rust
1
star
80

CarbonCore

Repository placeholder for Carbon Core
1
star
81

beamer-controller

Simple application to remotely control a beamer.
Java
1
star
82

docker-compose-mongodb

๐Ÿณ Docker configuration for a MongoDB server on Linux using docker-compose
Shell
1
star
83

world-portal

WorldPortal plugin for CraftBukkit/Spigot: Create portals using signs, pressure plates, buttons and more!
Java
1
star
84

scheduling-application

[mirror] An open source, web-based scheduling application created by students from Russia, Spain, Estonia and The Netherlands
C#
1
star
85

MohicanenPieGuesser

A pie (baked dish) weight guesser application, for the Mohicanen.
CSS
1
star
86

ExplorersOvergang2013App

Explorers Overgang 2013 App
C
1
star
87

custom-skulls

Let mobs and players drop their skulls!
Java
1
star
88

docker-compose-factorio-server

๐Ÿณ A simple Docker container to deploy a Factorio headless server.
Shell
1
star
89

DynAmbi-Firmware

Firmware for dynamic ambientlight controller on an Arduino.
CMake
1
star
90

ProgrammingHHS

Programming challengens Haagse Hogeschool
Java
1
star
91

DynAmbi-ControlPanel

Java
1
star
92

CarbonCMS

Carbon CMS - http://carboncms.nl/
PHP
1
star
93

QuizScouting

PHP
1
star
94

Chameleon

Chameleon, a Template Engine for Carbon CMS
PHP
1
star
95

hhs-p7-database-project

1
star
96

AxiomOne

An Android Wear watchface.
Java
1
star
97

ShitheadPro

A digital version of the popular Shithead card game.
1
star
98

brainfuck-rs-quick

A quick Brainfuck interpreter in Rust
Rust
1
star
99

VBFPieGuesser

A pie (baked dish) weight guesser application, for the VBF.
CSS
1
star
100

lan-cache

Shell
1
star