3 ms·
They don't mention that Python makes it really easy to interoperate with other languages via the subprocess module. So you can run Javascript web code via node
by photochemsyn 4y ago
They don't mention that Python makes it really easy to interoperate with other languages via the subprocess module. So you can run Javascript web code via node, wait for it to finish, then move on to something else. Or you can launch a C++ process that's can do real parallelism and wait for the results, avoiding many issues with the Python GIL.
Also, Python makes it easy to work in different programming paradigms, it's as easy to write functional-type code as it is to write object-oriented code, both approaches are supported. This makes it a great prototyping system if you want to rewrite the code later in some other language like C++ to get some performance improvements.
- marcosdumay 4y ago> Python makes it really easy to interoperate with other languages via the subprocess module Launching processes and interacting with them through stdin and stdout is a bare minimum, and really a flag against the few languages that make it hard, instead of a relevant feature. > Python makes it easy to work in different programming paradigms As long as you stay in imperative, non-pure, structured with optional OOP and first classes functions. Again, that's not much in multi-paradigm. This is the set of things that work well with the imperative model.
- cozzyd 4y agoWhat languages make it difficult to spawn other processes?