Rust, like any other language has string formatting/interpolation abilities similar to C’s printf or fprintf functions, provided by the fmt module. But it’s not that simple as we will see below.
I recently worked on a rust project where I had to coordinate state between two threads, and with my Scala background, it wasn’t the easiest to implement in rust which does things a little differently.
I’ve always been fascitaned by databases and always wanted to learn more about its internals, in this tutorial, we will build a simple Key-Value store from scratch with Rust.
If you save a text file with non-english characters and wondered how the editor knows how to interpret it correctly, then this is for you.
It’s bad to use vars to define state that’s going to be shared by multiple threads, the same
goes for using vars for using vars for sharing state amongst multiple effects.
```scala
object Refs extends IOApp {
Forking, Joining and cancelling an effect