Simon Brooke on Nostr: OK, #Zig language people, where's a good place online to ask dumb newbie questions ...
OK, #Zig language people, where's a good place online to ask dumb newbie questions about Zig?
What I'm thinking of trying to build as an experiment is this:
https://git.journeyman.cc/simon/post-scarcity/issues/13And the question I want to ask first is, how in Zig to I malloc a chunk of memory, and then later write structs into areas within that chunk?
Published at
2026-03-21 13:56:44 UTCEvent JSON
{
"id": "3a538f69eca95a5c81e9b03226820bdd289ab7eec51ec013d92837a998a9f694",
"pubkey": "a231938f7a6241b94a9589f111bd7dbb0b7cee0c68821c3f6e635b688fd05aea",
"created_at": 1774101404,
"kind": 1,
"tags": [
[
"t",
"zig"
],
[
"proxy",
"https://mastodon.scot/users/simon_brooke/statuses/116267509673692910",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub"
]
],
"content": "OK, #Zig language people, where's a good place online to ask dumb newbie questions about Zig?\n\nWhat I'm thinking of trying to build as an experiment is this:\n\nhttps://git.journeyman.cc/simon/post-scarcity/issues/13\n\nAnd the question I want to ask first is, how in Zig to I malloc a chunk of memory, and then later write structs into areas within that chunk?",
"sig": "e33f1980e73141f4549af280cd2f19e9b73f6513602307094fb70a90e1cc2ff1a2b747a2fae991fac74fd39c47d505ae6b109cc6e558904312f82e854fe19a16"
}