News for hackers. Stuff that matters.
Re:DuckDB as the New jq by bdcravens on Thursday March 21, 2024 @09:01PM (#39786362)
Pipelining CLI commands or bash scripts. From a security perspective, it may be preferable to not ship with a runtime.
Re:DuckDB as the New jq by vips7L on Thursday March 21, 2024 @09:23PM (#39786502)
bash and jq are both runtimes.
Re:DuckDB as the New jq by bdcravens on Thursday March 21, 2024 @09:51PM (#39786671)
Very difficult (or often impractical) to not have a shell at all, and jq is at least limited in scope, and has no dependencies that need to be installed. Far better than a full language with its own standard library and set of dependencies to lock down.
Re:DuckDB as the New jq by jonfw on Friday March 22, 2024 @11:54AM (#39791915)
Use a compiled language like golang if you don't want to ship with a runtime.

If you're willing to ship w/ bash then I don't understand the opposition to JS. Either tool puts you in a scenario where somebody who can exec into your env can do whatever they want