[Blog] Safe pinned initialization

Continuing my efforts to try to remove unsafe from the linux kernel's rust API to initialize a Mutex<T> (you heard me, initializing a Mutex is unsafe). I have discovered this RFC for a feature called placement by return. It got me thinking, if it could be used to solve the pin initialization problem. While reading I noticed quiet a few issues that would need to be resolved in order for it to be useful and compiled these ideas into this blog post:

https://y86-dev.github.io/blog/return-value-optimization/placement-by-return.html

I would love to know what you think of this.

5 Likes

Here is my newest blog post about safe pinned initialization:

https://y86-dev.github.io/blog/safe-pinned-initialization/overview.html

7 Likes