How awkward-squad/ki works
Main Components Identification
a) Core Library Components (ki)
• Thread Management System
• Scope Management
• IO Operations Layer
• STM (Software Transactional Memory) Layer
b) Extension Components (ki-unlifted)
• Unlifted Interface Layer
Component Relationships
a) Core Layer (Bottom)
• ByteCount
• NonblockingSTM
• ThreadAffinity
• ThreadOptions
• IO Operations
b) Middle Layer
• Thread Management System
• Connection to Scope Management
• Propagation mechanisms
• To the IO and STM layers
c) Top Layer
• Public API Interface
• Unlifted Interface Extension
Key Relationships to Highlight
• How the Thread Management system interacts with Scope Management
• Relationship between NonblockingSTM and Thread operations
• Demonstrate how propagation works through the system
• Connection between the core 'ki' library and 'ki-unlifted' extension
Implementation Details
• Thread lifecycle management
• Scope creation and management
• Error propagation paths
• STM interaction points