All blog posts


You can browse by tags which have their own Atom/RSS feeds.

Killing in the name of Privacy

Tags: #web,#linux,#foss

Reading time: ~11min

An AD blocker killed a project that I was working on for 4 months. It was one commit adding 2 lines that killed 419 commits with more than 2000 total lines of code.

The script that powers my project was placed on the filter list "EasyPrivacy". But is the project that I designed with privacy as the first feature trying to invade your privacy?

This brings up the topic about telemetry in FOSS projects. Is telemetry inherently bad? Is there a way to collect telemetry without comprimising privacy?

Faster Rust Serialization

Tags: #rust

Reading time: ~13min

The tech industry happily wastes a lot of resources on serializing and deserializing JSON with its inefficient plain text format. But sadly, JSON is currently (still) the standard for sending data over the internet.

Nevertheless, we can at least try to make serialization and deserialization as efficient as possible!

In this blog post, we will see how you can improve the serialization performance of serde in Rust. We will take a look at a simple example and improve its performance by up to 2.25x 🚀

Teaching Rust in 5 days

Tags: #rust

Reading time: ~14min

I gave a 5-day Rust course at my university and want to share my experience teaching Rust.

In this blog post, I want to answer the following questions:

  • Can you learn Rust in 5 days?
  • What learning resources are currently available for teaching Rust?
  • What should you focus on when teaching Rust?
Rust vs Julia in scientific computing

Tags: #rust,#julia

Reading time: ~32min

One of the main objectives of Julia is solving the two-language problem. This means that by using Julia, you don't have to prototype in a dynamic language like Python for flexibility and later rewrite the code in a compiled language like C/C++ for performance.

This goal impressed me while picking a programming language for my bachelor's thesis in physics. But after regularly using and even teaching Julia, do I still think that Julia solves that two-language problem?

And why do I think that, in some cases, you should use Rust instead?

SQLx integration in Axum

Tags: #rust,#axum,#web,#database

Reading time: ~9min

SQLx is an awesome crate for interacting with databases in Rust with compile time checks. In this blog post, we will learn how to use it in an Axum backend to store and retrieve data from a database.

The example will be storing submitted contact forms from the previous post about Axum.

During the SQLx integration, we will learn about states and returning JSON in Axum.

SQLx - Interacting with databases in Rust

Tags: #rust,#database

Reading time: ~16min

SQLx is an async Rust crate that let's us interact with a database with compile-time checked queries 🧰

This post will be a short introduction to SQLx with PostgreSQL, but SQLx also supports MySQL, SQLite, and MSSQL.

The example will be a todo list in a database. A classical programming example, I know 😅

We will also see if SQLx protects us against SQL injections 💉

Containerized PostgreSQL with rootless Podman

Tags: #container,#linux,#database

Reading time: ~9min

This post is about running rootless Podman containers with PostgreSQL as a central example 📦️

The post serves as an optional preparation for the next post about interacting with databases with SQLx in Rust 🦀

Getting started with Rust backends

Tags: #rust,#axum,#web

Reading time: ~9min

How hard can it be to write a web backend in Rust? We will try to answer this question through an example.


Check out my list of similar blogs 🚀