This year I took a deep-dive into rust programming and solved advent of code with it.
Spacetraders Agent written in scala - Architecture overview
Overview
Infrastructure
My go-to setup for running infrastructure services locally is docker-compose. I’m using postgres as a database and grafana for some dashboards.
- docker-compose setup for infrastructure
- postgres
- grafana
Since I also developed a dashboard for the agents and wanted to reuse some helpers, I added profiles to docker-compose. If I want to start the stack for the agent, I run this command:
docker compose --profile agent up
agent architecture
I like coding in a functional style and use cats-effect as the runtime effect system. I had trouble with the openapi generator for scala, since it didn’t work in some cases or didn’t produce code that matches my coding style.
Adventofcode - Solver in scala.js
This year I tried to solve the codingchallenge more visual to begin with. So I opted for scalajs using outwatch.
Adventofcode 2020 - Day 20
The task is to assemble an image from different 10x10 tiles. The tiles themselves can be flipped and rotated.