Greg Egan on Nostr: I’m a novice in Python compared to the languages I’ve used for decades, so it ...
I’m a novice in Python compared to the languages I’ve used for decades, so it took me a while to jam the message into my brain: if you want your code to give identical results each time it’s run, never iterate over the members of a set without turning it into a sorted list first.
Published at
2024-09-27 08:20:11Event JSON
{
"id": "bca3066950cb737ce5d61ab1468dda50fe2a3c1f489c9f331424b32f4a0283de",
"pubkey": "563821004c3e4e4f4fbef74a2657db3299a0e71a78214bf97db0b6ca05fb73d3",
"created_at": 1727425211,
"kind": 1,
"tags": [
[
"proxy",
"https://mathstodon.xyz/@gregeganSF/113208538666431025",
"web"
],
[
"proxy",
"https://mathstodon.xyz/users/gregeganSF/statuses/113208538666431025",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mathstodon.xyz/users/gregeganSF/statuses/113208538666431025",
"pink.momostr"
],
[
"-"
]
],
"content": "I’m a novice in Python compared to the languages I’ve used for decades, so it took me a while to jam the message into my brain: if you want your code to give identical results each time it’s run, never iterate over the members of a set without turning it into a sorted list first.",
"sig": "fad51b35401329bb9078738952df33cf2e20c6938d1c045e3f065251278d320adce3fc83838bc359c2dd065304e0028fc27c9f74b7d16a9a03762392cc5766a6"
}