#rust
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 🚀
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?
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 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 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 💉
How hard can it be to write a web backend in Rust? We will try to answer this question through an example.