Automatic code transformation
First Claim
1. A system comprising:
- a processing device; and
a non-transitory computer-readable storage media configured to store computer-executable instructions that, upon execution by the processing device, control the system to perform;
receiving stateful code that is called from a first location and executed at a second location;
acquiring contextual information associated with the stateful code;
determining a location for storage of state information based on the contextual information; and
based on the determined location, transforming the stateful code into stateless code, wherein;
the transforming includes storing state information for the stateful code into storage at the determined location; and
in response to the determined location being the first location, the stateless code includes;
at the first location, retrieving the state information from the storage at the first location;
from the first location, sending a call to the second location, wherein one argument of the call includes the retrieved state information;
at the first location, receiving a response from the second location, wherein one return value includes new state information; and
storing the new state information into the storage at the first location.
2 Assignments
0 Petitions
Accused Products
Abstract
A method includes receiving stateful code that is called from a first location and executed at a second location. The method includes acquiring contextual information associated with the stateful code. The method includes determining a location for storage of state information based on the contextual information. The method includes, based on the determined location, transforming the stateful code into stateless code. The transforming includes storing state information for the stateful code into storage at the determined location. In response to the determined location being the first location, the stateless code includes: retrieving the state information from the storage; from the first location, sending a call to the second location; at the first location, receiving a response from the second location; and storing the new state information into the storage at the first location. One argument of the call includes the retrieved state information. One return value includes new state information.
27 Citations
20 Claims
-
1. A system comprising:
-
a processing device; and a non-transitory computer-readable storage media configured to store computer-executable instructions that, upon execution by the processing device, control the system to perform; receiving stateful code that is called from a first location and executed at a second location; acquiring contextual information associated with the stateful code; determining a location for storage of state information based on the contextual information; and based on the determined location, transforming the stateful code into stateless code, wherein; the transforming includes storing state information for the stateful code into storage at the determined location; and in response to the determined location being the first location, the stateless code includes; at the first location, retrieving the state information from the storage at the first location; from the first location, sending a call to the second location, wherein one argument of the call includes the retrieved state information; at the first location, receiving a response from the second location, wherein one return value includes new state information; and storing the new state information into the storage at the first location. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A method comprising:
-
receiving stateful code that is called from a first location and executed at a second location; acquiring contextual information associated with the stateful code; determining a location for storage of state information based on the contextual information; and based on the determined location, transforming the stateful code into stateless code, wherein; the transforming includes storing state information for the stateful code into storage at the determined location; and in response to the determined location being the first location, the stateless code includes; at the first location, retrieving the state information from the storage at the first location; from the first location, sending a call to the second location, wherein one argument of the call includes the retrieved state information; at the first location, receiving a response from the second location, wherein one return value includes new state information; and storing the new state information into the storage at the first location. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20)
-
Specification