Combinable processing framework based on Web assembly component model

Through the composable processing framework and WebAssembly component model, the problem of glue code in software application development is solved, efficient work across programming languages ​​and services is achieved, development time is reduced, and application performance and stability are improved.

CN118626092APending Publication Date: 2024-09-10SAP SE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311071123.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-07
Filing Date
2023-08-24
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In the existing technology, software application development requires a large amount of glue code to connect different programming languages, services, and protocols, resulting in long development time and difficult maintenance, especially when the service changes and the code needs to be rewritten.

Method used

Adopt a composable processing framework, compile the data model into a component model, and use the WebAssembly component model and core query notation to allow application developers to create customized code in the programming language of choice, reducing the need for glue code and enabling cross-programming languages ​​and services efficient work.

Benefits of technology

It reduces development and maintenance time, allows developers to focus on the application logic itself, improves code reusability and application performance, and ensures application stability through modularization and isolation mechanisms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626092A
    Figure CN118626092A
Patent Text Reader

Abstract

In some embodiments, a combinable processing framework based on a Web assembly component model is provided. A system comprising: at least one hardware processor; and a computer readable medium storing instructions that, when executed by the at least one hardware processor, cause the at least one hardware processor to perform operations including: accessing a data model; compiling the data model into a component model; compiling the component model into a user programming language, wherein the user programming language is a programming language which can be compiled into a bytecode format; accessing a custom code written in a user programming language, the custom code including the compiled component model; compiling the customized code into a byte code format; loading the compiled customized code into a framework for operating a host programming language; and executing the compiled custom code to create a server process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This document generally relates to computer software application development. More specifically, this document relates to the use of a composable processing framework based on a web assembly component model. Background Art

[0002] Currently, software application code tends to be highly fragmented, including a combination of one or more programming languages, outbound services (e.g., databases, message brokers, etc.) and inbound services (such as HyperText Transfer Protocol (HTTP) services (including protocols such as GraphQL and OData) and message brokers). The result is that application developers need to create a lot of so-called "glue code". Glue code refers to code that connects separate software components or systems together in order to coordinate their interactions and facilitate communication. Glue code acts as "glue", gluing components together and enabling them to work as a single integrated system. Glue code is typically used to integrate different APIs, data formats, and protocols, and is often written in low-level programming languages ​​such as C or C++. It is typically minimal, simple, and focused on facilitating the integration of components rather than providing any significant functionality of its own. Summary of the invention

[0003] In some embodiments, a system includes: at least one hardware processor; and a computer-readable medium storing instructions, which, when executed by the at least one hardware processor, cause the at least one hardware processor to perform operations, the operations including: accessing a data model; compiling the data model into a component model; compiling the component model into a user programming language, which is 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 a bytecode format; loading the compiled custom code into a framework running a host programming language; and executing the compiled custom code to create a server process.

[0004] In some embodiments, a method includes: accessing a data model; compiling the data model into a component model; compiling the component model into a user programming language, which is a programming language that can be compiled into a bytecode format; accessing custom code written in the user programming language, which custom code includes the compiled component model; compiling the custom code into a bytecode format; loading the compiled custom code into a framework running a host programming language; and executing the compiled custom code to create a server process.

[0005] In some embodiments, a non-transitory machine-readable medium stores instructions that, when executed by one or more processors, cause the one or more processors to perform operations including: accessing a data model; compiling the data model into a component model; compiling the component model into a user programming language, which is a programming language that can be compiled into a bytecode format; accessing custom code written in the user language, which custom code includes the compiled component model; compiling the custom code into a bytecode format; loading the compiled custom code into a framework running a host programming language; and executing the compiled custom code to create a server process. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] The present disclosure is illustrated by way of example, and not limitation, in the figures of the accompanying drawings in which like references indicate similar elements.

[0007] Figure 1 is a block diagram illustrating a system including a composable processing framework according to an example embodiment.

[0008] Figure 2 is a flow chart illustrating a method of creating custom code in a software environment according to an example embodiment.

[0009] Figure 3 is a diagram illustrating a method of using custom codes in a software environment according to an example embodiment.

[0010] Figure 4 is a block diagram illustrating the architecture of software that may be installed on any one or more of the devices described above.

[0011] Figure 5 A diagram is shown of a machine in the form of a computer system according to an example embodiment in which a set of instructions may be executed to cause the machine to perform any one or more of the methodologies discussed herein. DETAILED DESCRIPTION

[0012] The following description discusses illustrative systems, methods, techniques, instruction sequences, and computer program products. In the following description, for the purpose of explanation, many specific details are set forth in order to provide an understanding of various example embodiments of the present subject matter. However, it is clear to those skilled in the art that various example embodiments of the present subject matter can be practiced without these specific details.

[0013] Writing a lot of glue code can be very time-consuming for application developers, not only during the development phase, but also in later stages. For example, if the reused code is not written in the host's programming language, even if the code itself is reused, it needs to be rewritten. If the service client (inbound or outbound) is not available for the host's programming language, the service client needs to be built. In addition, changing the service also requires changes to the code.

[0014] In an example embodiment, a general, composable abstraction is provided that allows 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 only be developed once by the framework developer using the programming language of their choice.

[0015] More specifically, the composable processing framework provides a general purpose server capable of processing operations defined by a data model created by an application developer. The composable processing framework can utilize language-independent notation, such as core query notation. Core query notation is a syntax for expressing queries in a structured and standardized manner. It can be used in database management systems and search engines to allow users to search and retrieve specific information from large data sets in an organized and efficient manner. The syntax typically includes elements such as keywords, operators, and logical statements that are combined to form queries, which can then be executed to retrieve relevant information from a data set. However, in essence, it can be used as an abstract way to encode the intent of a query (e.g., select, create, etc.).

[0016] Although many aspects of a service can be defined using the data model itself, in many cases, the data model alone is not enough to create a complete service. To this end, application developers require some level of custom code. However, when application developers are limited to creating custom code using only the programming language utilized by the general server (called the host language, often Java), they may find it difficult to create custom code. Therefore, in an example embodiment, the composable processing framework allows application developers to create custom code in the programming language of their choice, as long as the programming language can be compiled into a bytecode format, such as WebAssembly. The custom code is compiled into the bytecode format and then loaded into the composable processing framework, where it can be interacted with via core query notation commands.

[0017] WebAssembly (WASM) is a low-level binary instruction format for stack-based virtual machines designed to run in web browsers. In an example embodiment, the WebAssembly runtime is used to execute WebAssembly modules on a server and allows these modules to be composed of interfaces based on the WebAssembly component model.

[0018] These interfaces can be written in WIT (WebAssembly Interface). WIT is a WASM specification that defines a set of rules and conventions for describing the interface between WASM modules and the host environment, allowing them to communicate and interoperate.

[0019] In more professional terms, WIT is a collection of types and functions that defines how data is passed between WebAssembly modules and the host environment, as well as how to call functions and return results. This specification provides a way for WASM modules to declare their function types and the types of data they expect and return, which enables safe and efficient communication between modules and the host environment.

[0020] More specifically, WIT Bindgen can be used. WIT Bindgen is a tool that uses the WIT specification to generate host bindings for WebAssembly modules based on the interface description of the WebAssembly module. In essence, WIT Bindgen takes a WebAssembly module that has been annotated with WIT type information and generates a host language binding that can be used to call the module's functions and access its data.

[0021] WIT Bindgen is part of the WebAssembly tooling ecosystem for the Rust programming language. It is designed to work with the wasm-bindgen tool, which provides similar functionality for generating JavaScript bindings for WebAssembly modules.

[0022] A key benefit of WIT Bindgen is that it automates the process of generating host language bindings, which can be a time-consuming and error-prone process 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 logic of the module in the target language.

[0023] The WebAssembly component model is a portable, load- and runtime-efficient binary format that allows web applications to be composed of reusable components written in WASM, which are then assembled into larger wholes to form the final application. This approach allows developers to take advantage of the benefits of WASM, such as performance and security, while also providing a modular and maintainable structure for their applications. The component model enables developers to write reusable code in WASM that can be shared between multiple applications to reduce duplication and improve the overall quality of the code. In addition, the component model improves the overall performance of applications 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 properties.

[0024] Figure 1 1 is a block diagram illustrating a system 100 including a composable processing framework 102 according to an example embodiment. An application developer creates a data model 104, which can then be compiled into application logic 106 in the composable processing framework 102. In an example embodiment, the data model 104 can be created with data and service objects, such as a Core Data and Services (CDS) model. CDS models are plain JavaScript objects that adhere to the core schema notation. CDS models are written in the CDS data modeling language. CDS enables the centralized definition of business entities and their relationships, as well as the definition of services that operate on these entities. This allows developers to build applications that can share and reuse business data and logic, thereby reducing duplication of effort and increasing the consistency and accuracy of data throughout the enterprise.

[0025] In some example embodiments, a CDS component (not shown) may be provided that includes a common set of domain-specific languages ​​(DSLs) and services. The CDS component may allow semantically rich data models to be defined and consumed as components of a database structure, thereby allowing data modeling and retrieval and processing of data to be elevated to a higher semantic level that is closer to the conceptual thinking of domain experts.

[0026] Specifically, CDS components implement higher-level domain-specific languages ​​(DSLs) and services based on the entity-relationship model (ERM). The Data Definition Language (DDL) is used to define a semantically rich data model, including data types, related metadata, and database organization (e.g., columns and tables). The Query Language (QL) is used to conveniently and efficiently read data based on the data model. It is also used to define views within the data model. The Expression Language (EL) is used to specify calculated fields, default values, constraints, etc. within the query. Calculated fields, default values, and constraints can be specified for elements in the data model.

[0027] As described above, although the data model 104 itself can be used to create services in the application logic 106, it cannot be used to create all the functionality of many services. To do this, some level of custom code is required. Thus, in an example embodiment, the application developer also creates custom code 108 in a user language 110. The user language 110 can 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.

[0028] Optionally, the component model 114 may also 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 by the composable processing format, either in their original form or in reverse form.

[0029] More specifically, the component model may generate one or more interfaces that may be used to translate between the core query notation and other formats utilized by services or entities that interact with the composable processing framework 102 .

[0030] Developers of the composable processing framework 102 can 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. It provides a reliable asynchronous communication method for applications by exchanging messages via a message broker. AMQP is designed to support a wide range of messaging use cases, including queuing, publish / subscribe, and request / reply, and it has become a popular choice for systems integrating financial, healthcare, and logistics industries. AMQP defines a standard line-level protocol for message-oriented middleware, which includes a set of rules for encoding and decoding messages and specifications for the behavior of message brokers. This makes different implementations of AMQP interoperable, allowing applications written in different programming languages ​​to communicate with each other.

[0031] Triggers 116 and 118 listen for corresponding messages to be received and trigger actions when received. For example, HTTP trigger 116 listens for HTTP commands to be received, such as HTTP ODATA requests, and AMQP trigger 118 listens for AMQP messages to be received, such as AMQP message cloud events. The trigger can prompt the corresponding converter (here HTTP->CQN converter 120 or AMQP->CQN converter 122) to translate the corresponding command or message into the CQN format used by the application logic.

[0032] Notably, since the component model 114 may have defined interfaces in the opposite direction (e.g., CQN->HTTP and / or CQN->AMQN), the composable processing framework may essentially reverse the interfaces defined by the component model 114 to create the HTTP->CQN converter 120 and the AMQP->CQN converter 122.

[0033] A similar interface may be used on the output side of the application logic 106 to convert the CQN output into a desired protocol. Here, for example, the CQN->HTTP converter 124 may convert the CQN output into HTTP format for use by a defined HTTP client 126 or a similar endpoint defined on the composable processing framework 102. Similarly, the CQN->AMQP converter 128 may convert the CQN output into AMQP format for use by a defined AMQP client 130 or a similar endpoint defined on the composable processing framework 102.

[0034] In an example embodiment, the component model 114 may utilize a WebAssembly component model.

[0035] The WebAssembly component model is a way to organize and structure applications built with WebAssembly (WASM). It 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.

[0036] In the WebAssembly component model, each component is packaged as a WASM module and is designed to expose a collection of well-defined APIs. These modules can then be imported and used by other modules, allowing developers to build applications by combining smaller, reusable components.

[0037] A key benefit of the WebAssembly component model is that it allows developers to write code in a variety of programming languages ​​(including C, C++, Rust, etc.) and then compile it into WASM. This makes it possible to leverage existing code bases and libraries and take advantage of the strengths of different programming languages.

[0038] In addition, the WebAssembly component model provides a way to isolate components from each other, helping to ensure that a failure in one component does not affect the overall stability of the application. This in turn makes it easier to build and maintain large, complex applications.

[0039] Overall, the WebAssembly component model provides a flexible and extensible approach to building web applications, allowing developers to build applications from smaller, reusable components and do so using a variety of programming languages.

[0040] The compiled bytecode format 112 of the custom code 108 may then be loaded into the composable processing framework 102 as part of the application logic 106 .

[0041] In another example embodiment, the speed and isolation capabilities of the WebAssembly (or similar) component model are leveraged to allow application developers to create multi-tenant applications. Isolation prevents one tenant from reading data, corrupting code, or reading from the file system of other tenants.

[0042] It should also be noted that with recent developments in enabling WASM to execute outside of the browser (enabling WASM to make system calls), support for a variety of languages ​​to be compiled with WASM could make them suitable for execution in a serverless manner.

[0043] Figure 2 is a flow chart illustrating a method 200 of creating custom code in a software environment according to an example embodiment. Figure 2The operations in can be handled by composable processing frameworks such as Figure 1 The composable processing framework 102) is used for execution.

[0044] At operation 202, a data model is accessed. The data model may have been created by an application developer using, for example, CDS. At operation 204, the data model is compiled into a component model. The component model may be, for example, a WebAssembly component model.

[0045] At operation 206, the component model is compiled into a user language. The user language is any language selected 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.

[0046] Although not shown in the flowchart because the operations in the flowchart are performed by the composable processing framework, at this point, the application developer uses the compiled component model to create custom code in the user language. The application developer then compiles the custom code into a bytecode format, such as WebAssembly.

[0047] At operation 208, the composable processing framework loads the compiled custom code (which is compiled in bytecode format) as a generic server written in a host language that is capable of processing the operations defined by the data model. The host language is any language chosen by the framework developer. An example of a host language is the core query notation.

[0048] At this stage, application logic (such as Figure 1 The application logic 106) has been established and is ready to execute. The execution may include receiving a request and generating a request or event based on the received request. Figure 3 3 is a diagram illustrating a method 300 of using custom code in a software environment according to an example embodiment. At operation 302, a request in a first protocol is received. At operation 304, the request in the first protocol is converted into a host language using a first converter. The first converter is specifically designed to convert the request in the first protocol into the host language. In an example embodiment, the first protocol is HTTP and the host language is core query notation.

[0049] In operation 306, Figure 2The compiled custom code loaded into the composable processing framework in operation 208 processes the request that has been converted into the host language using the first converter. The output of the processing is some action, such as a database or other data request. In operation 308, the output is converted to the first protocol using a second converter. The second converter is specially designed to convert the host language to the first protocol. In operation 310, the converted output is processed by a first client that operates on messages in the first protocol.

[0050] At operation 312, a request in a second protocol is received. At operation 314, the request in the second protocol is converted into a host language using a third converter. The third converter is specifically designed to convert the request in the second protocol into a host language. In an example embodiment, the second protocol is AMQP.

[0051] In operation 316, the compiled custom code processes the request that has been converted into the host language using the third converter. Its output is some action, such as a database or other data request. In operation 318, the output is converted to the second protocol using the fourth converter. The fourth converter is specially designed to convert the host language to the second protocol. In operation 320, the converted output is processed by the second client that operates on the message in the second protocol.

[0052] In view of the above disclosure, various examples are set forth below. It should be noted that one or more features of the examples, whether isolated or in combination, should be considered within the disclosure of the present application.

[0053] Example 1: A system comprising:

[0054] at least one hardware processor; and

[0055] A computer readable medium storing instructions that, when executed by at least one hardware processor, cause the at least one hardware processor to perform operations comprising:

[0056] Access the data model;

[0057] Compile the data model into a component model;

[0058] compiling the component model into a user programming language, where the user programming language is a programming language that can be compiled into a bytecode format;

[0059] Access custom code written in the user language, including compiled component models;

[0060] Compile custom code into bytecode format;

[0061] Loading the compiled custom code into a framework running a host programming language; and

[0062] Execute the compiled custom code to create a server process.

[0063] Example 2: A system according to Example 1, wherein the server process further includes at least one component model-based interface for translating input of the custom code from a first format into a host programming language, and at least one component model-based interface for translating output of the custom code from the host programming language into the first format.

[0064] Example 3: The system of Example 2, wherein the first format is Hypertext Transfer Protocol (HTTP).

[0065] Example 4: A system according to any of Examples 1-3, wherein the bytecode format is WebAssembly.

[0066] Example 5: The system of Example 4, wherein the component model is a WebAssembly component model (WASM).

[0067] Example 6: The system of any of Examples 1-5, wherein the host programming language is core query notation.

[0068] Example 7: The system of any of Examples 1-6, wherein the framework compiles the compiled component model into an interface compatible with a host programming language.

[0069] Example 8: A method comprising:

[0070] Access the data model;

[0071] Compile the data model into a component model;

[0072] compiling the component model into a user programming language, where the user programming language is a programming language that can be compiled into a bytecode format;

[0073] Access custom code written in a user programming language, including compiled component models;

[0074] Compile custom code into bytecode format;

[0075] Loading the compiled custom code into a framework running a host programming language; and

[0076] Execute the compiled custom code to create a server process.

[0077] Example 9: A method according to Example 8, wherein the server process further includes at least one component model-based interface for translating the input of the custom code from the first format into the host programming language, and at least one component model-based interface for translating the output of the custom code from the host programming language into the first format.

[0078] Example 10: The method of Example 9, wherein the first format is Hypertext Transfer Protocol (HTTP).

[0079] Example 11: A method according to any of Examples 8-10, wherein the bytecode format is WebAssembly.

[0080] Example 12: The method of Example 11, wherein the component model is a WebAssembly component model (WASM).

[0081] Example 13: The method of any of Examples 8-12, wherein the host programming language is core query notation.

[0082] Example 14: The method of any of Examples 8-13, wherein the framework compiles the compiled component model into an interface compatible with a host programming language.

[0083] Example 15: A non-transitory machine-readable medium storing instructions that, when executed by one or more processors, cause the one or more processors to perform operations comprising:

[0084] Access the data model;

[0085] Compile the data model into a component model;

[0086] compiling the component model into a user programming language, where the user programming language is a programming language that can be compiled into a bytecode format;

[0087] Access custom code written in the user language, including compiled component models;

[0088] Compile custom code into bytecode format;

[0089] Loading the compiled custom code into a framework running a host programming language; and

[0090] Execute the compiled custom code to create a server process.

[0091] Example 16: A non-transitory machine-readable medium according to Example 15, wherein the server process further includes at least one component model-based interface for translating input of the custom code from a first format into a host programming language, and at least one component model-based interface for translating output of the custom code from the host programming language into the first format.

[0092] Example 17: The non-transitory machine-readable medium of Example 16, wherein the first format is Hypertext Transfer Protocol (HTTP).

[0093] Example 18: A non-transitory machine-readable medium according to any of Examples 15-17, wherein the bytecode format is WebAssembly.

[0094] Example 19: The non-transitory machine-readable medium of Example 18, wherein the component model is a WebAssembly component model (WASM).

[0095] Example 20: The non-transitory machine-readable medium of any of Examples 15-19, wherein the host programming language is core query notation.

[0096] Figure 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. Figure 4 This is merely a non-limiting example of a software architecture, and it should be understood that many other architectures may be implemented to facilitate the functionality described herein. In various embodiments, the software architecture 402 is comprised of, for example, Figure 5 404, a software architecture 402, a library 406, a framework 408, and an application 410. In operation, the application 410 invokes an API call 412 through the software stack and receives a message 414 in response to the API call 412.

[0097] In various embodiments, the operating system 404 manages hardware resources and provides public services. The operating system 404 includes, for example, a kernel 420, services 422, and drivers 424. According to some embodiments, the kernel 420 acts as an abstraction layer between the hardware and other software layers. For example, the kernel 420 provides functions such as memory management, processor management (e.g., scheduling), component management, networking, and security settings. Services 422 can provide other public services to other software layers. According to some embodiments, the driver 424 is responsible for controlling or interfacing with the underlying hardware. For example, the driver 424 may include a display driver, a camera driver, or Low-energy drivers, Flash drivers, Serial communication drivers (e.g., Universal Serial Bus (USB) drivers), Drivers, audio drivers, power management drivers, etc.

[0098] In some embodiments, libraries 406 provide low-level common infrastructure utilized by applications 410. Libraries 406 may include system libraries 430 (eg, C standard library) that may provide functions such as memory allocation functions, string manipulation functions, math functions, and the like. In addition, the library 406 may include an API library 432, such as a media library (e.g., a library to support presentation and manipulation of various media formats, such as Moving Picture Experts Group-4 (MPEG4), Advanced Video Coding (H.264 or AVC), Moving Picture Experts Group Layer-3 (MP3), Advanced Audio Coding (AAC), Adaptive Multi-Rate (AMR) audio codec, Joint Photographic Experts Group (JPEG or JPG) or Portable Network Graphics (PNG)), a graphics library (e.g., an OpenGL framework for rendering in 2D and 3D in a graphics context on a display), a database library (e.g., SQLite to provide various relational database functions), a web library (e.g., WebKit to provide web browsing functions), etc. The library 406 may also include a variety of other libraries 434 to provide many other APIs to the application 410.

[0099] According to some embodiments, framework 408 provides a high-level common infrastructure that can be utilized by applications 410. For example, framework 408 provides various graphical user interface (GUI) functions, advanced resource management, advanced location services, etc. Framework 408 can provide a variety of other APIs that can be utilized by applications 410, some of which can be specific to a particular operating system 404 or platform.

[0100] In an example embodiment, 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 game application 464, and a variety of other applications, such as third-party applications 466. According to some embodiments, application 410 is a program that performs functions defined in the program. Various programming languages ​​can be used to create one or more applications 410 constructed in various ways, such as an object-oriented programming language (e.g., Objective-C, Java, or C++) or a procedural programming language (e.g., C or assembly language). In a specific example, third-party applications 466 (e.g., used by an entity other than the vendor of a particular platform using ANDROID TM or IOS TM Software development kit (SDK) applications can be developed on platforms such as IOS TM ANDROID TM , Mobile software running on a mobile operating system of a phone or another mobile operating system. In this example, third-party applications 466 can call API calls 412 provided by operating system 404 to facilitate the functions described herein.

[0101] Figure 5 A diagram of a machine 500 in the form of a computer system according to an example embodiment is shown, wherein a set of instructions may be executed to cause the machine 500 to perform any one or more of the methodologies discussed herein. In particular, Figure 5 A diagram of a machine 500 in the example form of a computer system is shown in which instructions 516 (e.g., software, programs, applications, applet, 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 Figure 2-Figure 3 Additionally or alternatively, instruction 516 may implement Figure 1-Figure 3Etc. Instructions 516 convert a general, unprogrammed machine 500 into a specific machine 500 that is programmed to perform the functions described and shown in the described manner. In alternative embodiments, the machine 500 operates as a standalone device, or can be coupled (e.g., networked) to other machines. In a networked deployment, the machine 500 can operate as 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 smart phone, a mobile device, a wearable device (e.g., a smart watch), a smart home device (e.g., a smart appliance), other smart devices, web appliances, a network router, a network switch, a bridge, or any machine capable of sequentially or otherwise executing instructions 516, which specify the actions to be taken by the machine 500. Further, while a single machine 500 is illustrated, the term "machine" shall also be taken to include a collection of machines 500 that individually or jointly execute instructions 516 to perform any one or more of the methodologies discussed herein.

[0102] The machine 500 may include a processor 510, a memory 530, and I / O components 550 that may be configured to communicate with each other, such as via a bus 502. In an example embodiment, the processor 510 (e.g., a central processing unit (CPU), a reduced instruction set computing (RISC) processor, a complex instruction set computing (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 that may execute instructions 516. The term "processor" is intended to include multi-core processors, which may include two or more independent processors (sometimes referred to as "cores") that may execute instructions 516 simultaneously. Although Figure 5 Multiple processors 510 are shown, but the machine 500 may include a single processor 512 with a single core, a single processor 512 with multiple cores (e.g., a multi-core processor 512), multiple processors 512, 514 with a single core, multiple processors 512, 514 with multiple cores, or any combination thereof.

[0103] The memory 530 may include a main memory 532, a static memory 534, and a storage unit 536, each of which may be accessed by 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 embody any one or more of the methods or functions described herein. During execution of the instructions 516 by the machine 500, the instructions 516 may also reside, completely or partially, within the main memory 532, within the static memory 534, within the storage unit 536, within at least one processor 510 (e.g., within a cache memory of a processor), or any suitable combination thereof.

[0104] I / O components 550 may include a variety of components to receive input, provide output, generate output, send information, exchange information, capture measurements, etc. The specific I / O components 550 included in 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 should be understood that I / O components 550 may include Figure 5 Many other components not shown in the figure. The I / O components 550 are grouped according to function only to simplify the following discussion, and the grouping is by no means limiting. In various example embodiments, the I / O components 550 may include output components 552 and input components 554. The output components 552 may include visual components (e.g., displays such as plasma display panels (PDP), light-emitting diode (LED) displays, liquid crystal displays (LCD), projectors, or cathode ray tubes (CRT)), auditory components (e.g., speakers), tactile components (e.g., vibration motors, resistance 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, an optical keyboard, or other alphanumeric input components), point-based input components (e.g., a mouse, a touch pad, a trackball, a joystick, a motion sensor, or another pointing tool), touch-sensitive input components (e.g., a physical button, a touch screen or other touch-sensitive input component that provides location and / or force of a touch or touch gesture), audio input components (e.g., a microphone), etc.

[0105] In further example embodiments, the I / O component 550 may include a biometric component 556, a motion component 558, an environmental component 560, or a positioning component 562, as well as a variety of other components. For example, the biometric component 556 may include components for detecting expressions (e.g., hand expressions, facial expressions, vocal expressions, body postures, or eye tracking), measuring biosignals (e.g., blood pressure, heart rate, body temperature, sweating, or brain waves), identifying people (e.g., voice recognition, retinal recognition, facial recognition, fingerprint recognition, or EEG-based recognition), 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. Environmental component 560 may include, for example, an illumination sensor component (e.g., a photometer), a temperature sensor component (e.g., one or more thermometers that detect ambient temperature), a humidity sensor component, a pressure sensor component (e.g., a barometer), an acoustic sensor component (e.g., one or more microphones that detect background noise), a proximity sensor component (e.g., an infrared sensor that detects nearby objects), a gas sensor (e.g., a gas detection sensor that detects concentrations of hazardous gases for safety or measures pollutants in the atmosphere), or other components that can provide indications, measurements, or signals corresponding to the surrounding physical environment. Positioning component 562 may include a position sensor component (e.g., a Global Positioning System (GPS) receiver component), an altitude sensor component (e.g., an altimeter or barometer that detects air pressure from which altitude can be derived), an orientation sensor component (e.g., a magnetometer), and the like.

[0106] A variety of technologies may be used to implement communications. I / O components 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 that interfaces 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, Components (e.g. Low energy), Components and other communication components to provide communication via other modalities. Device 570 can be another machine or any of a variety of peripheral devices (eg, coupled via USB).

[0107] In addition, the communication component 564 can detect an identifier or include a component operable to detect an identifier. For example, the communication component 564 can 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 bar codes (such as Universal Product Code (UPC) bar codes), multi-dimensional bar codes (such as QR codes, Aztec codes, Data Matrix, Dataglyph, MaxiCode, PDF417, Ultra Code, UCC RSS-2D bar codes) and other optical codes), or an acoustic detection component (e.g., a microphone for identifying tagged audio signals). In addition, various information can be derived via the communication component 564, such as a location via Internet Protocol (IP) geolocation, a location via Internet Protocol (IP), ... The location of signal triangulation, the location of an NFC beacon signal via detection that can indicate a specific location, etc.

[0108] Various memories (i.e., 530, 532, 534 and / or the memory of processor 510) and / or storage unit 536 may store one or more sets of instructions 516 and data structures (e.g., software) that embody or are utilized by any one or more of the methods or functions described herein. When executed by processor 510, these instructions (e.g., instructions 516) result in various operations to implement the disclosed embodiments.

[0109] As used herein, the terms "machine storage medium", "device storage medium" and "computer storage medium" have the same meaning and can be used interchangeably. These terms refer to a single or multiple storage devices and / or media (e.g., centralized or distributed databases, and / or associated caches and servers) that store executable instructions and / or data. Accordingly, these terms should be understood to include, but are not limited to, solid-state memory and optical and magnetic media, including memory internal or external to the processor. Specific examples of machine storage media, computer storage media and / or device storage media include non-volatile memory, for example, including: semiconductor memory devices, such as erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), field-programmable gate array (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 media," "computer storage media," and "device storage media" specifically exclude carrier waves, modulated data signals, and other such media, at least some of which are encompassed by the term "signal media" discussed below.

[0110] In various example 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 a public switched telephone network (PSTN), a plain old telephone service (POTS) network, a cellular telephone network, a wireless network, 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, coupling 582 can implement any of various types of data transmission 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, the Third Generation Partnership Project (3GPP) including 3G, the fourth generation wireless (4G) network, the Universal Mobile Telecommunications System (UMTS), High-Speed ​​Packet Access (HSPA), Worldwide Interoperability for Microwave Access (WiMAX), Long-Term Evolution (LTE) standards, other technologies defined by various standards setting organizations, other remote protocols, or other data transmission protocols.

[0111] The instructions 516 may be sent or received over the network 580 using a transmission medium via a network interface device (e.g., a network interface component included in the communication component 564) and utilizing any of a variety of well-known transmission protocols (e.g., the Hypertext Transfer Protocol (HTTP)). Similarly, the instructions 516 may be sent or received using a transmission medium via a coupling 572 (e.g., a peer-to-peer coupling) to the device 570. The terms "transmission medium" and "signal medium" have the same meaning 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 the instructions 516 executed by the machine 500, and include digital or analog communication signals or other intangible media used to facilitate the communication of such software. Therefore, the terms "transmission medium" and "signal medium" should be understood to include any form of modulated data signals, carrier waves, etc. The term "modulated data signal" means a signal that has one or more of its characteristics set or changed in such a way that information is encoded in the signal.

[0112] The terms "machine-readable medium," "computer-readable medium," and "device-readable medium" have the same meaning 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 / medium and carrier / modulated data signals.

Claims

1. A system, include: at least one hardware processor; as well as A computer-readable medium storing instructions that, when executed by at least one hardware processor, cause the at least one hardware processor to perform operations comprising: Access the data model; Compile the data model into a component model; Compiling the component model into a user programming language, wherein the user programming language is a programming language that can be compiled into a bytecode format; accessing custom code written in a user programming language, the custom code comprising a compiled component model; compiling the custom code into the bytecode format; Loading the compiled custom code into a framework running a host programming language; and Execute the compiled custom code to create a server process.

2. The system according to claim 1, in, The server process also includes at least one interface based on the component model that translates input of the custom code from the first format to the host programming language, and at least one interface based on the component model that translates output of the custom code from the host programming language to the first format.

3. The system according to claim 2, in, The first format is the Hypertext Transfer Protocol (HTTP).

4. The system according to claim 1, in, The bytecode format is WebAssembly.

5. The system according to claim 4, in, The component model is the WebAssembly component model (WASM).

6. The system according to claim 1, in, The host programming language is the core query notation.

7. The system according to claim 1, in, The framework compiles the compiled component model into an interface compatible with the host programming language.

8. A method, include: Access the data model; Compile the data model into a component model; Compiling the component model into a user programming language, wherein the user programming language is a programming language that can be compiled into a bytecode format; accessing custom code written in a user programming language, the custom code comprising a compiled component model; compiling the custom code into the bytecode format; Loading the compiled custom code into a framework running the host programming language; as well as Execute the compiled custom code to create a server process.

9. The method according to claim 8, in, The server process also includes at least one interface based on the component model that translates input of the custom code from the first format to the host programming language, and at least one interface based on the component model that translates output of the custom code from the host programming language to the first format.

10. The method according to claim 9, in, The first format is the Hypertext Transfer Protocol (HTTP).

11. The method according to claim 8, in, The bytecode format is WebAssembly.

12. The method according to claim 11, in, The component model is the WebAssembly component model (WASM).

13. The method according to claim 8, in, The host programming language is the core query notation.

14. The method according to claim 8, in, The framework compiles the compiled component model into an interface compatible with the host programming language.

15. A non-transitory machine-readable medium storing instructions that, when executed by one or more processors, cause the one or more processors to perform operations, the operations include: Access the data model; Compile the data model into a component model; Compiling the component model into a user programming language, wherein the user programming language is a programming language that can be compiled into a bytecode format; accessing custom code written in a user language, the custom code comprising a compiled component model; compiling the custom code into the bytecode format; Loading the compiled custom code into a framework running the host programming language; as well as Execute the compiled custom code to create a server process.

16. The non-transitory machine-readable medium of claim 15, in, The server process also includes at least one interface based on the component model that translates input of the custom code from the first format to the host programming language, and at least one interface based on the component model that translates output of the custom code from the host programming language to the first format.

17. The non-transitory machine-readable medium of claim 16, in, The first format is the Hypertext Transfer Protocol (HTTP).

18. The non-transitory machine-readable medium of claim 15, in, The bytecode format is WebAssembly.

19. The non-transitory machine-readable medium of claim 18, in, The component model is the WebAssembly component model (WASM).

20. The non-transitory machine-readable medium of claim 15, in, The host programming language is the core query notation.