lvc / abi-compliance-checker

A tool for checking backward API/ABI compatibility of a C/C++ library
https://lvc.github.io/abi-compliance-checker/
GNU Lesser General Public License v2.1
621 stars 76 forks source link

Why Perl #95

Open seasonforocean opened 5 years ago

seasonforocean commented 5 years ago

I'm interesting with ABICC, I want to know why programming with perl?

lvc commented 5 years ago

ABICC is a parser of GCC translation unit dumps (extracting of unstructured data) and report generator. Perl is the best solution for such tasks currently since it is "Practical Extraction and Report Language". Code is much more compact, readable and maintainable in Perl than in other languages (e.g. C/PHP/Ruby/Python/etc.) for such kind of tasks.

Also Perl is pre-installed (like Python) in almost all Linux distributions (but this is a minor feature since we have appimages now).

I prefer Python or PHP to work with structured data (e.g. databases, json, etc.) instead of Perl. And I prefer C to work with memory structures or write drivers.

seasonforocean commented 5 years ago

Thank you. Perl is really good at text processing, pattern matching, parsing and generating XML reports. I'll ask you again if I have problems in the code.