Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Event Loop

Summary of yev_loop

The yev_loop module provides an event loop implementation for managing asynchronous events within Yunetas. It serves as the foundation for handling non-blocking operations, timers, signals, and file descriptor events efficiently.

The key functionalities include:

yev_loop acts as the core event dispatcher for GObj-based applications. This makes sure of responsiveness and high performance in Yunetas-based systems.


Philosophy of yev_loop

The design of yev_loop aligns with Yunetas’ core principles:

  1. Event-Driven Design:

    • In Yunetas, nothing happens without an event.

    • yev_loop is the mechanism that processes and propagates these events. This makes sure of actions occur in response to meaningful triggers.

  2. Non-Blocking and Reactive System:

    • Rather than waiting for operations to complete (which will waste CPU cycles), yev_loop efficiently reacts to events when they occur.

    • This allows Yunetas applications to handle multiple I/O operations simultaneously, optimizing system performance.

  3. Time and Event Synchronization:

    • yev_loop enforces the principle that everything occurs within the dimension of time.

    • Events and actions are processed in an orderly manner. This makes sure of controlled execution.

  4. Scalability and Efficiency:

    • By abstracting platform-specific polling mechanisms, yev_loop provides a scalable event management system adaptable to various operating environments.

    • This supports high-concurrency applications without the overhead of traditional multi-threading.

    1. Minimalist and reliable:

  1. Hierarchical and Self-Managing:

    • In Yunetas, objects are hierarchically structured. yev_loop adheres to this by managing event-driven dependencies in a structured manner.

    • Self-healing capabilities (for example re-launch mechanisms) align with Yunetas’ philosophy of resilience.

Conclusion

yev_loop is the heartbeat of Yunetas’ event-driven system. This makes sure that events are processed efficiently while maintaining scalability, reliability, and responsiveness. It embodies the Yunetas philosophy that “without events, nothing happens”. It integrates with the GObj architecture to make possible asynchronous operations in a structured and efficient manner.