| Pizza is an open-source extension to Java
programming language with the following new features:
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.
Example
This was taken from [1] (http://pizzacompiler.sourceforge.net/examples/enumerator.html).
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; }));
}
}
External links
- Homepage
(http://pizzacompiler.sourceforge.net/)
|