Originally published at Fiberglass flowers. You can comment here or there.

A friend of mine defended Fortran against half-literate coders on an example of Prim’s allgorithm.
Good pretext for another language comparison. Let’s see Groovy vs Java vs good old Fortran.
Great Java implementation by Bruno R. Preiss, P.Eng. and scientist.
Some beginner’s C+ implementation (or is it just a link farm? Whatever).
And here’s the algorithm in Groovy, copied as precisely as possible from pseudocode in Russian Wikipedia article.
Tags: