Persistent variables in programming languages
First Claim
Patent Images
1. A computer implemented method for automatically persisting variable data, the method being performed by a computer system, comprising a compiler, at a time of compiling source code for an application, the method comprising:
- at compile time, using the compiler to perform operations comprising;
prior to compiling the source code of the application into an executable file, identifying, by the computer system, a variable in the source code of the application that is declared with a predefined keyword, the predefined keyword indicating that the variable in the source code of the application should be persistent; and
generating the executable file for the application from the source code, wherein generating the executable file comprises;
compiling the source code for the application into runtime code for executing the application, wherein compiling the source code for the application includes generating, by the compiler and in response to the identified variable, particular runtime code for the source code of the application for each instance in the source code where the corresponding identified variable occurs, wherein the generated particular runtime code, distinct from the runtime code of the application, is incorporated into the executable file for the application and is configured to provide the persistence of the variable of the application, and wherein execution of the runtime code for the application that provides the persistence during execution of the executable file saves data assigned to the variable in a nonvolatile data store, andoutputting the executable file for the application that includes the generated runtime code.
2 Assignments
0 Petitions
Accused Products
Abstract
Techniques for automatically persisting variable data are provided. In one embodiment, a computer system can identify, upon compiling or interpreting source code for an application, a variable in the source code that is declared with a predefined keyword. The predefined keyword can indicate that the variable should be persistent. The computer system can then generate, for each instance in the source code where data is assigned to the variable, runtime code for saving the data in a nonvolatile data store.
-
Citations
24 Claims
-
1. A computer implemented method for automatically persisting variable data, the method being performed by a computer system, comprising a compiler, at a time of compiling source code for an application, the method comprising:
at compile time, using the compiler to perform operations comprising; prior to compiling the source code of the application into an executable file, identifying, by the computer system, a variable in the source code of the application that is declared with a predefined keyword, the predefined keyword indicating that the variable in the source code of the application should be persistent; and generating the executable file for the application from the source code, wherein generating the executable file comprises; compiling the source code for the application into runtime code for executing the application, wherein compiling the source code for the application includes generating, by the compiler and in response to the identified variable, particular runtime code for the source code of the application for each instance in the source code where the corresponding identified variable occurs, wherein the generated particular runtime code, distinct from the runtime code of the application, is incorporated into the executable file for the application and is configured to provide the persistence of the variable of the application, and wherein execution of the runtime code for the application that provides the persistence during execution of the executable file saves data assigned to the variable in a nonvolatile data store, and outputting the executable file for the application that includes the generated runtime code. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
9. A non-transitory computer readable storage medium having stored thereon computer software executable by a processor, the computer software embodying a method for automatically persisting variable data, the method being performed by a computer system, comprising a complier, at a time of compiling source code for an application, the method comprising:
at compile time, using the compiler to perform operations comprising; prior to compiling the source code of the application into an executable file, identifying a variable in the source code of the application that is declared with a predefined keyword, the predefined keyword indicating that the variable in the source code of the application should be persistent; and generating the executable file for the application from the source code, wherein generating the executable file comprises; compiling the source code for the application into runtime code for executing the application, wherein compiling the source code for the application includes generating, in response to the identified variable, particular runtime code for the source code of the application for each instance in the source code where the corresponding identified variable occurs, wherein the generated particular runtime code, distinct from the runtime code of the application, is incorporated into the executable file for the application and is configured to provide the persistence of the variable of the application, and wherein execution of the runtime code for the application that provides the persistence during execution of the executable file saves data assigned to the variable in a nonvolatile data store, and outputting the executable file for the application that includes the generated runtime code. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
17. A system comprising:
-
a processor; and a memory having stored thereon instructions which, when executed by the processor, cause the processor to, at a time of compiling source code for an application; at compile time, using a compiler to perform operations comprising; prior to compiling the source code of the application into an executable file, identify a variable in the source code of the application that is declared with a predefined keyword, the predefined keyword indicating that the variable in the source code of the application should be persistent; and generate the executable file for the application from the source code, wherein generating the executable file comprises; compiling the source code for the application into runtime code for executing the application, wherein compiling the source code for the application includes generating, in response to the identified variable, particular runtime code for the source code of the application for each instance in the source code where the corresponding identified variable occurs, wherein the generated particular runtime code, distinct from the runtime code of the application, is incorporated into the executable file for the application and is configured to provide the persistence of the variable of the application, and wherein execution of the runtime code for the application that provides the persistence during execution of the executable file saves data assigned to the variable in a nonvolatile data store, and outputting the executable file for the application that includes the generated runtime code. - View Dependent Claims (18, 19, 20, 21, 22, 23, 24)
-
Specification