Ask HN: Which language for writing a fast, distributable command-line tool?
I have written a proof-of-concept in Python, but it is unacceptably slow: 100 times slower than an implementation of the core algorithm in C++. Also, it would be awkward to distribute to end-users: the best option seems to be a tool such as PyInstaller which essentially creates a large, self-extracting archive. Running the Python code using PyPy fixes the performance issue (only 4x slower than C++), but makes distribution almost impossible.
So, I am looking for another language in which to write the production version of this tool. Which other language(s) would you recommend?
I would rather avoid writing the whole tool in a complex language like C++. Are there any other Python-like, dynamic languages which are faster and easier to distribute?
14 comments
[ 4.1 ms ] story [ 45.9 ms ] threadIt is statically compiled - you get one executable without any dependencies.
Its speed is much closer to C than to Python.
Type system and syntax is very simple.
P.S. I'm not proGo, just have near to zero knowledge about Rust.
http://stackoverflow.com/questions/582336/how-can-you-profil...
I used the command line option described in the suggested answer. It was easy. Most profilers are hard, but this worked fine the first time.
[0]: https://github.com/jaredallard/nexe