Pizza (programming language)

Pizza (programming language)

Pizza is an open-source superset of the Java programming language with the following new features:
* Generics
* Function pointers
* Class cases and pattern matching (a.k.a Algebraic types)

In August 2001 the developers made a compiler capable of working with Java. Speed tests have shown the Pizza compiler works twice as fast as the Java compiler, but as it currently performs no optimization the resulting application is rather cumbersome. Most Pizza applications can run in a Java environment, but certain cases will cause problems.

Work on Pizza has more or less stopped since 2002. Its main developers have concentrated instead on the GJ project, another attempt to add generics to Java which was eventually adopted into the official language version 1.5. The pattern matching and other functional programming like features have been further developed in the Scala language.

Example

Taken from [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

* [http://pizzacompiler.sourceforge.net/ Pizza Compiler]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Generic Java (programming language) — Infobox programming language name = Generic Java paradigm = object oriented generation = 3GL year = designer = Martin Odersky, Philip Wadler, Gilad Bracha, William Maddox (computer scientist), and David Stoutamire developer = latest release… …   Wikipedia

  • Pizza (disambiguation) — Pizza may refer to:* Pizza, a food item * Pizza (TV series) , an Australian TV series * Pizza (film) , a 2005 film starring Ethan Embry * Pizza programming language * The Pizza, a series of segments on the U.S. television series Jimmy Kimmel Live …   Wikipedia

  • List of programming languages — Programming language lists Alphabetical Categorical Chronological Generational The aim of this list of programming languages is to include all notable programming languages in existence, both those in current use and historical ones, in… …   Wikipedia

  • Scala (Programmiersprache) — Scala Paradigmen: objektorientiert, funktional, imperativ Erscheinungsjahr: Seit 2001: Interne Arbeiten an der EPFL 2003: Version 1 2006: Version 2 Entwickler: École polytechnique fédérale de Lausanne unter Leitung von Martin Oders …   Deutsch Wikipedia

  • Scala (язык программирования) — У этого термина существуют и другие значения, см. Scala. Scala Класс языка: Мультипарадигмальный: функ …   Википедия

  • Java — Иное название этого понятия  «Ява»; см. также другие значения. Не следует путать с JavaScript. Java Класс языка …   Википедия

  • Snow Crash —   Cover of the U.S. paperback version …   Wikipedia

  • List of JVM languages — This list of JVM Languages comprises computer programming languages that are used to produce software that runs on the Java Virtual Machine. Some of these languages are interpreted by a Java program, and some are compiled to Java bytecode and… …   Wikipedia

  • Список языков программирования — Списки языков программирования Алфавитный По категориям Хронологический Генеалогический Цель этого алфавитного списка языков программирования состоит в том, чтобы дать полный перечень всех существующих языков программирования, как используемых в… …   Википедия

  • Maniac Mansion — This article is about the video game. For the television series, see Maniac Mansion (TV series). Maniac Mansion …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”