docs(guidelines): Add Data-Oriented Python heuristics
This commit is contained in:
@@ -15,6 +15,8 @@
|
||||
## Code Standards & Architecture
|
||||
|
||||
- **Data-Oriented & Immediate Mode Heuristics:** Align with the architectural values of engineers like Casey Muratori and Mike Acton.
|
||||
- **The "Less Python Does, the Better" Rule:** Python should act primarily as a procedural semantic definer (similar to how ImGui defines a UI DAG), delegating heavy lifting to efficient data structures, vectorized operations, or lower-level primitives.
|
||||
- Minimize Python JIT overhead by favoring bulk data processing over fine-grained object-oriented manipulation.
|
||||
- The GUI (`gui_2.py`) must remain a pure visualization of application state. It should not *own* complex business logic or orchestrator hooks (strive to decouple the 'Application' controller from the 'View').
|
||||
- Treat the UI as an immediate mode frame-by-frame projection of underlying data structures.
|
||||
- Optimize for zero lag and never block the main render loop with heavy Python JIT work.
|
||||
|
||||
Reference in New Issue
Block a user