"the computation stops at that point in that particular path of execution"
"speculative execution" is great, though; why simply check if you have 100 gold before doing work, if you can do all the work, notice you can't afford it, and then unwind all of it? absolute genius here
RE: https://bsky.app/profile/did:plc:xsshawkhr7rn4bcfd2snwblt/post/3n2z4xq44qs2q
i'm just sitting here imagining something programmed entirely in this style. you fire a bullet. the game engine expertly calculates the trajectory of your projectile, and with its modified hitscan determines you would blow the orc's brains out at 1000m. but you have no ammo, so oops, nevermind that.
if there's one thing i know about game development, it's that games are known for planning everything out in advance and thinking about the endless decades of support they'll be providing, and not "can we shove this out the door tomorrow"
i like this whole segment, which simultaneously says three things: • you can and should fully trust "effects" to be accurate • you can and should over-spec your functions to allow more functionality later, becase • you cannot ever update a function to "remove" functionality <reads><writes><farts>
ok well like. in a carefully selected context it actually is a good thing, such as when combating input latency. let's say that each frame you calculate what would happen both if the player fired a bullet and if they didn't. then when they do, it appears instant
in that case your client should go "oh, it looks like you have 0 ammo. i won't fire the gun"
this is an utterly fascinating way to program anything: do it first, then if it fails, roll back everything. there's all sorts of exciting things you can do in this context, like "what if you're relying on an external system for literally anything". hope that also works entirely in theoreticals