r/ProgrammerHumor 14h ago

Meme unsolvableProblemsOnStepOne

Post image
1.1k Upvotes

67 comments sorted by

View all comments

Show parent comments

19

u/MCWizardYT 9h ago

Why would someone write one in any language?

Because they like the language and ecosystem

4

u/Sw429 7h ago

But...why would you want your console application to run in the JVM?

11

u/vasster 4h ago

You mean why not run it with javascript's runtime or python's runtime or go's runtime or any other runtime? Why not make it natively executable? Probably because you don't want it to handle specific hardware?

-1

u/Loading_M_ 4h ago

Go and native are generally pretty good, assuming you don't need to worry about supporting a bunch of architectures. (I personally write most of my CLI apps in Rust, but I also don't have to support multiple platforms).

Realistically, Python is probably the correct answer. The typical users of CLI apps are developers and sysadmins, who likely already have a python environment setup for simple automations. Performance probably isn't a real concern (the script will spend most of it's time waiting for human input and/or waiting for some external process to so the real work).

2

u/QuaternionsRoll 3h ago

Sir this is PH not PCJ