mcc on Nostr: The thing that fucksucks about OpenGL is not so much the amount of global state, but ...
The thing that fucksucks about OpenGL is not so much the amount of global state, but the amount of "scoped" global state, i.e., there are three pieces of global state that cause an entire block of the global state to just *swap out*, like you're bank switching a register file or something, to a scoped block of state specific to the variable you just set. It is so hard to understand or remember which of the global variables you're working with are actually global and which are secretly not global
Published at
2024-10-10 02:54:12Event JSON
{
"id": "a742f661b1610867273c3d7d5ab0ce92571ace140334beb4fd0eb411fd09b398",
"pubkey": "a3162b9720f6b515ac4bd22d5ea4abf0f85f5685130dca40f46fe684fe85b255",
"created_at": 1728528852,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/mcc/statuses/113280866863402601",
"activitypub"
]
],
"content": "The thing that fucksucks about OpenGL is not so much the amount of global state, but the amount of \"scoped\" global state, i.e., there are three pieces of global state that cause an entire block of the global state to just *swap out*, like you're bank switching a register file or something, to a scoped block of state specific to the variable you just set. It is so hard to understand or remember which of the global variables you're working with are actually global and which are secretly not global",
"sig": "e8b6cb7a3bfd0b4fd1d9a6a35f895347ccb8a6448422efe362658b48e99562f77ea878cf40d35b006aa5248fdcd5de42fc1ecacede3256eec12fd2b2064dd4dd"
}