Functional programming practice No. 5

    Announcements of new issues of magazines or site updates - this is not what they usually write about. We did not see announcements of new numbers of Computerra (when it was still) or Vogue on the pages of Habr. It is even more interesting to observe how the small, highly specialized journal for programmers, “The Practice of Functional Programming,” regularly attracts a lively response from readers of even such somewhat special communities as Linux.Org.Ru or Habrahabr.

    The recent issue of the last, fifth issue of PFP magazine has already caused a lot of interesting debate. And all because in the competition announced by the magazine at the end of last year, instead of the planned unconditional victory of the Haskell and OCaml languages, Python and C # won.

    Suddenly it turned out that one of the designers of C #, Eric Meijeradmitted that Visual Basic is a functional language (

    It was also found that the solution in Lisp, which, in fact, would have to be recognized as the best from the point of view of the initial formulation of the problem
    The task of trimming the map was posed by a real problem in using the existing OpenStreetMap map cropping tool written in Java. The tool could not cope with cutting for sane time. It was assumed that the decision of the winners of this contest would be able to do good service to people who regularly have to cut cards from the “world atlas” of OpenStreetMap.

    it turned out to be much less understandable for the jury than the Visual Basic solution, which has 3 times less code, but also works only 5 times slower :)

    But, as it turned out, this is no longer important, since both languages ​​finally died back in 2005 year ;) However, the biggest surprise was an attempt to send a solution in Ada (which died back in 1995), but it, like solutions in Haskell and OCaml, suffered from problems with correctness ...

    Fifth issue of the journal Practice functional programming ”with an analysis of the results of the competition that led to such reviews, is available Pen online in PDF and HTML format.

    As a matter of fact, my journal with Alexander Manzyuk also contains an article about Common Lisp, which shows the possibilities of the practical use of the language using examples of tasks from the traditionally imperative, object-oriented, and functional areas. There are also articles in the magazine about languages ​​such as Erlang, F # and, of course, Haskell.

    PS. And for a snack - another epic thread on this subject at the ENT: and another more balanced discussion, perhaps :

    Also popular now: