mleku on Nostr: i have never bothered to use it, fiatjaf uses some other library, it's used ...
i have never bothered to use it, fiatjaf uses some other library, it's used extensively for concurrent safe maps in several of his repos.
i personally try to avoid using maps because they are double indirection and essentially are key/value stores and the naive basic map in Go is not designed for this, you need to keep your maps within a thread and within a type's boundaries.
i often use them for set operations though, they are a perfect fit for creating a set union, for example, and for the same reason can do set differences quite efficiently.
Published at
2025-06-01 20:22:51Event JSON
{
"id": "7be40bf74d9d298ff810454b9fe74955760e5be461f061a933bd89126da984ee",
"pubkey": "4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f",
"created_at": 1748809371,
"kind": 1,
"tags": [
[
"e",
"af15a6100fa9077a9b57a201aaaf5f8d7e3796f4f74fd406a29462300afe0ab8",
"wss://theforest.nostr1.com/",
"root",
"7cc328a08ddb2afdf9f9be77beff4c83489ff979721827d628a542f32a247c0e"
],
[
"p",
"7cc328a08ddb2afdf9f9be77beff4c83489ff979721827d628a542f32a247c0e"
]
],
"content": "i have never bothered to use it, fiatjaf uses some other library, it's used extensively for concurrent safe maps in several of his repos.\n\ni personally try to avoid using maps because they are double indirection and essentially are key/value stores and the naive basic map in Go is not designed for this, you need to keep your maps within a thread and within a type's boundaries.\n\ni often use them for set operations though, they are a perfect fit for creating a set union, for example, and for the same reason can do set differences quite efficiently.",
"sig": "92b3aed4619782c7feeca286ebeebfad9b6ea45b916016a480d4f58d2a255f9bd15f5febff10e068af7ed5384457d8529e41d0afdddd8e94bf0998332adb7bfb"
}