An article of manufacture comprising a non-transitory computer-readable medium having stored thereon instructions to cause one or more processors to provide execution of code in a runtime environment, the instructions, when executed, causing the one or more processors to:
- receive a request to execute code;
- retrieve source code corresponding to the code to be executed from a database, wherein the source code is stored as an abstract syntax tree (AST) in a general-purpose distributed memory caching system;
- compile the retrieved source code to generate executable code;
- translate the executable code to bytecode;
- parse the bytecode to find a selected portion of the bytecode to service a request;
- execute the selected bytecode in the runtime environment;
- free memory used by the selected bytecode upon completion of the selected bytecode so that the selected bytecode is not preserved in the memory after execution of the bytecode.