Wednesday, September 27, 2006

Tacit programming... What?

An example writte in the J programming language:
Here's a J program to calculate the average of a list of numbers:

avg =. +/ % #
avg 1 2 3 4

'#' - counts the number of elements in the string. '+/' - adds up all the elements in the string. '%' - divides the sum of the elements by the number of elements.

Amazing! The idea seems to be: you do not specify the parameters, only the functions to apply... :>

I have to get the specs (especially of the semantics) and see how they implemented it. It looks very "different".

Some fractals in J

And even more graphics, math and fractals in J

functional language for computing with geometry

No comments:

Post a Comment