1. A computer-implemented method for accelerating an execution of an expression in a computing environment, the method comprising: obtaining an expression including at least an array to which one of an elementwise operator and an elementwise function is applied; weighting the elementwise operator or the elementwise function to determine whether the expression is to be executed in parallel; and generating code for computing the expression in parallel, wherein the expression is computed with a subset of the elements of the array in parallel with one or more additional subsets of the elements of the array.