Sylvain Wallez on Nostr: Current status: diving in the intricacies of uninitialized memory in Rust to see ...
Current status: diving in the intricacies of uninitialized memory in Rust to see if/how I could use it to implement zero-cost builders that incrementally populate a struct's properties, without falling in the undefined behavior trap. #Rust #RustLang
https://doc.rust-lang.org/nomicon/unchecked-uninit.htmlPublished at
2024-09-02 08:55:43Event JSON
{
"id": "cfbdefc0ec05b3fc3d160d14cdcad2f184bbdb49aa1c2e05db50c85c2226c5f1",
"pubkey": "66689df4ea136f4cfaedf0fb5311bbcc6244fa24e059286568bb18080e7e7dfd",
"created_at": 1725267343,
"kind": 1,
"tags": [
[
"t",
"rust"
],
[
"t",
"rustlang"
],
[
"proxy",
"https://mastodon.tetaneutral.net/users/swallez/statuses/113067120607421524",
"activitypub"
]
],
"content": "Current status: diving in the intricacies of uninitialized memory in Rust to see if/how I could use it to implement zero-cost builders that incrementally populate a struct's properties, without falling in the undefined behavior trap. #Rust #RustLang https://doc.rust-lang.org/nomicon/unchecked-uninit.html",
"sig": "d571b45144c6115a18a86a7a356ca1c0f6b8318e94aa33cc2d90052cccc91d4715d945a17cb975420ab29a643f12f650df4fc1a18fc1f4ae9cbcc6cb33872585"
}