DEV Community

Discussion on: What is the best scripting language for secure automation and speed?(python, ruby, rust)

Collapse
 
bittnkr profile image
bittnkr • Edited

To me, maybe because my familiarity with, the best scripting language for automation is JavaScript/Node.

Initially working with exec/spawn can be a little challenging, but once you mastered them, it's very powerful.

Collapse
 
wolfiton profile image
wolfiton

Interesting point, but as I recall JavaScript is not multi-threaded. So I don't think it has speed compared to rust and python.

Collapse
 
avalander profile image
Avalander

As @bittnkr said, you can spawn multiple processes easily with child_process, if you want to run parallel computations.

Collapse
 
bittnkr profile image
bittnkr • Edited

In system automation I think the performance of the hosting language is negligible.

For example, if you need to zip a directory, the speed that really matters is tool you are calling (zip, gzip, 7zip, ...).

If you need to parallelize tasks, in Node you can just spawn another process or use worker threads.

Collapse
 
tobiassn profile image
Tobias SN

Python doesn’t really have multithreading either. Well it technically does, but you can only use one at a time by default.