📜 ⬆️ ⬇️

Programmer Grafilia and Programming Languages

Continuation and, most likely, the termination of my research about graphs from texts .
I was prompted by a page where there is an implementation of one algorithm (QuickSort) in different programming languages, which means there is a great opportunity to compare the graphs of these “identical” programs.
Under the cut, the resulting graphs for the languages: C, C ++, Java, Visual Basic, Delphi, Python, Php, Prolog, Fortran, Ruby, Haskell, Algol, Mathematica, Asm.
Try to guess without looking under the cut, which graph will be the most beautiful and the most terrible?



I proclaim Fortranovsky as the most terrible programming language by the graph (the program itself, admittedly, was even worse than the graph):

')
Slightly better than him, though, the Visual Basic graph looks like, although the code there is much less:


But the graph Algol-a (although it looks confused, but there is a certain clustering):


Next you can put Delphi (and there is no clustering at all):


An assembler looks surprisingly good on their background:


Java for some reason pumped up. I thought her graph would be more beautiful, but it turned out:


Here is a graph of one of the implementations in Python:


But implementation in C ++ with templates and iterators. Surprisingly, it looks good:


Next come about the same beauty in my opinion graphs.
Prolog:


Ruby:


Php:


C (I never thought that C and Php would be close by, and indeed something alike):


The graph of Mathematica looks very interesting:


And finally, the winner , who no one guessed for sure, is Haskell. The ideal of minimalism:


Upd: And here is a link to a new book about Haskell , which will be released only in November. But now the authors have posted it in open access online. Whoever is not familiar with this beautiful language - can get to know for free.

Source: https://habr.com/ru/post/39002/


All Articles