Re:Programming languages endorsed for server-side use at Meta
by sigmonsays on Wednesday July 27, 2022 @02:37PM
(#32254623)
in what world is the arg parser performance critical?
Re:Programming languages endorsed for server-side use at Meta
by renewiltord on Wednesday July 27, 2022 @02:38PM
(#32254650)
It is not beyond some base-line which golang cobra, python argparse, rust clap all hit. But it's so nice to use I thought there would have to be a trade-off and there wasn't.
Re:Programming languages endorsed for server-side use at Meta
by spfzero on Wednesday July 27, 2022 @03:20PM
(#32255400)
When the cli app is called from another process which passes the arguments, and needs the results back fast?
Re:Programming languages endorsed for server-side use at Meta
by merb on Wednesday July 27, 2022 @05:15PM
(#32257076)
well depending on the language an argsparser can trash quite a lot of memory and become slower than necessary when there is a big argument list.
as others said if this cli is also used as a component than it might be important that it is fast.
and since claps is so easy to use and has basically no downsides it's stupid to even not at least try it.
as said compared to other tools it's really really simple
and clap is probably the best args parser available on the planet. no other language has an args parser that is so easy to use and still extremly fast with a low overhead than rust.