Whiley is an experimental programming language that combines features from the functional and imperative programming paradigms, and supports formal specification through function preconditions, postconditions and loop invariants. The language uses flow-sensitive typing also termed flow typing.
The Whiley project began in 2009 in response to the "Verifying Compiler Grand Challenge" put forward by Tony Hoare in 2003. The first public release of Whiley was in June, 2010.
Developed by David Pearce mainly, Whiley is an open source project with contributions from a small community. The system has been used for student research projects and in teaching undergraduate classes. It was supported from 2012–2014 by the Royal Society of New Zealand's Marsden Fund.
The Whiley compiler generates code for the Java virtual machine (JVM) and can interoperate with Java and other JVM-based languages.