Policy controlled function generators
View Patent ↗Described are techniques for automated software function code generation. The techniques include generating a list of algorithms configurable with a requested software code function provided by a client device, where the list of algorithms is based on evaluating a plurality of software policies. The techniques further include generating the requested code function based on a selected algorithm of the list of algorithms and using a repository of reusable code samples in a plurality of programming languages. The techniques further include transmitting the requested code function to the client device.
1 . A computer-implemented method comprising:
generating a list of algorithms configurable with a requested code function provided by a client device, wherein the list of algorithms is based on evaluating a plurality of software policies, wherein the plurality of software policies includes a changed machine policy, and wherein the requested code function supports migration of the requested code function from a first platform to a second platform;
generating the requested code function based on a selected algorithm of the list of algorithms and using a repository of reusable code samples in a plurality of programming languages;
creating a unit-test associated with the requested code function, wherein the unit-test indicates a performance of the requested code function; and
transmitting the requested code function to the client device, wherein transmitting the requested code function to the client device comprises transmitting the requested code function, the unit-test, a status message indicating whether creation of the requested code function is successful, and a data structure indicating compliant software policies of the plurality of software policies.
2 . The computer-implemented method of claim 1 , wherein the plurality of software policies are respectively associated with a precedence.
3 . The computer-implemented method of claim 2 , wherein a policy resolver is implemented to generate the list of algorithms and based on evaluating respective precedencies of the plurality of software policies.
4 . The computer-implemented method of claim 2 , wherein the plurality of software policies respectively associated with the precedence is a ranked list from a higher precedence to a lower precedence comprising: (i) organization policies, (ii) environment administrator policies, (iii) developer policies, (iv) machine policies, and (v) customer policies.
5 . The computer-implemented method of claim 1 , wherein the plurality of software policies comprises an organization policy, a developer policy, an environment administrator policy, the changed machine policy, and a client policy.
6 . The computer-implemented method of claim 1 , wherein the repository of reusable code samples in the plurality of programming languages is generated using an Artificial Intelligence (AI) model, and wherein the AI model creates the requested code function that is compliant with the plurality of software policies using the repository of the reusable code samples.
7 . The computer-implemented method of claim 1 , wherein the changed machine policy is generated by implementing performance benchmarks against an associated computational environment with compatible software functions exhibiting relatively higher performance than incompatible software functions in the changed machine policy.
8 . The computer-implemented method of claim 1 , wherein the computer-implemented method is executed by a computational system based on software function generator code downloaded to the computational system from a remote data processing system, and wherein the computer-implemented method further comprises:
metering usage of the software function generator code; and
generating an invoice based on metering the usage of the software function generator code.
9 . The computer-implemented method of claim 1 , wherein the requested code function is an application.
10 . The computer-implemented method of claim 1 , wherein the requested code function is an executable.
11 . The computer-implemented method of claim 1 , wherein the requested code function is a library.
12 . The computer-implemented method of claim 1 , wherein the requested code function is a container image.
13 . The computer-implemented method of claim 1 , wherein the requested code function is a Kernel-based Virtual Machine (KVM) guest.
14 . A system comprising:
one or more processors; and
one or more computer-readable storage media storing program instructions which, when executed by the one or more processors, are configured to cause the one or more processors to perform a method comprising:
generating a list of algorithms configurable with a requested code function provided by a client device, wherein the list of algorithms is based on evaluating a plurality of software policies, wherein the plurality of software policies includes a changed machine policy, and wherein the requested code function supports migration of the requested code function from a first platform to a second platform;
generating the requested code function based on a selected algorithm of the list of algorithms and using a repository of reusable code samples in a plurality of programming languages;
creating a unit-test associated with the requested code function, wherein the unit-test indicates a performance of the requested code function; and
transmitting the requested code function to the client device, wherein transmitting the requested code function to the client device comprises transmitting the requested code function, the unit-test, a status message indicating whether creation of the requested code function is successful, and a data structure indicating compliant software policies of the plurality of software policies.
15 . The system of claim 14 , wherein the plurality of software policies are respectively associated with a precedence, and wherein a policy resolver is implemented to generate the list of algorithms and based on evaluating respective precedencies of the plurality of software policies.
16 . The system of claim 14 , wherein the plurality of software policies comprises an organization policy, a developer policy, an environment administrator policy, the changed machine policy, and a client policy.
17 . The system of claim 14 , wherein the changed machine policy is generated by implementing performance benchmarks against an associated computational environment with compatible software functions exhibiting relatively higher performance than incompatible software functions in the changed machine policy.
18 . A computer program product comprising one or more computer readable storage media, and program instructions collectively stored on the one or more computer readable storage media, the program instructions comprising instructions configured to cause one or more processors to perform a method comprising:
generating a list of algorithms configurable with a requested code function provided by a client device, wherein the list of algorithms is based on evaluating a plurality of software policies, wherein the plurality of software policies includes a changed machine policy, and wherein the requested code function supports migration of the requested code function from a first platform to a second platform;
generating the requested code function based on a selected algorithm of the list of algorithms and using a repository of reusable code samples in a plurality of programming languages;
creating a unit-test associated with the requested code function, wherein the unit-test indicates a performance of the requested code function; and
transmitting the requested code function to the client device, wherein transmitting the requested code function to the client device comprises transmitting the requested code function, the unit-test, a status message indicating whether creation of the requested code function is successful, and a data structure indicating compliant software policies of the plurality of software policies.
19 . The computer program product of claim 18 , wherein the plurality of software policies are respectively associated with a precedence, and wherein a policy resolver is implemented to generate the list of algorithms and based on evaluating respective precedencies of the plurality of software policies.
20 . The computer program product of claim 18 , wherein the plurality of software policies comprises an organization policy, a developer policy, an environment administrator policy, the changed machine policy, and a client policy; and
wherein the changed machine policy is generated by implementing performance benchmarks against an associated computational environment with compatible software functions exhibiting relatively higher performance than incompatible software functions in the changed machine policy.