Giter Site home page Giter Site logo

Comments (2)

roridev avatar roridev commented on June 2, 2024

DependsAttribute - #47/1

Adds a DependsAttribute to the spec of #47.

Reason

Add a way for making systems interdependent - #9

Modifications Required

  • That would require a way to know which systems have attempted registering, like an UnloadedSystems hashset.

  • SystemManager would also need a way to load each system recursively, based on the dependencies of each system.
    If a system has a [Depends], SystemManager will try to register the dependencies first, if said systems aren't registered yet,
    or haven't been attempted registry yet, adding said system onto UnloadedSystems in the case of a dependency missing.

  • After some consideration, knowing the reason of why a system was unloaded is extremely helpful. An UnloadingReason data type could be added with Type and Reason Fields. Type would be an enum containing MANUAL_REQUEST, DEPENDENCY_MISSING, LOADING_ERROR (happens if IsEnabled is set to false on code, better name could be chosen), while the reason field would be a string containing, on the case of a dependency which dependency(ies) caused the system to be unloaded. That later could neatly be displayed via the systems.status command.

from sisbase.

roridev avatar roridev commented on June 2, 2024

The 3.0 Spec is currently implemented. 47/1 - DependsAttribute extension will be postponed to a minor version after 2.0 release.

from sisbase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.