13. A computer implemented method comprising: translating with a computing device at least one line of source code representing a function to byte-codes representing the function; performing a first analysis of the byte-codes using the computing device to select a subsequence of the byte-codes based on at least one property of at least one variable referenced by the subsequence of the byte-codes, the at least one property including a value of the at least one variable; performing a second analysis of the subsequence using the computing device to analyze a usage pattern of the at least one variable used by the subsequence, the second analysis examining at least one dynamic run-time property of the at least one variable used in the subsequence to determine whether the usage pattern of the at least one variable indicates that the at least one variable is suitable for processing by a compiler; shortening the subsequence using the computing device based on the second analysis to exclude at least one byte-code referencing a variable identified as unsuitable for processing by the compiler; generating processor instructions in the compiler for the shortened subsequence, the generating using the computing device; generating alternate byte-codes in an accelerated interpreter executing on the computing device for at least a portion of the byte-codes not contained in the shortened subsequence; during a compilation of the alternate byte-codes, compiling using the computing device an element-wise array expression into specific alternate byte-codes based on a size, a shape and a memory address of the arrays in the element-wise array expression; identifying using the computing device a scalar element in the element-wise expression with the accelerated interpreter; compiling using the computing device the scalar element as an array which has the same size as another array in the expression in which each element in the array has a single value; and calculating using the computing device the value of the operation using the scalar element so as to avoid recalculation of the value for every element of the element-wise expression.
13. A computer implemented method comprising: translating with a computing device at least one line of source code representing a function to byte-codes representing the function; performing a first analysis of the byte-codes using the computing device to select a subsequence of the byte-codes based on at least one property of at least one variable referenced by the subsequence of the byte-codes, the at least one property including a value of the at least one variable; performing a second analysis of the subsequence using the computing device to analyze a usage pattern of the at least one variable used by the subsequence, the second analysis examining at least one dynamic run-time property of the at least one variable used in the subsequence to determine whether the usage pattern of the at least one variable indicates that the at least one variable is suitable for processing by a compiler; shortening the subsequence using the computing device based on the second analysis to exclude at least one byte-code referencing a variable identified as unsuitable for processing by the compiler; generating processor instructions in the compiler for the shortened subsequence, the generating using the computing device; generating alternate byte-codes in an accelerated interpreter executing on the computing device for at least a portion of the byte-codes not contained in the shortened subsequence; during a compilation of the alternate byte-codes, compiling using the computing device an element-wise array expression into specific alternate byte-codes based on a size, a shape and a memory address of the arrays in the element-wise array expression; identifying using the computing device a scalar element in the element-wise expression with the accelerated interpreter; compiling using the computing device the scalar element as an array which has the same size as another array in the expression in which each element in the array has a single value; and calculating using the computing device the value of the operation using the scalar element so as to avoid recalculation of the value for every element of the element-wise expression. 14. The method of claim 13 , further comprising: identifying during compilation with the accelerated interpreter, a function that generates an array filled with a single value; identifying the function as a scalar element in an element-wise expression with the accelerated interpreter; compiling the function identified as a scalar element as an array hi which each element in the array has a single value; calculating initially the value of the operation using the scalar element so as to avoid recalculation of the value for every element of the array.