Kawa is a language
framework written in the programming language
Java
Java is one of the Greater Sunda Islands in Indonesia. It is bordered by the Indian Ocean to the south and the Java Sea (a part of Pacific Ocean) to the north. With a population of 156.9 million people (including Madura) in mid 2024, proje ...
that implements the programming language
Scheme, a dialect of
Lisp
Lisp (historically LISP, an abbreviation of "list processing") is a family of programming languages with a long history and a distinctive, fully parenthesized Polish notation#Explanation, prefix notation.
Originally specified in the late 1950s, ...
, and can be used to implement other languages to run on the
Java virtual machine
A Java virtual machine (JVM) is a virtual machine that enables a computer to run Java programs as well as programs written in other languages that are also compiled to Java bytecode. The JVM is detailed by a specification that formally descr ...
(JVM). It is a part of the
GNU Project
The GNU Project ( ) is a free software, mass collaboration project announced by Richard Stallman on September 27, 1983. Its goal is to give computer users freedom and control in their use of their computers and Computer hardware, computing dev ...
.
The name ''Kawa'' comes from the
Polish word for coffee; a play on words, since Java is another familiar name for coffee.
Kawa is notable as one of the few programming languages with support for
units of measure in the form of
quantities
Quantity or amount is a property that can exist as a multitude or magnitude, which illustrate discontinuity and continuity. Quantities can be compared in terms of "more", "less", or "equal", or by assigning a numerical value multiple of a u ...
.
Integration with Java
Besides using the language Scheme, Java object fields and methods can be accessed using code such as: . This will invoke a Java method, and does the same thing as in Java. An object's fields can be accessed with: or . Static (class) methods can be invoked with the function . Kawa can be extended with Java code (by creating scheme functions in Java), and combined with other JVM implementations.
See also
*
List of JVM languages
This list of JVM languages comprises notable computer programming languages that are used to produce computer software that runs on the Java virtual machine (JVM). Some of these languages are interpreted by a Java program, and some are compiled ...
References
External links
*
{{Lisp programming language
GNU Project Lisp programming language implementations
Java platform software
JVM programming languages
Scheme (programming language) implementations
Scheme (programming language) interpreters
Programming languages supporting units of measure
Scripting languages
Software using the MIT license