summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2022-01-05 21:00:52 +0100
committerVincent Douillet <vincent@vdouillet.fr>2022-01-05 21:00:52 +0100
commitb5e822aaf1ba61134c05dc38506c4a4031d7c9c1 (patch)
tree9a1e1f17f9c8654f5fac5caadbaa8acf6be2d3c1
parent5e0b8232e80eb3e987d8db1f4f0e53ee898e66ea (diff)
article: advent of code 2021
-rw-r--r--20220105-advent-of-code-2021.md18
-rw-r--r--template/index.html1
2 files changed, 19 insertions, 0 deletions
diff --git a/20220105-advent-of-code-2021.md b/20220105-advent-of-code-2021.md
new file mode 100644
index 0000000..a35e3e1
--- /dev/null
+++ b/20220105-advent-of-code-2021.md
@@ -0,0 +1,18 @@
+# Advent of code 2021
+
+January 5th, 2022
+
+This year, or rather last year, I decided to participate in the [Advent of code](https://adventofcode.com). This post will explain why and how I decided to do it, but also reflect on my progress since it's well over now.
+
+One of the great things about the Advent of code is that you can participate with whatever language you choose. So instead of coding in a language I'm comfortable with, I decided to go with C, for the following reasons:
+
+* it's been 10+ years since I last programmed in C, and I wanted to dive back into it
+* maybe I can learn some "modern" C features as I will be targeting C11
+* I wanted to develop on OpenBSD and all the tools required for C development are included in the base OpenBSD install
+* it's a good way to improve my skills with a terminal-based development environment: tmux, vim, make, gdb...
+* C is very portable and it's always good fun to [compile and run on Visual C++ 6.0](https://twitter.com/vdouillet12/status/1468343484717404169) under Windows 98 with a [22 year old CPU](https://www.cpu-world.com/CPUs/Pentium-III/Intel-Pentium%20III%20550%20-%2080525PY550512%20(BX80525U550512).html)
+
+In the end, I mainly kept pace until day 8, at which point the puzzles started to take a little too much time (that I spent hunting some christmas presents...). You can find my code on my [git repo](http://git.vdouillet.fr/adventofcode2021/). Though at that point I had (re)learnt a good deal about C, and was getting more comfortable at developing and debugging in text mode only. The code is not perfect and there are still some TODOs and shortcuts, especially regarding memory management. But the main point was to get the right result at the end.
+
+As of today I'm still working on day 9 and maybe will continue to progress in the following weeks.
+
diff --git a/template/index.html b/template/index.html
index 931342f..bfe1927 100644
--- a/template/index.html
+++ b/template/index.html
@@ -2,6 +2,7 @@
<p>Hello and welcome, my name is Vincent and you've landed on the small space where I ramble mainly about IT and occasionally other topics. You can check my articles below, my <a href="//git.vdouillet.fr" title="git.vdouillet.fr">git repos</a> or the <a href="/about.html" title="about">about</a> page.</p>
</header>
<ul style="list-style-type:none;padding-left:0">
+ <li><a href="/advent-of-code-2021.html" title="Advent of Code 2021">01-05-2022 Advent of Code 2021</a></li>
<li><a href="/lightweight-mail-client.html" title="On the status of lightweight GUI mail clients">11-03-2021 On the status of lightweight GUI mail clients</a></li>
<li><a href="/browsing-gems.html" title="Browsing gems">10-11-2021 Browsing gems</a></li>
<li><a href="/raspberry-pi-white-noise-machine.html" title="Raspberry Pi white noise machine">09-29-2021 Raspberry Pi white noise machine</a></li>