Device, method and medium for generating rule compiler engine of distributed system

By generating virtual components and automatically handling system configuration through DSGRCE, the complexity and configuration file challenges of existing compiler technologies in distributed system management are solved, enabling efficient and flexible system development and deployment.

CN113574517BActive Publication Date: 2024-09-20李亚东
View PDF 15 Cites 0 Cited by

Patent Information

Application Number
CN202080021326.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-08-30
Filing Date
2020-03-12
Publication Date
2024-09-20
Estimated Expiration
2040-03-12

AI Technical Summary

Technical Problem

Existing compiler technologies struggle to efficiently generate and manage distributed systems, especially in environments with frequently changing business logic. This results in long development, testing, and deployment cycles, high configuration file complexity, and difficulties in verification and debugging.

Method used

It employs a rule compiler engine (DSGRCE), uses a domain-specific language (DSL) to write rules and a host language to write atomic libraries, generates virtual components, supports parallel and distributed computing, automatically handles system configuration and dependencies, and provides unified namespace management and sensitivity calculation.

Benefits of technology

It simplifies the system development and deployment process, improves the system's flexibility and transparency, reduces the complexity of configuration files, ensures the uniformity and repeatability of system behavior, and supports rapid response to changes in business logic.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113574517B_ABST
    Figure CN113574517B_ABST
Patent Text Reader

Abstract

Determine the output rule specified for the requested computation via a distributed system execution request data structure, and initialize the current rule as the output rule. Query the rule lookup table data structure to determine the matching rule group corresponding to the current rule. Select the best matching rule. Generate a logical dependency graph (LDG) data structure by adding logical dependency graph (LDG) nodes and LDG edges corresponding to the best matching rule, the precedent rule of the best matching rule, and the precedent rule of each precedent rule. Determine an execution complexity metric and a distributed worker process group. The LDG data structure is divided into subgraph groups. Initialize each worker process using the subgraph assigned to each worker process. Coordinate the execution of the requested computation to obtain the computation results of the LDG nodes corresponding to the output rule.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This disclosure describes apparatus, methods, systems, and media for generating a rule compiler engine for a distributed system (hereinafter referred to as a "DSGRCE"). Portions of the disclosure of this patent document contain material that is protected by copyright and / or mask work. The copyright and / or mask work owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent file or records, except that all copyright and mask work rights are reserved.

[0002] CROSS-REFERENCE TO RELATED APPLICATIONS

[0003] Applicants hereby claim priority under 35 U.S.C. §119 to U.S. Provisional Patent Application No. 62 / 818,318, filed on March 14, 2019, entitled “ADELCARATIVE SYNTAX AND RELATED METHODS, INTERFACE, ALGORITHMS AND PROCEDURE FOR BUILDING AND RUNNING SYSTEMS OF COMPLEX ANALYTICS,” docket no. LIY01.002.

[0004] Applicants hereby claim priority under 35 U.S.C. §119 to U.S. Provisional Patent Application No. 62 / 892,085, filed on August 27, 2019, entitled “DECLARATIVE SYNTAX AND RELATED METHODS, INTERFACE, ALGORITHMS AND PROCEDURE FOR BUILDING AND RUNNING SYSTEMS OF COMPLEX ANALYTICS,” docket no. LIY01.004.

[0005] Applicants hereby claim priority under 35 U.S.C. §119 to U.S. Provisional Patent Application No. 62 / 894,001, filed on August 30, 2019, entitled “DECLARATIVE SYNTAX AND RELATED METHODS, INTERLACE, ALGORITHMS AND PROCEDURE FOR BUILDING AND RUNNING SYSTEMS OF COMPLEX ANALYTICS,” docket no. 3200-101PV3.

[0006] The entire contents of the aforementioned applications are expressly incorporated herein by reference. Technical Field

[0007] The present disclosure is generally directed to compilers. A compiler is a fundamental computer technology that allows processor executable instructions to be generated in a computer-implemented manner from (eg, human-readable) source code. DSGRCE implements an improvement over the prior art. Background Art

[0008] A compiler converts computer code written in one programming language into a different language. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The accompanying drawings and / or appendices illustrate various exemplary embodiments according to the present disclosure.

[0010] Figure 1A -C shows an exemplary architecture in one implementation of DSGRCE.

[0011] Figure 2A -B shows a data flow diagram in one implementation of DSGRCE.

[0012] Figure 3 A logic flow diagram illustrating the rule pre-processing (RP) component in one embodiment of the DSGRCE is shown.

[0013] Figure 4 A logic flow diagram illustrating the logical dependency graph generation (LDGG) component in one embodiment of the DSGRCE is shown.

[0014] Figure 5 A logic flow diagram illustrating the Worker Subgraph Distribution (WSD) component in one implementation of the DSGRCE is shown.

[0015] Figure 6 A logic flow diagram illustrating the Worker Instantiation (WI) component in one embodiment of the DSGRCE is shown.

[0016] Figure 7 A logic flow diagram illustrating the graph execution (GE) component in one implementation of the DSGRCE is shown.

[0017] Fig. 8A -C shows a logic flow diagram illustrating the Worker Computing (WC) component in one implementation of DSGRCE.

[0018] Fig. 9 A diagram showing screenshots illustrating user interface features in one embodiment of the DSGRCE.

[0019] Fig.10 A diagram showing screenshots illustrating user interface features in one embodiment of the DSGRCE.

[0020] Fig.11 A diagram showing screenshots illustrating user interface features in one embodiment of the DSGRCE.

[0021] Fig.12 A diagram showing screenshots illustrating user interface features in one embodiment of the DSGRCE.

[0022] Fig.13 A diagram showing screenshots illustrating user interface features in one embodiment of the DSGRCE.

[0023] Fig.14 A diagram showing screenshots illustrating user interface features in one embodiment of the DSGRCE.

[0024] Fig.15 A diagram showing screenshots illustrating user interface features in one embodiment of the DSGRCE.

[0025] Fig.16 A diagram showing screenshots illustrating user interface features in one embodiment of the DSGRCE.

[0026] Fig.17 A diagram showing screenshots illustrating user interface features in one embodiment of the DSGRCE.

[0027] Fig.18 A diagram showing screenshots illustrating user interface features in one embodiment of the DSGRCE.

[0028] Fig.19 A diagram showing screenshots illustrating user interface features in one embodiment of the DSGRCE.

[0029] Fig. 20 A diagram showing screenshots illustrating user interface features in one embodiment of the DSGRCE.

[0030] Fig.21 A block diagram illustrating an exemplary DSGRCE coordinator in one embodiment of the DSGRCE is shown. DETAILED DESCRIPTION

[0031] Introduction

[0032] DSGRCE introduces a rule compiler that creates a fully functional and well-performing distributed system using rule declarations (rules) written in a domain-specific language (DSL) and a library of single (e.g., relative to the DSL) components (atoms) written in a host language. For example, the resulting distributed system can be used to solve numerical and analytical problems. In some implementations, the DSL can use language constructs and functions of the host language, such as data types, common functions, and operators. In some embodiments, rules can be used to implement high-level business logic (e.g., temporary, rapidly changing, and non-reusable), while atoms can be used to implement low-level single numerical algorithms (e.g., stable and reusable).

[0033] In various implementations, some of the benefits provided by DSGRCE may include:

[0034] 1. The system generated by DSGRCE contains virtual components. Virtual components are not tied to any specific hardware or software, and they require minimal human effort to create, configure, test, and tune compared to physical system components (e.g., components that are tied to specific hardware, software, and support personnel). The use of such automatically generated virtual components makes it easy and efficient to develop and test system updates. Developers can focus on using rules and atoms to describe the logic of the analysis, then use the rule compiler to regenerate the entire distributed system and immediately see the results of the changes.

[0035] 2. The rule compiler is agnostic with respect to computing hardware and environment, and supports parallel and distributed computing. The system generated by DSGRCE can run on a single computer, GPU, etc., or it can run in parallel in a cloud computing environment for performance and scalability.

[0036] 3. The syntax of the rules is rich enough to capture different system configurations without the need for separate system configuration files, which greatly simplifies the release and deployment process and facilitates fast and reliable updates of the entire system.

[0037] 4. Since the system components are virtual, any number of development (dev) and test environments that are identical to the production environment can be generated through the rule compiler.

[0038] 5. Since the group of rules and atoms defines the current system capabilities, new capabilities can be added by adding new rules and atoms. The interdependencies of different applications and processes are automatically handled by the rule compiler, thus simplifying project planning and execution.

[0039] 6. Easy to integrate and verify internal and third-party numerical libraries, because they can be packaged into atoms using programming interfaces and referenced through rules. Since the intermediate calculation results of each atom are available for developers or reviewers to check, the verification process becomes easier.

[0040] 7. Namespace support for rules facilitates a multi-team development environment. Different teams, departments, and even vendors can independently develop, test, and publish their rules in different namespaces, which can then be seamlessly integrated through the rule compiler to form a complete end-to-end system.

[0041] 8. The ability to atomically update the underlying rules independently and greatly simplify the development, testing, release and deployment process on a running system. Updates can also be made in a new rule namespace, so there will be no change in system behavior for existing users of the old namespace.

[0042] 9. Single version authenticity and guaranteed reproducibility - The behavior of the system generated by DSGRCE is completely captured by the underlying library of rule groups and atoms, from which the system behavior can be accurately copied. No separate configuration files are required to change the behavior of the system.

[0043] 10. Intermediate computation results produced by any atom can be easily accessed in the resulting distributed system, providing great transparency for users to test, debug, audit, and verify the correctness of complex analysis.

[0044] 11. The rule compiler can be configured to support full end-to-end algorithmic differentiation (AD) from tensor output. The distributed system generated by the rule compiler can not only perform first-level calculations to produce user-specified outputs, but also perform AD calculations, allowing fast calculation of sensitivity to any input.

[0045] The clear separation between rules and atoms allows for fast and reliable updates and release schedules in response to frequent business logic changes. The conventional approach to implementing rapidly changing business logic is to implement such business logic in the core quantitative library or as a configuration file that is read by the application at runtime. Both options have significant disadvantages: implementing high-level business logic in the core quantitative library is reliable, but slow and inflexible, because every time the business logic changes, a full cycle of development, testing, approval, and deployment must be completed before a new version of the core quantitative library can be released; this is not an efficient use of precious R&D and development resources. Implementing high-level business logic in configuration files allows for much faster release cycles, because many changes can be implemented by changing only the configuration file. However, this approach incurs additional cost and complexity, because configuration files must be managed in addition to the analysis library. In practice, configuration files for complex analysis systems tend to grow very complex (e.g., different system components may require different configuration formats and syntaxes; different versions of numerical libraries may require different configurations; development and production environments often require different configurations) and require specialized databases and software tools to manage. This complexity of configuration is the source of many errors in running and supporting complex analysis systems. In addition, the fragmentation of business logic in both the numerical library and the configuration file collection will make testing, debugging, auditing, and verification more difficult, because developers or model reviewers must not only look through the source code of the numerical library, but also look through countless configurations to understand the business logic in effect.

[0046] Detailed description of DSGRCE

[0047] Figure 1A An exemplary architecture of one embodiment of DSGRCE is shown. Figure 1A , illustrates how a rule compiler 101 may be utilized to facilitate the creation and execution of an embodiment of a distributed system. The rule compiler may utilize atoms 105 and rules 110 to create a distributed system. In one embodiment, the DSGRCE may convert a rule specification into a distributed system in four phases.

[0048] In phase 0, rules may be parsed and data structures may be generated to link rules and atoms, allow rule lookups, provide support for polymorphism based on type inheritance and value matching, etc. For example, for compiled host languages ​​such as C / C++ and Fortran, phase 0 may be performed at compile time and then dynamically loaded as a shared library at runtime. In another example, for interpreted or just-in-time compiled host languages ​​such as Python, Julia, Java, and .NET, phase 0 may be performed at runtime.

[0049] Phases 1 to 3 can be executed by DSGRCE at runtime. In phase 1, the user can specify the desired output, which can be represented as an output rule group with specific parameterization 115. DSGRCE can analyze the output rule group and use the data structure generated in phase 0 to construct the global logical dependency graph 120 of the entire calculation to calculate the desired output. In one implementation, the global logical dependency graph (e.g., directed acyclic graph (DAG)) is constructed by recursively following and adding rule precedents (e.g., data precedents of the first-level output calculation) as new nodes of the global logical dependency graph, starting from the output rule group requested by the user. At the end of phase 1, atomic objects have not yet been instantiated, and memory for calculations (e.g., tensor calculations) has not yet been allocated. Therefore, each node in the graph stores minimal information, and extremely large graphs with hundreds of millions of nodes can be easily adapted to the memory of modern PCs.

[0050] In stage 2, the manager process can divide the global logical dependency graph into multiple subgraphs according to the number of available worker processes and their hardware resources. In one implementation, the manager process and / or the worker process can be executed in the cloud computing system 125. The manager process can instantiate the worker process and / or can facilitate the establishment of a communication link (e.g., a network communication link) between the worker processes. It should be understood that, although the distributed computing topology with a single manager and multiple workers is used in this embodiment, DSGRCE can use a variety of topological structures, such as multi-layer managers and / or workers, or fully decentralized network instances, which can be managers or workers, wherein managers can be voted or voted by workers. At the end of stage 2, atomic objects have been created on each worker.

[0051] In phase 3, the manager process coordinates the execution of the graph calculation and obtains the final result. In one embodiment, the execution may include two passes: a forward pass (or first-level pass) to calculate the value of the requested output; and an inverse pass to calculate the first-order derivative using the adjoint algorithm differential (AAD), if the user also wants sensitivity. In another embodiment, the execution may include: a single forward pass to calculate the requested output value; and a forward algorithm differential. In another embodiment, the execution may include two passes: a first forward pass to calculate the requested output value; and a second forward pass to calculate the forward algorithm differential. In some implementations, the steps of execution do not have to be completely synchronized, for example, the manager can send a message to the worker to start the inverse AAD initialization even if other workers are still running forward calculations. However, when a worker can no longer make any progress on its subgraph, the worker may block, which may occur when it has not received previous inputs from other workers. Both managers and workers can run multiple tasks simultaneously, so that they can send / receive messages while running calculations simultaneously. Concurrency can be achieved using multi-processes, multi-threads, co-routines, or green threads. Once the computation is complete, the manager can send a message to the correct worker process to retrieve the result from any node. For example, the resulting distributed system can be used to solve numerical and analytical problems such as those commonly found in scientific research, engineering, data science, statistical forecasting, simulation, time series analysis, business and financial modeling, etc.

[0052] Figure 1B -C shows an exemplary architecture of one embodiment of DSGRCE. Figure 1B-C, illustrates an implementation of how to declare a rule group. Declaration 130 can be used to describe a rule group that uses recursion and value-by-value pattern matching to calculate the Fibonacci series. The "@rules" indicator 135 marks the group rule group being declared. Namespace 140 indicates that "series" is the namespace of the rule group. In one implementation, rules from different namespaces can be referenced using their fully qualified names. For example, rules from other namespaces can use "series.fib" to reference the rule group. The "series" namespace includes three rules 142, 144, and 146. In one implementation, a rule can be uniquely identified by a triple [namespace, rulename, ruleparameters types / values], where the rule parameter type / value can be any data type / value defined in the host language of the DSL. For example, with respect to rule 142, the rule name 150 is "fib" and the rule has a parameter 152 of type "Int", which can match any integer value. In one implementation, each rule may specify an atom (e.g., a concrete DerivedAtom that implements the general Atom interface described later) and a list of its constructor parameters. For example, with respect to rule 142, the atom name 154 is "Sum" and the atom does not take any parameters (e.g., the square brackets may be omitted). In another example, with respect to rule 144, the atom name 156 is "Const" and the atom takes numbers as parameters (e.g., the Atom parameters are listed in order in square brackets). Each rule may identify a list of its precedents, which are the following rules whose outputs (e.g., output tensors) are used as inputs (e.g., input tensors) of the forward transfer calculation function (e.g., fwd()) of the current rule. Some rules may not have any precedents (e.g., access to data sources). For example, with respect to rule 142, the rule has two precedents 158 "fib(n-1)" and "fib(n-2)", which may recursively reference rule 142 or rule 144 or rule 146, depending on the value of "n".

[0053] In different implementations, rule declarations can support the following features:

[0054] 1. Direct access to host language features: Rules can use host language syntax and features in any parameter field. For example, regarding a rule such as:

[0055] pv(basket::Basket,

[0056] env::Env)=WeightedSum[basket.notionals]([pv(i,env)for

[0057] i=basket.insts]...)

[0058] "basket.insts" may be a syntax in the host language for accessing data fields of an object. Similarly, function calls and / or host language types (eg, including user-defined types) may be utilized in rule declarations using host language syntax.

[0059] 2. Dynamic precedents: Rule precedents can be dynamic. For example, a declaration can use list comprehension syntax, such as "[pv(i) for i = basket.insts]..." to specify the current value (pv) of the basket, depending on the pv of each individual transaction in the basket. The number and identity of precedents can depend on the rule parameters. This allows different logical graph topologies to be created from the same rule group when different rule parameters are given. In addition to list comprehensions, the full syntactic features of the host language can be used for greater flexibility (for example, the "..." syntax can be used with regular function calls in the host language to return a list of precedents). In one implementation, dynamic precedents for rules can be implemented by directly calling such dynamic precedent code (for example, in the host language) at runtime (for example, when the rule engine is expanding the logical dependency graph).

[0060] 3. Overloading and runtime polymorphism by type and / or value: Rules "fib" 142, 144, 146 are declared multiple times for different parameter types and values. At runtime, the rule that best matches the types and values ​​of all input parameters will take effect. In one implementation, the proximity of parameter types can be measured by the distance of their type inheritance. Rule overloading and pattern matching allow complex business logic to be expressed concisely.

[0061] 4. Recursion: A rule can refer to itself as a precedent, as shown with respect to rule 142.

[0062] 5. Cloning of namespaces: The entire rule in a namespace can be cloned into another namespace. In one implementation, this creates two identical rule groups in different namespaces. For example, with respect to declaration 160, any reference to the namespace "series:dev" is created as a clone of the namespace "series" using the "@clone" syntax 162. Additional rules 166 (e.g., which do not exist in the old namespace) can be added to the cloned namespace. Such newly added rules can overwrite existing rules cloned from the old namespace with the same rule name and parameter signature. In one implementation, namespace cloning can be implemented by adding a general (e.g., matching any rulename) entry in the rule lookup table. For example, when namespace A is cloned into namespace B, the general rule entry of namespace B is inserted into the rule lookup table data structure (e.g., after cloning, the rule entry matches any reference to namespace B). The rule compiler automatically generates code so that any reference to entry B is redirected to a rule lookup using namespace A so that the rule name and other runtime rule parameters do not change.

[0063] 6. Redirection of namespaces: Any reference to a namespace can be redirected to use another namespace. For example, with respect to statement 160, any reference to the namespace "series" can be redirected to use the same name rule under the namespace "series:dev". This redirection can use the syntax of the host language and can be changed multiple times at runtime.

[0064] For example, in C++ syntax, a redirection call might look like this:

[0065] namespaceRedirect(config,"series","series:dev")

[0066] Where config is a meta parameter variable that the rule engine uses to create and execute graphs at runtime. For example, the clone and redirect feature can allow developers to create multiple meta parameters to compare the results between different namespace redirections side by side (e.g., to see how changes to an existing system affect the results). In one implementation, namespace redirection can be implemented as another layer of redirection (e.g., using an additional namespace lookup table or rule lookup table) that converts namespace references into real namespaces for rule lookups. In the example discussed about namespace cloning, after namespace A is cloned into namespace B, the user can add or overwrite additional rules in namespace B. Afterwards, the user can redirect namespace A to B to force any reference to namespace A to use the overlay or additional rules of namespace B. After this redirection instruction, references to rules in namespace A are redirected to corresponding rules in namespace B via a namespace lookup table (e.g., implemented as a mapping of identification tuples (e.g., [namespace] tuples) to identification tuples (e.g., [namespace] tuples)), and rule lookups are performed using namespace B. If the rule matches an override or new rule in namespace B, that rule is selected, otherwise the generic rule entry for namespace B is cloned and falls back to the original rule declared in namespace A.

[0067] 7. Packaging: Groups of rules can be packaged together into PackagedAtoms, which support the Atom API and behave like ordinary atoms (e.g., they can be referenced by other rules). This allows hiding and encapsulating low-level logic (e.g., complex logic can be constructed by recursively interleaving rules and atoms). For example, statement 170 can be used to describe a group of rules for computing the Fibonacci sequence, but using packaged atoms that allow tensors to be used as initial values ​​instead of counters.

[0068] In some implementations, the rule DSL may exclude a set of programming language features, such as functions, types, variables, loops, branches, exceptions, etc. (e.g., which may exist in the host language). The minimal set of grammatical features may facilitate analysis of the overall logic defined by the rules and facilitate creation of an optimized distributed system that implements the correct logic through the DSGRCE. Furthermore, the minimal set of grammatical features makes the rules easy to understand and write by non-programmers.

[0069] In one embodiment, an atom can be a low-level single numerical algorithm implemented in the host language. In one implementation, an atom represents the following general mathematical function:

[0070]

[0071] Its input is n tensors, and the output is m tensors. A tensor is a multidimensional array of numbers whose elements are indexed by vectors of integers. The number of dimensions of a tensor is often called its rank. Tensors of rank 0, 1, and 2 are scalars, vectors, and matrices, respectively. Each input and output tensor can have different ranks and dimensions.

[0072] In one implementation, atoms are integral to the DSL (e.g., except for the packaged atoms described above, which behave like regular atoms but have internal structure that the developer can inspect), and they perform potentially complex numerical computations in the host language, such as root searches, optimizations, or partial differential equation (PDE) solvers.

[0073] In one implementation, atoms encapsulate the generic interface Atom in the host language. The specific derived types of DerivedAtom can inherit from the Atom interface and implement the following operations or methods based on the generic interface Atom:

[0074] DerivedAtom(xdim::Collection, ps::Collection): A creation function for instances of the DerivedAtom type, or commonly called a constructor or factory function. xdim and ps are parameters of the DerivedAtom constructor, xdim is the input tensor dimension, and the parameter ps is a collection of parameters used to create a DerivedAtom instance, which can include any data type supported by the host programming language. If two atomic objects have the same DerivedAtom and parameters xdim and ps, they are logically identical and refer to the same mathematical function.

[0075] dim(a::Atom) : Returns the rank and dimensions of the input and output tensors of atom a created by the DerivedAtom constructor.

[0076] fwd(a::Atom,xs::Vector{Tensor}): forward operation of the atom, corresponding to Mathematical functions for this, where the object a is an instance of Atom created by the constructor.

[0077] back(a::Atom,ys::Vector{Tensor},xs::Vector{Tensor},jacys::Vector{Tensor},jacxs::Vector{Tensor}): Atomic inversion operation, used to invert AAD. Its input is: And its output is where xs and ys have been calculated using the fwd() method. is specified by the user, and may be any (e.g., intermediate) result that the user wishes to analyze for sensitivity, and may depend on both ys and xs; express to The Jacobian tensor of is The sum of the ranks of . In some embodiments, if the developer does not provide a fast implementation of the analytical back() function, a default implementation of back() can be provided for the basic Atom type using numerical finite differences as a fallback. In some embodiments, the Atom interface can have a separate fwdad() method with the same function signature as the back() method, which is used for automatic forward AD implementation. The main difference in the fwdad() method is that jacxs is the input and jacys is the output, which is opposite to the back() function.

[0078] In one implementation, DerivedAtom can be implemented as a user-defined data type in an object-oriented programming language, where the Atom interface will be virtual functions or methods of DerivedAtom. Function names such as fwd, back, and fwdad are unimportant and may vary in different implementations.

[0079] In one embodiment, PackagedAtom can be used to encapsulate complex analysis logic into a single atom, so that the consistency, transparency and logical clarity of the system are significantly improved. For example, although low-level numerical algorithms such as weighted average and regression can be implemented using atoms, more complex numerical algorithms such as cubic spline interpolation that are usually used as a single single algorithm can be implemented using another atom or multiple atoms (for example, the cubic spline interpolation atom can be implemented by declaring some rules including the Thomas algorithm atom). Although this method is simple, reusable and consistent, the internal logic (such as the cubic spline interpolation algorithm) is completely exposed to the user (for example, the user may not care about or need to understand the internal logic of the cubic spline interpolation algorithm for their use). Fully expanding and exposing the internal logic will complicate the resulting logical dependency graph, and may make it more difficult and tedious for typical users to visualize, navigate and understand the higher-level business and analysis logic that the user is performing.

[0080] In one implementation, DSGRCE supports special syntax (e.g., @package) to allow developers to use rules to declare packaged atoms (e.g., see declaration 170). DSGRCE can use the PackagedAtom type that can inherit from the Atom interface to automatically create packaged atoms based on such declarations. PackagedAtom can be used and referenced by rules like any other Atom, and can appear as an "indivisible" unit to a typical user. However, PackagedAtom can have its own private internal logical dependency graph, which is automatically created by DSGRCE at runtime. For example, a cubic spline interpolation PackagedAtom can have an internal logical dependency graph that references a Thomas algorithm DerivedAtom. In one implementation, DSGRCE can provide users with GUI support to drill down into the internal graph of PackagedAtom, giving full access to those users who wish to inspect the data and / or logical context within the packaged atom. PackagedAtom can implement operations or methods from the general interface Atom, as shown below:

[0081] PackagedAtom: A creation function for an instance of the PackagedAtom type, or commonly called a constructor or factory function. The declaration of a packaged atom specifies a list of input rules (e.g., the parameter list at 170). DSGRCE retrieves these input rules, creates a logical dependency graph in memory, and adds nodes corresponding to each input rule without adding their precedents that are not inputs. If an input node depends on another input node, an edge is added between them to capture that dependency. The result is an internal logical dependency graph that contains the input nodes and the edges between them. The declaration of a packaged atom also specifies output rules (e.g., the rules in the last return statement at 170). The output nodes and their precedents are recursively added to the internal logical dependency graph. The recursion stops at any input node so that the precedents of the input node are not added to the logical graph. Thus, DSGRCE constructs a logical dependency graph that starts at the input nodes and produces the output nodes. If the output node has any (e.g., recursive) precedents that do not depend on any input node, an error may be thrown because the input list is not sufficient to uniquely determine the result of the output node. Users can fix errors by adding additional inputs to the packed atom declaration. Once the logical dependency graph is created, the corresponding atoms can be instantiated by traversing the graph in memory, and memory for subsequent computations can be pre-allocated.

[0082] dim: The dim() methods of input and output atoms can be called to determine the appropriate input and output sizes for the entire computation.

[0083] Fwd: The xs value in the argument of the fwd() call may be copied (or linked) to the pre-allocated memory of the internal graph, and the internal graph may be traversed accordingly based on its dependencies. For each atom in the internal graph, the atom's fwd() method may be called until the final output is calculated. The result of the final output may be copied to the ys argument in the fwd() call.

[0084] back: The values ​​in the jacys, ys, and xs arguments of back() can be copied (or chained)

[0085] to the pre-allocated memory of the internal graph, and the jacxs matrix may be initialized to zero. The internal graph may be traversed in the reverse order of the fwd() calculation, and the back() method of each atom may be called in turn to propagate the Jacobian matrix backwards until the input nodes have been processed. The Jacobian generated for the input nodes may then be added to the corresponding jacxs of the argument of back() of PackagedAtom. Alternatively, the jacxs values ​​in the back() argument may be copied to the memory of the Jacobian pre-allocated to the input of the internal graph at the start of back(), and then the Jacobian generated for the input of the internal graph (after the inversion run) may be copied to the jacxs of PackagedAtom.

[0086] In one implementation, the entire internal graph of the packaged atom can be in the same memory space as the calling process (e.g., worker process). In another implementation, the internal graph of the packaged atom can be distributed on multiple processes or computers connected by a network in a similar manner to that described about the distributed logic dependency graph. The internal graph of the packaged atom can quote any atom, including another packaged atom. Therefore, the user can create a hierarchy of packaged atoms with arbitrary depth to express and encapsulate very complex business and / or analysis logic, while simplifying the logic and data context view of each layer in the hierarchy. In one implementation, DSGRCE can provide GUI support for users to navigate through the layers of packaged atoms, thereby accessing and / or checking the data and / or logic of any layer.

[0087] Although tensors are the most common input and output type for atoms, in some implementations, the programming interface and implementation can be simplified by using low-rank tensors for input and / or output. For example, an implementation can choose to restrict xs and ys inputs / outputs to vectors (rank 1 tensors). In such an implementation, higher-rank tensor inputs and / or outputs can be encoded as collections of vectors.

[0088] Figure 2A-B shows a data flow diagram in one implementation of DSGRCE. Figure 2A -B provides examples of how data flows to, through, and / or out of the DSGRCE. Figure 2A -B, the rule preprocessing (RP) component 221 can parse the rule group to generate data structures that link rules and atoms, allow rule lookups, provide support for value and / or type polymorphism, etc. For additional details on the RP component, see Figure 3 .

[0089] The user 202 may send a distributed system execution request input to the DSGRCE server 206 to facilitate the execution of a specified computation using a rule set. In one embodiment, the user may use a client (e.g., a desktop, a laptop, a tablet, a smart phone, a smart watch) to access a DSGRCE website, an application (e.g., a desktop application, a mobile application), etc. to facilitate the generation of a distributed system execution request input. In one implementation, the distributed system execution request input may include data such as a request identifier, user credentials, a computation specification, etc. For example, the distributed system execution request input may be sent via a network in XML format, and its form is substantially as follows:

[0090]

[0091]

[0092] DSGRCE server 206 may send distributed system execution request 229 to manager process 210 to facilitate generation of a distributed system that performs a specified computation. In one embodiment, the manager process may be a separate process from the DSGRCE server (e.g., running on different hardware). In another embodiment, the manager process may be a component of the DSGRCE server (e.g., running on the same hardware in the same process and memory space as the DSGRCE server). In one implementation, the distributed system execution request may include data such as a request identifier, computation specifications, execution complexity metrics, available worker specifications, communication overhead settings, etc. For example, the distributed system execution request may be sent via a network in XML format, in the form of substantially the following:

[0093]

[0094]

[0095] The logical dependency graph generation (LDGG) component 233 can utilize the data provided in the distributed system execution request to facilitate the construction of a global logical dependency graph (LDG) for the specified computation. For additional details on the LDGG component, see Figure 4 .

[0096] The worker subgraph distribution (WSD) component 237 may partition the global logical dependency graph into multiple subgraphs (e.g., based on the number of available worker processes and their hardware resources) and / or may instantiate worker processes. For additional details on the WSD component, see Figure 5 .

[0097] The manager process 210 may send one or more instantiation requests 241 to one or more worker processes 214 to instantiate the worker processes and / or provide each worker process with a subgraph of its corresponding global logical dependency graph. In some embodiments, the worker process may be executed in a cloud computing environment (e.g., the manager process and / or the DSGRCE server may also be executed in a cloud computing environment or may be executed in a separate environment). In one implementation, the instantiation request may include data such as a request identifier, a worker process identifier, a LDG subgraph specification, a communication mode, a worker network configuration, a shared cache network configuration, a subgraph node remote precedent and / or a dependency specification, etc. For example, the instantiation request may be sent in XML format via a network, and its form is substantially as follows:

[0098]

[0099]

[0100]

[0101] It should be appreciated that in some implementations, a binary representation may be used (eg, instead of XML) when sending DSGRCE messages (eg, input, output, request, response) to reduce network data transfer.

[0102] The worker instantiation (WI) component 245 can utilize the data provided in the instantiation request to instantiate the corresponding worker process and / or establish communication links with other worker processes (e.g., remote instances and / or remote dependencies). For additional details on the WI component, see Figure 6 .

[0103] One or more worker processes 214 may send one or more instantiation responses 249 to the manager process 210 to notify the manager process that the corresponding worker process has been successfully instantiated. In one implementation, the instantiation response may include data such as a response identifier, a status, etc. For example, the instantiation response may be sent via a network in XML format, and its form is substantially as follows:

[0104]

[0105] The graph execution (GE) component 253 can coordinate the execution of the specified calculation and / or provide the final result. For additional details on the GE component, see Figure 7 .

[0106] The manager process 210 may send one or more computation requests 257 to one or more worker processes 214 to instruct the worker process group to perform computations. In one implementation, the computation request may include data such as a request identifier, a worker process identifier, a request type, a subgraph node to be run, etc. For example, the computation request may be sent via a network in XML format, and its form is substantially as follows:

[0107]

[0108]

[0109] The worker computation (WC) component 261 can utilize the data provided in the computation request to facilitate the execution of the requested computation by the corresponding worker process. For additional details on the WC component, see Fig. 8A -C.

[0110] The worker process 214 may send a computation response 265 with the result of the requested computation (e.g., confirming successful completion of the initialization; specifying the final result of the computation) to the manager process 210. In one implementation, the computation response may include data such as a response identifier, a status, the result of the requested computation, etc. For example, the computation response may be sent via a network in XML format, which may be in the following form:

[0111]

[0112] In an alternative implementation, the computation response can be used to provide status, and the computation results can be transmitted by the manager process and the worker process using separate computation result retrieval request / response messages. This separation between execution and data retrieval can allow the manager process to retrieve previously computed data by sending a computation result retrieval request without triggering a recomputation.

[0113] The manager process 210 may send a distributed system execution response 269 with the results of the specified computation to the DSGRCE server 206. In one implementation, the distributed system execution response may include data such as a response identifier, a status, the results of the requested computation, etc. For example, the distributed system execution response may be sent via the network in XML format, which is substantially as follows:

[0114]

[0115] In an alternative implementation, the distributed system execution response can be used to provide status, and the calculation results can be transmitted by the DSGRCE server and the manager process using separate calculation result retrieval request / response messages. This separation between execution and data retrieval can allow the DSGRCE server to retrieve previously calculated data by sending a calculation result retrieval request without triggering a recalculation.

[0116] DSGRCE server 206 may send distributed system execution response output 273 with the results of the specified calculation to user 202. In one embodiment, the user's client may be instructed to display the requested results. In one implementation, the distributed system execution response output may include data such as a response identifier, a status, the results of the requested calculation, etc. For example, the distributed system execution response output may be sent via a network in XML format, which is substantially as follows:

[0117]

[0118]

[0119] In an alternative implementation, the distributed system execution response output can be used to provide status, and the calculation results can be queried by the user and the DSGRCE server using separate calculation result retrieval request input / response output messages. This separation between execution and data retrieval can allow a user to retrieve previously calculated data by sending a calculation result retrieval request input without triggering a recalculation.

[0120] Figure 3 FIG. 1 shows a logic flow diagram illustrating the rule pre-processing (RP) component in one embodiment of DSGRCE. Figure 3 In , a pre-processing request may be obtained at 301. For example, the pre-processing request may be obtained as a result of compiling a specified rule group (eg, requested by a developer user).

[0121] The specified rule group may be determined at 305. In one implementation, one or more specified files having rule declarations written in a DSL may be parsed to determine the specified rule group.

[0122] At 309, it can be determined whether there are more rules to be processed. In one implementation, each rule in the specified rule group can be processed. If there are more rules to be processed, the next rule can be selected for processing at 313.

[0123] A rule data structure instance for the selected rule may be generated at 317. In one implementation, the rule data structure may be a rule type that stores information about the selected rule, such as namespace, name, rule parameters, atom names, atom parameters, precedent rules, metadata (e.g., author, copyright, developer, supporter, document URL), etc., which may be generated based on parsing the declaration of the selected rule. For example, information in the rule data structure (e.g., precedent rules) may be used to construct a rule dependency graph (e.g., by recursively traversing the precedent rules).

[0124] At 321, a rule data structure instance of the selected rule may be added to a rule lookup table. For example, a rule lookup table may be utilized to facilitate fast lookup of declared Rule instances. In one implementation, the rule lookup table may use an identification tuple of a rule (e.g., a [namespace, rulename] tuple) as a key to a group (e.g., a list) of Rule instances. For example, a reference (or pointer) to a Rule instance of a selected rule may be added to a reference list associated with the [namespace, rulename] tuple of the selected rule. In some alternative implementations, the rule lookup table may alternatively use a hash value of the rule calculated based on the identification tuple of the rule as a key.

[0125] A factory function for the selected rule may be generated at 325. In one implementation, a factory function may be generated by a rule compiler in a host language that takes the parameters of the selected rule as input and creates a corresponding Atom object by calling its constructor. Such a factory function may handle any transformation from the parameters of the selected rule to the Atom constructor (e.g., accessing data fields of an object; calculations).

[0126] At 329, the factory function can be added to the rule lookup table. In one embodiment, the factory function and the Rule instance of the selected rule can have a 1-to-1 association. Therefore, in one implementation, the name (or pointer) of the factory function can be stored with the Rule instance of the selected rule (e.g., as a data field of the Rule object; as part of the [list of Rule instances, factory function name] tuple with the rule's identification tuple as the key). In some alternative implementations, the name (or pointer) of the factory function can instead be stored in a separate lookup table (e.g., with the rule's identification tuple as the key). In some alternative implementations, instead of an explicit lookup table for the rule data structure, code can be automatically generated to call the appropriate lookup function as specified by the rule, and a function pointer table can be created.

[0127] At 333, the data types of the host language referenced by the selected rule can be determined. For example, with respect to rule 142, the "Int" data type of the host language is referenced by the rule. In one implementation, the rule declaration of the selected rule can be parsed to determine the set of data types of the host language referenced by the selected rule. For example, for compiled languages ​​such as C / C++, this can be done at compile time. In another implementation, runtime type inheritance information (e.g., for host languages ​​that support reflection) can be determined. For example, for languages ​​such as Java and .NET, this can be done at runtime.

[0128] At 337, the determined data types can be added to the inheritance tree. For example, the inheritance tree can track the data types of the host language referenced by the rules in the specified rule group. In one implementation, the inheritance tree can be a tree based on a single inheritance, where each type has a single parent type. For host languages ​​that support reflection, such as .NET, the inheritance tree can be constructed at runtime. For static host languages, such as C++, the inheritance tree can be constructed by parsing the source code; or relying on special data types that track the inheritance hierarchy; or using basic C++ data types to automatically track inheritance.

[0129] At 341, the created data structures (e.g., rule data structure instances, rule lookup tables, inheritance trees) may be stored (e.g., in a data store). In one implementation, the created data structures may be stored as shared libraries at compile time. In another implementation, the created data structures may be stored in memory at runtime. Some modern programming languages ​​(e.g., Julia) support runtime multiple dispatch. In such a host language, rules may be implemented by generating code that calls the correct atoms as generic methods. In such an implementation, the multiple dispatch capabilities of the host language may be utilized instead of maintaining an explicit type inheritance hierarchy.

[0130] Figure 4 FIG. 2 shows a logic flow diagram illustrating the logical dependency graph generation (LDGG) component in one embodiment of the DSGRCE. Figure 4 In the example of FIG. 4 , a LDG generation request may be obtained at 401. For example, the LDG generation request may be obtained as a result of a user requesting to perform a specified calculation using a specified rule group. It should be understood that although the following description discusses generating an LDG for a single output rule, the LDGG component may also be used with multiple output rules by using elements 405 to 465 for each output rule.

[0131] At 405, the specified output rules and rule parameters may be determined. In one embodiment, a user may provide a desired output list represented as a set of output rules with specific parameterizations, such as "series.fib(10)". In one implementation, the distributed system execution request may be parsed to determine the specified output rules and / or rule parameters (e.g., based on the value of the calculation_specification field).

[0132] At 409, a matching rule group in the rule lookup table (e.g., corresponding to a specified output rule; corresponding to a selected precedent rule) may be determined. In one implementation, an identification tuple (e.g., a "[series, fib]" tuple) of the current rule (e.g., of the specified output rule; of the selected precedent rule) may be determined and used to look up a list of matching Rule instances from the lookup table (e.g., corresponding to "fib(n::Int)", "fib(n::Int(0))", "fib(n::Int(1))").

[0133] At 413, it may be determined whether any matching rules have been found. If no matching rules are found, the DSGRCE may throw an error at 417. For example, the DSGRCE may notify the user that the specified output rule is invalid. In another example, the DSGRCE may notify the user that the selected precedent rule is invalid.

[0134] If a single matching rule is found, and the number and types (and / or values) of runtime rule parameters match those in the rule declaration, the matching rule can be selected at 421. At 441, a logical dependency graph node identifier for the selected matching rule can be determined. In one implementation, the LDG node identifier for the selected matching rule can be determined as a node identification tuple (e.g., a triple [namespace, rulename, ruleparameters]). In another implementation, the LDG node identifier for the selected matching rule can be determined as a hash value of the node identification tuple (e.g., a hash value of the triple [namespace, rulename, ruleparameters]).

[0135] If multiple matching rules have been found, the inheritance distance of each matching rule can be calculated at 425. In one embodiment, the inheritance distance of the matching rules can be calculated as the sum of the distances between the actual runtime type of each rule parameter and the type declared in the matching rule through the DSL. In one implementation, runtime parameters that match the exact type in the rule DSL can be assigned a distance of 0, runtime parameters with single-level inheritance can be assigned a distance of 1, and so on, while runtime parameters with exact value matches can have a distance of -1. For example, with respect to "series.fib(10)", the inheritance distance of "fib(n::Int)" can be calculated as 0, while "fib(n::Int(0))" and "fib(n::Int(1))" do not match. In another example, regarding "series.fib(1)", the inheritance distance of "fib(n::Int(1))" may be calculated as -1, the inheritance distance of "fib(n::Int))" may be calculated as 0, and "fib(n::Int(0))" does not match. In an alternative implementation, if the host language supports such a feature, rule matching may be implemented based on runtime multiple dispatch.

[0136] It may be determined at 429 whether there is a single matching rule with a minimum inheritance distance. If so, the matching rule with the minimum inheritance distance may be selected at 433. If not, an error may be thrown or a tiebreaker technique (e.g., based on the position of the parameters) may be used to select a matching rule at 437. In one implementation, a tiebreaker technique based on the position of the parameters may be used to select a matching rule (e.g., the first parameter is the most important for selection, the second parameter is the second most important for selection, etc.). In another implementation, a tiebreaker technique based on type may be used to select a matching rule (e.g., different types of host languages ​​may have different precedents for selection). As described above, at 441, a logical dependency graph node identifier for the selected matching rule may be determined.

[0137] It may be determined at 445 whether an LDG node with the determined LDG node identifier already exists in the LDG. If not, then at 449, an LDG node of the selected matching rule (e.g., having a Rule instance corresponding to the selected matching rule) may be added to the LDG (e.g., implemented as a DAG) with the determined LDG node identifier. For example, the LDG node may be constructed as follows:

[0138]

[0139] If the selected matching rule is a precedent for an existing node (e.g., this is the case when processing a precedent rule, but not when processing a specified output rule), an LDG edge can be added between the newly added LDG node and the existing dependent LDG node. For example, with respect to "series.fib(10)", an LDG node with a node identification tuple "[series,fib,10]" can be added. In another example, with respect to "series.fib(9)", an LDG node with a node identification tuple "[series,fib,9]" can be added, and an LDG edge can be added between the newly added LDG node and the existing dependent node "[series,fib,10]". In an alternative implementation, if the LDG node is new, precedents of the node can be recursively added before adding the node itself (e.g., for each precedent, an edge can be added to the graph). For example, regarding “series.fib(10)”, after adding LDG nodes with node identification tuples “[series,fib,9]” and “[series,fib,8]” (e.g., recursively, LDG nodes with node identification tuples “[series,fib,7]” and “[series,fib,6]” are added before adding “[series,fib,8]”), an LDG node with node identification tuple “[series,fib,10]” can be added, and LDG edges can be added between the newly added LDG node and its precedent nodes “[series,fib,9]” and “[series,fib,8]”.

[0140] A precedent rule for the selected matching rule may be determined at 453. In one implementation, a rule data structure corresponding to the selected matching rule may be queried from a rule lookup table to determine the precedent rule. For example, with respect to "series.fib(10)", the precedent rules may be "series.fib(9)" and "series.fib(8)". In another example, with respect to "series.fib(9)", the precedent rules may be "series.fib(8)" and "series.fib(7)". In another example, with respect to "series.fib(1)", there may not be any precedent rule.

[0141] At 457, it can be determined whether there is a precedent rule for the selected matching rule (e.g., a call dependency rule) to be processed. In one implementation, each determined precedent rule can be processed. If there are precedent rules to be processed, the next precedent rule can be selected at 461. The selected precedent rule can be processed starting from element 409 as described above. Therefore, the LDGG component can construct a global logical dependency graph by recursively following and adding precedent rules as new nodes to the LDG, starting from the output node corresponding to the specified output rule.

[0142] If there are no remaining precedent rules to process, it can be determined at 465 whether the current rule is a designated output rule. If the current rule is not a designated output rule, the LDGG component can return to processing the precedent rule that calls the dependent rule of the current rule at 475. For example, with respect to "series.fib(9)", after the precedent rules "series.fib(8)" and "series.fib(7)" have been processed, the LDGG component can return to processing the precedent rule "series.fib(8)" that calls the dependent rule "series.fib(10)". If the current rule is a designated output rule, the LDGG component can provide a generated LDG at 481. For example, a reference to the generated LDG (e.g., stored in a memory) can be provided.

[0143] If it is determined at 445 that the LDG node with the determined LDG node identifier already exists in the LDG, then at 471, an LDG edge may be added between the existing LDG node with the determined LDG node identifier and the LDG node associated with the call dependency rule. For example, with respect to processing "series.fib(8)" with the recursive dependency "series.fib(10)", if an LDG node with a node identification tuple "[series,fib,8]" has been added to the LDG when processing "series.fib(9)", then an LDG edge may be added between the LDG node with a node identification tuple "[series,fib,8]" and the call dependency rule node "[series,fib,10]". As described above, the LDGG component may begin at 475 to return to the precedent rule for processing the call dependency rule of the current rule.

[0144] Figure 5 FIG. 2 shows a logical flow diagram illustrating the Worker Subgraph Distribution (WSD) component in one embodiment of DSGRCE. Figure 5 In , a worker subgraph distribution request may be obtained at 501. For example, the worker subgraph distribution request may be obtained as a result of a user requesting to perform a specified calculation using a specified rule group (eg, after generating a logical dependency graph).

[0145] A logical dependency graph may be obtained at 505. In one implementation, the generated LDG may be provided by a LDGG component. For example, a reference to the generated LDG (eg, stored in memory) may be obtained.

[0146] A determination may be made at 509 as to what execution complexity metric to use. In one embodiment, the number of nodes may be used to measure the execution complexity of the LDG. If so, the number of nodes in the LDG may be determined at 513. In one implementation, the number of nodes may be determined using a depth first search (DFS) or breadth first search (BFS) through the LDG. In another embodiment, the tensor size may be used to measure the execution complexity of the LDG. If so, the sum of the output tensor sizes of the LDG nodes may be determined at 517. In one implementation, the sum of the output tensor sizes may be determined using a DFS or BFS through the LDG. In another embodiment, the network data transfer size may be used to measure the execution complexity of the LDG. If so, the estimated network data transfer size associated with the LDG may be determined at 519. In one implementation, statistics collected from previous runs may be used to estimate CPU utilization or network data transfer size (e.g., based on an average of sizes from previous runs). In some embodiments, the execution complexity metric may be a weighted average of multiple metrics, such as the number of nodes, CPU utilization, network data transfer size, tensor output size, and the like.

[0147] It may be determined at 521 whether the number of available workers (e.g., corresponding to worker processes) is fixed or dynamic. In one implementation, the distributed system execution request may be parsed to make this determination (e.g., based on the value of the type field). If the number of available workers is fixed, a specified number of available workers may be determined at 525. In one implementation, the distributed system execution request may be parsed to determine a specified number of available workers (e.g., based on the value of the number_of_available_workers field). For example, there may be 6 workers available.

[0148] If the number of available workers is dynamic, calibration parameters for calculating the number of workers to be used can be determined at 529. In different implementations, the calibration parameters may include one or more of the following: target processing time, target available memory, target cost, etc. The number of workers to be used can be calculated at 533. In one implementation, the execution complexity (e.g., the number of nodes in the LDG, the sum of the output tensor sizes of the LDG nodes, the network data transfer size) can be divided by the average worker execution capacity with respect to the calibration parameters (e.g., determined based on previous experience, determined based on worker hardware characteristics) to calculate the number of workers to be used. For example, if the execution complexity of the LDG is 80,000 nodes, the calibration parameters indicate that the user wants to complete the specified calculation within one second, and the average worker execution capacity is 15,000 nodes per second, the number of workers to be used can be calculated as follows:

[0149]

[0150]

[0151] # of Workers = 6

[0152] In another example, if the execution complexity of LDG is the sum of 120,000 output tensor sizes (e.g., each corresponding to an average memory usage of 0.5MB), the calibration parameters indicate that the user wants the specified computation to complete without running out of memory, and the average worker execution capacity is 16GB of memory, the number of workers that can be used can be calculated as follows:

[0153] sum of output tensor sizes of 120,000*0.5MB per output tensor size=60GB utilized

[0154]

[0155] # of Workers = 4

[0156] The execution processing capabilities of the worker may be determined at 537. For example, the execution processing capabilities may include available hardware characteristics (e.g., actual hardware characteristics, hardware characteristics reported by a cloud-based virtual machine), such as CPU type, number of cores per CPU, available memory, network communication speed, etc. In one implementation, the execution processing capabilities of a worker (e.g., executing on multiple heterogeneous computers) may be determined from a hardware configuration setting (e.g., a configuration file that lists the hardware characteristics of the available computers). In another implementation, the execution processing capabilities of a worker (e.g., a homogeneous worker executing in a cloud computing environment) may be determined from a worker configuration setting (e.g., a configuration setting that specifies hardware characteristics for each worker). It should be understood that in some implementations, multiple workers may execute on a computer system (e.g., on a physical machine or on a virtual machine).

[0157] At 541, the LDG may be divided into subgraphs based on the number and / or execution processing capabilities of the workers and the execution complexity of the LDG. In one embodiment, the LDG may be divided into subgraphs such that each worker is assigned to process a portion of the LDG commensurate with the execution processing capabilities of the corresponding worker. In one implementation, if the workers have isomorphic execution processing capabilities, the LDG may be divided into subgraphs with similar execution complexity. For example, if the execution complexity of the LDG is 80,000 nodes and there are 6 workers, the LDG may be divided into 6 subgraphs with 13,000, 13,000, 13,000, 13,000, 14,000 and 14,000 nodes. In another implementation, if the workers have heterogeneous execution processing capabilities, the LDG may be divided into subgraphs corresponding to the available execution processing capabilities of each worker. For example, if the execution complexity of LDG is using 60GB of memory, the sum of output tensor sizes is 120,000, and there are 4 workers with available memory of 24GB, 24GB, 8GB, and 8GB, LDG can be partitioned into 4 subgraphs with the sum of output tensor sizes of 45,000, 45,000, 15,000, and 15,000.

[0158] At 545, it may be determined whether to reduce communication overhead to optimize processing. For example, in some cases, the communication overhead associated with node computation (e.g., sending the output of the node computation from one worker to another worker) may be more expensive than replicating the node computation (e.g., at another worker). In one implementation, the distributed system execution request may be parsed to determine whether to reduce communication overhead (e.g., based on the value of the communication_overhead field).

[0159] If it is determined that communication overhead should be reduced, hot nodes with large communication overhead can be determined at 549. In one implementation, a node can be classified as a hot node if it exceeds a specified data transfer size threshold. For example, the data transfer size can be calculated as the output size (e.g., the output tensor size) multiplied by the number of remote workers that depend on the output (e.g., the number of workers that must receive the output over the network). At 553, the determined hot nodes can be copied to the subgraphs of other workers. In one implementation, if the output of the hot node is a remote precedent of a subgraph node, the hot node can be added to the subgraph associated with the subgraph node. It is to be understood that the replication of hot nodes can be recursively applied so that a portion of the entire graph is replicated in multiple workers, while providing a faster computation speed for the specified calculation due to the reduced communication overhead.

[0160] At 557, it can be determined whether there are more workers to be processed. In one implementation, each worker to be used can be processed. If there are more workers to be processed, at 561, the next worker can be selected for processing.

[0161] At 565, the subgraph of the selected worker can be determined. In one implementation, if the workers have isomorphic execution processing capabilities, any unassigned subgraphs can be assigned to the selected worker (e.g., randomly). In another implementation, if the workers have heterogeneous execution processing capabilities, the subgraphs corresponding to the available execution processing capabilities of the selected worker can be determined and assigned to the workers. In one embodiment, the global assignment of nodes (subgraphs) to workers (e.g., determined centrally by the WSD component) can be broadcast to each worker so that each worker knows the global assignment of nodes to workers. Based on this information, any worker can determine whether a node is local or remote, as well as the remote workers who own any node.

[0162] Remote precedents for the selected worker may be determined at 569. For example, a remote precedent may be an output of a node in another worker's subgraph that is an input to a node in the subgraph assigned to the selected worker. In one implementation, the subgraph assigned to the selected worker may be analyzed to determine whether each input to each node in the subgraph has a remote precedent (e.g., by comparing to the LDG) and / or to determine an identifier of the remote precedent (e.g., a remote worker identifier and / or a remote node identifier).

[0163] Remote dependencies of the selected worker may be determined at 573. For example, a remote dependency may be an input to a node in a subgraph of another worker that is an output of a node in the subgraph assigned to the selected worker. In one implementation, the subgraph assigned to the selected worker may be analyzed to determine whether each output of each node in the subgraph has a remote dependency (e.g., by comparing to the LDG) and / or to determine an identifier of the remote dependency (e.g., a remote worker identifier and / or a remote node identifier).

[0164] At 577, a worker process (e.g., including an LDG data structure) for the selected worker may be instantiated. For example, data such as the subgraph assigned to the selected worker, information about remote precedents, information about remote dependencies, communication modes (e.g., worker to worker, shared cache), etc. may be provided to the instantiated worker process. In one implementation, an instantiation request may be sent to a computer system (e.g., to a physical machine, a virtual machine) for executing the worker process to instantiate the worker process. In some implementations, the worker process may be a service that runs continuously.

[0165] Figure 6 FIG. 1 shows a logic flow diagram illustrating the Worker Instantiation (WI) component in one embodiment of the DSGRCE. Figure 6 In , an instantiation request may be obtained at 601. For example, the instantiation request may be obtained as a result of a manager process sending an instantiation request to instantiate a worker process.

[0166] At 605, a designated LDG subgraph for the worker process may be determined. In one implementation, the instantiation request may be parsed to determine a designated LDG subgraph for the worker process (eg, based on a value of a LDG_subgraph field).

[0167] At 609, it may be determined whether there are more subgraph nodes to be processed. In one implementation, each subgraph node in the specified LDG subgraph may be processed. If there are more subgraph nodes to be processed, at 613, the next node may be selected for processing.

[0168] At 617, remote precedents for the selected subgraph node may be determined. In one implementation, the instantiation request may be parsed to determine remote precedents (e.g., based on the value of a precedent field associated with a node identifier of the selected subgraph node). For example, a remote worker process identifier and / or a remote node identifier associated with each remote precedent (e.g., input) of the selected subgraph node may be determined. In another implementation, the manager process may provide a global assignment of nodes (subgraphs) to the worker (e.g., determined centrally by the WSD component) so that the worker process may determine whether the selected subgraph node has a remote precedent. For example, a remote worker process identifier and / or a remote node identifier associated with each remote precedent (e.g., input) of the selected subgraph node may be determined from the global assignment of nodes.

[0169] At 621, remote dependencies of the selected node may be determined. In one implementation, the instantiation request may be parsed to determine the remote dependencies (e.g., based on the value of a dependency field associated with a node identifier of the selected subgraph node). For example, a remote worker process identifier and / or a remote node identifier associated with each remote dependency (e.g., an output) of the selected subgraph node may be determined. In another implementation, the manager process may provide a global assignment of nodes (subgraphs) to the worker (e.g., determined centrally by the WSD component) so that the worker process may determine whether the selected subgraph node has a remote dependency. For example, a remote worker process identifier and / or a remote node identifier associated with each remote dependency (e.g., an output) of the selected subgraph node may be determined from the global assignment of nodes.

[0170] A determination may be made at 625 as to what communication mode to use. In one embodiment, a worker-to-worker communication mode may be used. If so, network information for the remote precedent may be determined at 631. For example, the network information may include an IP address and / or port for each remote worker process, the output of which is used as input by the selected subgraph node. In one implementation, the instantiation request may be parsed to determine the network information for the remote precedent (e.g., based on the value of the worker_IP_address field associated with each corresponding remote worker process identifier).

[0171] At 635, the worker process may subscribe to notifications from the remote precedent.

[0172] For example, a notification from a remote precedent worker process may include an output of a remote precedent node that is used as an input by a selected subgraph node (e.g., a notification may be sent after the remote precedent worker process completes a node computation associated with the remote precedent node). In one implementation, a worker process may send a subscription request to a remote precedent worker process (e.g., using the remote precedent worker process's network information), specifying a node identifier of a remote precedent node whose output the worker process wishes to obtain.

[0173] At 639, the worker process may register the contact dependency for notifications about the selected subgraph node (e.g., this may be done in a separate thread at any time when a subscription request is received). For example, notifications from the worker process may include outputs of the selected subgraph node that are used as inputs by the remote dependency nodes of the contact remote dependency worker process (e.g., notifications may be sent after the worker process completes node computations associated with the selected subgraph node). In one implementation, the worker process may verify whether the contact remote dependency worker process is authorized to register by verifying that the contact remote dependency worker process is one of the determined remote dependencies of the selected subgraph node.

[0174] In some alternative implementations, instead of utilizing a subscription request to register a remote worker process for notification (e.g., for use when network information for the remote dependencies is not available in an instantiation request), the determined remote dependencies of a selected subgraph node may be automatically registered for notification (e.g., for use when network information for the remote dependencies is available in an instantiation request) without utilizing a registration request from the determined remote dependencies.

[0175] In another embodiment, a shared cache communication mode may be used. If so, network information of the shared cache may be determined at 641. For example, the network information may include an IP address and / or port of the shared cache. In one implementation, the instantiation request may be parsed to determine the network information of the shared cache (e.g., based on the value of the shared_cache_network_configuration field).

[0176] At 645, the worker process may subscribe to the shared cache notifications from the remote precedent. For example, notifications from the shared cache may include outputs from the remote precedent node of the remote precedent worker process that are used as input by the selected subgraph node (e.g., the notifications may be sent after the remote precedent worker process completes the node computation associated with the remote precedent node and notifies the shared cache). In one implementation, the worker process may send a subscription request to the shared cache (e.g., using the shared cache's network information), specifying the remote worker process identifier of the remote precedent worker process and / or the remote node identifier of the remote precedent node whose output the worker process wishes to obtain from the shared cache. In some alternative embodiments, instead of using a subscription model, the shared cache may be passive (e.g., the shared cache does not actively push data to the worker) and the worker process may send a request to the shared cache to retrieve the state and / or value of any data it wishes to obtain (e.g., outputs from the remote precedent node of the remote precedent worker process that are used as input by the selected subgraph node).

[0177] At 649, the worker process may register with the shared cache to notify remote dependencies. For example, notifications from the worker process may include outputs of selected subgraph nodes used as input by remote dependency nodes. In one implementation, the worker process may send a registration request to the shared cache (e.g., using the shared cache's network information), specifying a worker process identifier for the worker process and / or node identifiers of selected subgraph nodes whose outputs the worker process will provide to the shared cache. In some alternative embodiments, instead of using a subscription model, the shared cache may be passive (e.g., the shared cache does not actively push data to the worker) and the worker process may send a request to the shared cache to provide the state and / or value of any data it wishes to send (e.g., outputs of selected subgraph nodes used as input by remote dependency nodes).

[0178] At 651, the rules associated with the selected subgraph node can be determined. In one implementation, the Rule instance associated with the selected subgraph node can be determined. At 655, the factory function associated with the rule can be called. In one implementation, the factory function is called to create the corresponding Atom object by calling its constructor. For example, the input tensor size to the Atom's constructor can be automatically inferred by calling the dims() interface of its precedent atom. In some implementations, if the atom is fully functional and has no internal state (e.g., it is impossible to write updates to the same memory location), a single instance of the atom can be shared for subgraphs instead of duplicating the fully functional atom.

[0179] At 659, an instantiation response may be provided. For example, the instantiation response may be sent to the manager process to notify the manager process that the worker process instantiation was successful.

[0180] Figure 7 FIG. 1 shows a logic flow diagram illustrating the graph execution (GE) component in one embodiment of the DSGRCE. Figure 7 In , a graph execution request may be obtained at 701. For example, the graph execution request may be obtained as a result of a user requesting to specify a specified computation using a specified rule group (eg, after at least some of the worker processes have been instantiated).

[0181] At 705, a requested output for the current run can be determined. For example, the requested output can be the current value of the fixed income portfolio (e.g., provided as an input) and / or a sensitivity to the current value. In some embodiments, a specified calculation can be repeated multiple times (e.g., an intraday trading system can recalculate the current value of the fixed income portfolio each time a new quote for a component bond is received), with some inputs being unmodified (e.g., corporate bond values ​​that do not change frequently) and some inputs being modified (e.g., stock price values ​​that change frequently) between subsequent runs.

[0182] At 709, the LDG nodes to be calculated for the requested output may be determined. In one embodiment, each LDG node may be calculated. In another embodiment, the LDG nodes that depend on the inputs modified from a previous run may be calculated. For example, the affected LDG nodes using the modified inputs may be determined as the LDG nodes to be calculated, and any other LDG nodes that depend on the outputs from the affected LDG nodes (e.g., directly or indirectly) may also be determined as the LDG nodes to be calculated. In one implementation, the LDG nodes to be calculated may be determined using a DFS or BFS through the LDG (e.g., starting from the affected LDG nodes).

[0183] At 713, it can be determined whether there are still worker processes to be processed. In one implementation, each worker process can be processed. If there are still worker processes left to be processed, at 717, the next worker process can be selected for processing.

[0184] At 721, a subgraph node to be run for the selected worker process may be determined. In one implementation, a determined LDG node to be computed included in an LDG subgraph associated with the selected worker process may be determined as the subgraph node to be run for the selected worker process. In an alternative implementation, at 577, the subgraph node to be run may be determined during instantiation.

[0185] At 731, the manager process may notify the selected worker process to initialize a forward (or first level) computation (e.g., a portion of a specified computation). In one implementation, the manager process may send a computation request to the selected worker process to instruct the selected worker process to initialize the forward computation. In some implementations, the forward initialization (e.g., resetting the run state from a previous run, such as whether a node has been executed, or whether a node has received previous data from another worker) may be part of the forward computation request discussed at 741 rather than a separate request.

[0186] At 735, it can be determined whether the forward computation initialization is completed by the selected worker process. In one implementation, a computation response can be received from the selected worker process indicating that the forward computation initialization has been completed. If the forward computation initialization is not completed, the GE component can wait at 739. In one implementation, the wait can be non-blocking. For example, the GE component can continue to process the next worker process and can return to processing the selected worker process at a later time (e.g., after looping through the worker processes, after being notified that the forward computation initialization has been completed). In another example, as an alternative to looping, graph execution can be implemented as part of an event loop of a message handler.

[0187] If the forward calculation is initialized, the manager process may notify the selected worker process to run the forward calculation at 741. In one implementation, the manager process may send a calculation request to the selected worker process to instruct the selected worker process to run the forward calculation. For example, the calculation request may specify a subgraph node to run for the selected worker process (e.g., if only a portion of the graph should be updated (e.g., affected by a changed input)).

[0188] At 745, it can be determined whether the forward computation is completed by the selected worker process. In one implementation, a computation response can be received from the selected worker process, indicating that the forward computation has been completed. If the forward computation is not completed, the GE component can wait at 749. In one implementation, the wait can be non-blocking. For example, the GE component can continue to process the next worker process, and can return to processing the selected worker process at a later time (e.g., after looping through the worker processes, after being notified that the forward computation has been completed). In another example, as an alternative to the loop, graph execution can be implemented as part of the event loop of the message handler. It is to be understood that if a forward AD computation is desired, it can be part of the original step of the forward computation, or a second forward round similar to the original forward computation.

[0189] If the forward calculation is complete, the manager process may notify the selected worker process to initialize the inverse calculation (e.g., sensitivity calculation) at 751. In one implementation, the manager process may send a calculation request to the selected worker process to instruct the selected worker process to initialize the inverse calculation. In some implementations, inversion initialization (e.g., resetting the operation state from the previous operation, such as whether the node has been executed, or whether the node has received previous data from another worker) may be part of the inverse calculation request discussed at 761 rather than a separate request. It is understood that in some embodiments, the user may not request the calculation of sensitivity, in which case the inverse calculation initialization and / or the inverse calculation may be avoided.

[0190] At 755, it may be determined whether the inversion calculation initialization is completed by the selected worker process. In one implementation, a calculation response may be received from the selected worker process indicating that the inversion calculation initialization has been completed. If the inversion calculation initialization is not completed, the GE component may wait at 759. In one implementation, the wait may be non-blocking. For example, the GE component may continue to process the next worker process and may return to processing the selected worker process at a later time (e.g., after looping through the worker processes, after being notified that the inversion calculation initialization has been completed). In another example, as an alternative to looping, graph execution may be implemented as part of an event loop of a message handler for network communications.

[0191] If the inversion calculation is initialized, the manager process may notify the selected worker process to run the inversion calculation at 761. In one implementation, the manager process may send a calculation request to the selected worker process to instruct the selected worker process to run the inversion calculation. For example, the calculation request may specify a subgraph node to run for the selected worker process.

[0192] At 765, it may be determined whether the inversion computation is completed by the selected worker process. In one implementation, a computation response may be received from the selected worker process indicating that the inversion computation is complete. If the inversion computation is not complete, the GE component may wait at 769. In one implementation, the wait may be non-blocking. For example, the GE component may continue to process the next worker process and may return to processing the selected worker process at a later time (e.g., after looping through the worker processes, after being notified that the inversion computation is complete). In another example, as an alternative to looping, graph execution may be implemented as part of an event loop of a message handler.

[0193] If there are no worker processes left to process, the manager process can retrieve the requested output at 771. For example, the requested output can be the result of a specified calculation (e.g., including sensitivity). In another example, the requested output can be the result of a calculation for any LDG node (e.g., when a user wishes to view intermediate results by selecting an LDG node of interest to the user using the DSGRCE GUI). In one implementation, the manager process can retrieve the requested output by sending a message to the relevant worker process (e.g., determined based on the LDG subgraph containing the selected LDG node) to provide the result of the specified LDG node.

[0194] At 775, the request output may be provided. In one implementation, the manager process may send a distributed system execution response to provide the request output.

[0195] Fig. 8A -C shows a logical flow diagram of the Worker Computing (WC) component in one embodiment of an example DSGRCE. Fig. 8A , a computation request may be obtained at 801. For example, the computation request may be obtained as a result of instructing a manager process of a worker process to perform a computation.

[0196] At 805, a determination may be made regarding the request type specified in the computation request. If the request type is "initialize forward," at 811, the worker process may clear and / or release memory allocated from the previous run. In one implementation, instantiated objects from the previous run may be deleted. At 815, variables may be initialized. In one implementation, objects may be instantiated and / or initialized to their default values.

[0197] If the request type is "forward computation", the specified LDG subgraph for the worker process can be determined at 821. In one implementation, a list of node IDs (e.g., the LDG subgraph for the worker process specified in the instantiation request) can be accessed to determine the specified LDG subgraph. At 825, the result of the forward computation of the LDG subgraph can be calculated. In one implementation, the subgraph nodes running for the worker process (e.g., specified by the manager process) can be processed to calculate the result of the forward computation. For additional details on calculating the forward computation results, see Figure 8B .

[0198] If the request type is "inversion initialization", at 831, the final Jacobian determinant can be initialized to the identity matrix tensor, and at 835, the intermediate Jacobian determinant can be initialized to the zero tensor. In one implementation, the computation request may include the final output The identity matrix and sensitivity set (e.g., the list of nodes whose sensitivities should be calculated: In Among them, each yes Dependent nodes, and their sensitivity is requested by the user. After receiving the computation request, the worker process can initialize the final Jacobian to the identity matrix tensor And the intermediate Jacobian is initialized to a 0 tensor. In some implementations, the memory used to calculate the intermediate Jacobian can be pre-allocated at this stage to improve memory efficiency.

[0199] If the request type is "inverse computation", the designated LDG subgraph of the worker process can be determined at 841. In one implementation, a list of node IDs (e.g., the LDG subgraph of the worker process specified in the instantiation request) can be accessed to determine the designated LDG subgraph. At 845, the sensitivity of the LDG subgraph can be calculated. In one implementation, the worker process can inversely execute the LDG subgraph from the final output to the input by calling the back() method of each Atom object of each node, and in the sensitivity set has been executed (for example, in After the calculation is completed). In some implementations, when the intermediate results (e.g., intermediate tensors and / or gradient results) are no longer used (e.g., determined based on the LDG subgraph), the memory allocated for the intermediate results can be reused in other nodes to improve memory efficiency. For additional details on calculating the inverse calculation results, see Figure 8C .

[0200] In some implementations, a forward AD calculation may be used, which works similarly to the inverse AD calculation described above, but has a different initialization and calculation order.

[0201] At 851, a computation response may be provided. In one implementation, the worker process may send a status indicator and / or a result of the requested computation to the manager process via the computation response.

[0202] Figure 8B Additional details on the computational forward modeling results are shown. Figure 8BAt 862, it can be determined whether there are still subgraph nodes to be processed. In one implementation, each subgraph node to be run in the specified LDG subgraph can be processed. If there are still subgraph nodes left to be processed, the nodes in the ready group can be determined at 864. In one implementation, the ready group can include unprocessed subgraph nodes that are ready to run, which can include unprocessed subgraph nodes with no precedents and unprocessed subgraph nodes whose precedents have been processed (e.g., by a worker process for local precedents; by another worker process for remote precedents). At 866, the next node in the ready group can be selected for processing.

[0203] At 868, it may be determined whether the selected node has a remote precedent. If so, a previous input (e.g., a computational output of the remote node) may be determined from the corresponding remote worker process at 870. In one implementation, the previous input may be obtained directly from the remote worker process. In another implementation, the previous input may be obtained from a shared cache.

[0204] At 872, a result for the selected node may be calculated. In one implementation, the fwd() method of the Atom object associated with the selected node may be called along with any local precedents (e.g., provided as input; previously calculated by a worker process for one or more processed nodes) and / or remote precedents (e.g., obtained from one or more remote worker processes) provided as input.

[0205] At 874, it may be determined whether the selected node has a remote dependency. If so, the computation result may be provided to the remote worker process at 876. In one implementation, the computation result may be sent directly to the remote worker process. In another implementation, the computation result may be sent to a shared cache.

[0206] Figure 8C Additional details about calculating the inversion calculation results are shown. It is to be understood that precedent nodes and dependent nodes are defined by the direction of data flow. Therefore, precedent nodes and dependent nodes can be reversed between forward and inversion runs because their data flow directions are different. Figure 8C , at 882, it can be determined whether there are still subgraph nodes to be processed. In one implementation, each subgraph node to be run in the specified LDG subgraph can be processed. If there are still subgraph nodes left to be processed, the nodes in the ready group can be determined at 884. In one implementation, the ready set can include unprocessed subgraph nodes that are ready to run, which can include unprocessed subgraph nodes with no precedents and unprocessed subgraph nodes whose precedents have been processed (e.g., by a worker process for local precedents; by another worker process for remote precedents). At 886, the next node in the ready group can be selected for processing.

[0207] At 888, it may be determined whether the selected node has a remote precedent. If so, a previous input (e.g., a sensitivity output of the remote node) may be determined from the corresponding remote worker process at 890. In one implementation, the previous input may be obtained directly from the remote worker process. In another implementation, the previous input may be obtained from a shared cache.

[0208] At 892, the sensitivity of the selected node can be calculated. In one implementation, the back() method of the Atom object associated with the selected node can be called with any local precedents (e.g., provided as input; previously calculated by a worker process for one or more processed nodes) and / or remote precedents (e.g., obtained from one or more remote worker processes) provided as input. In another implementation (e.g., when forward AD calculations are used), the fwdad() method of the Atom object associated with the selected node can be called.

[0209] At 894, it may be determined whether the selected node has a remote dependency. If so, a sensitivity may be provided to the remote worker process at 896. In one implementation, the sensitivity may be sent directly to the remote worker process. In another implementation, the sensitivity may be sent to a shared cache.

[0210] Fig. 9 A diagram showing a screen shot illustrating user interface features in one embodiment of the DSGRCE. Fig. 9 , an exemplary user interface (e.g., for a mobile device, for a website) showing a logical dependency graph 901 for calculating the Fibonacci series is illustrated. The LDG corresponds to a usage rule statement 130 with a scalar "10" as an input. Panel 905 shows information about a selected node 915 (e.g., "series.fib(10)") of the LDG. The final result (e.g., 55) associated with the selected node is displayed as a bar chart 910. The Atom object associated with the selected node is shown at 920. The rule parameters associated with the selected node are shown at 925. The priority node of the selected node is shown at 930. The dependency node of the selected node is shown at 935. The input and output dimensions of the selected node are shown at 940. The source code associated with the selected node (e.g., rule statement; related metadata, such as developer name, documentation, source code location) is shown at 945.

[0211] Fig.10 A diagram showing a screen shot illustrating user interface features in one embodiment of the DSGRCE. Fig.10, an exemplary user interface showing two logical dependency graphs (eg, for a mobile device, for a website) is illustrated. LDG 1001 corresponds to LDG 901. LDG 1005 is the result of rule cloning and overlaying, corresponding to using rule statement 160, with "series_dev.fib(10)" as a user-specified output. Fig.10 It is shown that the calculation results associated with the "series" statement are not lost and can be compared with the results associated with the "series_dev" statement after the rules have been changed.

[0212] Fig.11 A diagram showing a screen shot illustrating user interface features in one embodiment of the DSGRCE. Fig.11 , an exemplary user interface (e.g., for a mobile device, for a website) showing a rule dependency graph 1101 is illustrated. In one implementation, a rule dependency graph (RDG) can be generated by traversing a logical dependency graph (e.g., starting with an LDG output node corresponding to a specified output rule (e.g., series_dev.fib(10)). RDG nodes corresponding to Rule instances associated with LDG output nodes can be added to the rule dependency graph. For example, RDG nodes can be constructed as follows:

[0213]

[0214] The precedent LDG nodes of the LDG output node can be recursively traversed, and the Rule instance associated with each corresponding LDG precedent node can be determined. If there is not yet an RDG node corresponding to the Rule instance associated with the corresponding LDG precedent node in the rule dependency graph, such an RDG node can be added to the rule dependency graph and an RDG edge between such an RDG node and its dependent RDG node can be added. If such an RDG node already exists, an RDG edge between such an RDG node and its dependent RDG node can be added (for example, the RDG edge can be between two different RDG nodes, or between the RDG node and itself). For example, the RDG node can provide information about the associated Rule instance (for example, rule declaration; related metadata, such as developer name, document, source code location), LDG nodes that utilize the associated Rule instance, precedent and / or dependent RDG nodes (for example, via RDG edge data fields), etc. In one implementation, the user can use the drop-down menu 1105 to switch the display between the LDG (computation graph) and the rule dependency graph. The rule dependency graph shows the logical flow of the computation and clearly identifies that only a single rule differs between namespace "series" and namespace "series_dev". The rule dependency graph shows that rule cloning is effectively copy-on-write (e.g., when a rule group is first cloned, the cloned rules reference the same rules from the original group until they are explicitly changed, as with rule "series_dev.fib(2)". The rule dependency graph can be used for model validation and auditing.

[0215] Fig.12 A diagram showing a screen shot illustrating user interface features in one embodiment of the DSGRCE. Fig.12 , an exemplary user interface (e.g., for a mobile device, for a website) showing a logical dependency graph 1201 for using a package to calculate the Fibonacci sequence is illustrated. The LDG corresponds to the usage rule statement 170, where two random vectors of length 3 are used as inputs. A bar graph 1205 shows one of the random inputs.

[0216] Fig.13 A diagram showing a screen shot illustrating user interface features in one embodiment of the DSGRCE. Fig.13 , an exemplary user interface (e.g., for a mobile device, for a website) is illustrated showing a logical dependency graph 1301 that provides details about how to compute the LDG node "pack.fib(3)" 1210. In one implementation, a user can drill down (e.g., by double-clicking the LDG node) into the internal graph of the pack atom "pack.fib(3)" to view the details.

[0217] Fig.14 A diagram showing a screen shot illustrating user interface features in one embodiment of the DSGRCE. Fig.14 , an exemplary user interface for showing sensitivity (e.g., for a mobile device, for a website) is illustrated. The sensitivity 1401 of two random vectors associated with the logical dependency graph 1201 is shown (e.g., using algorithmic differentiation to obtain the result). The sensitivity to each of the two input vectors is a 3x3 Jacobian matrix, and the sensitivity is displayed as two column line graphs.

[0218] Fig.15 A diagram showing a screen shot illustrating user interface features in one embodiment of the DSGRCE. Fig.15 , an exemplary user interface (e.g., for a mobile device, for a website) showing the state of a distributed system generated by a DSGRCE is illustrated. A state 1501 associated with computing pricing results for a large portfolio with one million transactions using six workers on the Amazon Web Services (AWS) cloud is shown. The user interface shows detailed information such as network address, computation progress, number of nodes in the distributed LDG subgraph, CPU utilization, memory utilization, messages sent for data exchange, messages received for data exchange, etc. for each of the six workers.

[0219] Fig.16 A diagram showing a screen shot illustrating user interface features in one embodiment of the DSGRCE. Fig.16 , an exemplary user interface (e.g., for a mobile device, for a website) showing a logical dependency graph 1601 is illustrated, which is used to calculate pricing results for a large portfolio and top-level results of a graph calculation after the distributed calculation is completed. In one implementation, instead of displaying all 7.2 million nodes in this calculation graph (e.g., this may be slow and confusing), partial nodes corresponding to the final results are shown, and those nodes whose precedents cannot be fully displayed are shown in gray (e.g., color, shape, border style, etc. can be used to distinguish nodes whose precedents are fully shown from those nodes with missing precedents). When the user double-clicks on any node, the graph display can expand and show the precedents associated with the selected node. Navigation links 1605 and 1610 facilitate navigation of the large graph. Navigation link 1605 allows the user to navigate to precedent nodes and dependency nodes. Navigation link 1610 allows the user to return to the top-level graph after the user drills down into the internal graph of the packaged atom. Navigation link 1610 can show the current position of the graph to help the user navigate.

[0220] Fig.17 A diagram showing a screen shot illustrating user interface features in one embodiment of the DSGRCE. Fig.17 , an exemplary user interface (e.g., for a mobile device, for a website) showing a logical dependency graph 1701 is illustrated, which provides details about the previous nodes (e.g., only a small portion of the 7.2 million nodes) of a single transaction. Different colors can indicate the identity of each worker, showing that the transaction valuation involves the collaboration of three different workers (e.g., colors, patterns, shapes, border styles, etc. can be used to identify which worker is associated with a node). When the user clicks on one of the nodes, its value is displayed in a panel 1705, allowing the user to examine any intermediate results of the entire calculation.

[0221] Fig.18 A diagram showing a screen shot illustrating user interface features in one embodiment of the DSGRCE. Fig.18 , an exemplary user interface (e.g., for a mobile device, for a website) showing a rule dependency graph 1801 corresponding to a logic dependency graph 1601 is illustrated. The rule dependency graph has 40 underlying rules for 7.2 million compute nodes. This example shows that it is easier to trace the logic through 40 rule nodes than to try to trace through 7.2 million compute nodes in order to understand the control logic of the computation.

[0222] Fig.19 A diagram showing a screen shot illustrating user interface features in one embodiment of the DSGRCE. Fig.19 , an exemplary user interface for showing sensitivity (eg, for a mobile device, for a website) is illustrated. Sensitivities 1901 associated with a logical dependency graph 1601 are shown (eg, using algorithmic differentiation to obtain the result).

[0223] Fig. 20 A diagram showing a screen shot illustrating user interface features in one embodiment of the DSGRCE. Fig. 20 , an exemplary user interface for providing debugging capabilities (e.g., for a mobile device, for a website) is illustrated. Using the navigation feature, a developer can find and inspect any intermediate computations (e.g., on a remote system running on the AWS cloud). When a developer has identified a node whose computation may be incorrect, the developer may want to run the same computation in a debugger and step through it. However, doing so on a remote system may not be feasible because the developer may not have login privileges and / or the remote system may be a production cloud without any debugging information (e.g., source files or symbol files).

[0224] Alternatively, in some implementations, DSGRCE can provide alternative debugging capabilities to debug remote distributed systems without requiring login privileges or when the production server is running without any debugging symbols and information. When a developer wants to debug a given node, the developer can click on the debug link 2001, and a display (e.g., a pop-up window) 2005 can show code that the developer can copy / paste to the developer's local machine and execute. After executing this code, the user can obtain an exact copy of Atom in the local environment, where the developer can use a debugger locally to examine each step of the calculation in the Atom (e.g., the source files or symbol files used by the debugger should exist on the developer's local computer).

[0225] Detailed description of DSGRCE coordinator

[0226] Fig.21A block diagram of an exemplary DSGRCE coordinator in one embodiment of the DSGRCE is shown. The DSGRCE coordinator facilitates the operation of the DSGRCE via: a computer system (e.g., one or more cloud computing systems (e.g., Microsoft Azure, Amazon Web Services, Google Cloud Platform), grid computing systems, virtualized computer systems, mainframe computers, servers, clients, nodes, desktops, mobile devices (e.g., smart phones, cellular phones, tablets, personal digital assistants (PDAs), smart watches, etc.), embedded computers, special-purpose computers, system-on-chip (SOC) devices, etc. For example, the DSGRCE coordinator can receive, acquire, aggregate, process, generate, store, retrieve, send, delete, input, output, etc. data (including program data and program instructions); can execute program instructions; can communicate with computer systems, nodes, users, etc. In different embodiments, the DSGRCE coordinator may include an independent computer system, a distributed computer system, a node in a computer network (i.e., a network of computer systems organized in a topology), a network of DSGRCE coordinators, etc. It is to be understood that the DSGRCE coordinator and / or different DSGRCE coordinator elements (e.g., processors, system buses, memories, input / output devices) may be To be organized in any number of ways (i.e., using any number and configuration of computer systems, computer networks, nodes, DSGRCE coordinator elements, etc.) to facilitate DSGRCE operations. In addition, it should be understood that different DSGRCE coordinator computer systems, DSGRCE coordinator computer networks, DSGRCE coordinator nodes, DSGRCE coordinator elements, etc. can communicate with each other in any number of ways to facilitate DSGRCE operations. As used in this disclosure, the term "user" generally refers to a person and / or computer system that interacts with the DSGRCE; the term "server" generally refers to a computer system, program, and / or combination thereof that processes requests and / or responds to requests from a client through a computer network; the term "client" generally refers to a computer system, program, user, and / or combination thereof that generates requests and / or processes responses from a server through a computer network; the term "node" generally refers to a server, a client, and / or an intermediate computer system, program, and / or combination thereof that facilitates the transmission and / or processing of requests and / or responses.

[0227] The DSGRCE coordinator includes a processor 2101 that executes program instructions (e.g., DSGRCE program instructions). In different embodiments, the processor may be a general-purpose microprocessor (e.g., a central processing unit (CPU), an accelerated processing unit (APU)), a dedicated microprocessor (e.g., a graphics processing unit (GPU), a physical processing unit (PPU), a digital signal processor (DSP), a network processor, a tensor processing unit (TPU), a cryptographic processor, a biometric processor, etc.), an external processor, a plurality of processors (e.g., working in parallel, distributed, etc.), a microcontroller (e.g., for embedded systems), etc. The processor may be implemented using an integrated circuit (IC), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), etc. In different implementations, the processor may include one or more cores, may include embedded elements (e.g., a coprocessor such as a math coprocessor, an embedded dedicated microprocessor used as a coprocessor, registers, cache memory, software), may be synchronous (e.g., using a clock signal) or asynchronous (e.g., without a central clock), etc. For example, the processor can be an AMD Ryzen processor, an AMD Epyc processor, an Intel Core processor, an Intel Xeon processor, an ARM Cortex processor, an Apple A processor, an Apple S processor, a Qualcomm Snapdragon processor, an IBM PowerPC processor, or the like.

[0228] The processor can be connected to the system memory 2105 via the system bus 2103. The system bus can interconnect these and / or other elements of the DSGRCE coordinator through electrical, electronic, optical, wireless and other communication links (for example, the system bus can be integrated into a motherboard, which interconnects the DSGRCE coordinator elements and is powered from a power supply). In different embodiments, the system bus may include one or more control buses, address buses, data buses, memory buses, peripheral buses, etc. In different implementations, the system bus may be a parallel bus, a serial bus, a daisy chain design, a hub design, etc. For example, the system bus may include a front-end bus, a back-end bus, AMD's Infinity Fabric, Intel's QuickPath Interconnect (QPI), a peripheral component interconnect (PCI) bus, a PCI Express bus, a low pin count (LPC) bus, a universal serial bus (USB), etc. In different embodiments, the system memory may include registers, cache memory (e.g., primary, secondary, tertiary), volatile memory (e.g., random access memory (RAM) (e.g., static RAM (SRAM), dynamic RAM (DRAM)), non-volatile memory (e.g., read-only memory (ROM), non-volatile random access memory (NVRAM) (e.g., resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM)), flash memory (e.g., NAND type)), etc. The system memory may utilize error correction code (ECC) technology to detect and / or correct internal data corruption. The system memory may be hidden, external, embedded, integrated into a CPU, etc. The processor may access, read, write, store, erase, modify, etc. the system memory according to program instructions (e.g., DSGRCE program instructions) executed by the processor. The system memory may facilitate the processor to access, store, retrieve, modify, delete, etc. data (e.g., DSGRCE data).

[0229] In various implementations, the input / output devices 2110 may be connected to the processor and / or the system memory, and / or to each other via a system bus.

[0230] In some embodiments, the input / output device may include one or more graphics devices 2111. The processor may use one or more graphics devices according to a program instruction (e.g., DSGRCE program instruction) executed by the processor. In one implementation, the graphics device may be a video card, which may obtain (e.g., by a connected camera), process (e.g., render frames), output (e.g., by a connected monitor, TV, etc.), etc. graphics (e.g., multimedia, video, image, text) data (e.g., DSGRCE data). The video card may be connected to a system bus via an interface such as PCI, PCI Express, USB, PC Card, ExpressCard, Thunderbolt, NVLink, etc. The video card may use one or more graphics processing units (GPUs), for example, by utilizing AMD's CrossFireX and / or NVIDIA's SLI technology. The video card may be connected to one or more displays (e.g., cathode ray tubes (CRTs), liquid crystal displays (LCDs), touch screens, video projectors, etc.) that display graphics via an interface (e.g., video graphics array (VGA), digital video interface (DVI), Mini-DVI, Micro-DVI, high-definition multimedia interface (HDMI), DisplayPort, Thunderbolt, composite video, S-Video, component video, etc.). For example, the video card may be an AMD Radeon, an NVIDIA GeForce RTX, an Intel UHD Graphics, etc. In another implementation, the graphics device may be a video acquisition board that may obtain (e.g., via a coaxial cable), process (e.g., overlay with other graphics data), capture, convert (e.g., between different formats, such as MPEG2 to H.264), etc. graphics data. The video acquisition board may be and / or include a TV tuner, may be compatible with various broadcast signals (e.g., NTSC, PAL, ATSC, QAM), may be part of a video card, etc. For example, the video capture board may be a Hauppauge ImpactVCB, Hauppauge WinTV-HVR, Hauppauge Colossus, etc. The graphics device may be hidden, external, embedded, integrated into the CPU, etc. The graphics device may operate in conjunction with other graphics devices (e.g., in parallel) to provide improved capabilities, data throughput, color depth, etc.

[0231] In some embodiments, the input / output device may include one or more audio devices 2113. The processor may use one or more audio devices according to a program instruction (e.g., DSGRCE program instruction) executed by the processor. In one implementation, the audio device may be a sound card, which may obtain (e.g., via a connected microphone), process, output (e.g., via a connected speaker), etc. audio data (e.g., DSGRCE data). The sound card may be connected to a system bus via an interface such as PCI, PCI Express, USB, PC Card, ExpressCard, Thunderbolt, etc. The sound card may be connected to one or more amplifiers, speakers (e.g., mono, stereo, surround sound), subwoofers, digital musical instruments, etc. via an interface (e.g., tip sleeve (TS), tip ring sleeve (TRS), RCA, TOSLINK, optical fiber). For example, a sound card may be an Intel AC'97 integrated codec chip, an Intel HD audio integrated codec chip, a CreativeSound Blaster, etc. The audio device may be concealed, external, embedded, integrated into a motherboard (e.g., via a chipset), etc. The audio device may operate in conjunction with other audio devices (eg, in parallel) to provide improved capabilities, data throughput, audio quality, etc.

[0232] In some embodiments, the input / output device may include one or more network devices 2115. The processor may use one or more network devices according to program instructions (e.g., DSGRCE program instructions) executed by the processor. In one implementation, the network device may be a network card, which may obtain (e.g., through a Category 6 Ethernet cable), process, output (e.g., through a wireless antenna), etc. network data (e.g., DSGRCE data). The network card may be connected to a system bus via an interface such as PCI, PCI Express, USB, FireWire, PC Card, ExpressCard, Thunderbolt, etc. The network card can be a wired network card (e.g. 10 / 100 / 1000BASE-T, optical fiber), a wireless network card (e.g. Wi-Fi 802.11ac / ad / ax / ay, Bluetooth, near field communication (NFC), TransferJet), a modem (e.g. based on dial-up phone, asymmetric digital subscriber line (ADSL), cable modem, power line modem, wireless modem based on cellular protocol - such as High Speed ​​Packet Access (HSPA), Evolution Data Optimized (EV-DO), Global System for Mobile Communications (GSM), Worldwide Interoperability for Microwave Access (WiMax), Long Term Evolution (LTE), 5G, etc. - satellite modem, FM radio modem, radio frequency identification (RFID) modem, infrared (IR) modem), etc. For example, the network card can be an Intel Gigabit adapter, a LINKSYS USB Ethernet adapter, an ASUS wireless Bluetooth and Gigabit WiFi adapter, a Motorola SURFboard cable modem, a USRobotics fax modem, a Zoom ADSL modem / router, a TRENDnet powerline Ethernet adapter, a StarTech Gigabit Ethernet multimode fiber media converter, a Broadcom NFC controller, a Qualcomm Snapdragon 4G LTE and 5G modem, a Toshiba TransferJet device, etc. The network device can be concealed, external, embedded, integrated into the motherboard, etc. The network device can operate in conjunction with other network devices (e.g., in parallel) to provide improved data throughput, redundancy, etc. For example, a protocol such as a link aggregation control protocol (LACP) (e.g., based on IEEE 802.3AD or IEEE 802.1AX standards) can be used. The network device can be used to connect to a local area network (LAN), a wide area network (WAN), a metropolitan area network (MAN), a personal area network, the Internet, an intranet, a Bluetooth network, an NFC network, a Wi-Fi network, a cellular network, etc.

[0233] In some implementations, the input / output devices may include one or more peripheral devices 2117. The processor may use the one or more peripheral devices according to program instructions (eg, DSGRCE program instructions) executed by the processor. In different implementations, the peripheral device can be a digital camera, a video camera, a webcam, an electronic pan / tilt (PTZ) camera, a monitor, a touch screen display, active shutter 3D glasses, head tracking 3D glasses, a virtual reality (VR) helmet, an augmented reality (AR) helmet, a remote control, an audio line input, an audio line output, a microphone, a headset, a speaker, a subwoofer, an amplifier, a router, a hub, a switch, a firewall, an antenna, a keyboard, a mouse, a trackpad, a trackball, a digitizing tablet, a stylus, a joystick, a game pad, a game controller, a force feedback device, a laser, a sensor (e.g., a proximity sensor, a rangefinder, an ambient temperature sensor, an ambient light sensor, a humidity sensor, an accelerometer, a gyroscope, a motion sensor, an olfactory sensor, a biosensor, a biometric sensor, a chemical sensor, a magnetometer, a radar, a sonar, a position sensor - such as a global positioning system (GPS), a Galileo system, a GLONASS, etc.), a printer, a fax machine, a scanner, a copier, a card reader, a fingerprint reader, a personal identification number input device (PED), a trusted platform module (TPM), a hardware security module (HSM), etc. Peripheral devices may be connected to the system bus through interfaces such as PCI, PCI Express, USB, FireWire, VGA, DVI, Mini-DVI, Micro-DVI, HDMI, DisplayPort, Thunderbolt, composite video, S-Video, component video, PC Card, ExpressCard, serial port, parallel port, PS / 2, TS, TRS, RCA, TOSLINK, network connection (e.g., wired such as Ethernet, fiber optic, etc.; wireless such as Wi-Fi, Bluetooth, NFC, cellular, 5G, etc.), a connector for another input / output device, etc. Peripheral devices may be concealed, external, embedded, integrated (e.g., into a processor, into a motherboard), etc. Peripheral devices may operate in conjunction with other peripheral devices (e.g., in parallel) to provide various input, output, and processing capabilities to the DSGRCE coordinator.

[0234] In some embodiments, the input / output device may include one or more storage devices 2119. The processor may access, read, write, store, erase, modify, etc. the storage device according to program instructions (e.g., DSGRCE program instructions) executed by the processor. The storage device may facilitate the processor to access, store, retrieve, modify, delete, etc. data (e.g., DSGRCE data). In one implementation, the processor may access data directly from the storage device via a system bus. In another implementation, the processor may access data from the storage device by transferring data to a system memory and accessing data from the system memory via an instruction storage device. In different embodiments, the storage device may be a hard disk drive (HDD), a solid-state drive (SSD), an optical disk drive using optical media (e.g., a compact disk (CD-ROM) drive, a recordable CD (CD-R) drive, a rewritable CD (CD-RW) drive, a digital versatile disk (DVD-ROM) drive, a DVD-R drive, a DVD-RW drive, a Blu-ray disk (BD) drive), a tape drive using a magnetic tape, a memory card (e.g., a USB flash drive, a compact flash (CF) card, a secure digital extended capacity (SDXC) card), a network attached storage (NAS), a direct attached storage (DAS), a storage area network (SAN), other processor-readable physical media, and the like. The storage device may be connected to the system bus through an interface such as PCI, PCI Express, USB, FireWire, PC Card, ExpressCard, Thunderbolt, integrated drive electronics (IDE), serial advanced technology attachment (SATA), non-volatile memory express (NVMe), external SATA (eSATA), small computer system interface (SCSI), serial attached SCSI (SAS), Fibre Channel (FC), network connection (e.g., wired such as Ethernet, optical fiber, etc.; wireless such as Wi-Fi, Bluetooth, NFC, cellular, 5G, etc.), etc. The storage device may be hidden, external, embedded, integrated (e.g., into a motherboard, into another storage device), etc. The storage device may operate in conjunction with other storage devices to provide improved capacity, data throughput, data redundancy, etc. For example, protocols such as redundant array of independent disks (RAID) (e.g., RAID 0 (striping), RAID 1 (mirroring), RAID 5 (striping with distributed parity), hybrid RAID), just a bunch of disks (JBOD), etc. may be used. In another example, virtual and / or physical drives can be pooled to create a storage pool (eg, for virtual storage, cloud storage, etc.). In yet another example, an SSD cache can be used with a HDD to increase speed.

[0235] The system memory 2105 and the one or more storage devices 2119 may be collectively and / or separately referred to as memory 2120 (ie, physical memory).

[0236] DSGRCE memory 2120 includes a processor-operable (e.g., accessible) DSGRCE data storage 2130. Data storage 2130 includes data that can be used (e.g., by DSGRCE) via a DSGRCE coordinator. Such data can be organized using one or more data formats such as: databases (e.g., relational databases with database tables, object-oriented databases, graph databases, hierarchical databases, key-value NoSQL databases), flat files (e.g., organized into table formats), binary files (e.g., GIF files, MPEG-4 files), structured files (e.g., HTML files, XML files), text files, etc. In addition, data can be organized using one or more data structures such as: arrays, queues, stacks, sets, linked lists, maps, trees, hashes, records, objects, directed graphs, etc. In different embodiments, data storage can be organized in any number of ways (i.e., using any number and configuration of data formats, data structures, DSGRCE coordinator elements, etc.) to facilitate DSGRCE operations. For example, DSGRCE data storage can include data storage 2130a-d implemented as one or more databases. The user data store 2130a may be a collection of database tables including fields such as UserID, UserName, UserPreferences, etc. The client data store 2130b may be a collection of database tables including fields such as ClientID, ClientName, ClientDeviceType, ClientScreenResolution, etc. The atom data store 2130c may be a collection of database tables including fields such as AtomID, AtomName, AtomParameters, AtomVersion, AtomDeveloperID, AtomAccessPriveleges, etc. The rule data store 2130d may be a collection of database tables including fields such as RuleID, RuleNamespace, RuleName, RuleParameters, RulePrecedentRules, RuleDependentRules, RuleAtomID, RuleAtomParameters, RuleAccessPriveleges, etc. The DSGRCE coordinator may use the data store 2130 to track inputs, parameters, settings, variables, records, outputs, etc.

[0237] DSGRCE memory 2120 includes processor-operable (e.g., executable) DSGRCE components 2140. Component 2140 includes a program component (including program instructions and any associated data storage) that is executed (e.g., by DSGRCE) via a DSGRCE coordinator (i.e., via a processor) to convert DSGRCE input into a DSGRCE output. It is to be understood that different components and their subcomponents, capabilities, applications, etc. can be organized in any number of ways (i.e., using any number and configuration of components, subcomponents, capabilities, applications, DSGRCE coordinator elements, etc.) to facilitate DSGRCE operation. In addition, it should be understood that different components and their subcomponents, capabilities, applications, etc. can communicate with each other in any number of ways to facilitate DSGRCE operation. For example, different components and their subcomponents, capabilities, applications, etc. can be combined, integrated, merged, split, distributed, etc. in any number of ways to facilitate DSGRCE operation. In another example, single or multiple instances of different components and their sub-components, capabilities, applications, etc. may be instantiated on each of a single DSGRCE coordinator node, across multiple DSGRCE coordinator nodes, and the like.

[0238] In different embodiments, program components can be developed using one or more programming languages, techniques, tools, etc., such as assembly language, Ada, BASIC, C, C++, C#, COBOL, Fortran, Java, LabVIEW, Lisp, Mathematica, MATLAB, OCaml, PL / I, Smalltalk, Visual Basic for Applications (VBA), HTML, XML, CSS, JavaScript, JavaScript Object Notation (JSON), PHP, Perl, Ruby, Python, Asynchronous JavaScript and XML (AJAX), WebSocket protocol, Simple Object Access Protocol (SOAP), SSL, ColdFusion, Microsoft.NET, Apache module, Adobe Flash, Adobe AIR, Microsoft Silverlight, Windows PowerShell, batch files, Tcl, graphical user interface (GUI) suite, SQL, database adapter, network application programming interface (API), network framework (e.g., Ruby on Rails, AngularJS), application server extension, integrated development environment (IDE), library (e.g., object library, class library, remote library), remote procedure call (RPC), common object request broker architecture (CORBA), etc.

[0239] In some embodiments, component 2140 may include operating environment component 2140a. The operating environment component may facilitate the operation of the DSGRCE through various subcomponents.

[0240] In some implementations, the operating environment component may include an operating system subcomponent. The operating system subcomponent may provide an abstraction layer that facilitates the use, communication, common services, interaction, security, etc. of different DSGRCE coordinator elements, components, data stores, etc.

[0241] In some embodiments, the operating system subcomponent can facilitate the execution of program instructions (e.g., DSGRCE program instructions) by the processor by providing process management capabilities. For example, the operating system subcomponent can facilitate the use of multiple processors, the execution of multiple processes, the execution of multiple threads, multitasking, etc.

[0242] In some embodiments, the operating system subcomponent can facilitate the use of memory by the DSGRCE. For example, the operating system subcomponent can allocate and / or release memory, facilitate memory addressing, provide memory segmentation and / or protection, provide virtual memory capabilities, facilitate caching, etc. In another example, the operating system subcomponent can include a file system (e.g., File Allocation Table (FAT), New Technology File System (NTFS), Hierarchical File System + (HFS+), Apple File System (APFS), Universal Disk Format (UDF), Linear Tape File System (LTFS)) to facilitate the storage, retrieval, deletion, aggregation, processing, generation, etc. of data.

[0243] In some embodiments, the operating system subcomponents can facilitate the operation and / or processing of data for and / or from input / output devices. For example, the operating system subcomponents can include one or more device drivers, interrupt handlers, file systems, etc. that allow interaction with input / output devices.

[0244] In some embodiments, the operating system subcomponent can facilitate the operation of the DSGRCE coordinator as a node in a computer network by providing support for one or more communication protocols. For example, the operating system subcomponent can include support for the Internet Protocol Suite (i.e., the Transmission Control Protocol / Internet Protocol (TCP / IP) of the network protocol, such as IP, IPsec, Mobile IP, TCP, User Datagram Protocol (UDP), etc.). In another example, the operating system subcomponent can include support for security protocols for wireless computer networks (e.g., Wired Equivalent Privacy (WEP), Wi-Fi Protected Access (WPA), WPA2, WPA3). In yet another example, the operating system subcomponent can include support for virtual private networks (VPN).

[0245] In some embodiments, the operating system subcomponents can facilitate the security of the DSGRCE coordinator. For example, the operating system subcomponents can provide services such as authentication, authorization, auditing, network intrusion detection capabilities, firewall capabilities, anti-virus capabilities, etc.

[0246] In some embodiments, the operating system sub-component can promote the interaction of the user and DSGRCE by providing the user interface element that can be used to generate the user interface by DSGRCE.In one implementation, such user interface element can include widgets (for example, window, dialog box, scroll bar, menu bar, tab, function area, menu, button, text box, check box, combo box, drop-down list, list box, radio button, slide block, drop-down menu, grid, label, progress indicator, icon, tool tip etc.), which can be used to obtain input from the user and / or provide output to the user.For example, such widgets can be used via widget suite such as Microsoft Foundation Classes (MFC), Apple Cocoa Touch, Java Swing, JavaFX, jQuery UI, GTK, Qt etc. In another implementation, such user interface element can include sound (for example, the event notification sound stored in MP3 file format), animation, vibration etc., which can be used to notify the user about the generation of different events. For example, operating system subcomponents may include user interfaces such as Windows Aero, Windows Metro, macOS X Aqua, macOS X Flat, GNOME Shell, KDE Plasma orkspaces (e.g., Plasma Desktop, Plasma Netbook, Plasma Contour, Plasma Mobile), etc.

[0247] In different implementations, the operating system subcomponents may include single-user operating systems, multi-user operating systems, single-task operating systems, multi-task operating systems, single-processor operating systems, multi-processor operating systems, distributed operating systems, embedded operating systems, real-time operating systems, etc. For example, the operating system subcomponents may include operating systems such as UNIX, LINUX, IBM i, Sun Solaris, Microsoft Windows Server, Microsoft DOS, Microsoft Windows 10, Apple Mac OS X, Apple iOS, Google Android, etc.

[0248] In some implementations, the operating environment component may include a database subcomponent. The database subcomponent may facilitate DSGRCE capabilities, such as storage, analysis, retrieval, access, modification, deletion, aggregation, generation, etc. of data (e.g., use of data store 2130). The database subcomponent may provide these capabilities using database languages ​​(e.g., structured query language (SQL), XQuery, Cassandra query language (CQL)), stored procedures, triggers, APIs, etc. In different implementations, the database subcomponent may include a cloud database, a data warehouse, a distributed database, an embedded database, a parallel database, a real-time database, etc. For example, the database subcomponent may include a database such as Microsoft SQL Server, Microsoft Access, MySQL, IBM DB2, Oracle database, Apache Cassandra database, MongoDB, etc.

[0249] In some implementations, the operating environment component may include an information processing subcomponent. The information processing subcomponent may provide the DSGRCE with the ability to serve, deliver, upload, obtain, present, download, etc., various information. The information processing subcomponent may use protocols such as Hypertext Transfer Protocol (HTTP), Secure Hypertext Transfer Protocol (HTTPS), File Transfer Protocol (FTP), Telnet, Secure Shell (SSH), Transport Layer Security (TLS), Secure Sockets Layer (SSL), peer-to-peer (P2P) protocols (e.g., BitTorrent, Bitcoin), etc. to process information such as web pages, files, multimedia content (e.g., streaming media), applications, transactions, etc.

[0250] In some embodiments, the information processing subcomponent may facilitate providing information to a user, a DSGRCE component, a node in a computer network, a web browser, etc. For example, the information processing subcomponent may include a web server, such as Apache HTTP Server, Microsoft Internet Information Services (IIS), Oracle WebLogic Server, Adobe Flash Media Server, Adobe Content Server, etc. In addition, the web server may include extensions, plug-ins, add-ons, servlets, etc. For example, these may include Apache modules, IIS extensions, Java servlets, etc. In some implementations, the information processing subcomponent may communicate with the database subcomponent via standards such as Open Database Connectivity (ODBC), Java Database Connectivity (JDBC), ActiveX Data Objects for .NET (ADO.NET), etc. For example, the information processing subcomponent may use such standards to store, analyze, retrieve, access, modify, delete, aggregate, generate, etc. data (e.g., data from data store 2130) via the database subcomponent.

[0251] In some embodiments, the information processing subcomponent can facilitate the presentation of information obtained from a user, a DSGRCE component, a node in a computer network, a network server, etc. For example, the information processing subcomponent can include a web browser, such as Microsoft Internet Explorer, Microsoft Edge, Mozilla Firefox, Apple Safari, Google Chrome, Opera Mobile, Amazon Silk, Nintendo 3DS Internet Browser, etc. In addition, the web browser can include extensions, plug-ins, add-ons, applets, etc. For example, these can include Adobe Flash Player, Adobe Acrobat plug-in, Microsoft Silverlight plug-in, Microsoft Office plug-in, Java plug-in, etc.

[0252] In some implementations, the operating environment component may include a messaging subcomponent. The messaging subcomponent may facilitate DSGRCE message communication capabilities. The messaging subcomponent may use protocols such as Simple Mail Transfer Protocol (SMTP), Internet Message Access Protocol (IMAP), Post Office Protocol (POP), Extensible Messaging and Presence Protocol (XMPP), Real-time Transport Protocol (RTP), Internet Relay Chat (IRC), Skype Protocol, Messaging Application Programming Interface (MAPI), Facebook API, custom protocols, etc. The messaging subcomponent may facilitate message communications such as email, instant messaging, Voice over IP (VoIP), video conferencing, Short Message Service (SMS), web chat, in-application messaging (e.g., alerts, notifications), etc. For example, the messaging subcomponent may include Microsoft Exchange Server, Microsoft Outlook, Sendmail, IBM Domino, IBM Notes, Gmail, ICQ, Trillian, Skype, Google Hangouts, Apple FaceTime, Apple iChat, Facebook Chat, etc.

[0253] In some implementations, the operating environment component may include a security subcomponent that facilitates the security of the DSGRCE. In some embodiments, the security subcomponent may restrict authorized users' access to the following: the DSGRCE, one or more services provided by the DSGRCE, data associated with the DSGRCE (e.g., stored in the data store 2130), access to communication messages associated with the DSGRCE, etc. Access may be granted via: a login screen, an API for obtaining authentication information, an authentication token, a cryptographic key (e.g., stored in an HSM), etc. For example, a user may gain access by providing: a username and / or password (e.g., a string, a picture password), a personal identification number (PIN), an ID card, a magnetic stripe card, a smart card, a biometric identifier (e.g., a fingerprint, a voiceprint, a retinal scan, a facial scan), a gesture (e.g., a swipe), a media access control (MAC) address, an IP address, etc. Different security models such as access control lists (ACLs), capability-based security, hierarchical protection domains, multi-factor authentication, etc. may be used to control access. For example, the security subcomponent may facilitate digital rights management (DRM), network intrusion detection, firewall capabilities, crypto wallet access (e.g., for cryptocurrencies such as Bitcoin, Ethereum, etc.), and the like.

[0254] In some embodiments, the security subcomponent may use cryptographic techniques to protect information (e.g., by storing encrypted data), verify message authentication (e.g., by digital signatures), provide integrity checks (e.g., checksums), authorize transactions (e.g., using private keys), etc. by facilitating encryption and / or decryption of data. In addition, steganography techniques may be used instead of or in combination with cryptographic techniques. The cryptographic techniques used by the DSGRCE may include: symmetric key cryptography using a shared key (e.g., using one or more block ciphers such as Triple Data Encryption Standard (DES), Advanced Encryption Standard (AES); stream ciphers such as Rivest Cipher 4 (RC4), Rabbit), asymmetric key cryptography using public / private key pairs (e.g., using algorithms such as Rivest-Shamir-Adleman (RSA), Elliptic Curve Digital Signature Algorithm (ECDSA)), cryptographic hash functions (e.g., using algorithms such as Message-Digest 5 (MD5), Secure Hash Algorithm 3 (SHA-3)), etc. For example, the security subcomponent may include a cryptographic system such as Pretty Good Privacy (PGP).

[0255] In some implementations, the operating environment component may include a virtualization subcomponent that facilitates the DSGRCE virtualization capability. The virtualization subcomponent may include a hypervisor (e.g., type-1 local hypervisor, type-2 hosted hypervisor), a virtual machine (VM), etc. In some embodiments, the virtualization subcomponent may provide support for platform virtualization (e.g., through a virtual machine). Platform virtualization types may include full virtualization, partial virtualization, paravirtualization, etc. In some implementations, platform virtualization may be hardware-assisted (e.g., through support from a processor using technology such as AMD-V, Intel VT-x, etc.). In some embodiments, the virtualization subcomponent may provide support for different other virtualization environments, such as via operating system level virtualization, desktop virtualization, workspace virtualization, mobile virtualization, application virtualization, database virtualization, etc. In some embodiments, the virtualization subcomponent may provide support for different virtualized resources, such as via processing resource virtualization, memory virtualization, storage virtualization, data virtualization, network virtualization, etc. For example, virtualization sub-components may include VMware software suite (e.g., VMware Workstation, VMware Player, VMware ESXi, VMware ThinApp, VMware Infrastructure), Parallels software suite (e.g., Parallels Server, Parallels Desktop), Virtuozzo software suite (e.g., Virtuozzo Infrastructure Platform, Virtuozzo), Oracle software suite (e.g., Oracle VM Server for SPARC, Oracle VM Server for x86, Oracle VM VirtualBox, Oracle Solaris 11), Wine, etc.

[0256] In some embodiments, component 2140 may include user interface component 2140b. The user interface component may promote the interaction of the user and DSGRCE by providing a user interface. In different implementations, the user interface component may include programming instructions to obtain input from the user and / or provide output to the user via: physical control (e.g., physical button, switch, knob, wheel, dial), text user interface, audio user interface, GUI, speech recognition, gesture recognition, touch and / or multi-touch user interface, message, API, etc. In some implementations, the user interface component may utilize the user interface element provided by the operating system subcomponent of the operating environment component. For example, the user interface component may use the user interface element of the operating system subcomponent via a widget toolkit. In some implementations, the user interface component may utilize the information presentation capability provided by the information processing subcomponent of the operating environment component. For example, the user interface component may use a web browser to provide a user interface via HTML5, Adobe Flash, Microsoft Silverlight, etc.

[0257] In some embodiments, component 2140 may include any of components RP 2140c, LDGG 2140d, WSD 2140e, WI 2140f, GE 2140g, WC 2140h, etc., which are described in more detail in the previous figures.

[0258] Additional implementations may include:

[0259] 1. A rule compiler device for generating a distributed system, comprising:

[0260] Memory;

[0261] A processor in communication with the memory and configured to issue a plurality of processing instructions stored in the memory, wherein the processor issues instructions to:

[0262] (a) obtaining, via a processor, a distributed system execution request data structure;

[0263] (b) determining, via the processor, an output rule and a rule parameter set of the output rule specified by the distributed system execution request data structure for the requested computation, wherein a current rule is initialized as the output rule;

[0264] (c) querying, via a processor, a rule lookup table data structure to determine a matching rule group corresponding to the current rule based on the identification tuple of the current rule;

[0265] (d) selecting, via a processor, a best matching rule from the matching rule group, wherein a rule parameter group of the best matching rule best corresponds to a rule parameter group of the current rule;

[0266] (e) generating, via the processor, a logical dependency graph data structure by adding logical dependency graph nodes and logical dependency graph edges corresponding to the best matching rule, the precedent rule of the best matching rule, and the precedent rule of each precedent rule;

[0267] (f) determining, via the processor, an execution complexity metric associated with the generated logic dependency graph data structure;

[0268] (g) determining, via the processor, a distributed group of worker processes to be used to perform the requested computation;

[0269] (h) partitioning, via a processor, the generated logical dependency graph data structure into subgraph groups based on the execution complexity metric, wherein each worker process in the distributed worker process group is assigned a subgraph from the subgraph group;

[0270] (i) initializing, via a processor, a corresponding worker process using a subgraph assigned to each worker process in the distributed worker process group;

[0271] (j) coordinating, via the processor, execution of the requested computation by worker processes in the distributed worker process group, wherein each respective worker process computes a result of a logical dependency graph node in a subgraph assigned to the respective worker process; and

[0272] (k) Obtaining, via the processor, a calculation result of the logical dependency graph node corresponding to the output rule from a worker process in the distributed worker process group to which a subgraph including the logical dependency graph node corresponding to the output rule is assigned.

[0273] 2. The apparatus of embodiment 1, wherein the rule lookup table data structure comprises a mapping group of identification tuples to rule data structures.

[0274] 3. An apparatus according to embodiment 2, wherein the rule data structure includes a data field that references an associated specific atomic data structure, which implements a forward computing operation of a general atomic interface to calculate a result.

[0275] 4. An apparatus according to embodiment 3, wherein the rule data structure includes a data field that references a factory function that creates an instance of the associated specific atomic data structure.

[0276] 5. An apparatus according to embodiment 1, wherein the identification tuple comprises an ordered list including a namespace of the rule and a rule name.

[0277] 6. An apparatus according to embodiment 1, wherein the identification tuple includes a hash value calculated based on an ordered list, the ordered list including a namespace of the rule and the rule name.

[0278] 7. The apparatus of embodiment 1, wherein there is a single rule in the matching rule group, and the single rule is selected as the best matching rule.

[0279] 8. The apparatus of embodiment 1, wherein there are multiple rules in the matching rule group, and a rule with a minimum inheritance distance is selected as the best matching rule.

[0280] 9. The apparatus of embodiment 8, wherein there are multiple rules with the smallest inheritance distance, and the best matching rule is selected using a tie-breaking technique based on one of the position of the rule parameter and the type of the rule parameter.

[0281] 10. The apparatus of embodiment 1, wherein the instructions for (e) generating a logical dependency graph data structure further include instructions for:

[0282] (e1) determining, via a processor, a logical dependency graph node identifier of a best matching rule;

[0283] (e2) Alternatively, after determining, via the processor, that the logical dependency graph node identifier does not yet exist in the logical dependency graph data structure:

[0284] adding, via the processor, a new logical dependency graph node corresponding to the best matching rule to a logical dependency graph data structure, wherein the new logical dependency graph node is assigned a logical dependency graph node identifier;

[0285] After determining via the processor that the current rule is not an output rule, adding a logical dependency graph edge between the new logical dependency graph node and the logical dependency graph node corresponding to the dependency rule of the best matching rule;

[0286] determining, via a processor, a precedent rule group of a best matching rule, wherein the best matching rule is a dependent rule of a precedent rule in the precedent rule group; and

[0287] processing, via the processor, each corresponding precedent rule in the precedent rule set by: setting the current rule to the corresponding precedent rule, and repeating elements (c)-(e); and

[0288] Returning via the processor to process the precedent rules of the dependent rules of the best matching rule until the precedent rules of the output rule are processed;

[0289] (e3) Alternatively, after determining, via the processor, that the logical dependency graph node identifier already exists in the logical dependency graph data structure:

[0290] adding, via the processor, a logical dependency graph edge between an existing logical dependency graph node associated with the logical dependency graph node identifier and a logical dependency graph node corresponding to a dependency rule of the best matching rule; and

[0291] Return via the processor to the precedent rule that processes the dependent rules of the best matching rule.

[0292] 11. An apparatus according to embodiment 1, wherein a logical dependency graph node is a data structure including a data field that references an identification tuple of a corresponding rule.

[0293] 12. The apparatus of embodiment 1, wherein a logical dependency graph edge is a data field in a logical dependency graph node that references another logical dependency graph node.

[0294] 13. An apparatus according to embodiment 1, wherein the execution complexity metric is determined based on at least one of: the number of nodes in the logical dependency graph, the sum of the output tensor sizes of the logical dependency graph nodes, the network data transfer size associated with the logical dependency graph, and the computation time of the requested computation.

[0295] 14. An apparatus according to embodiment 1, wherein the cardinality of the distributed worker process group is determined based on a specified fixed number of available worker processes.

[0296] 15. An apparatus according to embodiment 1, wherein the cardinality of the distributed worker process group is determined based on an execution complexity measurement and a calibration parameter value, wherein the calibration parameter value is determined based on at least one of the following: target processing time, target available memory, target cost, target data transfer size.

[0297] 16. An apparatus according to embodiment 15, wherein the cardinality of the distributed worker process group is also determined based on the average worker execution capacity.

[0298] 17. An apparatus according to embodiment 1, wherein the number of nodes in the subgraph assigned to each corresponding worker process is determined based on the worker execution capability of the corresponding worker, wherein the worker execution capability is determined based on at least one of the following: processor speed, memory size, network speed.

[0299] 18. An apparatus according to embodiment 1, wherein at least some logical dependency graph nodes in the generated logical dependency graph data structure are replicated in multiple sub-graphs assigned to different worker processes.

[0300] 19. An apparatus according to embodiment 1, wherein the generated logical dependency graph data structure includes packed logical dependency graph nodes utilizing an internal logical dependency graph data structure, wherein the internal logical dependency graph data structure is constructed using associated packed atomic data structures.

[0301] 20. An apparatus according to embodiment 19, wherein the internal logical dependency graph data structure is in the same memory space as the worker process in the distributed worker process group to which the subgraph containing the packaged logical dependency graph nodes is assigned.

[0302] 21. An apparatus according to embodiment 19, wherein the internal logical dependency graph data structure is distributed among multiple worker processes in a distributed worker process group.

[0303] 22. The apparatus of embodiment 1, further comprising:

[0304] The processor issues instructions to:

[0305] Provides a graph representation of logical dependency graph data structures;

[0306] Obtaining a user's selection of a target node in the graph representation;

[0307] determining a target logical dependency graph node in the logical dependency graph data structure corresponding to a target node selected by a user in the graph representation;

[0308] Obtaining a calculation result of the target logical dependency graph node from a worker process in the distributed worker process group that is assigned a subgraph containing the target logical dependency graph node; and

[0309] Provides calculation results for display.

[0310] 23. An apparatus according to embodiment 22, wherein the target node in the graph representation includes a visual indicator that specifies a worker process in the distributed worker process group to which the subgraph containing the target logical dependency graph node is assigned.

[0311] 24. An apparatus according to embodiment 23, wherein the visual indicator is at least one of the following: color, color pattern, shape or border style of the target node.

[0312] 25. An apparatus according to embodiment 22, wherein each node in the graph representation includes a visual indicator that specifies whether a precedent node for the corresponding node is displayed.

[0313] 26. An apparatus according to embodiment 25, wherein the visual indicator is at least one of the following: a color, a color pattern, a shape, or a border style of the corresponding node.

[0314] 27. The apparatus of embodiment 22, further comprising:

[0315] The processor issues instructions to:

[0316] Obtaining a user command to view a state copy code, wherein executing the state copy code on a remote client copies the state of an associated logic dependency graph node on the remote client;

[0317] determining a state copy code associated with a target logical dependency graph node; and

[0318] Generates a display containing the determined status copy code.

[0319] 28. The apparatus of embodiment 22, further comprising:

[0320] The processor issues instructions to:

[0321] Get user commands to switch the graph display mode;

[0322] providing a second graph representation of a rule dependency graph data structure corresponding to the logical dependency graph data structure;

[0323] Obtaining a user selection of a second target node in the second graph representation; and providing display information associated with the second target node, wherein the display information includes a list of logical dependency graph nodes associated with the second target node and metadata associated with the second target node.

[0324] 29. The apparatus of embodiment 1, further comprising:

[0325] The processor issues instructions to:

[0326] Provides a graph representation of logical dependency graph data structures;

[0327] Obtaining a user's selection of a target node in the graph representation;

[0328] determining a target logical dependency graph node in the logical dependency graph data structure corresponding to a target node selected by a user in the graph representation; and

[0329] After determining that the target logical dependency graph node is a packed atom, a second graph representation of an internal logical dependency graph data structure of the target logical dependency graph node is provided.

[0330] 30. The apparatus of embodiment 29, further comprising:

[0331] The processor issues instructions to:

[0332] Obtaining user commands to switch graph display modes; and

[0333] A third graph representation of a rule dependency graph data structure corresponding to the internal logical dependency graph data structure of the target logical dependency graph node is provided.

[0334] 31. An apparatus according to embodiment 30, wherein the third graph representation also includes a graph representation of a rule dependency graph data structure corresponding to the logical dependency graph data structure.

[0335] 32. An apparatus according to embodiment 30, wherein the nested graph representations of the rule dependency graph data structure include navigation links that facilitate navigation between the nested graph representations.

[0336] 33. The apparatus of embodiment 1, wherein at least one of the following utilizes dynamic precedents: a best matching rule, a precedent rule of a best matching rule, and a precedent rule of another precedent rule.

[0337] 34. An apparatus according to embodiment 1, wherein at least one of the following corresponds to a rule entry for cloning a namespace in a rule lookup table data structure: a best matching rule, a precedent rule of the best matching rule, and a precedent rule of another precedent rule.

[0338] 35. An apparatus according to embodiment 1, wherein at least one of the following is an overlay rule in the clone namespace determined via a namespace lookup table data structure: a best matching rule, a precedent rule of the best matching rule, and a precedent rule of another precedent rule.

[0339] 101. A non-transitory physical medium readable by a processor of a rule compiler for generating a distributed system, the medium storing instructions issueable by the processor to:

[0340] (a) obtaining, via a processor, a distributed system execution request data structure;

[0341] (b) determining, via the processor, an output rule and a rule parameter set of the output rule specified by the distributed system execution request data structure for the requested computation, wherein a current rule is initialized as the output rule;

[0342] (c) querying, via a processor, a rule lookup table data structure to determine a matching rule group corresponding to the current rule based on the identification tuple of the current rule;

[0343] (d) selecting, via a processor, a best matching rule from the matching rule group, wherein a rule parameter group of the best matching rule best corresponds to a rule parameter group of the current rule;

[0344] (e) generating, via the processor, a logical dependency graph data structure by adding logical dependency graph nodes and logical dependency graph edges corresponding to the best matching rule, the precedent rule of the best matching rule, and the precedent rule of each precedent rule;

[0345] (f) determining, via the processor, an execution complexity metric associated with the generated logic dependency graph data structure;

[0346] (g) determining, via the processor, a distributed group of worker processes to be used to perform the requested computation;

[0347] (h) partitioning, via a processor, the generated logical dependency graph data structure into subgraph groups according to the execution complexity metric, wherein each worker process in the distributed worker process group is assigned a subgraph from the subgraph group;

[0348] (i) initializing, via a processor, a corresponding worker process using a subgraph assigned to each worker process in the distributed worker process group;

[0349] (j) coordinating, via the processor, execution of the requested computation by worker processes in the distributed worker process group, wherein each respective worker process computes a result of a logical dependency graph node in a subgraph assigned to the respective worker process; and

[0350] (k) Obtaining, via the processor, a calculation result of the logical dependency graph node corresponding to the output rule from a worker process in the distributed worker process group to which a subgraph including the logical dependency graph node corresponding to the output rule is assigned.

[0351] 102. A medium according to embodiment 101, wherein the rule lookup table data structure contains a mapping group of identification tuples to rule data structures.

[0352] 103. A medium according to embodiment 102, wherein the rule data structure includes a data field that references an associated specific atomic data structure, which implements the forward computing operation of the general atomic interface to calculate the result.

[0353] 104. A medium according to embodiment 103, wherein the rule data structure includes a data field that references a factory function that creates an instance of the associated specific atomic data structure.

[0354] 105. A medium according to embodiment 101, wherein the identification tuple includes an ordered list, which includes a namespace of the rule and the rule name.

[0355] 106. A medium according to embodiment 101, wherein the identification tuple includes a hash value calculated based on an ordered list, the ordered list including a namespace of the rule and the rule name.

[0356] 107. The medium of embodiment 101, wherein there is a single rule in the matching rule group, and the single rule is selected as the best matching rule.

[0357] 108. A medium according to embodiment 101, wherein there are multiple rules in the matching rule group, and the rule with the smallest inheritance distance is selected as the best matching rule.

[0358] 109. The medium of embodiment 108, wherein there are multiple rules with a minimum inheritance distance, and the best matching rule is selected using a tie-breaking technique based on one of a position of a rule parameter and a type of the rule parameter.

[0359] 110. The medium of embodiment 101, wherein the instructions for (e) generating a logical dependency graph data structure further comprise instructions for:

[0360] (e1) determining, via a processor, a logical dependency graph node identifier of a best matching rule;

[0361] (e2) Alternatively, after determining, via the processor, that the logical dependency graph node identifier does not yet exist in the logical dependency graph data structure:

[0362] adding, via the processor, a new logical dependency graph node corresponding to the best matching rule to a logical dependency graph data structure, wherein the new logical dependency graph node is assigned a logical dependency graph node identifier;

[0363] After determining via the processor that the current rule is not an output rule, adding a logical dependency graph edge between the new logical dependency graph node and the logical dependency graph node corresponding to the dependency rule of the best matching rule;

[0364] determining, via a processor, a precedent rule group of a best matching rule, wherein the best matching rule is a dependent rule of a precedent rule in the precedent rule group; and

[0365] processing, via the processor, each corresponding precedent rule in the precedent rule set by: setting the current rule to the corresponding precedent rule, and repeating elements (c)-(e); and

[0366] Returning via the processor to process the precedent rules of the dependent rules of the best matching rule until the precedent rules of the output rule are processed;

[0367] (e3) Alternatively, after determining, via the processor, that the logical dependency graph node identifier already exists in the logical dependency graph data structure:

[0368] adding, via the processor, a logical dependency graph edge between an existing logical dependency graph node associated with the logical dependency graph node identifier and a logical dependency graph node corresponding to a dependency rule of the best matching rule; and

[0369] Return via the processor to the precedent rule that processes the dependent rules of the best matching rule.

[0370] 111. A medium according to embodiment 101, wherein a logical dependency graph node is a data structure including a data field that references an identification tuple of a corresponding rule.

[0371] 112. A medium according to embodiment 101, wherein a logical dependency graph edge is a data field in a logical dependency graph node that references another logical dependency graph node.

[0372] 113. A medium according to embodiment 101, wherein the execution complexity metric is determined based on at least one of: the number of nodes in the logical dependency graph, the sum of the output tensor sizes of the logical dependency graph nodes, the network data transfer size associated with the logical dependency graph, and the computation time of the requested calculation.

[0373] 114. A medium according to embodiment 101, wherein the cardinality of the distributed worker process group is determined based on a specified fixed number of available worker processes.

[0374] 115. A medium according to embodiment 101, wherein the cardinality of the distributed worker process group is determined based on an execution complexity metric and a calibration parameter value, wherein the calibration parameter value is determined based on at least one of the following: target processing time, target available memory, target cost, target data transfer size.

[0375] 116. A medium according to embodiment 115, wherein the cardinality of the distributed worker process group is also determined based on the average worker execution capacity.

[0376] 117. A medium according to embodiment 101, wherein the number of nodes in the subgraph assigned to each corresponding worker process is determined based on the worker execution capability of the corresponding worker, wherein the worker execution capability is determined based on at least one of the following: processor speed, memory size, network speed.

[0377] 118. A medium according to embodiment 101, wherein at least some logical dependency graph nodes in the generated logical dependency graph data structure are replicated in multiple sub-graphs assigned to different worker processes.

[0378] 119. A medium according to embodiment 101, wherein the generated logical dependency graph data structure includes packed logical dependency graph nodes utilizing an internal logical dependency graph data structure, wherein the internal logical dependency graph data structure is constructed using associated packed atomic data structures.

[0379] 120. A medium according to embodiment 119, wherein the internal logical dependency graph data structure is in the same memory space as the worker process in the distributed worker process group that is assigned a subgraph containing the packaged logical dependency graph nodes.

[0380] 121. A medium according to embodiment 119, wherein the internal logical dependency graph data structure is distributed among multiple worker processes in a distributed worker process group.

[0381] 122. The medium of embodiment 101, further comprising:

[0382] The medium stores instructions issueable by a processor to:

[0383] Provides a graph representation of logical dependency graph data structures;

[0384] Obtaining a user's selection of a target node in the graph representation;

[0385] determining a target logical dependency graph node in the logical dependency graph data structure corresponding to a target node selected by a user in the graph representation;

[0386] Obtaining a calculation result of the target logical dependency graph node from a worker process in the distributed worker process group that is assigned a subgraph containing the target logical dependency graph node; and

[0387] Provides calculation results for display.

[0388] 123. A medium according to embodiment 122, wherein the target node in the graph representation includes a visual indicator that specifies a worker process in the distributed worker process group to which the subgraph containing the target logical dependency graph node is assigned.

[0389] 124. A medium according to embodiment 123, wherein the visual indicator is at least one of the following: a color, a color pattern, a shape, or a border style of the target node.

[0390] 125. A medium according to embodiment 122, wherein each node in the graph representation includes a visual indicator that specifies whether a precedent node for the corresponding node is displayed.

[0391] 126. A medium according to embodiment 125, wherein the visual indicator is at least one of the following: a color, a color pattern, a shape, or a border style of the corresponding node.

[0392] 127. The medium of embodiment 122, further comprising:

[0393] The medium stores instructions issueable by a processor to:

[0394] Obtaining a user command to view a state copy code, wherein executing the state copy code on a remote client copies the state of an associated logic dependency graph node on the remote client;

[0395] determining a state copy code associated with a target logical dependency graph node; and

[0396] Generates a display containing the determined status copy code.

[0397] 128. The medium of embodiment 122, further comprising:

[0398] The medium stores instructions issueable by a processor to:

[0399] Get user commands to switch the graph display mode;

[0400] providing a second graph representation of a rule dependency graph data structure corresponding to the logical dependency graph data structure;

[0401] obtaining a user selection of a second target node in the second graph representation; and

[0402] Display information associated with the second target node is provided, wherein the display information includes a list of logical dependency graph nodes associated with the second target node and metadata associated with the second target node.

[0403] 129. The medium of embodiment 101, further comprising:

[0404] The medium stores instructions issueable by a processor to:

[0405] Provides a graph representation of logical dependency graph data structures;

[0406] Obtaining a user's selection of a target node in the graph representation;

[0407] determining a target logical dependency graph node in the logical dependency graph data structure corresponding to a target node selected by a user in the graph representation; and

[0408] After determining that the target logical dependency graph node is a packed atom, a second graph representation of an internal logical dependency graph data structure of the target logical dependency graph node is provided.

[0409] 130. The medium of embodiment 129, further comprising:

[0410] The medium stores instructions issueable by a processor to:

[0411] Obtaining user commands to switch graph display modes; and

[0412] A third graph representation of a rule dependency graph data structure corresponding to the internal logical dependency graph data structure of the target logical dependency graph node is provided.

[0413] 131. A medium according to embodiment 130, wherein the third graph representation also includes a graph representation of a rule dependency graph data structure corresponding to the logical dependency graph data structure.

[0414] 132. A medium according to embodiment 130, wherein the nested graph representations of the rule dependency graph data structure include navigation links that facilitate navigation between the nested graph representations.

[0415] 133. A medium according to embodiment 101, wherein at least one of the following utilizes dynamic precedent: a best matching rule, a precedent rule of a best matching rule, and a precedent rule of another precedent rule.

[0416] 134. A medium according to embodiment 101, wherein at least one of the following corresponds to a rule entry in a rule lookup table data structure for cloning a namespace: a best matching rule, a precedent rule of the best matching rule, and a precedent rule of another precedent rule.

[0417] 135. A medium according to embodiment 101, wherein at least one of the following is an overlay rule in the clone namespace determined via a namespace lookup table data structure: a best matching rule, a precedent rule of the best matching rule, and a precedent rule of another precedent rule.

[0418] 201. A processor implementation of a method for generating a rule compiler for a distributed system, comprising executing processor-implemented instructions to:

[0419] (a) obtaining, via a processor, a distributed system execution request data structure;

[0420] (b) determining, via the processor, an output rule and a rule parameter set of the output rule specified by the distributed system execution request data structure for the requested computation, wherein a current rule is initialized as the output rule;

[0421] (c) querying, via a processor, a rule lookup table data structure to determine a matching rule group corresponding to the current rule based on the identification tuple of the current rule;

[0422] (d) selecting, via a processor, a best matching rule from the matching rule group, wherein a rule parameter group of the best matching rule best corresponds to a rule parameter group of the current rule;

[0423] (e) generating, via the processor, a logical dependency graph data structure by adding logical dependency graph nodes and logical dependency graph edges corresponding to the best matching rule, the precedent rule of the best matching rule, and the precedent rule of each precedent rule;

[0424] (f) determining, via the processor, an execution complexity metric associated with the generated logic dependency graph data structure;

[0425] (g) determining, via the processor, a distributed group of worker processes to be used to perform the requested computation;

[0426] (h) partitioning, via a processor, the generated logical dependency graph data structure into subgraph groups according to the execution complexity metric, wherein each worker process in the distributed worker process group is assigned a subgraph from the subgraph group;

[0427] (i) initializing, via a processor, a corresponding worker process using a subgraph assigned to each worker process in the distributed worker process group;

[0428] (j) coordinating, via the processor, execution of the requested computation by worker processes in the distributed worker process group, wherein each respective worker process computes a result of a logical dependency graph node in a subgraph assigned to the respective worker process; and

[0429] (k) Obtaining, via the processor, a calculation result of the logical dependency graph node corresponding to the output rule from a worker process in the distributed worker process group to which a subgraph including the logical dependency graph node corresponding to the output rule is assigned.

[0430] 202. A method according to embodiment 201, wherein the rule lookup table data structure includes a mapping group of identification tuples to rule data structures.

[0431] 203. A method according to embodiment 202, wherein the regular data structure includes a data field that references an associated specific atomic data structure, which implements the forward computing operation of the general atomic interface to calculate the result.

[0432] 204. A method according to embodiment 203, wherein the rule data structure includes a data field that references a factory function that creates an instance of the associated specific atomic data structure.

[0433] 205. A method according to embodiment 201, wherein the identification tuple includes an ordered list, which includes a namespace of the rule and the rule name.

[0434] 206. A method according to embodiment 201, wherein the identification tuple includes a hash value calculated based on an ordered list, the ordered list including a namespace of the rule and the rule name.

[0435] 207. A method according to embodiment 201, wherein there is a single rule in the matching rule group, and the single rule is selected as the best matching rule.

[0436] 208. A method according to embodiment 201, wherein there are multiple rules in the matching rule group, and the rule with the smallest inheritance distance is selected as the best matching rule.

[0437] 209. A method according to embodiment 208, wherein there are multiple rules with a minimum inheritance distance, and the best matching rule is selected using a final decision technique based on one of the position of the rule parameter and the type of the rule parameter.

[0438] 210. The method of embodiment 201, wherein the instructions for (e) generating a logical dependency graph data structure further include instructions for:

[0439] (e1) determining, via a processor, a logical dependency graph node identifier of a best matching rule;

[0440] (e2) Alternatively, after determining, via the processor, that the logical dependency graph node identifier does not yet exist in the logical dependency graph data structure:

[0441] adding, via the processor, a new logical dependency graph node corresponding to the best matching rule to a logical dependency graph data structure, wherein the new logical dependency graph node is assigned a logical dependency graph node identifier;

[0442] After determining via the processor that the current rule is not an output rule, adding a logical dependency graph edge between the new logical dependency graph node and the logical dependency graph node corresponding to the dependency rule of the best matching rule;

[0443] determining, via a processor, a precedent rule group of a best matching rule, wherein the best matching rule is a dependent rule of a precedent rule in the precedent rule group; and

[0444] processing, via the processor, each corresponding precedent rule in the precedent rule set by: setting the current rule to the corresponding precedent rule, and repeating elements (c)-(e); and

[0445] Returning via the processor to process the precedent rules of the dependent rules of the best matching rule until the precedent rules of the output rule are processed;

[0446] (e3) Alternatively, after determining, via the processor, that the logical dependency graph node identifier already exists in the logical dependency graph data structure:

[0447] adding, via the processor, a logical dependency graph edge between an existing logical dependency graph node associated with the logical dependency graph node identifier and a logical dependency graph node corresponding to a dependency rule of the best matching rule; and

[0448] Return via the processor to the precedent rule that processes the dependent rules of the best matching rule.

[0449] 211. A method according to embodiment 201, wherein the logical dependency graph node is a data structure including a data field, which references the identification tuple of the corresponding rule.

[0450] 212. A method according to embodiment 201, wherein a logical dependency graph edge is a data field in a logical dependency graph node that references another logical dependency graph node.

[0451] 213. A method according to embodiment 201, wherein the execution complexity metric is determined based on at least one of: the number of nodes in the logical dependency graph, the sum of the output tensor sizes of the logical dependency graph nodes, the network data transfer size associated with the logical dependency graph, and the computation time of the requested computation.

[0452] 214. A method according to embodiment 201, wherein the cardinality of the distributed worker process group is determined based on a specified fixed number of available worker processes.

[0453] 215. A method according to embodiment 201, wherein the cardinality of the distributed worker process group is determined based on an execution complexity metric and a calibration parameter value, wherein the calibration parameter value is determined based on at least one of the following: target processing time, target available memory, target cost, target data transfer size.

[0454] 216. A method according to embodiment 215, wherein the cardinality of the distributed worker process group is also determined based on the average worker execution capacity.

[0455] 217. A method according to embodiment 201, wherein the number of nodes in the subgraph assigned to each corresponding worker process is determined based on the worker execution capability of the corresponding worker, wherein the worker execution capability is determined based on at least one of the following: processor speed, memory size, network speed.

[0456] 218. A method according to embodiment 201, wherein at least some logical dependency graph nodes in the generated logical dependency graph data structure are replicated in multiple sub-graphs assigned to different worker processes.

[0457] 219. A method according to embodiment 201, wherein the generated logical dependency graph data structure includes packed logical dependency graph nodes utilizing an internal logical dependency graph data structure, wherein the internal logical dependency graph data structure is constructed using associated packed atomic data structures.

[0458] 220. A method according to embodiment 219, wherein the internal logical dependency graph data structure is in the same memory space as the worker process in the distributed worker process group that is assigned a subgraph containing the packaged logical dependency graph nodes.

[0459] 221. A method according to embodiment 219, wherein the internal logical dependency graph data structure is distributed among multiple worker processes in a distributed worker process group.

[0460] 222. The method of embodiment 201, further comprising:

[0461] Execute instructions implemented by the processor to:

[0462] Provides a graph representation of logical dependency graph data structures;

[0463] Obtaining a user's selection of a target node in the graph representation;

[0464] determining a target logical dependency graph node in the logical dependency graph data structure corresponding to a target node selected by a user in the graph representation;

[0465] Obtaining a calculation result of the target logical dependency graph node from a worker process in the distributed worker process group that is assigned a subgraph containing the target logical dependency graph node; and

[0466] Provides calculation results for display.

[0467] 223. A method according to embodiment 222, wherein the target node in the graph representation includes a visual indicator that specifies a worker process in the distributed worker process group that is assigned a subgraph containing the target logical dependency graph node.

[0468] 224. A method according to embodiment 223, wherein the visual indicator is at least one of the following: color, color pattern, shape or border style of the target node.

[0469] 225. A method according to embodiment 222, wherein each node in the graph representation includes a visual indicator that specifies whether a precedent node for the corresponding node is displayed.

[0470] 226. A method according to embodiment 225, wherein the visual indicator is at least one of the following: color, color pattern, shape or border style of the corresponding node.

[0471] 227. The method of embodiment 222, further comprising:

[0472] Execute instructions implemented by the processor to:

[0473] Obtaining a user command to view a state copy code, wherein executing the state copy code on a remote client copies the state of an associated logic dependency graph node on the remote client;

[0474] determining a state copy code associated with a target logical dependency graph node; and

[0475] Generates a display containing the determined status copy code.

[0476] 228. The method of embodiment 222, further comprising:

[0477] Execute instructions implemented by the processor to:

[0478] Get user commands to switch the graph display mode;

[0479] providing a second graph representation of a rule dependency graph data structure corresponding to the logical dependency graph data structure;

[0480] Obtaining a user selection of a second target node in the second graph representation; and providing display information associated with the second target node, wherein the display information includes a list of logical dependency graph nodes associated with the second target node and metadata associated with the second target node.

[0481] 229. The method of embodiment 201, further comprising:

[0482] Execute instructions implemented by the processor to:

[0483] Provides a graph representation of logical dependency graph data structures;

[0484] Obtaining a user's selection of a target node in the graph representation;

[0485] determining a target logical dependency graph node in the logical dependency graph data structure corresponding to a target node selected by a user in the graph representation; and

[0486] After determining that the target logical dependency graph node is a packed atom, a second graph representation of an internal logical dependency graph data structure of the target logical dependency graph node is provided.

[0487] 230. The method of embodiment 229, further comprising:

[0488] Execute instructions implemented by the processor to:

[0489] Obtaining a user command to switch a graph display mode; and providing a third graph representation of a rule dependency graph data structure corresponding to an internal logical dependency graph data structure of a target logical dependency graph node.

[0490] 231. A method according to embodiment 230, wherein the third graph representation also includes a graph representation of a rule dependency graph data structure corresponding to the logical dependency graph data structure.

[0491] 232. A method according to embodiment 230, wherein the nested graph representations of the rule dependency graph data structure include navigation links that facilitate navigation between the nested graph representations.

[0492] 233. A method according to embodiment 201, wherein at least one of the following utilizes dynamic precedents: a best matching rule, a precedent rule of a best matching rule, and a precedent rule of another precedent rule.

[0493] 234. A method according to embodiment 201, wherein at least one of the following corresponds to a rule entry in a rule lookup table data structure for cloning a namespace: a best matching rule, a precedent rule of a best matching rule, and a precedent rule of another precedent rule.

[0494] 235. A method according to embodiment 201, wherein at least one of the following is an overriding rule in the clone namespace determined via a namespace lookup table data structure: a best matching rule, a precedent rule of the best matching rule, and a precedent rule of another precedent rule.

[0495] How DSGRCE is implemented

[0496] The entire contents of the present disclosure of rule compiler engine devices, methods, systems and media for generating distributed systems (including written descriptions, drawings, claims, abstracts, appendices, etc.) show different embodiments of the innovations claimed for protection that can be practiced therewith. It is to be understood that these embodiments and the features described therein are representative samples presented to help understand the claimed innovations, and are not exhaustive and / or exclusive. Therefore, throughout the present disclosure, different embodiments, implementations, examples, etc. are considered to be non-restrictive. In addition, there may be alternative undescribed embodiments (e.g., equivalent embodiments). Such alternative embodiments have not been discussed in detail to save space and / or reduce repetition. Alternative embodiments not discussed in detail should not be regarded as a denial of such alternative undescribed embodiments, and such alternative undescribed embodiments should not be inferred relative to those embodiments discussed in detail in the present disclosure. It is to be understood that such alternative undescribed embodiments may be utilized without departing from the spirit and / or scope of the present disclosure. For example, the structures of the organization, logic, physics, function, topology, etc. of different embodiments may be different. In another example, the organization, logic, physics, function, topology, etc. of the DSGRCE coordinator, DSGRCE coordinator element, DSGRCE data storage, DSGRCE component and their sub-components, capabilities, applications, etc. described in different embodiments throughout the present disclosure are not limited to a fixed order of operation and / or arrangement, on the contrary, the present disclosure expects all equivalent orders of operation and / or arrangements. In another example, the DSGRCE coordinator, DSGRCE coordinator element, DSGRCE data storage, DSGRCE component and their sub-components, capabilities, applications, etc. described in different embodiments throughout the present disclosure are not limited to serial execution, on the contrary, the present disclosure expects any number and / or configuration of threads, processes, instances, services, servers, clients, nodes, etc. executed in parallel, concurrent, simultaneous, synchronous, asynchronous, etc. In addition, it is to be understood that some features described in the present disclosure may contradict each other, be incompatible, inapplicable, etc., and will not exist in the same embodiment at the same time. Therefore, different embodiments, implementations, examples, etc. should not be regarded as limitations on the disclosure defined by the claims or limitations on the equivalents of the claims.

[0497] The present disclosure includes innovations that are not currently claimed. Applicants reserve all rights to such currently unclaimed innovations, including the right to assert such innovations and to file additional provisional applications, non-provisional applications, renewal applications, partial renewal applications, divisional applications, etc. It is to be understood that although some embodiments of the DSGRCE discussed in the present disclosure have been directed to cloud-based distributed systems, the innovations described in the present disclosure can be readily applied to a variety of other fields and / or applications.

Claims

1. A rule compiler device for generating a distributed system, comprising: Memory; a processor in communication with the memory and configured to issue a plurality of processing instructions stored in the memory, wherein the processor issues instructions to: (a) obtaining, via the processor, a distributed system execution request data structure; (b) determining, via the processor, an output rule specified by the distributed system execution request data structure for a requested computation and a set of rule parameters for the output rule, wherein a current rule is initialized as the output rule; (c) querying, via the processor, a rule lookup table data structure to determine a matching rule group corresponding to the current rule based on the identification tuple of the current rule; (d) selecting, via the processor, a best matching rule from the matching rule group, wherein a rule parameter group of the best matching rule best corresponds to a rule parameter group of the current rule; (e) generating, via the processor, a logical dependency graph data structure by adding logical dependency graph nodes and logical dependency graph edges corresponding to the best matching rule, the precedent rule of the best matching rule, and the precedent rule of each precedent rule; (f) determining, via the processor, an execution complexity metric associated with the generated logic dependency graph data structure; (g) determining, via the processor, a distributed group of worker processes to be used to perform the requested computation; (h) partitioning, via the processor, the generated logical dependency graph data structure into subgraph groups based on the execution complexity metric, wherein a subgraph in the subgraph group is allocated to each worker process in the distributed worker process group; (i) initializing, via the processor, a corresponding worker process using a subgraph assigned to each worker process in the distributed worker process group; (j) coordinating, via the processor, execution of the requested computation by worker processes in the distributed worker process group, wherein each respective worker process computes a result of a logical dependency graph node in a subgraph assigned to the respective worker process; and (k) Obtaining, via the processor, a calculation result of the logical dependency graph node corresponding to the output rule from a worker process in the distributed worker process group to which a subgraph containing the logical dependency graph node corresponding to the output rule is assigned.

2. The device according to claim 1, wherein: The rule lookup table data structure includes a set of mappings of identification tuples to rule data structures.

3. The device according to claim 2, wherein: The rule data structure includes a data field that references an associated concrete atom data structure that implements the forward computation operations of the general atom interface to compute a result.

4. The device according to claim 3, wherein: A regular data structure includes a data field that references a factory function that creates an instance of the associated concrete atomic data structure.

5. The device according to claim 1, wherein: The identification tuple includes an ordered list including the namespace of the rule and the rule name.

6. The device according to claim 1, wherein: The identification tuple includes a hash value calculated based on an ordered list including the namespace of the rule and the rule name.

7. The device according to claim 1, wherein: There is a single rule in the matching rule group, and the single rule is selected as the best matching rule.

8. The device according to claim 1, wherein: There are multiple rules in the matching rule group, and the rule with the smallest inheritance distance is selected as the best matching rule.

9. The device according to claim 8, wherein: There are multiple rules with the minimum inheritance distance, and the best matching rule is selected using a tie-breaking technique based on one of the position of the rule parameter and the type of the rule parameter.

10. The device according to claim 1, wherein: The instructions for (e) generating the logical dependency graph data structure also include instructions to: (e1) determining, via the processor, a logical dependency graph node identifier of the best matching rule; (e2) Alternatively, after determining, via the processor, that the logical dependency graph node identifier does not yet exist in the logical dependency graph data structure: adding, via the processor, a new logical dependency graph node corresponding to the best matching rule to the logical dependency graph data structure, wherein the new logical dependency graph node is assigned the logical dependency graph node identifier; After the processor determines that the current rule is not the output rule, Adding a logical dependency graph edge between the new logical dependency graph node and the logical dependency graph node corresponding to the dependency rule of the best matching rule; determining, via the processor, a precedent rule group of the best matching rule, wherein the best matching rule is a dependent rule of a precedent rule in the precedent rule group; and processing, via the processor, each corresponding precedent rule in the set of precedent rules by: setting the current rule to the corresponding precedent rule, and repeating (c)-(e); and returning, via the processor, to processing precedent rules of dependent rules of the best matching rule until precedent rules of the output rule are processed; (e3) Alternatively, after determining, via the processor, that the logical dependency graph node identifier already exists in the logical dependency graph data structure: adding, via the processor, a logical dependency graph edge between an existing logical dependency graph node associated with the logical dependency graph node identifier and a logical dependency graph node corresponding to a dependency rule of the best matching rule; and Return via the processor to the precedent rule for processing the dependent rules of the best matching rule.

11. The device according to claim 1, wherein: A logical dependency graph node is a data structure that includes a data field that references an identification tuple of a corresponding rule.

12. The device according to claim 1, wherein: A logical dependency graph edge is a data field in a logical dependency graph node that references another logical dependency graph node.

13. The device according to claim 1, wherein: The execution complexity metric is determined based on at least one of: the number of nodes in the logic dependency graph, the sum of the output tensor sizes of the logic dependency graph nodes, the network data transfer size associated with the logic dependency graph, and the computation time of the requested computation.

14. The device according to claim 1, wherein: The cardinality of the distributed worker process group is determined based on a specified fixed number of available worker processes.

15. The device according to claim 1, wherein: The cardinality of the distributed worker process group is determined based on the execution complexity metric and a calibration parameter value, wherein the calibration parameter value is determined based on at least one of: a target processing time, a target available memory, a target cost, a target data transfer size.

16. The device according to claim 15, wherein: The cardinality of the distributed worker process group is also determined based on the average worker execution capacity.

17. The device according to claim 1, wherein: The number of nodes in the subgraph allocated to each respective worker process is determined based on a worker execution capability of the respective worker, wherein the worker execution capability is determined based on at least one of: processor speed, memory size, network speed.

18. The device according to claim 1, wherein: At least some of the logical dependency graph nodes in the generated logical dependency graph data structure are replicated in multiple sub-graphs that are assigned to different worker processes.

19. The device according to claim 1, wherein: The generated logical dependency graph data structure includes packed logical dependency graph nodes utilizing an internal logical dependency graph data structure, wherein the internal logical dependency graph data structure is constructed using an associated packed atomic data structure.

20. The device according to claim 19, wherein The internal logical dependency graph data structure is in the same memory space as the worker process in the distributed worker process group to which the subgraph containing the packaged logical dependency graph node is assigned.

21. The device according to claim 19, wherein The internal logical dependency graph data structure is distributed across multiple worker processes in the distributed worker process group.

22. The apparatus according to claim 1, further comprising: The processor issues instructions to: providing a graph representation of the logical dependency graph data structure; Obtaining a user's selection of a target node in the graph representation; determining a target logical dependency graph node in the logical dependency graph data structure corresponding to a target node selected by a user in the graph representation; Obtaining a calculation result of the target logical dependency graph node from a worker process in the distributed worker process group to which a subgraph containing the target logical dependency graph node is assigned; as well as The calculation results are provided for display.

23. The device according to claim 22, wherein: The target node in the graph representation includes a visual indicator that specifies a worker process in the distributed worker process group to which the subgraph containing the target logical dependency graph node is assigned.

24. The device according to claim 23, wherein: The visual indicator is at least one of the following: a color, a pattern, a shape, or a border style of the target node.

25. The device according to claim 22, wherein: Each node in the graph representation includes a visual indicator that specifies whether precedent nodes for the corresponding node are displayed.

26. The device according to claim 25, wherein The visual indicator is at least one of the following: a color, a pattern, a shape, or a border style of the corresponding node.

27. The apparatus of claim 22, further comprising: The processor issues instructions to: Obtaining a user command to view a state copy code, wherein executing the state copy code on a remote client copies the state of an associated logic dependency graph node on the remote client; determining a state copy code associated with the target logical dependency graph node; and Generates a display containing the determined status copy code.

28. The apparatus of claim 22, further comprising: The processor issues instructions to: Get user commands to switch graph display mode; providing a second graph representation of a rule dependency graph data structure corresponding to the logical dependency graph data structure; Obtaining a user selection of a second target node in the second graph representation; as well as Display information associated with the second target node is provided, wherein the display information includes a list of logical dependency graph nodes associated with the second target node and metadata associated with the second target node.

29. The apparatus of claim 1, further comprising: The processor issues instructions to: providing a graph representation of the logical dependency graph data structure; Obtaining a user's selection of a target node in the graph representation; determining a target logical dependency graph node in the logical dependency graph data structure corresponding to a target node selected by a user in the graph representation; as well as After determining that the target logical dependency graph node is a packed atom, a second graph representation of an internal logical dependency graph data structure of the target logical dependency graph node is provided.

30. The apparatus of claim 29, further comprising: The processor issues instructions to: Get user commands to switch the graph display mode; as well as A third graph representation of a rule dependency graph data structure corresponding to an internal logical dependency graph data structure of the target logical dependency graph node is provided.

31. The device according to claim 30, wherein The third graph representation also includes a graph representation of a rule dependency graph data structure corresponding to the logical dependency graph data structure.

32. The device according to claim 30, wherein: The nested graph representations of the rule dependency graph data structure include navigation links that facilitate navigation between the nested graph representations.

33. The device according to claim 1, wherein: Dynamic precedent is utilized by at least one of: the best matching rule, a precedent rule for the best matching rule, and a precedent rule for each precedent rule.

34. The device according to claim 1, wherein: At least one of the following corresponds to a rule entry in the rule lookup table data structure for cloning a namespace: the best matching rule, a precedent rule for the best matching rule, and a precedent rule for each precedent rule.

35. The device according to claim 1, wherein: At least one of the following is an overriding rule in the clone namespace determined via the namespace lookup table data structure: the best matching rule, a precedent rule for the best matching rule, and a precedent rule for each precedent rule.

36. A non-transitory physical medium readable by a processor of a rule compiler for generating a distributed system, the medium storing instructions issuable by the processor to: (a) obtaining, via the processor, a distributed system execution request data structure; (b) determining, via the processor, an output rule and a set of rule parameters for the output rule specified by the distributed system execution request data structure for the requested computation, wherein: The current rule is initialized to the output rule; (c) querying, via the processor, a rule lookup table data structure to determine a matching rule group corresponding to the current rule based on the identification tuple of the current rule; (d) selecting, via the processor, a best matching rule from the matching rule group, wherein a rule parameter group of the best matching rule best corresponds to a rule parameter group of the current rule; (e) generating, via the processor, a logical dependency graph data structure by adding logical dependency graph nodes and logical dependency graph edges corresponding to the best matching rule, the precedent rule of the best matching rule, and the precedent rule of each precedent rule; (f) determining, via the processor, an execution complexity metric associated with the generated logic dependency graph data structure; (g) determining, via the processor, a distributed group of worker processes to be used to perform the requested computation; (h) partitioning, via the processor, the generated logical dependency graph data structure into subgraph groups based on the execution complexity metric, wherein a subgraph in the subgraph group is allocated to each worker process in the distributed worker process group; (i) initializing, via the processor, a respective worker process using a subgraph assigned to each respective worker process in the distributed worker process group; (j) coordinating, via the processor, execution of the requested computation by worker processes in the distributed worker process group, wherein each respective worker process computes a result of a logical dependency graph node in a subgraph assigned to the respective worker process; and (k) Obtaining, via the processor, a calculation result of the logical dependency graph node corresponding to the output rule from a worker process in the distributed worker process group to which a subgraph containing the logical dependency graph node corresponding to the output rule is assigned.

37. A processor-implemented method for generating a rule compiler for a distributed system, comprising executing processor-implemented instructions to: (a) obtaining, via the processor, a distributed system execution request data structure; (b) determining, via the processor, an output rule and a set of rule parameters for the output rule specified by the distributed system execution request data structure for the requested computation, wherein: The current rule is initialized to the output rule; (c) querying, via the processor, a rule lookup table data structure to determine a matching rule group corresponding to the current rule based on the identification tuple of the current rule; (d) selecting, via the processor, a best matching rule from the matching rule group, wherein a rule parameter group of the best matching rule best corresponds to a rule parameter group of the current rule; (e) generating, via the processor, a logical dependency graph data structure by adding logical dependency graph nodes and logical dependency graph edges corresponding to the best matching rule, the precedent rule of the best matching rule, and the precedent rule of each precedent rule; (f) determining, via the processor, an execution complexity metric associated with the generated logic dependency graph data structure; (g) determining, via the processor, a distributed group of worker processes to be used to perform the requested computation; (h) partitioning, via the processor, the generated logical dependency graph data structure into subgraph groups based on the execution complexity metric, wherein a subgraph in the subgraph group is allocated to each worker process in the distributed worker process group; (i) initializing, via the processor, a respective worker process using a subgraph assigned to each respective worker process in the distributed worker process group; (j) coordinating, via the processor, execution of the requested computation by worker processes in the distributed worker process group, wherein each respective worker process computes a result of a logical dependency graph node in a subgraph assigned to the respective worker process; and (k) Obtaining, via the processor, a calculation result of the logical dependency graph node corresponding to the output rule from a worker process in the distributed worker process group to which a subgraph containing the logical dependency graph node corresponding to the output rule is assigned.

Citation Information

Patent Citations

  • Method and system for processing software design conflicts

    CN102053825A

  • Large-scale graph data query method in distributed environment based on Datalog

    CN102799624A

  • Workflow scheduling method for data analysis tasks

    CN108415740A

  • Effective cloud service instance using caching and sampling

    CN108667874A

  • Methods, systems, and devices using reprogrammable hardware for high-speed processing of streaming data to find a redefinable pattern and respond thereto

    CN1656471A