Composable processing framework based on web assembly component model
The configurable processing framework using a WebAssembly component model addresses the inefficiencies of glue code by enabling cross-language integration and automation of host language bindings, improving code quality and application performance.
Patent Information
- Application Number
- JP2023113076
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-07
- Filing Date
- 2023-07-10
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2043-07-10
AI Technical Summary
Modern software applications are highly fragmented, requiring developers to write extensive 'glue code' to integrate different components, which is time-consuming and inefficient, especially when services are not available in the host programming language, leading to repeated coding and frequent changes.
A configurable processing framework using a WebAssembly component model allows developers to create and reuse custom code across programming languages, leveraging Core Query Notation and WebAssembly Interface (WIT) to automate host language bindings, enabling efficient integration and reducing the need for glue code.
This approach enables developers to focus on application logic, reduces duplication, improves code quality, and enhances application performance by allowing reusable components across multiple applications, while maintaining modular and maintainable structures.
Smart Images

Figure 2024127696000001
Abstract
Description
[Technical field]
[0001] This document relates generally to computer software application development. More particularly, this document relates to the use of a configurable processing framework based on a web assembly component model. [Background technology]
[0002] Modern software application code is often highly fragmented, including a combination of one or more programming languages, outbound services (e.g., databases, message brokers, etc.), and inbound services (HyperText Transfer Protocol (HTTP) services (including protocols such as GraphQL and OData), message brokers, etc.). As a result, application developers need to write a lot of what is called "glue code". Glue code refers to code that connects separate software components or systems together to coordinate their interactions and facilitate communication. Glue code acts as the "glue" that holds components together and enables them to work as a single integrated system. Glue code is commonly used to integrate different APIs, data formats, and protocols, and is often written in low-level programming languages such as C or C++. Glue code is usually minimal, simple, and focuses on facilitating the integration of components rather than providing any significant functionality of its own. Summary of the Invention [Means for solving the problem]
[0003] The present disclosure is illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings in which like reference numbers indicate similar elements. [Brief description of the drawings]
[0004] [Figure 1] FIG. 1 is a block diagram illustrating a system including a configurable processing framework according to one exemplary embodiment. [Diagram 2] 1 is a flow diagram illustrating a method for creating custom code in a software environment according to one example embodiment. [Diagram 3] FIG. 1 illustrates a method for using custom code in a software environment according to one exemplary embodiment. [Figure 4] FIG. 2 is a block diagram illustrating a software architecture that may be installed on any one or more of the devices described above. [Diagram 5] FIG. 1 is a diagrammatic representation of a machine, in the form of a computer system, within which a set of instructions may be executed to cause the machine to perform any one or more of the methodologies discussed herein, according to one exemplary embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0005] The following description discusses exemplary systems, methods, techniques, instruction sequences, and computer program products. In the following description, for purposes of explanation, numerous details are set forth in order to provide an understanding of various exemplary embodiments of the present subject matter. However, it will be apparent to those skilled in the art that various exemplary embodiments of the present subject matter may be practiced without these specific details.
[0006] Writing a lot of glue code can be time-consuming for application developers, not only at the development stage but also at later stages. If the reused code is not written in the host programming language, for example, it needs to be rewritten even though the code itself is reused. If a service client (inbound or outbound) is not available for the host programming language, a service client needs to be built. Furthermore, changes to the service then require changes to that code as well.
[0007] In one exemplary embodiment, it provides a common, composable abstraction that enables components to work efficiently across programming languages and services without the need to write glue code. Application developers can focus on the application logic itself. The functionality of a service can be developed once by framework developers, using the programming language of their choice.
[0008] More specifically, the configurable processing framework provides a generic server capable of processing operations defined by a data model created by an application developer. The configurable processing framework may utilize a language-independent notation, such as Core Query Notation. Core Query Notation is a syntax used to express queries in a structured and standard manner. Core Query Notation may be used within database management systems and search engines to enable users to search and retrieve specific information from large data sets in an organized and efficient manner. The syntax generally includes elements such as keywords, operators, and logical statements, which are combined to form queries that can then be executed to retrieve relevant information from the data set. However, essentially, the syntax may be used as an abstract way to encode intent in terms of a query (e.g., SELECT, CREATE, etc.).
[0009] While many aspects of a service may be defined by using the data model itself, in many cases the data model alone is insufficient to create a complete service. Therefore, some level of custom code from the application developer is required. However, it may be difficult for an application developer to create that custom code when the application developer is limited to do so by simply using the programming language utilized by the general-purpose server (the host language, often called Java). Thus, in one exemplary embodiment, the configurable processing framework allows an application developer to create custom code in the programming language of the developer's choice, as long as the programming language is compilable into a bytecode format, such as WebAssembly. The custom code is compiled into that bytecode format and then loaded into the configurable processing framework, where the custom code can be interacted with via core query notation commands.
[0010] WebAssembly (WASM) is a low-level binary instruction format for a stack-based virtual machine designed to run within web browsers. In one exemplary embodiment, a WebAssembly runtime is used to run WebAssembly modules on a server, allowing these modules to be composed with interfaces based on the WebAssembly component model.
[0011] These interfaces can be written in WIT (WebAssembly Interfaces), a WASM specification that defines a set of rules and contracts for describing interfaces between WASM modules and host environments, allowing them to communicate and interoperate.
[0012] In more technical terms, WIT is a set of types and functions that define how data passes between WebAssembly modules and the host environment, as well as how functions are invoked and results are returned. The specification provides a way for WASM modules to declare the types of their functions and the types of data they expect and return, enabling safe and efficient communication between modules and the host environment.
[0013] More specifically, WIT Bindgen can be used, which is a tool that generates host bindings for a WebAssembly module based on its interface description using the WIT specification. Essentially, WIT Bindgen takes a WebAssembly module that has been annotated with WIT type information and generates host language bindings that can be used to invoke the module's functions and access its data.
[0014] WIT Bindgen is part of the WebAssembly tooling ecosystem for the Rust programming language. WIT Bindgen is designed to work in conjunction with the WASM-Bindgen tool, which provides similar capabilities for generating JavaScript bindings for WebAssembly modules.
[0015] One of the main benefits of WIT Bindgen is that it automates the process of generating host language bindings, which can be time-consuming and error-prone when done manually. By using WIT Bindgen, developers can avoid the need to write and maintain custom host bindings for their WebAssembly modules and instead focus on writing the module's logic in the target language.
[0016] The WebAssembly component model is a portable, load- and runtime-efficient binary format that allows web applications to be built from reusable components written in WASM, then assembled into a larger whole to form the final application. This approach allows developers to take advantage of the benefits of WASM, such as performance and security, while still providing a modular and maintainable structure for their applications. The component model allows developers to write reusable code in WASM that can be shared across multiple applications, reducing the amount of duplication and improving overall code quality. Additionally, the component model may improve the overall performance of an application by allowing developers to write high-performance components in WASM while using JavaScript for parts of the application that benefit from its dynamic and expressive nature.
[0017] FIG. 1 is a block diagram illustrating a system 100 including a configurable processing framework 102 according to one exemplary embodiment. An application developer creates a data model 104, which can then be compiled into application logic 106 within the configurable processing framework 102. In one exemplary embodiment, the data model 104 can be created within data and service objects, such as a Core Data and Services (CDS) model. CDS models are plain JavaScript objects that conform to the Core Schema Notation. CDS models are written in the CDS data modeling language. CDS allows for a central definition of business entities and their relationships, as well as the definition of the services that affect those entities. This allows developers to build applications that can share and reuse business data and logic, reducing duplication of work and increasing data consistency and accuracy across the enterprise.
[0018] In some example embodiments, a CDS component (not shown) may be provided with a common set of Domain Specific Languages (DSLs) and services. The CDS component may enable the definition and consumption of semantically rich data models as an integral part of the database structure, thereby allowing data modeling and data retrieval and processing to be elevated to a higher semantic level that is closer to the conceptual thinking of domain experts.
[0019] In detail, the CDS components implement higher level Domain Specific Languages (DSLs) and services based on an entity-relationship model (ERM). A Data Definition Language (DDL) is used to define a semantically rich data model, including data types, associated metadata, and database configurations (e.g., columns and tables). A Query Language (QL) is used to conveniently and efficiently read data based on the data model. The QL is also used to define views in the data model. Within queries, an Expression Language (EL) is used to specify computed fields, default values, constraints, etc. Computed fields, default values, and constraints are similarly specified for elements in the data model.
[0020] As explained above, while the data model 104 itself may be used to create services within the application logic 106, the data model 104 cannot be used to create all the functionality of many services. Therefore, some level of custom code is required. Thus, in one exemplary embodiment, the application developer also creates the custom code 108 in a user language 110. The user language 110 may be any language that can be compiled into a compiled bytecode format 112, such as WebAssembly. Other examples of compiled bytecode formats include Java bytecode, Python bytecode, .NET bytecode, and Lua bytecode.
[0021] In some cases, the component model 114 may be used to generate one or more interfaces. These interfaces may be utilized by application developers when creating custom code 108, but may also be used directly in their original form or inverted form with configurable processing formats.
[0022] More specifically, the component model may produce one or more interfaces that can be used to convert between the core query expressions and other formats utilized by services or entities interacting with the configurable processing framework 102.
[0023] A developer of the configurable processing framework 102 may create one or more triggers, such as an HTTP trigger 116 and / or an Advanced Message Queuing Protocol (AMQP) trigger 118. AMQP is an open standard application layer protocol for message-oriented middleware. AMQP provides a way for applications to communicate with each other in a reliable, asynchronous manner by exchanging messages through a message broker. AMQP is designed to support a wide range of messaging use cases, including queuing, publish / subscribe, and request / response, and is popular as a choice for integrating systems in the financial, healthcare, and logistics industries. AMQP defines a standard wire-level protocol for message-oriented middleware, including a set of rules for encoding and decoding messages, as well as specifications for the behavior of message brokers. This allows different implementations of AMQP to interoperate and allows applications written in different programming languages to communicate with each other.
[0024] Triggers 116 and 118 listen for corresponding messages to be received, at which point an action is triggered. For example, HTTP trigger 116 listens for HTTP commands, such as HTTP ODATA requests, to be received, and AMQP trigger 118 listens for AMQP messages, such as AMQP message cloud events, to be received. These triggers may prompt a corresponding transformer (here, HTTP->CQN transformer 120 or AMQP->CQN transformer 122) to convert the corresponding command or message into a CQN format to be used by the application logic.
[0025] It should be noted that the component model 114 may have defined interfaces in the opposite direction (e.g., CQN->HTTP and / or CQN->AMQN), in which case the configurable processing framework may create an HTTP->CQN transformer 120 and an AMQP->CQN transformer 122, essentially inverting the interfaces defined by the component model 114.
[0026] Similar interfaces may be used on the output side of the application logic 106 to convert the CQN output to a desired protocol, where, for example, a CQN-to-HTTP transformer 124 may convert the CQN output to HTTP format for use by a defined HTTP client 126 or a similar endpoint defined on the configurable processing framework 102. Similarly, a CQN-to-AMQP transformer 128 may convert the CQN output to AMQP format for use by a defined AMQP client 130 or a similar endpoint defined on the configurable processing framework 102.
[0027] In one example embodiment, the component model 114 may utilize the WebAssembly component model.
[0028] The WebAssembly component model is a way to organize and structure applications built using WebAssembly (WASM). The WebAssembly component model provides a modular and composable approach to building web applications, allowing developers to decompose their applications into smaller, reusable components that can be combined to build complete applications.
[0029] In the WebAssembly component model, each component is packaged as a WASM module and designed to expose a well-defined set of APIs. These modules can then be imported and used by other modules, allowing developers to build applications by composing smaller, reusable components.
[0030] One of the main benefits of the WebAssembly component model is that it allows developers to write code in a variety of programming languages, including C, C++, Rust, and others, and then compile it to WASM, making it possible to leverage existing codebases and libraries and take advantage of the strengths of different programming languages.
[0031] Additionally, the WebAssembly component model provides a way to isolate components from each other and help ensure that a failure in one component does not affect the overall safety of the application, making large, complex applications easier to build and maintain.
[0032] Overall, the WebAssembly component model provides a flexible and scalable approach to building web applications, enabling developers to compose applications from smaller, reusable components and do so using a variety of programming languages.
[0033] The compiled bytecode format 112 of the custom code 108 may then be loaded into the configurable processing framework 102 as part of the application logic 106 .
[0034] In another example embodiment, the speed and isolation capabilities of the WebAssembly (or similar) component model are leveraged to enable application developers to create multi-tenant applications. Isolation prevents one tenant from reading data, subverting code, or reading from another tenant's file system.
[0035] Note also that recent developments in allowing WASM to run outside of the browser (allowing WASM to make system calls) and support for a variety of languages to be compiled into WASM may make WASM suitable for running in a serverless fashion.
[0036] 2 is a flow diagram illustrating a method 200 for creating custom code in a software environment according to one example embodiment. The operations of FIG. 2 may be performed by a configurable processing framework, such as configurable processing framework 102 of FIG.
[0037] At operation 202, a data model is accessed. The data model may have been created by an application developer, for example, using CDS. At operation 204, the data model is compiled into a component model. The component model may be, for example, a WebAssembly component model.
[0038] In operation 206, the component model is compiled into a user language. The user language can be any language chosen by the application designer, as long as the user language can be compiled into a bytecode format, such as WebAssembly. An example of a user language is Rust.
[0039] At this point, the application developer uses the compiled component model to create custom code in a user language, although the operations in the flow diagram are not shown in the flow diagram because they are performed by a configurable processing framework. The application developer then compiles this custom code into a bytecode format, such as WebAssembly.
[0040] In operation 208, the configurable processing framework loads the compiled custom code (compiled in bytecode format) as a generic server written in a host language capable of processing the operations defined by the data model. The host language is any language selected by the framework developer. One example of a host language is Core Query Notation.
[0041] At this stage, application logic (such as application logic 106 of FIG. 1) is set up and ready to execute. This execution may include receiving requests and generating requests or events based on the received requests. FIG. 3 illustrates a method 300 for using custom code in a software environment, according to one exemplary embodiment. At operation 302, a request in a first protocol is received. At operation 304, a first transformer is used to transform the request in the first protocol into a host language. This first transformer is specifically designed to transform requests in the first protocol into the host language. In one exemplary embodiment, the first protocol is HTTP and the host language is Core Query Notation.
[0042] In operation 306, the compiled custom code loaded into the configurable processing framework in operation 208 of FIG. 2 processes the request that has been converted to the host language using a first transformer. The output from this is some action, such as a database or other data request. In operation 308, a second transformer is used to convert this output to a first protocol. The second transformer is specifically designed to convert the host language to the first protocol. In operation 310, a first client operating on the message in the first protocol processes the converted output.
[0043] At operation 312, a request in a second protocol is received. At operation 314, the request in the second protocol is transformed into a host language using a third transformer. The third transformer is specifically designed to transform the request in the second protocol into the host language. In one exemplary embodiment, the second protocol is AMQP.
[0044] At operation 316, the compiled custom code processes the request, which has been converted to the host language using a third transformer. The output from here is some action, such as a database or other data request. At operation 318, a fourth transformer is used to convert this output to a second protocol. The fourth transformer is specifically designed to convert the host language to the second protocol. At operation 320, a second client operating on messages in the second protocol processes the converted output.
[0045] In light of the above disclosure, various examples are described below. It should be noted that one or more features of the examples, either independently or in combination, should be considered to be within the present disclosure of the present application.
[0046] Example 1. At least one hardware processor; A computer readable medium having instructions stored thereon; the instructions, when executed by the at least one hardware processor, cause the at least one hardware processor to: Accessing the data model; Compiling the data model into a component model; compiling the component model into a user programming language, the user programming language being a programming language that is compilable into a bytecode format; accessing custom code written in a user language, the custom code including a compiled component model; Compiling the custom code into bytecode format; loading the compiled custom code into a framework that executes a host programming language; Executes compiled custom code to create a server process A system that causes a system to perform an operation including:
[0047] Example 2. The system of example 1, wherein the server process further includes at least one interface, based on the component model, that converts input to the custom code from a first format to a host programming language, and at least one interface, based on the component model, that converts output from the custom code from the host programming language to the first format.
[0048] Example 3. The system of example 2, wherein the first format is HyperText Transfer Protocol (HTTP).
[0049] Example 4. The system of any of examples 1 to 3, wherein the bytecode format is WebAssembly.
[0050] Example 5. The system of example 4, wherein the component model is a WebAssembly component model (WASM).
[0051] Example 6. The system of any of Examples 1 to 5, wherein the host programming language is Core Query Notation.
[0052] Example 7. The system of any of Examples 1 to 6, wherein the framework compiles the compiled component model into an interface that conforms to a host programming language.
[0053] Example 8. Accessing a data model; Compiling the data model into a component model; compiling the component model into a user programming language, the user programming language being a programming language that can be compiled into a bytecode format; accessing custom code written in a user programming language, the custom code including a compiled component model; Compiling the custom code into a bytecode format; loading the compiled custom code into a framework executing a host programming language; Execute the compiled custom code to create a server process. A method comprising:
[0054] Example 9. The method of example 8, wherein the server process further includes at least one interface, based on the component model, that converts input to the custom code from the first format to the host programming language, and at least one interface, based on the component model, that converts output from the custom code from the host programming language to the first format.
[0055] Example 10. The method of example 9, wherein the first format is HyperText Transfer Protocol (HTTP).
[0056] Example 11. The method of any of examples 8 to 10, wherein the bytecode format is WebAssembly.
[0057] Example 12. The method of example 11, wherein the component model is the WebAssembly Component Model (WASM).
[0058] Example 13. The method of any of examples 8 to 12, wherein the host programming language is Core Query Notation.
[0059] Example 14. The method of any of examples 8 to 13, wherein the framework compiles the compiled component model into an interface that conforms to the host programming language.
[0060] Example 15. A non-transitory machine-readable medium having stored thereon instructions, the instructions, when executed by one or more processors, causing the one or more processors to: Accessing the data model; Compiling the data model into a component model; compiling the component model into a user programming language, the user programming language being a programming language that is compilable into a bytecode format; accessing custom code written in a user language, the custom code including a compiled component model; Compiling the custom code into bytecode format; loading the compiled custom code into a framework that executes a host programming language; Executes compiled custom code to create a server process A non-transitory machine-readable medium for causing a user to perform operations including:
[0061] Example 16. The non-transitory machine-readable medium of example 15, wherein the server process further includes at least one interface, based on the component model, that converts input to the custom code from a first format to a host programming language, and at least one interface, based on the component model, that converts output from the custom code from the host programming language to the first format.
[0062] Example 17. The non-transitory machine-readable medium of example 16, wherein the first format is a HyperText Transfer Protocol (HTTP).
[0063] Example 18. The non-transitory machine-readable medium of any of Examples 15 to 17, wherein the bytecode format is WebAssembly.
[0064] Example 19. The non-transitory machine-readable medium of example 18, wherein the component model is the WebAssembly Component Model (WASM).
[0065] Example 20. The non-transitory machine-readable medium of any of Examples 15 to 19, wherein the host programming language is Core Query Notation.
[0066] FIG. 4 is a block diagram 400 illustrating a software architecture 402 that may be installed on any one or more of the devices described above. It will be appreciated that FIG. 4 is merely a non-limiting example of a software architecture and that many other architectures may be implemented to facilitate the functionality described herein. In various embodiments, the software architecture 402 is implemented by hardware, such as machine 500 of FIG. 5, which includes a processor 510, memory 530, and input / output (I / O) components 550. In this exemplary architecture, the software architecture 402 may be conceptualized as a stack of layers, where each layer may provide specific functionality. For example, the software architecture 402 includes layers such as an operating system 404, a library 406, a framework 408, and an application 410. Optionally, the application 410 invokes API calls 412 through the software stack and receives messages 414 in response to the API calls 412, according to some embodiments.
[0067] In various implementations, the operating system 404 manages hardware resources and provides common services. The operating system 404 includes, for example, a kernel 420, services 422, and drivers 424. The kernel 420 acts as an abstraction layer between the hardware and other software layers according to some embodiments. For example, the kernel 420 provides memory management, processor management (e.g., scheduling), component management, networking, and security configuration, among other functionality. The services 422 may provide other common services to the other software layers. The drivers 424 are responsible for controlling or interacting with the underlying hardware according to some embodiments. For example, the drivers 424 may include a display driver, a camera driver, a Bluetooth® or Bluetooth® Low-Energy driver, a flash memory driver, a serial communication driver (e.g., a Universal Serial Bus (USB) driver), a Wi-Fi® driver, an audio driver, a power management driver, and the like.
[0068] In some embodiments, libraries 406 provide a low-level common infrastructure that applications 410 utilize. Libraries 406 may include system libraries 430 (e.g., C standard libraries) that may provide functions such as memory allocation functions, string processing functions, mathematical functions, etc. Additionally, libraries 406 may include API libraries 432 such as media libraries (e.g., libraries for supporting the presentation and manipulation of various media formats such as Moving Picture Expert Group 4 (MPEG4), Advanced Video Coding (H.264 or AVC), Moving Picture Expert Group Layer 3 (MP3), Advanced Audio Coding (AAC), Adaptive Multi-Rate (AMR) audio codec, Joint Photographic Expert Group (JPEG or JPG), or Portable Network Graphics (PNG)), graphics libraries (e.g., an OpenGL framework used for rendering in 2D and 3D within a graphical context on a display), database libraries (e.g., SQLite for providing various relational database functions), web libraries (e.g., WebKit for providing web browsing functionality), etc. The library 406 may include a wide variety of other libraries 434 for providing many other APIs to the application 410 .
[0069] Framework 408, according to some embodiments, provides a high-level common infrastructure that applications 410 can utilize. For example, framework 408 provides various graphical user interface (GUI) functionality, high-level resource management, high-level location services, etc. Framework 408 may provide a wide spectrum of other APIs that applications 410 can utilize, some of which may be specific to a particular operating system 404 or platform.
[0070] In one exemplary embodiment, the applications 410 include a home application 450, a contacts application 452, a browser application 454, a book reader application 456, a location application 458, a media application 460, a messaging application 462, a games application 464, and a wide variety of other applications, such as a third party application 466. According to some embodiments, the applications 410 are programs that perform functions defined within the programs. A variety of programming languages may be employed to create one or more of the applications 410, structured in a variety of ways, such as object-oriented programming languages (e.g., Objective-C, Java, or C++) or procedural programming languages (e.g., C or assembly language). In a particular example, the third party application 466 (e.g., an application developed using an Android™ or iOS™ software development kit (SDK) by an entity other than the particular platform vendor) may be mobile software that executes on a mobile operating system, such as iOS™, Android™, Windows™ Phone, or another mobile operating system. In this example, the third party application 466 can invoke API calls 412 provided by the operating system 404 to facilitate the functionality described herein.
[0071] FIG. 5 illustrates a diagrammatic representation of a machine 500 in the form of a computer system within which a set of instructions may be executed to cause the machine 500 to perform any one or more of the methodologies discussed herein, according to one exemplary embodiment. Specifically, FIG. 5 illustrates a diagrammatic representation of a machine 500 in the form of an exemplary computer system within which instructions 516 (e.g., software, programs, applications, applets, apps, or other executable code) may be executed to cause the machine 500 to perform any one or more of the methodologies discussed herein. For example, the instructions 516 may cause the machine 500 to perform the methods of FIGS. 2-3. Additionally or alternatively, the instructions 516 may implement FIGS. 1-3, etc. The instructions 516 transform a general non-programmable machine 500 into a specific machine 500 programmed to perform the functions described and illustrated in the described manner. In alternative embodiments, the machine 500 may operate as a standalone device or be coupled (e.g., networked) to other machines. In a networked deployment, the machine 500 may operate in the capacity of a server machine or a client machine in a server-client network environment, or as a peer machine in a peer-to-peer (or distributed) network environment. The machine 500 may include, but is not limited to, a server computer, a client computer, a personal computer (PC), a tablet computer, a laptop computer, a netbook, a set-top box (STB), a personal digital assistant (PDA), an entertainment media system, a cellular phone, a smartphone, a mobile device, a wearable device (e.g., a smart watch), a smart home device (e.g., a smart appliance), other smart devices, a web appliance, a network router, a network switch, a network bridge, or any machine capable of executing, serially or otherwise, instructions 516 that specify activities performed by the machine 500.Additionally, although only a single machine 500 is shown, the term "machine" should still be understood to include a collection of machines 500 that individually or together execute instructions 516 to perform any one or more of the methodologies discussed herein.
[0072] Machine 500 may include a processor 510, memory 530, and I / O components 550, which may be configured to communicate with one another, such as via a bus 502. In one exemplary embodiment, processor 510 (e.g., a central processing unit (CPU), a reduced instruction set computer (RISC) processor, a complex instruction set computer (CISC) processor, a graphics processing unit (GPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a radio frequency integrated circuit (RFIC), another processor, or any suitable combination thereof) may include, for example, a processor 512 and a processor 514, which may execute instructions 516. The term "processor" is intended to include a multi-core processor, which may include two or more independent processors (sometimes referred to as "cores") that may execute instructions 516 simultaneously. Although FIG. 5 shows multiple processors 510, the machine 500 may include a single processor with a single core 512, a single processor with multiple cores 512 (e.g., a multi-core processor 512), multiple processors with single cores 512, 514, multiple processors with multiple cores 512, 514, or some combination thereof.
[0073] The memory 530 may include a main memory 532, a static memory 534, and a storage unit 536, each accessible to the processor 510, such as via the bus 502. The main memory 532, the static memory 534, and the storage unit 536 store instructions 516 that implement any one or more of the methodologies or functions described herein. The instructions 516 may reside, completely or partially, in the main memory 532, in the static memory 534, in the storage unit 536, within at least one of the processors 510 (e.g., within a cache memory of the processor), or in any suitable combination thereof during its execution by the machine 500.
[0074] The I / O components 550 may include a wide variety of components for receiving input, providing output, producing output, transmitting information, exchanging information, capturing measurements, etc. The particular I / O components 550 included within a particular machine will depend on the type of machine. For example, a portable machine such as a mobile phone will likely include a touch input device or other such input mechanism, while a headless server machine will likely not include such a touch input device. It will be appreciated that the I / O components 550 may include many other components not shown in FIG. 5. The I / O components 550 are grouped according to functionality merely to simplify the following discussion, and this grouping is in no way limiting. In various exemplary embodiments, the I / O components 550 may include an output component 552 and an input component 554. Output components 552 may include visual components (e.g., a plasma display panel (PDP), a light emitting diode (LED) display, a liquid crystal display (LCD), a projector, or a cathode ray tube (CRT)), acoustic components (e.g., speakers), haptic components (e.g., vibration motors, resistive mechanisms), other signal generators, etc. Input components 554 may include alphanumeric input components (e.g., a keyboard, a touch screen configured to receive alphanumeric input, a photo-optical keyboard, or other alphanumeric input component), point-based input components (e.g., a mouse, touchpad, trackball, joystick, motion sensor, or another pointing instrument), tactile input components (e.g., physical buttons, a touch screen that provides the location and / or force of a touch or touch gesture, or other tactile input component), audio input components (e.g., a microphone), etc.
[0075] In further exemplary embodiments, the I / O component 550 may include a biometric component 556, a motion component 558, an environmental component 560, or a position component 562, among other broad components. For example, the biometric component 556 may include components for detecting expressions (e.g., hand expressions, facial expressions, voice expressions, body gestures, or eye movements), for measuring biosignals (e.g., blood pressure, heart rate, body temperature, sweat, or brain waves), for identifying a person (e.g., voice identification, retinal identification, face identification, fingerprint identification, or electroencephalogram-based identification), etc. The motion component 558 may include an acceleration sensor component (e.g., an accelerometer), a gravity sensor component, a rotation sensor component (e.g., a gyroscope), etc. The environmental components 560 may include, for example, a lighting sensor component (e.g., a photometer), a temperature sensor component (e.g., one or more thermometers to detect standby temperature), a humidity sensor component, a pressure sensor component (e.g., a barometer), an acoustic sensor component (e.g., one or more microphones to detect background noise), a proximity sensor component (e.g., an infrared sensor to detect nearby objects), a gas sensor (e.g., a gas detection sensor to detect concentrations of harmful gases for safety purposes or to measure pollutants in the air), or other components that may provide indications, measurements, or signals corresponding to the surrounding physical environment. The position components 562 may include a location sensor component (e.g., a global positioning system (GPS) receiver component), an altitude sensor component (e.g., an altimeter, or a barometer to detect air pressure, which may be a derived source of altitude), an orientation sensor component (e.g., a magnetometer), etc.
[0076] Communications may be implemented using a wide variety of technologies. I / O component 550 may include a communication component 564 operable to couple machine 500 to network 580 or device 570 via coupling 582 and coupling 572, respectively. For example, communication component 564 may include a network interface component or another suitable device for interfacing with network 580. In further examples, communication component 564 may include a wired communication component, a wireless communication component, a cellular communication component, a near field communication (NFC) component, a Bluetooth component (e.g., Bluetooth Low Energy), a Wi-Fi component, and other communication components for providing communication via other modalities. Device 570 may be another machine or any of a wide variety of peripheral devices (e.g., coupled via USB).
[0077] Moreover, the communication component 564 may detect the identifier or may include a component operable to detect the identifier. For example, the communication component 564 may include a radio frequency identification (RFID) tag reader component, an NFC smart tag detection component, an optical reader component (e.g., an optical sensor for detecting one-dimensional barcodes such as Universal Product Code (UPC) barcodes, multi-dimensional barcodes such as QR Code, Aztec Code, Data Matrix, Dataglyph, MaxiCode, PDF417, Ultracode, UCC RSS-2D barcodes, and other optical codes), or an acoustic detection component (e.g., a microphone for identifying tagged audio signals). In addition, various information may be derived via the communication component 564, such as location via Internet Protocol (IP) geolocation, location via Wi-Fi signal triangulation, location by detection of NFC beacon signals that may indicate a particular location, etc.
[0078] Various memories (i.e., 530, 532, 534, and / or memory of processor 510) and / or storage units 536 may store one or more sets of instructions 516 and data structures (e.g., software) that perform or are utilized by any one or more of the methodologies or functions described herein. These instructions (e.g., instructions 516), when executed by processor 510, cause various operations to implement the disclosed embodiments.
[0079] As used herein, the terms "machine storage medium", "device storage medium", and "computer storage medium" mean the same thing and may be used interchangeably. These terms refer to a single or multiple storage devices and / or media (e.g., a central or distributed database, and / or associated caches and servers) that store executable instructions and / or data. These terms should therefore be understood to include optical and magnetic media, including, but not limited to, solid-state memory, and memory internal or external to the processor. Specific examples of machine storage media, computer storage media, and / or device storage media include, by way of example, non-volatile memory including semiconductor memory devices, e.g., erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), field programmable gate arrays (FPGA), and flash memory devices; magnetic disks, such as internal hard disks and removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks. The terms "machine storage medium," "computer storage medium," and "device storage medium" specifically exclude carrier waves, modulated data signals, and other such media, at least some of which fall under the scope of the term "signal media," discussed below.
[0080] In various exemplary embodiments, one or more portions of network 580 may be an ad-hoc network, an intranet, an extranet, a virtual private network (VPN), a local area network (LAN), a wireless LAN (WLAN), a wide area network (WAN), a wireless WAN (WWAN), a metropolitan area network (MAN), the Internet, a portion of the Internet, a portion of the public switched telephone network (PSTN), a plain old telephone service (POTS) network, a cellular telephone network, a wireless network, a Wi-Fi network, another type of network, or a combination of two or more such networks. For example, network 580 or a portion of network 580 may include a wireless or cellular network, and coupling 582 may be a code division multiple access (CDMA) connection, a global system for mobile communications (GSM) connection, or another type of cellular or wireless coupling. In this example, the coupling 582 may implement any of various types of data transfer technologies, such as Single Carrier Radio Transmission technology (1xRTT), Evolution Data Optimized (EVDO) technology, General Packet Radio Service (GPRS) technology, Enhanced Data Rates for GSM Evolution (EDGE) technology, Third Generation Partnership Project (3GPP®) including 3G, Fourth Generation Wireless (4G) networks, Universal Mobile Telecommunications System (UMTS), High Speed Data Packet Access (HSPA), Worldwide Interoperability for Microwave Access (WiMAX), Long Term Evolution (LTE) standards, other technologies defined by various standards setting organizations, other long-range protocols, or other data transfer technologies.
[0081] The instructions 516 may be transmitted or received over the network 580 using a transmission medium via a network interface device (e.g., a network interface component included within the communications component 564) and utilizing any one of several well-known transfer protocols (e.g., Hypertext Transfer Protocol [HTTP]). Similarly, the instructions 516 may be transmitted or received using a transmission medium via a connection 572 (e.g., a peer-to-peer connection) to the device 570. The terms "transmission medium" and "signal medium" mean the same thing and may be used interchangeably in this disclosure. The terms "transmission medium" and "signal medium" should be understood to include any intangible medium capable of storing, encoding, or carrying instructions 516 for execution by the machine 500, including digital or analog communication signals or other intangible media for facilitating communication of such software. Thus, the terms "transmission medium" and "signal medium" should be understood to include any form of modulated data signal, carrier wave, and the like. The term "modulated data signal" means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal.
[0082] The terms "machine-readable medium," "computer-readable medium," and "device-readable medium" mean the same thing and may be used interchangeably in this disclosure. These terms are defined to include both machine storage media and transmission media. Thus, these terms include both storage devices / media and carrier waves / modulated data signals. [Explanation of symbols]
[0083] 100 Systems 102 Configurable Processing Framework 104 Data Model 106 Application Logic 108 Custom Code 110 User Language 112 Byte Code Format 114 Component Model 116 HTTP Trigger 118 Advanced Message Queuing Protocol (AMQP) Triggers 120 HTTP->CQN Transformer 122 AMQP -> CQN Transformer 124 CQN->HTTP Transformer 126 HTTP Client 128 CQN->AMQP Transformer 130 AMQP Client 400 Block Diagram 402 Software Architecture 404 Operating System 406 Library 408 Framework 410 Application 412 API call 414 Message 420 Kernel 422 Service 424 Driver 430 System Library 432 API Library 434 Other Libraries 450 Home Application 452 Contact Application 454 Browser Application 456 Book Reader Application 458 Location Application 460 Media Applications 462 Messaging Applications 464 Game Applications 466 Third Party Applications 500 Non-programmable machines 502 Bus 510 Multiple Processors 512 processor 514 processor 516 Command 530 Memory 532 Main memory 534 Static Memory 536 Storage Unit 550 Input / Output (I / O) Components 552 Output Component 554 Input Component 556 Biometric Components 558 Movement Components 560 Environmental Components 562 Position Component 564 Communication Components 570 devices 572 Combine 580 Network 582 Combine
Claims
1. at least one hardware processor; A computer readable medium having instructions stored thereon; Equipped with The instructions, when executed by the at least one hardware processor, cause the at least one hardware processor to: Accessing the data model; and compiling the data model into a component model; compiling the component model into a user programming language, the user programming language being a programming language that is compilable into a bytecode format; accessing custom code written in the user programming language, the custom code including the compiled component model; compiling the custom code into the bytecode format; loading the compiled custom code into a framework that executes a host programming language; executing the compiled custom code to create a server process; A system that causes a system to perform an operation including:
2. The server process: at least one interface, based on the component model, that converts input to the custom code from a first format to the host programming language; at least one interface, based on the component model, that converts output from the custom code from the host programming language to the first format; The system of claim 1 further comprising:
3. The system of claim 2 , wherein the first format is HyperText Transfer Protocol (HTTP).
4. The system of claim 1 , wherein the bytecode format is WebAssembly.
5. 5. The system of claim 4, wherein the component model is the WebAssembly Component Model (WASM).
6. The system of claim 1 , wherein the host programming language is Core Query Notation.
7. The system of claim 1 , wherein the framework compiles the compiled component model into an interface compatible with the host programming language.
8. accessing a data model; compiling the data model into a component model; compiling the component model into a user programming language, the user programming language being a programming language that can be compiled into a bytecode format; accessing custom code written in the user programming language, the custom code including the compiled component model; compiling the custom code into the bytecode format; loading the compiled custom code into a framework executing a host programming language; executing the compiled custom code to create a server process; A method comprising:
9. The server process: at least one interface, based on the component model, that converts input to the custom code from a first format to the host programming language; at least one interface, based on the component model, that converts output from the custom code from the host programming language to the first format; 9. The method of claim 8, further comprising:
10. 10. The method of claim 9, wherein the first format is HyperText Transfer Protocol (HTTP).
11. The method of claim 8 , wherein the bytecode format is WebAssembly.
12. The method of claim 11 , wherein the component model is the WebAssembly Component Model (WASM).
13. The method of claim 8 , wherein the host programming language is Core Query Notation.
14. The method of claim 8 , wherein the framework compiles the compiled component model into an interface compatible with the host programming language.
15. A non-transitory machine-readable medium having instructions stored thereon, comprising: The instructions, when executed by one or more processors, cause the one or more processors to: Accessing the data model; and compiling the data model into a component model; compiling the component model into a user programming language, the user programming language being a programming language that is compilable into a bytecode format; accessing custom code written in the user programming language, the custom code including the compiled component model; compiling the custom code into the bytecode format; loading the compiled custom code into a framework that executes a host programming language; executing the compiled custom code to create a server process; A non-transitory machine-readable medium for causing a user to perform operations including:
16. The server process: at least one interface, based on the component model, that converts input to the custom code from a first format to the host programming language; at least one interface, based on the component model, that converts output from the custom code from the host programming language to the first format; 20. The non-transitory machine-readable medium of claim 15, further comprising:
17. 17. The non-transitory machine-readable medium of claim 16, wherein the first format is HyperText Transfer Protocol (HTTP).
18. 16. The non-transitory machine-readable medium of claim 15, wherein the bytecode format is WebAssembly.
19. 20. The non-transitory machine-readable medium of claim 18, wherein the component model is the WebAssembly Component Model (WASM).
20. 16. The non-transitory machine-readable medium of claim 15, wherein the host programming language is Core Query Notation.
Citation Information
Patent Citations
Precompiler and compiler calling control system
JP1987216040A
Method and apparatus for data exchange using run-time code generator and translator
JP2003518291A
