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.
Interesting point, but as I recall JavaScript is not multi-threaded. So I don't think it has speed compared to rust and python.
As @bittnkr said, you can spawn multiple processes easily with child_process, if you want to run parallel computations.
child_process
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.
Python doesn’t really have multithreading either. Well it technically does, but you can only use one at a time by default.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.
Interesting point, but as I recall JavaScript is not multi-threaded. So I don't think it has speed compared to rust and python.
As @bittnkr said, you can spawn multiple processes easily with
child_process
, if you want to run parallel computations.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.
Python doesn’t really have multithreading either. Well it technically does, but you can only use one at a time by default.