Command-line JSON filtering at 20 GB/s

  • lucas@startrek.website
    link
    fedilink
    English
    arrow-up
    25
    arrow-down
    1
    ·
    2 days ago

    Looks useful, but:

    You can install sjq on Linux and macOS with one command:

    curl -fsSL https://raw.githubusercontent.com/simdjson/sjq/main/install.sh | sh
    

    Can we please stop pretending that piping scripts straight from the web into a shell is an acceptable or safe thing to do?

    • theneverfox@pawb.social
      link
      fedilink
      English
      arrow-up
      11
      arrow-down
      2
      ·
      2 days ago

      At the end of the day, you have to trust the software you’re downloading. It is going to run on your computer

      Security is always balanced against convenience (or maybe inconvenience). This method is really convenient for the author and fairly convenient for the user

      Obviously a package manager would be better, but this is basically equivalent to using less curated sources that smaller and younger projects would be using anyways

        • iocase@lemmy.zip
          link
          fedilink
          arrow-up
          5
          ·
          2 days ago

          It’s like getting instructuons to go to a random gas station in Tijuana and drink 2L of unfiltered tap water from their unkempt bathroom sink directly with your mouth wrapped around the spout