Nile

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.
Nile
Paradigm(s) Declarative
Designed by Dan Amelang
Appeared in 2009
Computational class Unknown
Reference implementation [1]
File extension(s) .nl

Nile is a declarative stream-processing language designed to implement graphics-compositing toolkits like wikipedia:Cairo (graphics) with a minimum of code. While not strictly a golfing language, Nile was developed as part of the STEPS project at VPRI, which focused on implementing an operating system using relatively little code and relatively many languages.

Examples

The following program implements the syntax `x ~ y` for computing the average of two numbers:

(a : Real) ~ (b : Real) : Real
    (a + b) / 2