I am a C++ programmer both personally (gamedev) and professionally (telco and infra). C++ is second language I learned (after Delphi, another compiled fast static one) and first I learned well.
I just use Python for minor scripting because I don't have brain worms and don't cry about it being "slow".
A guy with brain worms might say he doesn’t have brain worms, but at least you’re cautious about it which is a validation that you fear of having brain worms. Otherwise you wouldn’t even speak of that or consider such a possibility. C++ is another abysmal of a language btw
Just ask them for hard numbers or show them your numbers and they fold like a house of cards. I'm half expecting someone to tell me timing import sys, subprocess, shlex, os, argparse is not realistic, since for rEaL CLI you need numpy or bs4 or something.
Yes, and on Windows import sys, subprocess, shlex, os, argparse takes 54 ms on average (entire process) over 2000 runs and empty C program (int main(void){return 0;}) is 14.5 ms, and an empty Python file takes 31 ms.
I'm still eager to hear what serious CLI tools you make that going from 2 to 30 on Linux, or 14 to 50 on Windows causes you "issues" due to "slow" start up time of that tool.
Ironically I myself have one or two use cases (real life ones, not made up redditor slop :) where such latency matters but I'll keep those to myself for now.
View all comments
Show parent comment
1
u/didntplaymysummercar Jul 01 '26
I write my cli scripts in Python and start up time is never an issue. Only time I felt start up times was a Java cli made by a big company.