Loliphile on Nostr: Lapin Bro is alsapilled. Why not do var foo: [608]u8 = undefined; and then ...
Lapin (nprofile…cjsz) Bro is alsapilled. Why not do var foo: [608]u8 = undefined; and then @memset(&var, 0); though? I think that the ** operator is kind of gay (mostly because I wish that you could put the count first, like 608**.{0}

). Also when working with c libraries I like to make a function that translates the library's error code into a zig error so that it integrates better with zig's error soystem. Finally, where you call snd_pcm_hw_params_{any,set_access}, you should most certainly not discard the result. The ones that set the format, channel count, rate, period and buffer sizes, etc. it's fine if you discard their result if your soyware can adapt to it though. Just make sure to query those after calling snd_pcm_hw_params.
Published at
2025-02-23 02:14:51Event JSON
{
"id": "65d1118a0d292296032f97dc93d356c0a6f3b32d3c76f1b0636f88b6639b9e7f",
"pubkey": "dfab8c8714f4b476bc8b1387cebbc3b76064343c61eed30978a1a04d0d455d72",
"created_at": 1740276891,
"kind": 1,
"tags": [
[
"p",
"87bc2eb47093a1b1ed69a6b4c147d5fe9877227bb8a330e32b977889361860a0",
"wss://relay.mostr.pub"
],
[
"e",
"0a08c6154097347bce3d9a324e64935d20f95b8401435b2dec57808476bfa21f",
"wss://relay.mostr.pub",
"reply"
],
[
"emoji",
"mito_weary",
"https://gearlandia.haus/emoji/Gearlandia/cdae4abf3987f2db2bd2f1dce7fdd6325cb4efd7e052f0c9f6e4f322bf924e79.jpg"
],
[
"proxy",
"https://gearlandia.haus/objects/5876cfa4-56f0-4275-9920-cf1dbca62f2a",
"activitypub"
]
],
"content": "nostr:nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqs77zadrsjwsmrmtf566vz374l6v8wgnmhz3npcetjaugjdscvzsqz9cjsz Bro is alsapilled. Why not do var foo: [608]u8 = undefined; and then @memset(\u0026var, 0); though? I think that the ** operator is kind of gay (mostly because I wish that you could put the count first, like 608**.{0}:mito_weary:). Also when working with c libraries I like to make a function that translates the library's error code into a zig error so that it integrates better with zig's error soystem. Finally, where you call snd_pcm_hw_params_{any,set_access}, you should most certainly not discard the result. The ones that set the format, channel count, rate, period and buffer sizes, etc. it's fine if you discard their result if your soyware can adapt to it though. Just make sure to query those after calling snd_pcm_hw_params.",
"sig": "d7f07fb64c732e28e05f0f675f358a71cb42c1ebe551a5fad8cd92e81b54725ee94c7cae124f10ec68ac47eb290e403a4f452ad1b8e88f6f75b1e06b930ea321"
}