<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>mo8it.com - rust</title>
    <subtitle>mo8it&#x27;s personal website with a technical blog about Rust, Linux, FOSS and Self-Hosting</subtitle>
    <link rel="self" type="application/atom+xml" href="https://mo8it.com/tags/rust/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://mo8it.com"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2025-05-23T00:00:00+00:00</updated>
    <id>https://mo8it.com/tags/rust/atom.xml</id>
    <entry xml:lang="en">
        <title>Physics Simulations in Bevy</title>
        <published>2024-07-19T00:00:00+00:00</published>
        <updated>2024-07-19T00:00:00+00:00</updated>
        
        <author>
          <name>
            
              mo8it
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://mo8it.com/blog/physics-simulations-in-bevy/"/>
        <id>https://mo8it.com/blog/physics-simulations-in-bevy/</id>
        
        <summary type="html">&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;bevyengine.org&#x2F;&quot;&gt;Bevy&lt;&#x2F;a&gt; is the most popular and powerful game engine in Rust.
Because of its flexibility, it can be used not only for games but also for (scientific) physics simulations.&lt;&#x2F;p&gt;
&lt;p&gt;In this blog post, I will share my experience using Bevy for physics simulations from scratch as part of my master&#x27;s thesis supervised by &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;www.staff.uni-mainz.de&#x2F;schoemer&#x2F;&quot;&gt;Prof. Elmar Schömer&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;div class=&quot;rounded-xl bg-sky-400&#x2F;20&quot;&gt;
    &lt;div class=&quot;px-2 pt-2 pb-1 my-3 text-white&quot;&gt;
        &lt;p class=&quot;font-bold&quot;&gt;Note&lt;&#x2F;p&gt;
        &lt;p&gt;This blog post is the base for my talk at &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;scientificcomputing.rs&quot;&gt;Scientific Computing in Rust 2024&lt;&#x2F;a&gt;.
You can watch the &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;youtu.be&#x2F;Ys8y6aozo6g&quot;&gt;recorded talk on YouTube&lt;&#x2F;a&gt; ⏯️&lt;&#x2F;p&gt;

    &lt;&#x2F;div&gt;
&lt;&#x2F;div&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>Rustlings Rewrite</title>
        <published>2024-07-03T00:00:00+00:00</published>
        <updated>2025-05-23T00:00:00+00:00</updated>
        
        <author>
          <name>
            
              mo8it
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://mo8it.com/blog/rustlings-rewrite/"/>
        <id>https://mo8it.com/blog/rustlings-rewrite/</id>
        
        <summary type="html">&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;rustlings.rust-lang.org&quot;&gt;Rustlings&lt;&#x2F;a&gt; is a program with a set of small exercises to get you used to reading and writing Rust code 🦀&lt;&#x2F;p&gt;
&lt;p&gt;I have been working on &lt;strong&gt;version 6&lt;&#x2F;strong&gt; of Rustlings for more than 3 months.
During this time, I rewrote the whole program, extended it, improved the exercises and added idiomatic solutions.
Now, I am happy to finally release it 🎉&lt;&#x2F;p&gt;
&lt;p&gt;In this blog post, I will talk a about my journey of becoming a maintainer and working on the new version 😃&lt;&#x2F;p&gt;
&lt;p&gt;Keep reading if you are interested in creating your own set of Rustlings exercises! 🤩&lt;&#x2F;p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>Faster Rust Serialization</title>
        <published>2023-10-25T00:00:00+00:00</published>
        <updated>2023-10-26T00:00:00+00:00</updated>
        
        <author>
          <name>
            
              mo8it
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://mo8it.com/blog/faster-rust-serialization/"/>
        <id>https://mo8it.com/blog/faster-rust-serialization/</id>
        
        <summary type="html">&lt;p&gt;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.&lt;&#x2F;p&gt;
&lt;p&gt;Nevertheless, we can at least try to make serialization and deserialization as efficient as possible!&lt;&#x2F;p&gt;
&lt;p&gt;In this blog post, we will see how you can improve the serialization performance of &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;docs.rs&#x2F;serde&#x2F;latest&#x2F;serde&#x2F;&quot;&gt;&lt;code&gt;serde&lt;&#x2F;code&gt;&lt;&#x2F;a&gt; in Rust.
We will take a look at a simple example and improve its performance by up to &lt;strong&gt;2.25x&lt;&#x2F;strong&gt; 🚀&lt;&#x2F;p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>Teaching Rust in 5 days</title>
        <published>2023-09-08T00:00:00+00:00</published>
        <updated>2023-09-08T00:00:00+00:00</updated>
        
        <author>
          <name>
            
              mo8it
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://mo8it.com/blog/teaching-rust/"/>
        <id>https://mo8it.com/blog/teaching-rust/</id>
        
        <summary type="html">&lt;p&gt;I gave a 5-day Rust course at my university and want to share my experience teaching Rust.&lt;&#x2F;p&gt;
&lt;p&gt;In this blog post, I want to answer the following questions:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Can you learn Rust in 5 days?&lt;&#x2F;li&gt;
&lt;li&gt;What learning resources are currently available for teaching Rust?&lt;&#x2F;li&gt;
&lt;li&gt;What should you focus on when teaching Rust?&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>Rust vs Julia in scientific computing</title>
        <published>2023-07-14T00:00:00+00:00</published>
        <updated>2024-10-30T00:00:00+00:00</updated>
        
        <author>
          <name>
            
              mo8it
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://mo8it.com/blog/rust-vs-julia/"/>
        <id>https://mo8it.com/blog/rust-vs-julia/</id>
        
        <summary type="html">&lt;p&gt;Although the scientific domain often requires the highest performance out of programming languages, people in this domain have often preferred less efficient dynamic languages like Python for flexibility and ease of use.
At some point, a project grows out of that efficiency compromise and the software has to be rewritten in a statically-typed language like C&#x2F;C++.
This means that people in the scientific domain had to switch between two languages and often rewrite the logic that they already encoded in the first one.
This is a problem which is referred to as the &lt;em&gt;two-language problem&lt;&#x2F;em&gt;.
As an attempt to solve this problem, Julia was developed as a dynamic language that feels like Python but has performance comparable to C&#x2F;C++.&lt;&#x2F;p&gt;
&lt;p&gt;Rust is a statically-typed language that indirectly addresses the problem by improving the experience with statically typed languages instead of accelerating the runtime of dynamic ones.
Its strong type system and friendly compiler empower developers to write reliable and efficient software without the memory safety problems known from C&#x2F;C++.&lt;&#x2F;p&gt;
&lt;p&gt;After using and even teaching both languages, I will compare them and discuss whether Julia solves the two-language problem and when you should use Rust instead.&lt;&#x2F;p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>SQLx integration in Axum</title>
        <published>2023-05-29T00:00:00+00:00</published>
        <updated>2023-05-29T00:00:00+00:00</updated>
        
        <author>
          <name>
            
              mo8it
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://mo8it.com/blog/sqlx-integration-in-axum/"/>
        <id>https://mo8it.com/blog/sqlx-integration-in-axum/</id>
        
        <summary type="html">&lt;p&gt;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.&lt;&#x2F;p&gt;
&lt;p&gt;The example will be storing submitted contact forms from the &lt;a href=&quot;https:&#x2F;&#x2F;mo8it.com&#x2F;blog&#x2F;getting-started-with-rust-backends&#x2F;&quot;&gt;previous post about Axum&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;During the SQLx integration, we will learn about states and returning JSON in Axum.&lt;&#x2F;p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>SQLx - Interacting with databases in Rust</title>
        <published>2023-04-11T00:00:00+00:00</published>
        <updated>2023-04-11T00:00:00+00:00</updated>
        
        <author>
          <name>
            
              mo8it
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://mo8it.com/blog/sqlx-interacting-with-databases-in-rust/"/>
        <id>https://mo8it.com/blog/sqlx-interacting-with-databases-in-rust/</id>
        
        <summary type="html">&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;launchbadge&#x2F;sqlx&quot;&gt;SQLx&lt;&#x2F;a&gt; is an async Rust crate that let&#x27;s us interact with a database with compile-time checked queries 🧰&lt;&#x2F;p&gt;
&lt;p&gt;This post will be a short introduction to SQLx with PostgreSQL, but SQLx also supports MySQL, SQLite, and MSSQL.&lt;&#x2F;p&gt;
&lt;p&gt;The example will be a todo list in a database. &lt;em&gt;A classical programming example&lt;&#x2F;em&gt;, I know 😅&lt;&#x2F;p&gt;
&lt;p&gt;We will also see if SQLx protects us against SQL injections 💉&lt;&#x2F;p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>Getting started with Rust backends</title>
        <published>2023-04-01T00:00:00+00:00</published>
        <updated>2024-01-21T00:00:00+00:00</updated>
        
        <author>
          <name>
            
              mo8it
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://mo8it.com/blog/getting-started-with-rust-backends/"/>
        <id>https://mo8it.com/blog/getting-started-with-rust-backends/</id>
        
        <summary type="html">&lt;p&gt;How hard can it be to write a web backend in Rust?
We will try to answer this question through an example.&lt;&#x2F;p&gt;</summary>
        
    </entry>
</feed>
