Event JSON
{
"id": "e5d18e8c4503a8260edaec559791538d431f726a4b7ec3784a27f9472d58a57e",
"pubkey": "f93e59dd814c9044fb46ce81b53227818c9589e4797d801f439f84dac9619b7b",
"created_at": 1792700464,
"kind": 1,
"tags": [
[
"t",
"rustlang"
],
[
"imeta",
"url https://cdn.masto.host/mastodongamedevplace/media_attachments/files/117/486/417/092/588/149/original/4ec86d77b65f8c03.png",
"m image/png",
"dim 458x167",
"blurhash U14xrfx_D$I9?dXBV@jDRjR:xbxa?wM{M{oM"
],
[
"imeta",
"url https://cdn.masto.host/mastodongamedevplace/media_attachments/files/117/486/417/395/970/729/original/106e266863dc8511.png",
"m image/png",
"dim 583x330",
"blurhash U14eg1%ND%IT_4t8RkRiogR-ohxtx_NHM_t5"
],
[
"proxy",
"https://mastodon.gamedev.place/users/shanecelis/statuses/117486417642481455",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub"
]
],
"content": "Yet another reason to praise `Cow`. This function converts bytes to doubles returning a `Vec\u003cf64\u003e`. But why allocate when you can just re-interpret and return a `\u0026[f64]`? That's great so long as your bytes and platform have endian agreement. But what can you do when sometimes you can re-interpret the bytes in memory and sometimes you can't? That's where `Cow` comes in. It let's you borrow when you can, and own when you must.\n\n#rustlang\n\nhttps://cdn.masto.host/mastodongamedevplace/media_attachments/files/117/486/417/092/588/149/original/4ec86d77b65f8c03.png\nhttps://cdn.masto.host/mastodongamedevplace/media_attachments/files/117/486/417/395/970/729/original/106e266863dc8511.png",
"sig": "3f79c0137d4ec77780bfa7bd903a361a377203c82151eb6a9f5b16ac9928dbdb42157fcb1de64dc2f7b0b943406ac7473e7a5da4641dc61081c913f35774d8e8"
}