ProfileMode image

Casper Andersson

Software Developer

Seamless redundancy in networks

Redundancy with zero downtime, at the cost of double the bandwidth. HSR and PRP provides that for you. All traffic is duplicated to ensure that at least one copy arrives even if a cable breaks. Many other protocols, like spanning trees, requires reconfiguration when the topology changes. Setup Let’s start by creating some veth interfaces that we can communicate over. One is put in a network namespace. ARP can be a bit wonky when both ends are in the same namespace. ...

August 11, 2026 · 4 min

Observations from three years of AI

Three years ago I wrote My thoughts on AI code generators just as AI coding was taking off. AI has improved immensely since then. My journey in the tech realm really began with my degree in Computer Science, starting in 2018. I don’t know how the AI landscape looked before that, but as I did my degree, AI was hyped up everywhere. Everyone wanted to learn AI and machine learning. The university even began creating an AI degree (which I believe was launched the term after I left in 2021). Large Language Models (LLM) as we know today didn’t exist yet, but every CS student wanted to learn about AI. Initially, I too saw AI as cool and interesting. ...

August 10, 2026 · 10 min

tab-width: 8

One of the never-ending debates in programming, along with Vim vs Emacs. Neither of which has any right answer, though these days we all know Vim keybindings are the way to go. What tab-width should you use? Tabs or spaces? Infinitely many variants exist, or probably at least five. No right answer exists, but I’d like to argue some are wrong. Such as three-space indentation, or mixed tabs and spaces (i.e., one indentation is four spaces, two indentations is one tab). Let’s just agree on that. ...

July 31, 2026 · 2 min