# US 2021/0232369 A1 · Development Environment for Real-Time Dataflow Programming Language

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0232369 A1
- Document ID: US20210232369A1
- Status: Published application
- Kind: A1
- Application number: 17/229,782
- Filed: 2021-04-13
- Published: 2021-07-29
- Earliest claimed: 2016-03-23
- Assignees: Johnson Controls Tyco IP Holdings LLP
- Applicants: FogHorn Systems, Inc.
- Inventors: Abhishek Sharma; Jason Lucas
- Web page: https://patentgrep.com/patent/US20210232369A1

## CPC

- G06F 8/35: model driven
- G06F 8/31: {Programming languages or programming paradigms}
- G06F 8/34: Graphical or visual programming
- G06F 8/40: Transformation of program code
- G06F 9/4498: {Finite state machines}
- G06F 9/48: Program initiating; Program switching, e.g. by interrupt
- G06F 11/3668: Testing of software
- G06F 11/3698: Environments for analysis, debugging or testing of software
- G06F 16/9535: Search customisation based on user profiles and personalisation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A dataflow programming language can be used to express reactive dataflow programs that can be used in pattern-driven real-time data analysis. One or more tools are provided for the dataflow programming language for checking syntactic and semantic correctness, checking logical correctness, debugging, translation of source code into a secure, portable format (e.g., packaged code), translation of source code (or packaged code) into platform-specific code, batch-mode interpretation, interactive interpretation, simulation and visualization of the dataflow environment, remote execution, monitoring, or any combination of these. These tools embody a method of developing, debugging, and deploying a dataflow graph device.

## Claims

### Claim 1

A method comprising:
providing a development environment for a dataflow programming language allowing specifying of at least one state machine that can perform pattern matching in a received input stream and generate output data, wherein the development environment comprises a plurality of tools to perform the following:
identifying a plurality of potential data streams;
identifying a set of reactive functions and parameters corresponding to patterns of data in the streams;
identifying a set of handling functions and parameters for transforming data matching declared patterns; and
identifying a set of timed events against which patterns of data flow are compared;
creating a dataflow program based on at least one of the identifying a plurality of potential data streams, identifying a set of reactive functions and parameters corresponding to patterns of data in the streams, identifying a set of handling functions and parameters for transforming data matching declared patterns, or identifying a set of timed events against which patterns of data flow are compared;
providing the dataflow program as input to a two-phase translation tool comprising a first-phase translation tool incorporating a matcher generator for translating program statements, and a second-phase translation tool for generating optimized platform-specific hardware instructions corresponding to the translated statements for execution on a hardware platform; and
receiving the output of each phase of the translation tool.

### Claim 2 (depends on 1)

The method of claim 1 wherein a graphical user interface allows the user to select an input block to connect to one or more added compute blocks.

### Claim 3 (depends on 2)

The method of claim 2 wherein the graphical user interface allows the user to select an output from one or more added compute blocks to connect to an output block.

### Claim 4 (depends on 1)

The method of claim 1 wherein the timed events comprise at least one of an interval of time in which data is to be collected or discarded or a specific point in time before or after which data is to be collected or discarded.

### Claim 5 (depends on 1)

The method of claim 1 wherein the development environment comprises a graphical user interface allowing a user to add one or more compute blocks, and each compute block comprises a state machine.

### Claim 6 (depends on 4)

The method of claim 4 wherein the development environment comprises a graphical user interface allowing a user to add one or more compute blocks, and each compute block comprises a state machine.

### Claim 7 (depends on 2)

The method of claim 2 wherein each compute block comprises a state machine.

### Claim 8 (depends on 1)

The method of claim 1 wherein the development environment comprises an interpreter component that uses the output of the first-phase translation tool comprising:
an instruction interpreter which emulates the hardware platform in the execution of platform-translated specific hardware instructions;
a data flow simulator which emulates a streaming data environment, providing inputs to and collecting outputs from state machine streams; and
a program execution flow controller to examine computations and data in-flight and drive computations back and forth.

### Claim 9 (depends on 1)

The method of claim 1 wherein the development environment comprises an inspection component comprising:
an inspection method that instruments and attaches to a live running program on a particular hardware program, providing insights into a shape of a data graph; and
an inspection method, executing after attachment, then extracts the state of the dataflow computation of a running program which provides an extremely precise and direct insight into computation along with data in consideration.

### Claim 10 (depends on 1)

The method of claim 1 wherein the development environment comprises a visualization and dataflow simulation graphical-based component comprising:
a graphical-based interface to allow a program to be authored or displayed or revised in a graphical fashion, thereby assisting a user to gain a more intuitive mental-model for streaming data analysis and thorough understanding of the action of the program; and
a data flow simulation to test-drive an authored graphical program by visually simulating the actual flow of data via animations and links, with external control by injecting a notion of time allowing the fluidity to go back and forth in data-flow computation.

### Claim 11 (depends on 10)

The method of claim 10 wherein the first-phase translation tool comprises a simulated publisher-subscriber multiplexer, commonly called a message broker, to facilitate the exchange of simulated messages from a plurality of publishers to a plurality of subscribers within a debugging environment.

### Claim 12 (depends on 10)

The method of claim 10 wherein the development environment comprises an interpreter component that uses the output of the first-phase translation tool comprising:
an instruction interpreter which emulates the hardware platform in the execution of platform-translated specific hardware instructions;
a data flow simulator which emulates a streaming data environment, providing inputs to and collecting outputs from state machine streams; and
a program execution flow controller to examine computations and data in-flight and drive computations back and forth.

### Claim 13 (depends on 12)

The method of claim 12 wherein the first-phase translation tool comprises a simulated publisher-subscriber multiplexer, commonly called a message broker, to facilitate the exchange of simulated messages from a plurality of publishers to a plurality of subscribers within a debugging environment.

### Claim 14 (depends on 12)

The method of claim 12 wherein the development environment comprises an inspection component comprising:
an inspection method that instruments and attaches to a live running program on a particular hardware program, providing insights into a shape of a data graph; and
an inspection method, executing after attachment, then extracts the state of the dataflow computation of a running program which provides an extremely precise and direct insight into computation along with data in consideration.

### Claim 15 (depends on 1)

The method of claim 1 wherein the output of the first-phase translation tool may be used as an input to the second-phase translation tool, and the translation tool comprises:
a hardware instruction generator which translates instructions from an intermediate representation to a form suitable for execution by the target hardware platform;
a program organization module, which directs the generation of the output into a form suitable for use in a reactive program in a dataflow environment; and
libraries of runtime support components that allow execution on the target hardware platform.

### Claim 16 (depends on 15)

The method of claim 15 wherein an output of the second-phase translation tool is an executable program suitable for use on the targeted hardware platform.

### Claim 17 (depends on 1)

The method of claim 1 wherein the development environment can automatically generate computer source code to implement a pattern matching operation using the at least one state machine reflecting a technique that processes the received input_stream without backtracking.

### Claim 18

A method comprising:
providing a development environment for a dataflow programming language allowing specifying of at least one state machine that can perform pattern matching in a received input stream and generate output data, wherein the development environment comprises a plurality of tools to perform the following:
identifying a plurality of potential data streams; and
identifying a set of reactive functions and parameters corresponding to patterns of data in the streams;
creating a dataflow program based on the identifying a plurality of potential data streams and the identifying a set of reactive functions and parameters corresponding to patterns of data in the streams;
providing the dataflow program as input to a two-phase translation tool comprising a first-phase translation tool incorporating a matcher generator for translating program statements, and a second-phase translation tool for generating optimized platform-specific hardware instructions corresponding to the translated statements for execution on a hardware platform; and
receiving the output of each phase of the translation tool.

### Claim 19 (depends on 18)

The method of claim 18 wherein the tool further performs identifying a set of handling functions and parameters for transforming data matching declared patterns.

### Claim 20 (depends on 18)

The method of claim 18 wherein the tool further performs identifying a set of timed events against which patterns of data flow are compared.

### Claim 21

A method comprising:
providing a development environment for a dataflow programming language allowing specifying of at least one state machine that can perform pattern matching in a received input stream and generate output data, wherein the development environment comprises a plurality of tools to perform the following:
identifying a plurality of potential data streams; and
identifying a set of handling functions and parameters for transforming data matching declared patterns;
creating a dataflow program based the identifying a plurality of potential data streams and the identifying a set of handling functions and parameters for transforming data matching declared patterns;
providing the dataflow program as input to a two-phase translation tool comprising a first-phase translation tool incorporating a matcher generator for translating program statements, and a second-phase translation tool for generating optimized platform-specific hardware instructions corresponding to the translated statements for execution on a hardware platform; and
receiving the output of each phase of the translation tool.

### Claim 22 (depends on 21)

The method of claim 21 wherein the tool further performs identifying a set of timed events against which patterns of data flow are compared.

### Claim 23

A method comprising:
using a graphical user interface displayed on a computer screen to specify a graphical representation of a dataflow program, the program comprising a plurality of types of blocks;
allowing the user to specify a pattern matching operation for a first type of block through the graphical user interface;
allowing the user to specify generating of a computer package of code executable on a target hardware platform that is an implementation of the dataflow program specified by the user using the graphical user interface; and
automatically generating computer source code that corresponds to the dataflow program the user specified using the graphical user interface, wherein the automatically generating computer source code comprises implementing the pattern matching operation using a state machine reflecting a technique that processes data of an input_stream of a producer without backtracking.

### Claim 24 (depends on 23)

The method of claim 23 comprising:
providing the user with performance semantic-level debugging capabilities.

### Claim 25 (depends on 23)

The method of claim 23 comprising:
allowing the user to edit the computer source code automatically generated in a textual interface.

### Claim 26 (depends on 23)

The method of claim 23 wherein through the graphical user interface, a user can select, place, and link the blocks.
