aoc
scamp-cpu
Our great sponsors
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.
aoc
-
[2016 all days] [C] Advent of Code 2016 in C
Personally I just stick to raw arrays for most days, usually with static storage (so pre-allocated). Keeps things simple! Here's my repo.
-
-🎄- 2022 Day 22 Solutions -🎄-
- C -
-
[2022 Day 21 (Part 2)] Well, that's a new one for me...
Here's my solution. Sorry, I did go a bit overboard making it compact.
-
[2022 Day 18] I'm the only one?
That was one heck of a tough day but also very satisfying. I spent quite some time working out a 3D rectangle splitting/merging algorithm on paper and then I had to go and implement that in C. It turned out pretty clean and idiomatic, if I may say so!
-
[2022 Day 12] Flood fill
This was my first attempt (or at least in a very long time) at generating video. Here I'm generating raw RGB frames in memory and writing them to ffmpeg, which works well enough but it's a little primitive.
-
[2022] Writing C solutions the way Dennis intended it
At 50 year sold and very stable, C must be one of the easiest languages to get working on old machines. Required just some of the polyfills I wrote back in 2020.
-
-🎄- 2022 Day 6 Solutions -🎄-
My original solution checked every character against every other character, which performed perfectly fine even for 14 chars, but it felt wrong.
-
-🎄- 2022 Day 4 Solutions -🎄-
- C -
-
-🎄- 2021 Day 25 Solutions -🎄-
First a straightforward solution with a double buffer, later realised you could do it in-place by just holding onto one value per row/column.
-
-🎄- 2021 Day 24 Solutions -🎄-
First wrote a short AWK program to convert the input to C and play with it while running a hopeless brute force attempt.
scamp-cpu
-
500 Lines or Less – Writing a useful program in fewer than 500 line code – AOSA
Re the text editor, when I was writing an editor for my homemade CPU I used the one from this tutorial: https://viewsourcecode.org/snaptoken/kilo/index.html - it is 1000 lines of C.
I have diverged a bit from the tutorial because I didn't want syntax highlighting and I really wanted vi-style keybindings. Mine is at https://github.com/jes/scamp-cpu/blob/master/sys/kilo.sl (in my made-up programming language).
-
-🎄- 2021 Day 8 Solutions -🎄-
I made the computer myself: https://github.com/jes/scamp-cpu/
-
🎄 AoC 2021 🎄 [Adventure Time!]
PROJECT LINK: Solutions GitHub - CPU GitHub - YouTube
- Scamp CPU: A homebrew 16-bit CPU with a homebrew Unix-like-ish operating system
- A homebrew 16-bit CPU with a homebrew Unix-like-ish operating system
-
Designing a CPU for Advent of Code
In case you're interested, there's more about this project in the github repo: https://github.com/jes/scamp-cpu/ and on my blog: https://incoherency.co.uk/blog/tags/cpu.html
-
Scamp – a homebrew 16-bit CPU
This is really cool and unique. I poked around a bit, and the kernel is vaguely POSIX like, but written in a homegrown language with a compiler written in Perl[1].
[1] https://github.com/jes/scamp-cpu/blob/f260f52d950be90c2279f5...
-
My homebrew CPU is alive!
Actually, I just found this! That's pretty much what I was looking for. That's what I would have linked if it had been me posting. :) This looks like a really interesting computer project!
What are some alternatives?
advent-of-code-typescript-starter - Typescript template in Node.js for Advent of Code event
selfie - An educational software system of a tiny self-compiling C compiler, a tiny self-executing RISC-V emulator, and a tiny self-hosting RISC-V hypervisor.
advent-of-code-jq - Solving Advent of Code with jq
coollang-2020-fs - Compiler of a small Scala subset
AdventOfCode - My Advent of Code solutions. I also upload videos of my solves: https://www.youtube.com/channel/UCuWLIm0l4sDpEe28t41WITA
advent-of-code - My Advent of Code solutions through the years - mostly JS
AdventOfCode2021 - Solutions to all 25 AoC 2021 problems in Rust :crab: Less than 100 lines per day and under 1 second total execution time! :christmas_tree:
aoc - 🎄 advent of code 414⭐
AlgorithmProblems - Solutions to Algorithm Problems :chart_with_upwards_trend: :neckbeard:
advent-of-code - Advent of Code in python3
aoc-21 - Advent of Code 2021
AoC - my personal repo for the advent of code yearly challenge