4 ms·
> one side is astronomically slow, requiring millions of instructions This is not "astronomically slow" on any hardware from this millennium. > Let me head yo
by saagarjha 8y ago
> one side is astronomically slow, requiring millions of instructions
This is not "astronomically slow" on any hardware from this millennium.
> Let me head you off at the pass before you ask "Why would I ever want to calculate a cosine in a bash script?" when you should be asking "Why would I ever want to use a language that doesn't let me calculate a cosine? Or even draw a circle?"
Because there are places for languages that can't do everything you'd ever want. Sometimes they can be extra specialized for a common task you do often: for bash, this happens to be "how can I glue together things quickly?"
> Tell me why hasn't anyone come up with a way to draw like the canvas API in bash, without forking off dozens if not thousands of processes?
Because this isn't something that bash would be good at, as you've mentioned. It's a task that would be a lot better suited to some other tool, which bash could then interact with.