What is the best choice for hashing numbers with SQL support - Ruby 1.9, Python 2, Python 3, or PHP 5.3?

The criteria are โ€œbetterโ€: fast in math and simple (multiple fields, many records) db transactions, convenient for development / reading / extension, flexible, plug-in.

The task is to use a common web development scripting language for processing and calculating long time series and multidimensional surfaces (basically, selecting / inserting sets of floats and performing math problems with them). A.

Choices: Ruby 1.9, Python 2, Python 3, PHP 5.3, Perl 5.12, or JavaScript (node.js).

All data must be stored in a relational database (due to its multidimensional nature); all communication with the outside world should be done through web services.

+4
source share
2 answers

I would suggest Python with its large scientific / math libraries (SciPy, NumPy). Otherwise, the languages โ€‹โ€‹are not that different, although I doubt that Ruby, PHP, or JS might keep up with the speed of Python or Perl.

And what comments below say here: at this point, head to the very latest Python2 (this is Python2.7). It has mature versions of all the required libraries, and if you follow the coding guidelines, porting one day to Python 3 will be just a little pain.

+10
source

The best option is probably the language you are most familiar with. My second consideration would be if you need to use any special math libraries and whether they are supported in each of the languages.

+4
source

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


All Articles