Hacker News new | ask | show | jobs
by DonHopkins 1190 days ago
This is a prime example of what I mean by my remark above that the original commenter was totally undermining their own argument by using "shell script" instead of "python script".

Shell scripts can't create intermediate bitmap images in memory and operate on them with normal drawing and filtering apis like opencv, without lossily serializing and deserializing them as jpg files, or even operate on json structures directly.

It would be a much stronger argument if your example used python and opencv or any other normal library, instead of incredibly inefficient and hard to write and maintain invocations to full blown unix commands run in separate processes instead of direct library calls to manipulate in-memory images.

There's no reason "AI" code generation has to use the worst possible language and technique to generate code to solve a problem.

It's like having a food replicator from Star Trek: TNG, and asking it to make you rancid dog food instead of lobster.