Automatic Code Transformation
First Claim
Patent Images
1. A first device, comprising:
- a mass storage configured to store a first device code that instantiates an object having a state;
a processing unit configured to execute the first device code to instantiate the object and to apply a wrapper to the object to identify the state of the object to store in a data storage and retrieve the state for the object from the data storage for invoking the object in a second device code executed by a second device;
an output interface component configured to invoke remotely the second device code for processing the object by passing the state as a serialized state argument following a state transformer monad pattern; and
an input interface component configured to receive a serialized result and a successor state argument from the second device code for storage in the data storage as a successor state.
2 Assignments
0 Petitions
Accused Products
Abstract
Stateful computations are transformed into stateless computations automatically to facilitate scalability. Programmers can write code in a traditional imperative stateful style, which is subsequently transformed automatically into a stateless, state transformer monadic style. After the transformation, state is passed as an additional argument in a call and returns as a new state as an additional result.
2 Citations
1 Claim
-
1. A first device, comprising:
-
a mass storage configured to store a first device code that instantiates an object having a state; a processing unit configured to execute the first device code to instantiate the object and to apply a wrapper to the object to identify the state of the object to store in a data storage and retrieve the state for the object from the data storage for invoking the object in a second device code executed by a second device; an output interface component configured to invoke remotely the second device code for processing the object by passing the state as a serialized state argument following a state transformer monad pattern; and an input interface component configured to receive a serialized result and a successor state argument from the second device code for storage in the data storage as a successor state.
-
Specification