| • Science | • People | • Locations | • Timeline |
The Pizza language design began in August 2001 when the developers made a compiler capable of working with Java. Pizza is designed to be a superset of Java, meaning any application written in Java will also be a valid Pizza application. Speed tests have shown the Pizza compiler works twice as fast as the Java compiler, but since no optimization is performed while compiling a Pizza application, the resulting application is rather cumbersome. However, the design of a compiler optimizer is currently in the works. Most Pizza applications can run in a Java environment, but certain cases will cause problems in the Java compiler. Work on the Pizza compiler is still ongoing, but Sun Microsystems and the Java community is showing increased interest in this project.
This was taken from [1].
public final class Main { public int main(String args[]) { System.out.println( new Lines(new DataInputStream(System.in)) .takeWhile(nonEmpty) .map(fun(String s) -> int { return Integer.parseInt(s); }) .reduceLeft(0, fun(int x, int y) -> int { return x + y; })); } }