1. A method executed by a processor, comprising: providing an application written in a domain-specific language (DSL) for a programming task, wherein the application includes a plurality of components configured by expressions; selecting from a plurality of techniques for evaluating the expressions a technique that most quickly implements the programming task; and compiling the DSL application to generate general-purpose programming language (GPL) code in accordance with the selected expression evaluation technique, wherein when compiling the DSL application to generate GPL code, parts of expressions that do not require knowledge of run-time values are evaluated, the evaluated parts of the expressions are replaced with placeholder variables and partially evaluated expressions and code to load values of the placeholder variables are embedded into the generated GPL code, wherein the partially evaluated expressions comprise expressions including the evaluated expression parts that were replaced with the placeholder variables, the method further comprising: compiling the generated GPL code into native processor instructions; and loading the values of the placeholder variables and executing the partially evaluated expressions in response to running the native processor instructions.
1. A method executed by a processor, comprising: providing an application written in a domain-specific language (DSL) for a programming task, wherein the application includes a plurality of components configured by expressions; selecting from a plurality of techniques for evaluating the expressions a technique that most quickly implements the programming task; and compiling the DSL application to generate general-purpose programming language (GPL) code in accordance with the selected expression evaluation technique, wherein when compiling the DSL application to generate GPL code, parts of expressions that do not require knowledge of run-time values are evaluated, the evaluated parts of the expressions are replaced with placeholder variables and partially evaluated expressions and code to load values of the placeholder variables are embedded into the generated GPL code, wherein the partially evaluated expressions comprise expressions including the evaluated expression parts that were replaced with the placeholder variables, the method further comprising: compiling the generated GPL code into native processor instructions; and loading the values of the placeholder variables and executing the partially evaluated expressions in response to running the native processor instructions. 8. The method of claim 1 , wherein the DSL comprises a stream processing DSL.