-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
Advent-of-Code
A repository holding all of my solutions to Advent of Code problems (by Noble-Mushtak)
-
adventofcode
My solutions for https://adventofcode.com/ programming mini puzzles - written mostly as sjasmplus script (to exercise the tool and collect ideas for future development of the script language, not because it's a best choice for the task, quite opposite) (by ped7g)
-
ultimatepp
U++ is a C++ cross-platform rapid application development framework focused on programmer's productivity. It includes a set of libraries (GUI, SQL, Network etc.), and integrated development environment (TheIDE).
-
adventofcode
Advent of Code solutions of 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 and 2023 in Scala (by sim642)
-
advent-of-code-2022
Solutions for Advent of Code 2022, written in JavaScript using node.js (by johnbeech)
-
jmurmel
A standalone or embeddable JVM based interpreter/ compiler for Murmel, a single-namespace Lisp dialect inspired by Common Lisp
-
AdventOfCode
Hacky solutions for [Advent of Code](https://adventofcode.com), working on past problems (by AllanTaylor314)
-
aoc2022
Trying to solve Advent of Code 2022 in 25 different languages (1 day = 1 language) (by GoldsteinE)
-
LEARN__Coding-Practices-and-Datastructures
Daily Coding Practices, Data structures, otherwise testing and some stuff. (Some garbage/some stuff)
-
Advent-Of-Code-2022
My solutions for Advent Of Code 2022. Every day is written in another language, chosen randomly. (by Jomy10)
-
advent-of-code-2022
Joel Eisner's completed TypeScript code challenges for "Advent of Code" 2022 (by joeleisner)
-
Advent-of-Code-2022
My solutions for the 2022 Advent of Code in a mix of MATLAB and Python3 (by mourneris)
-
advent-of-code-go
All 8 years of adventofcode.com solutions in Go/Golang; 2015 2016 2017 2018 2019 2020 2021 2022
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Oh I see, I suppose it's semantics but I personally wouldn't call that OCR (there is nothing optical about it). You are just matching against data file: https://github.com/morgoth1145/advent-of-code/blob/d0cbb184e281c01d2e43e372b435d38973509064/lib/ocr.py
Same boat! I've been really enjoying Clojure. For AoC specifically, I think it strikes a good balance between practicality and terseness.
The OCR is based on the number of active pixels for each column. The letter "E" has 6 lit pixels in the first column, 3 pixels in the 2nd and 3rd column and 2 pixels in the last column. By looking at the character list (thanks bsoyka on github!) I could craft a lookup table. The four integers will be shifted and added together to get a single integer. The 6,3,3,2 is transformed to 6<<0 + 3<<2 + 3<<4 + 2<<6 = 194 (the bits overlap, I know, but there are no collisions). The index of 194 in this magic list is 4. By adding 65 (ascii value of 'A') I can get the actual character with chr().
14 lines of Python.
Python 3, 28th on star 1 and 29th on star 2, both parts are <=20 lines of code. Main thing which is notable is that I used "\u2588" instead of # symbols and spaces instead of periods, made the capital letters much easier to read. I also have my solutions in this GitHub repo.
Python3, full code on GitHub
Elixir - 3167/1926
Typescript 1 & 2
Python, 4338/2391. Video coming eventually, code.
Ruby 3638/2800: Code
Haskell. Both parts are one liners, I add a no op before every addx to avoid skipping cycles, and using a 2D point data type (that I custom implemented based on Linear.V2 for named fields) makes handling the data a breeze!
Scala: solutions
Off-by-one errors driving me mad today! Github
Advent of Code finally made me create a Github account. My solution is here if someone is interested. As a solo dev, I never really needed one, I just used Git. If there is something obvious I'm doing wrong, I'm open for feedback. I'll remove the hard-coded file paths and add my extensions once I have some time.
Erlang
2343 / 2119
Pretty happy with the final code but not with how I got there. Python 3 - GitHub. Bonus meme: you can even navigate to my initial version that doesn't even print out part 2 correctly, but correctly enough to see the answer.
U++ (C++ GUI/RAD framework) day 10 solution at github
U++ (C++ GUI/RAD framework) day 10 solution at github
yeah, one of the few where my solutions aren't one- or two-liners calling shared code
Part 1 and part 2 were both implemented as interpreters directly interpreting the assembly code. This was the first time where we absolutely had to deal with negative numbers, so I had to write a parser that was cool with negative numbers, and an output formatter that was also okay with negative numbers (mainly for debugging). (I should add ascii-to-signed-long to the common library.) Unfortunately, I'm not willing to do OCR using assembly, so I printed out the result as pixels and manually translated that into ASCII characters. The core evaluator between the two parts was quite similar - the only difference was what happens during the cycle. With part 1, I had to sum up certain cycles. With part 2, I had to add characters to an array.
Rust. any day I can use strip_prefix to parse something is a good day
both parts
Well, generators can be your friend in Python, and I think this is fairly nice
Rust
No opportunities to be fancy or clever today in the code, basic looping with a few mutables: https://github.com/jasonincanada/aoc-2022/blob/main/day_10/src/main.rs
python3.10 Got off by one errors while keeping track of cycles, so i decided to just delete it
(This is the first one I golfed. The rest are here)
Part 1
My Scala solution.
Kotlin
Python
Pretty simple - no frills. https://github.com/EricEzaM/AdventOfCode/blob/main/src/AdventOfCode/Y2022/D10/Y2022D10.cs
C#
ruby
Murmel:
Enjoyed today's puzzle - here's my solution in Scala 3
Python https://github.com/gmorinan/advent-of-code-2022-simple-python/blob/main/day10/day10.py
My Nim solution using an iterator to run the commands: Github
Lua: both parts
Rust
Yay, embedded software engineering!! :) Short, fast & almost no memory needed in C: https://github.com/ednl/aoc2022/blob/main/10.c or the relevant bits:
Rust
Julia. For part 1 there is no need to save the value for each cycle but this is necessary for part 2.
Kotlin https://github.com/DDihanov/Advent-Of-Code-2022-Kotlin/blob/master/src/main/kotlin/day10/Day10.kt pretty easy today, the key was the % module operator
Code and commentary posted, including a boolean Raster struct with on and off properties so you can play with things like showing the answer as ANSI color patterns or thematic emoji:
Haskell (full code here):
in rust, easy one !
My Golang solution: https://github.com/win0err/solutions/tree/master/adventofcode/2022/10-cathode-ray-tube
Julia https://github.com/DarthGandalf/advent-of-code/blob/master/2022/day10.jl
Haskell
Full code here.
C++ solutions by OneWings
day10 My solution is in Golang. I solved the problem by using a prefix-sum array and binary search. It was so much fun.
Python and Google Sheets
Python, but it looks like a Java programmer wrote it.
Turned the input into JavaScript (using Fish) by replacing noop with cycle() and addx with cycle(); cycle(); x+=, and then executing it.
F#
Bash
C++ template metaprogramming: https://github.com/xicalango/horrible-advent-of-code-2022/blob/main/day10.cc
beginner golang solution
Haskell
Rust
julia github
Golang : on Github
Elixir on github
Letter OCR Header --- Source --- Header
Unit tests are here.
code
GitHub
>> code here <<
Javascript/NodeJs: Part1, Part2
Scala using tail recursion. Not the prettiest, but it works
c# day 10
Part 1
Elixir
Typescript one-liners solution
Assembly (MC68000)I made the Elf-asm input program part of my source and just let it run to generate a trace of the x register.https://github.com/agranlund/aoc2022
C# (link)
Kotlin
It's not pretty, at all, but here it is in PHP.
Not quite happy about the getSprite() fucnction, but i was too lazy to refactor it. Anyways here's my Solution
Python 3
github
Javascript solution
Rust Combined the parts, but it runs at ~11us
My solution: Not particularly troublesome today, even given my beginner level of Rust. Modeled the display as a Vec of Vecs.
My Rust solution. Definitely got stung by the off by ones doing this one! :)
Typescript + Tesseract.js OCR: screenshot and source code.
My todays Rust solution. :)
Just as a comparison my code runs in day10: 1.999ms but is not as pretty :)
Kotlin Day 10
Common Lisp: https://github.com/poesraven8628/AdventofCode2022/blob/main/10-signal.lisp
My Python solution. I'm okay with what I came up with from a maintainability perspective
Day10 spaghetti
C# Day 10
Swift. Algorithms had me covered for Part 2, but I had to make something for Part 1 that would allow for getting the elements of a Sequence based on sorted offsets, without having to start from the beginning each time.
Rust
The first part only
Proud of this one! C# Repo
Full code
Swift: Repo
Typescript
Kotlin
Rust
C++: - Part 1 - Part 2
part 1
Straightforward Python solution.
Dlang solution. For part 2 I initially thought that the X register contains values exceeding 40, so I kept appending pixels to the CRT while comparing them to the sprite, and in the end I printed the string in chunks of 40. Only later did I realize my mistake
My solution in C#: https://github.com/thomasqbrady/AdventOfCode/blob/master/2022/day10/Program.cs
Here's the solution code; the full code is at github
Part 1 (Snippet) [Full Code on Github]
yet another C# solution.
Scala solution for part 1: https://github.com/dredly/Advent-of-Code-2022-Scala/blob/main/src/main/scala/day10.scala
Source at gitlab
Sources of visualization
C# solution using .NET Interactive and Jupyter Notebook. Created an IEnumerable that yield returns the register value during the cycle (made the mistake of returning the value at the end of the cycle at first). Then used LINQ on the Enumerable to solve Part 1 and 2.
Haskell
So, I've done day 10 a little bit late, because I spent day 10 reorganizing my repo and starting some kind of "helper libs" to make development easier on the Apple //c: serial helper, input helper, my very own "bool array" that I did for day 9, sender tool, receiver tool.
Lots of opportunities to go off-by-one here. On a side note I figured out the 'include' problems that I thought I fixed the previous day. That story and the code are found at my repo.
Full code on github.
Go: Check my solutions implementations here.
Rust: https://github.com/satylogin/aoc/blob/main/2022/day_10.rs
Code 10b
Here is the github to the solution i didnt split it in two functions this time cause i didnt need to
Code on github.