Invention Grant
- Patent Title: Automatic code transformation
-
Application No.: US15613047Application Date: 2017-06-02
-
Publication No.: US10318255B2Publication Date: 2019-06-11
- Inventor: Henricus Johannes Maria Meijer , John Wesley Dyer
- Applicant: Microsoft Technology Licensing, LLC
- Applicant Address: US CA Redmond
- Assignee: Microsoft Technology Licensing, LLC
- Current Assignee: Microsoft Technology Licensing, LLC
- Current Assignee Address: US CA Redmond
- Agency: Fiala & Weaver P.L.L.C.
- Main IPC: G06F9/44
- IPC: G06F9/44 ; G06F8/40 ; G06F8/20 ; G06F8/30

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.
Public/Granted literature
- US20170269913A1 Automatic Code Transformation Public/Granted day:2017-09-21
Information query