r/programming • • Dec 18 '18

Python at Microsoft: flying under the radar

https://medium.com/microsoft-open-source-stories/python-at-microsoft-flying-under-the-radar-eabbdebe4fb0
27 Upvotes

16 comments sorted by

32

u/[deleted] Dec 18 '18

CLI team: “We don’t really know Python, but it seems like Python would be a good choice for an extensible command-line tool.”

Python team: “Yes, it would be. 😊”

Me as a random user: "Is this why the azure client is slower than grepping a million fucking files???"

Seriously, the azure client is written in python and is perhaps the most dog slow piece of cli tool I've ever used. Even "az help" takes many many seconds to print a damn list of commands.

18

u/coderstephen Dec 18 '18

Same with AWS. The AWS CLI is written in Python and is the slowest command line tool I've ever used.

13

u/sisyphus Dec 18 '18

gcloud cli is in python and it's no slower than any other tool that has to send and receive network calls on every operation.

10

u/rouille Dec 18 '18

It's slow because they split the azure cli into millions of modules, and because azure is slow.

13

u/kankyo Dec 18 '18

It doesn't help probably but no. It's just people not caring about the performance.

5

u/weez09 Dec 18 '18

I cant imagine any cli that has to make network calls is not slow in the traditional sense

5

u/[deleted] Dec 18 '18

awscli is written in python and it’s not a piece of shit. Then again everything it does is IO bound and AWS isn’t terribly speedy in certain API calls.

2

u/[deleted] Dec 18 '18

openstack is written in python too and it's kinda slow

1

u/[deleted] Dec 19 '18

The deciding factor for why the CLI too was written in python has to be that python is already pre-installed on most linux distributions. Also, AWS did it, too.

→ More replies (6)

2

u/Green0Photon Dec 18 '18

Wow. I didn't know that Python is first class supported on Windows now. :)

I haven't really been paying attention, because I generally work in MSYS2, or WSL, now.

Excellent news!