Darwin is a closed source programming language developed by
Gaston Gonnet and colleagues at
ETH Zurich
ETH Zurich (; ) is a public university in Zurich, Switzerland. Founded in 1854 with the stated mission to educate engineers and scientists, the university focuses primarily on science, technology, engineering, and mathematics. ETH Zurich ran ...
.
It is used to develop the OMA orthology inference software, which was also initially developed by Gonnet.
The language backend consists of the kernel, responsible for performing simple mathematical calculations, for transporting and storing data and for interpreting the user's commands, and the library, a set of programs which can perform more complicated calculations.
The target audience for the language is the biosciences, so the library consisted of routines such as those to compute pairwise alignments, phylogenetic trees, multiple sequence alignments, and to make secondary structure predictions.
Example Code
One would write the
Hello World
Hello World may refer to:
* "Hello, World!" program, a computer program that outputs or displays the message "Hello, World!"
Music
* "Hello World!" (composition), song by the Iamus computer
* "Hello World" (Tremeloes song), 1969
* "Hello World" ...
program as:
printf('Hello, world!\n');
The following procedure calculates the factorial of a number:
factorial := proc ( n )
if (n=0) then
return(1);
else
return(n * factorial(n-1));
fi;
end:
See also
*
List of programming languages
This is an index to notable programming languages, in current or historical use. Dialects of BASIC (which have their own page), esoteric programming languages, and markup languages are not included. A programming language does not need to be im ...
References
{{reflist
Programming languages