1. A non-transitory computer readable medium having instructions stored thereon that, when executed by a processor, cause the processor to manage data model evaluation, the managing comprising: receiving a domain-specific language database query expression of a domain-specific language of a data model, the domain-specific language database query expression to be evaluated by an application, the application having been written in a first programming language, wherein the database query expression comprises a formula; providing predefined code in a general-purpose imperative programming language mapped to model expressions in the domain-specific language; dynamically generating new code in the general-purpose imperative programming language by translating the domain-specific language database query expression into the general-purpose imperative programming language based on one or more portions of the predefined code, the new code being compilable; compiling the generated new code, using an optimizing compiler, into a compilation of the general-purpose imperative programming language; making the compilation of the general-purpose imperative programming language available to the application written in the first programming language such that the application evaluates the domain-specific language database query expression by using the compilation of the general-purpose imperative programming language; and executing the compilation of the general-purpose imperative programming language by the processor.
1. A non-transitory computer readable medium having instructions stored thereon that, when executed by a processor, cause the processor to manage data model evaluation, the managing comprising: receiving a domain-specific language database query expression of a domain-specific language of a data model, the domain-specific language database query expression to be evaluated by an application, the application having been written in a first programming language, wherein the database query expression comprises a formula; providing predefined code in a general-purpose imperative programming language mapped to model expressions in the domain-specific language; dynamically generating new code in the general-purpose imperative programming language by translating the domain-specific language database query expression into the general-purpose imperative programming language based on one or more portions of the predefined code, the new code being compilable; compiling the generated new code, using an optimizing compiler, into a compilation of the general-purpose imperative programming language; making the compilation of the general-purpose imperative programming language available to the application written in the first programming language such that the application evaluates the domain-specific language database query expression by using the compilation of the general-purpose imperative programming language; and executing the compilation of the general-purpose imperative programming language by the processor. 4. The non-transitory computer readable medium of claim 1 , wherein the first programming language and the general-purpose imperative programming language are different programming languages.