Khalid ⚡ on Nostr: Learned how to increment a static count in #Rust and about the built-in AtomicI32 ...
Learned how to increment a static count in #Rust and about the built-in AtomicI32 type. Also had other tries with the `unsafe` keyword and the use of Mutex.
Published at
2024-02-21 18:52:11Event JSON
{
"id": "e5227e6777b3b329b7f932bb99c525b2de40c9bfab9b8cae9e2dcbe9fe430c6f",
"pubkey": "8473d11f1a7de76a81e7ef02e19a62a1b44382d1cece56a737e5e073b504fc85",
"created_at": 1708541531,
"kind": 1,
"tags": [
[
"t",
"rust"
],
[
"proxy",
"https://mastodon.social/users/khalidabuhakmeh/statuses/111970977808272544",
"activitypub"
]
],
"content": "Learned how to increment a static count in #Rust and about the built-in AtomicI32 type. Also had other tries with the `unsafe` keyword and the use of Mutex.\n\nhttps://files.mastodon.social/media_attachments/files/111/970/977/776/582/079/original/91668cb1a13bb488.png",
"sig": "81b315469da7c9c230fc10ee5365267b15b33353f9a1ebca22687561671382ff71f64b275f1655c3601f9c20164c4b8a5306c6f3e9fd8bd011ac601287196d3a"
}